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.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var React10 = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var
|
|
6
|
+
var globalAxios20 = require('axios');
|
|
7
7
|
var framerMotion = require('framer-motion');
|
|
8
8
|
var lucideReact = require('lucide-react');
|
|
9
9
|
var reactQuery = require('@tanstack/react-query');
|
|
@@ -19,7 +19,7 @@ var zod = require('zod');
|
|
|
19
19
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
20
|
|
|
21
21
|
var React10__default = /*#__PURE__*/_interopDefault(React10);
|
|
22
|
-
var
|
|
22
|
+
var globalAxios20__default = /*#__PURE__*/_interopDefault(globalAxios20);
|
|
23
23
|
var Image4__default = /*#__PURE__*/_interopDefault(Image4);
|
|
24
24
|
var Link9__default = /*#__PURE__*/_interopDefault(Link9);
|
|
25
25
|
var dynamic__default = /*#__PURE__*/_interopDefault(dynamic);
|
|
@@ -71,7 +71,7 @@ var init_sharedConfig = __esm({
|
|
|
71
71
|
basePath: "https://api.heypharmacist.com",
|
|
72
72
|
// Default fallback
|
|
73
73
|
baseOptions: {
|
|
74
|
-
timeout:
|
|
74
|
+
timeout: 6e4
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
}
|
|
@@ -248,7 +248,7 @@ function ThemeProvider({ config, children }) {
|
|
|
248
248
|
vars.push(`--hp-secondary: ${config.colors.secondary}`);
|
|
249
249
|
vars.push(`--hp-accent: ${config.colors.accent}`);
|
|
250
250
|
vars.push(`--hp-accent-dark: ${config.colors.accentDark}`);
|
|
251
|
-
vars.push(`--hp-text-
|
|
251
|
+
vars.push(`--hp-text-hmuted: ${config.colors.textMuted}`);
|
|
252
252
|
Object.entries(primaryShades).forEach(([shade, rgb]) => {
|
|
253
253
|
vars.push(`--hp-primary-${shade}: ${rgb}`);
|
|
254
254
|
});
|
|
@@ -270,7 +270,7 @@ function ThemeProvider({ config, children }) {
|
|
|
270
270
|
root.style.setProperty("--hp-secondary", config.colors.secondary);
|
|
271
271
|
root.style.setProperty("--hp-accent", config.colors.accent);
|
|
272
272
|
root.style.setProperty("--hp-accent-dark", config.colors.accentDark);
|
|
273
|
-
root.style.setProperty("--hp-text-
|
|
273
|
+
root.style.setProperty("--hp-text-hmuted", config.colors.textMuted);
|
|
274
274
|
Object.entries(primaryShades).forEach(([shade, rgb]) => {
|
|
275
275
|
root.style.setProperty(`--hp-primary-${shade}`, rgb);
|
|
276
276
|
});
|
|
@@ -291,7 +291,7 @@ function ThemeProvider({ config, children }) {
|
|
|
291
291
|
init_config();
|
|
292
292
|
var BASE_PATH = "/".replace(/\/+$/, "");
|
|
293
293
|
var BaseAPI = class {
|
|
294
|
-
constructor(configuration, basePath = BASE_PATH, axios =
|
|
294
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios20__default.default) {
|
|
295
295
|
this.basePath = basePath;
|
|
296
296
|
this.axios = axios;
|
|
297
297
|
if (configuration) {
|
|
@@ -962,7 +962,7 @@ var UsersApiFp = function(configuration) {
|
|
|
962
962
|
*/
|
|
963
963
|
async allowUserCredit(body, userId, options) {
|
|
964
964
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).allowUserCredit(body, userId, options);
|
|
965
|
-
return (axios =
|
|
965
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
966
966
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
967
967
|
return axios.request(axiosRequestArgs);
|
|
968
968
|
};
|
|
@@ -976,7 +976,7 @@ var UsersApiFp = function(configuration) {
|
|
|
976
976
|
*/
|
|
977
977
|
async changeUserEmail(body, options) {
|
|
978
978
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).changeUserEmail(body, options);
|
|
979
|
-
return (axios =
|
|
979
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
980
980
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
981
981
|
return axios.request(axiosRequestArgs);
|
|
982
982
|
};
|
|
@@ -990,7 +990,7 @@ var UsersApiFp = function(configuration) {
|
|
|
990
990
|
*/
|
|
991
991
|
async createUser(body, options) {
|
|
992
992
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).createUser(body, options);
|
|
993
|
-
return (axios =
|
|
993
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
994
994
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
995
995
|
return axios.request(axiosRequestArgs);
|
|
996
996
|
};
|
|
@@ -1003,7 +1003,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1003
1003
|
*/
|
|
1004
1004
|
async deleteMyProfile(options) {
|
|
1005
1005
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteMyProfile(options);
|
|
1006
|
-
return (axios =
|
|
1006
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1007
1007
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1008
1008
|
return axios.request(axiosRequestArgs);
|
|
1009
1009
|
};
|
|
@@ -1017,7 +1017,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1017
1017
|
*/
|
|
1018
1018
|
async deleteUser(id, options) {
|
|
1019
1019
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteUser(id, options);
|
|
1020
|
-
return (axios =
|
|
1020
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1021
1021
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1022
1022
|
return axios.request(axiosRequestArgs);
|
|
1023
1023
|
};
|
|
@@ -1031,7 +1031,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1031
1031
|
*/
|
|
1032
1032
|
async disableUserCredit(userId, options) {
|
|
1033
1033
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).disableUserCredit(userId, options);
|
|
1034
|
-
return (axios =
|
|
1034
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1035
1035
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1036
1036
|
return axios.request(axiosRequestArgs);
|
|
1037
1037
|
};
|
|
@@ -1052,7 +1052,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1052
1052
|
*/
|
|
1053
1053
|
async getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options) {
|
|
1054
1054
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options);
|
|
1055
|
-
return (axios =
|
|
1055
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1056
1056
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1057
1057
|
return axios.request(axiosRequestArgs);
|
|
1058
1058
|
};
|
|
@@ -1066,7 +1066,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1066
1066
|
*/
|
|
1067
1067
|
async getInsights(groupId, options) {
|
|
1068
1068
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getInsights(groupId, options);
|
|
1069
|
-
return (axios =
|
|
1069
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1070
1070
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1071
1071
|
return axios.request(axiosRequestArgs);
|
|
1072
1072
|
};
|
|
@@ -1079,7 +1079,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1079
1079
|
*/
|
|
1080
1080
|
async getMyProfile(options) {
|
|
1081
1081
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getMyProfile(options);
|
|
1082
|
-
return (axios =
|
|
1082
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1083
1083
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1084
1084
|
return axios.request(axiosRequestArgs);
|
|
1085
1085
|
};
|
|
@@ -1093,7 +1093,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1093
1093
|
*/
|
|
1094
1094
|
async getSingleUser(id, options) {
|
|
1095
1095
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getSingleUser(id, options);
|
|
1096
|
-
return (axios =
|
|
1096
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1097
1097
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1098
1098
|
return axios.request(axiosRequestArgs);
|
|
1099
1099
|
};
|
|
@@ -1106,7 +1106,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1106
1106
|
*/
|
|
1107
1107
|
async sendOTP(options) {
|
|
1108
1108
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).sendOTP(options);
|
|
1109
|
-
return (axios =
|
|
1109
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1110
1110
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1111
1111
|
return axios.request(axiosRequestArgs);
|
|
1112
1112
|
};
|
|
@@ -1120,7 +1120,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1120
1120
|
*/
|
|
1121
1121
|
async updateMyProfile(body, options) {
|
|
1122
1122
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateMyProfile(body, options);
|
|
1123
|
-
return (axios =
|
|
1123
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1124
1124
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1125
1125
|
return axios.request(axiosRequestArgs);
|
|
1126
1126
|
};
|
|
@@ -1135,7 +1135,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1135
1135
|
*/
|
|
1136
1136
|
async updateUser(body, id, options) {
|
|
1137
1137
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateUser(body, id, options);
|
|
1138
|
-
return (axios =
|
|
1138
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1139
1139
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1140
1140
|
return axios.request(axiosRequestArgs);
|
|
1141
1141
|
};
|
|
@@ -1148,7 +1148,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1148
1148
|
*/
|
|
1149
1149
|
async verifyOTP(options) {
|
|
1150
1150
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).verifyOTP(options);
|
|
1151
|
-
return (axios =
|
|
1151
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1152
1152
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1153
1153
|
return axios.request(axiosRequestArgs);
|
|
1154
1154
|
};
|
|
@@ -1765,7 +1765,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1765
1765
|
*/
|
|
1766
1766
|
async changeEmail(body, options) {
|
|
1767
1767
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changeEmail(body, options);
|
|
1768
|
-
return (axios =
|
|
1768
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1769
1769
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1770
1770
|
return axios.request(axiosRequestArgs);
|
|
1771
1771
|
};
|
|
@@ -1779,7 +1779,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1779
1779
|
*/
|
|
1780
1780
|
async changePassword(body, options) {
|
|
1781
1781
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changePassword(body, options);
|
|
1782
|
-
return (axios =
|
|
1782
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1783
1783
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1784
1784
|
return axios.request(axiosRequestArgs);
|
|
1785
1785
|
};
|
|
@@ -1793,7 +1793,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1793
1793
|
*/
|
|
1794
1794
|
async dashboardLogin(body, options) {
|
|
1795
1795
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).dashboardLogin(body, options);
|
|
1796
|
-
return (axios =
|
|
1796
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1797
1797
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1798
1798
|
return axios.request(axiosRequestArgs);
|
|
1799
1799
|
};
|
|
@@ -1809,7 +1809,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1809
1809
|
*/
|
|
1810
1810
|
async resetPassword(newPassword, token, xStoreKey, options) {
|
|
1811
1811
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).resetPassword(newPassword, token, xStoreKey, options);
|
|
1812
|
-
return (axios =
|
|
1812
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1813
1813
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1814
1814
|
return axios.request(axiosRequestArgs);
|
|
1815
1815
|
};
|
|
@@ -1823,7 +1823,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1823
1823
|
*/
|
|
1824
1824
|
async sendForgetPasswordEmail(body, options) {
|
|
1825
1825
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).sendForgetPasswordEmail(body, options);
|
|
1826
|
-
return (axios =
|
|
1826
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1827
1827
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1828
1828
|
return axios.request(axiosRequestArgs);
|
|
1829
1829
|
};
|
|
@@ -1837,7 +1837,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1837
1837
|
*/
|
|
1838
1838
|
async signin(body, options) {
|
|
1839
1839
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signin(body, options);
|
|
1840
|
-
return (axios =
|
|
1840
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1841
1841
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1842
1842
|
return axios.request(axiosRequestArgs);
|
|
1843
1843
|
};
|
|
@@ -1851,7 +1851,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1851
1851
|
*/
|
|
1852
1852
|
async signinWithGmail(body, options) {
|
|
1853
1853
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signinWithGmail(body, options);
|
|
1854
|
-
return (axios =
|
|
1854
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1855
1855
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1856
1856
|
return axios.request(axiosRequestArgs);
|
|
1857
1857
|
};
|
|
@@ -1865,7 +1865,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1865
1865
|
*/
|
|
1866
1866
|
async signup(body, options) {
|
|
1867
1867
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signup(body, options);
|
|
1868
|
-
return (axios =
|
|
1868
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1869
1869
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1870
1870
|
return axios.request(axiosRequestArgs);
|
|
1871
1871
|
};
|
|
@@ -1879,7 +1879,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1879
1879
|
*/
|
|
1880
1880
|
async signupWithGmail(body, options) {
|
|
1881
1881
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signupWithGmail(body, options);
|
|
1882
|
-
return (axios =
|
|
1882
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1883
1883
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1884
1884
|
return axios.request(axiosRequestArgs);
|
|
1885
1885
|
};
|
|
@@ -1893,7 +1893,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1893
1893
|
*/
|
|
1894
1894
|
async verifyUserEmail(body, options) {
|
|
1895
1895
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).verifyUserEmail(body, options);
|
|
1896
|
-
return (axios =
|
|
1896
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
1897
1897
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1898
1898
|
return axios.request(axiosRequestArgs);
|
|
1899
1899
|
};
|
|
@@ -2814,7 +2814,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2814
2814
|
*/
|
|
2815
2815
|
async adminCreateAddressForUser(body, userId, options) {
|
|
2816
2816
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminCreateAddressForUser(body, userId, options);
|
|
2817
|
-
return (axios =
|
|
2817
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2818
2818
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2819
2819
|
return axios.request(axiosRequestArgs);
|
|
2820
2820
|
};
|
|
@@ -2828,7 +2828,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2828
2828
|
*/
|
|
2829
2829
|
async adminDeleteUserAddress(addressId, options) {
|
|
2830
2830
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminDeleteUserAddress(addressId, options);
|
|
2831
|
-
return (axios =
|
|
2831
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2832
2832
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2833
2833
|
return axios.request(axiosRequestArgs);
|
|
2834
2834
|
};
|
|
@@ -2842,7 +2842,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2842
2842
|
*/
|
|
2843
2843
|
async adminGetSingleUserAddresses(userId, options) {
|
|
2844
2844
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminGetSingleUserAddresses(userId, options);
|
|
2845
|
-
return (axios =
|
|
2845
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2846
2846
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2847
2847
|
return axios.request(axiosRequestArgs);
|
|
2848
2848
|
};
|
|
@@ -2857,7 +2857,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2857
2857
|
*/
|
|
2858
2858
|
async adminUpdateUserAddress(body, addressId, options) {
|
|
2859
2859
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminUpdateUserAddress(body, addressId, options);
|
|
2860
|
-
return (axios =
|
|
2860
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2861
2861
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2862
2862
|
return axios.request(axiosRequestArgs);
|
|
2863
2863
|
};
|
|
@@ -2871,7 +2871,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2871
2871
|
*/
|
|
2872
2872
|
async createAddressForStore(body, options) {
|
|
2873
2873
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForStore(body, options);
|
|
2874
|
-
return (axios =
|
|
2874
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2875
2875
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2876
2876
|
return axios.request(axiosRequestArgs);
|
|
2877
2877
|
};
|
|
@@ -2885,7 +2885,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2885
2885
|
*/
|
|
2886
2886
|
async createAddressForUser(body, options) {
|
|
2887
2887
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForUser(body, options);
|
|
2888
|
-
return (axios =
|
|
2888
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2889
2889
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2890
2890
|
return axios.request(axiosRequestArgs);
|
|
2891
2891
|
};
|
|
@@ -2899,7 +2899,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2899
2899
|
*/
|
|
2900
2900
|
async deleteUserAddress(addressId, options) {
|
|
2901
2901
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).deleteUserAddress(addressId, options);
|
|
2902
|
-
return (axios =
|
|
2902
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2903
2903
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2904
2904
|
return axios.request(axiosRequestArgs);
|
|
2905
2905
|
};
|
|
@@ -2913,7 +2913,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2913
2913
|
*/
|
|
2914
2914
|
async getAllStoreAddresses(storeId, options) {
|
|
2915
2915
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllStoreAddresses(storeId, options);
|
|
2916
|
-
return (axios =
|
|
2916
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2917
2917
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2918
2918
|
return axios.request(axiosRequestArgs);
|
|
2919
2919
|
};
|
|
@@ -2926,7 +2926,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2926
2926
|
*/
|
|
2927
2927
|
async getAllUserAddresses(options) {
|
|
2928
2928
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllUserAddresses(options);
|
|
2929
|
-
return (axios =
|
|
2929
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2930
2930
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2931
2931
|
return axios.request(axiosRequestArgs);
|
|
2932
2932
|
};
|
|
@@ -2939,7 +2939,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2939
2939
|
*/
|
|
2940
2940
|
async getMyAddresses(options) {
|
|
2941
2941
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyAddresses(options);
|
|
2942
|
-
return (axios =
|
|
2942
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2943
2943
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2944
2944
|
return axios.request(axiosRequestArgs);
|
|
2945
2945
|
};
|
|
@@ -2952,7 +2952,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2952
2952
|
*/
|
|
2953
2953
|
async getMyDefaultAddress(options) {
|
|
2954
2954
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyDefaultAddress(options);
|
|
2955
|
-
return (axios =
|
|
2955
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2956
2956
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2957
2957
|
return axios.request(axiosRequestArgs);
|
|
2958
2958
|
};
|
|
@@ -2966,7 +2966,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2966
2966
|
*/
|
|
2967
2967
|
async getSingleAddress(addressId, options) {
|
|
2968
2968
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getSingleAddress(addressId, options);
|
|
2969
|
-
return (axios =
|
|
2969
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2970
2970
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2971
2971
|
return axios.request(axiosRequestArgs);
|
|
2972
2972
|
};
|
|
@@ -2981,7 +2981,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2981
2981
|
*/
|
|
2982
2982
|
async setDefaultShippingAddress(userId, addressId, options) {
|
|
2983
2983
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).setDefaultShippingAddress(userId, addressId, options);
|
|
2984
|
-
return (axios =
|
|
2984
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2985
2985
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2986
2986
|
return axios.request(axiosRequestArgs);
|
|
2987
2987
|
};
|
|
@@ -2995,7 +2995,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2995
2995
|
*/
|
|
2996
2996
|
async updateDefaultAddress(addressId, options) {
|
|
2997
2997
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateDefaultAddress(addressId, options);
|
|
2998
|
-
return (axios =
|
|
2998
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
2999
2999
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3000
3000
|
return axios.request(axiosRequestArgs);
|
|
3001
3001
|
};
|
|
@@ -3010,7 +3010,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
3010
3010
|
*/
|
|
3011
3011
|
async updateUserAddress(body, addressId, options) {
|
|
3012
3012
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateUserAddress(body, addressId, options);
|
|
3013
|
-
return (axios =
|
|
3013
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3014
3014
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3015
3015
|
return axios.request(axiosRequestArgs);
|
|
3016
3016
|
};
|
|
@@ -3392,7 +3392,7 @@ var CartApiFp = function(configuration) {
|
|
|
3392
3392
|
*/
|
|
3393
3393
|
async clearCart(options) {
|
|
3394
3394
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).clearCart(options);
|
|
3395
|
-
return (axios =
|
|
3395
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3396
3396
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3397
3397
|
return axios.request(axiosRequestArgs);
|
|
3398
3398
|
};
|
|
@@ -3406,7 +3406,7 @@ var CartApiFp = function(configuration) {
|
|
|
3406
3406
|
*/
|
|
3407
3407
|
async getUserCart(rateId, options) {
|
|
3408
3408
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).getUserCart(rateId, options);
|
|
3409
|
-
return (axios =
|
|
3409
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3410
3410
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3411
3411
|
return axios.request(axiosRequestArgs);
|
|
3412
3412
|
};
|
|
@@ -3420,7 +3420,7 @@ var CartApiFp = function(configuration) {
|
|
|
3420
3420
|
*/
|
|
3421
3421
|
async handleUserCart(body, options) {
|
|
3422
3422
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleUserCart(body, options);
|
|
3423
|
-
return (axios =
|
|
3423
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3424
3424
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3425
3425
|
return axios.request(axiosRequestArgs);
|
|
3426
3426
|
};
|
|
@@ -3438,7 +3438,7 @@ var CartApiFp = function(configuration) {
|
|
|
3438
3438
|
*/
|
|
3439
3439
|
async handleVisitorCart(body, isDelivery, userId, rateId, addressId, options) {
|
|
3440
3440
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleVisitorCart(body, isDelivery, userId, rateId, addressId, options);
|
|
3441
|
-
return (axios =
|
|
3441
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3442
3442
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3443
3443
|
return axios.request(axiosRequestArgs);
|
|
3444
3444
|
};
|
|
@@ -3870,7 +3870,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3870
3870
|
*/
|
|
3871
3871
|
async createCategory(body, options) {
|
|
3872
3872
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).createCategory(body, options);
|
|
3873
|
-
return (axios =
|
|
3873
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3874
3874
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3875
3875
|
return axios.request(axiosRequestArgs);
|
|
3876
3876
|
};
|
|
@@ -3884,7 +3884,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3884
3884
|
*/
|
|
3885
3885
|
async deleteCategory(id, options) {
|
|
3886
3886
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).deleteCategory(id, options);
|
|
3887
|
-
return (axios =
|
|
3887
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3888
3888
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3889
3889
|
return axios.request(axiosRequestArgs);
|
|
3890
3890
|
};
|
|
@@ -3900,7 +3900,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3900
3900
|
*/
|
|
3901
3901
|
async getAllCategories(search, limit, page, options) {
|
|
3902
3902
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getAllCategories(search, limit, page, options);
|
|
3903
|
-
return (axios =
|
|
3903
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3904
3904
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3905
3905
|
return axios.request(axiosRequestArgs);
|
|
3906
3906
|
};
|
|
@@ -3913,7 +3913,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3913
3913
|
*/
|
|
3914
3914
|
async getCategoreisAndSubCategories(options) {
|
|
3915
3915
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoreisAndSubCategories(options);
|
|
3916
|
-
return (axios =
|
|
3916
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3917
3917
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3918
3918
|
return axios.request(axiosRequestArgs);
|
|
3919
3919
|
};
|
|
@@ -3927,7 +3927,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3927
3927
|
*/
|
|
3928
3928
|
async getCategoryFilters(id, options) {
|
|
3929
3929
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoryFilters(id, options);
|
|
3930
|
-
return (axios =
|
|
3930
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3931
3931
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3932
3932
|
return axios.request(axiosRequestArgs);
|
|
3933
3933
|
};
|
|
@@ -3941,7 +3941,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3941
3941
|
*/
|
|
3942
3942
|
async getSingleCategory(id, options) {
|
|
3943
3943
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getSingleCategory(id, options);
|
|
3944
|
-
return (axios =
|
|
3944
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3945
3945
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3946
3946
|
return axios.request(axiosRequestArgs);
|
|
3947
3947
|
};
|
|
@@ -3955,7 +3955,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3955
3955
|
*/
|
|
3956
3956
|
async reorderCategories(body, options) {
|
|
3957
3957
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).reorderCategories(body, options);
|
|
3958
|
-
return (axios =
|
|
3958
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3959
3959
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3960
3960
|
return axios.request(axiosRequestArgs);
|
|
3961
3961
|
};
|
|
@@ -3970,7 +3970,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3970
3970
|
*/
|
|
3971
3971
|
async updateCategory(body, id, options) {
|
|
3972
3972
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).updateCategory(body, id, options);
|
|
3973
|
-
return (axios =
|
|
3973
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
3974
3974
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3975
3975
|
return axios.request(axiosRequestArgs);
|
|
3976
3976
|
};
|
|
@@ -4395,7 +4395,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4395
4395
|
*/
|
|
4396
4396
|
async createDiscount(body, options) {
|
|
4397
4397
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).createDiscount(body, options);
|
|
4398
|
-
return (axios =
|
|
4398
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4399
4399
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4400
4400
|
return axios.request(axiosRequestArgs);
|
|
4401
4401
|
};
|
|
@@ -4409,7 +4409,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4409
4409
|
*/
|
|
4410
4410
|
async deleteDiscount(id, options) {
|
|
4411
4411
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).deleteDiscount(id, options);
|
|
4412
|
-
return (axios =
|
|
4412
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4413
4413
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4414
4414
|
return axios.request(axiosRequestArgs);
|
|
4415
4415
|
};
|
|
@@ -4422,7 +4422,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4422
4422
|
*/
|
|
4423
4423
|
async getAllDiscounts(options) {
|
|
4424
4424
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getAllDiscounts(options);
|
|
4425
|
-
return (axios =
|
|
4425
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4426
4426
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4427
4427
|
return axios.request(axiosRequestArgs);
|
|
4428
4428
|
};
|
|
@@ -4435,7 +4435,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4435
4435
|
*/
|
|
4436
4436
|
async getDiscountsInsights(options) {
|
|
4437
4437
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getDiscountsInsights(options);
|
|
4438
|
-
return (axios =
|
|
4438
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4439
4439
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4440
4440
|
return axios.request(axiosRequestArgs);
|
|
4441
4441
|
};
|
|
@@ -4449,7 +4449,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4449
4449
|
*/
|
|
4450
4450
|
async getSingleDiscount(id, options) {
|
|
4451
4451
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getSingleDiscount(id, options);
|
|
4452
|
-
return (axios =
|
|
4452
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4453
4453
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4454
4454
|
return axios.request(axiosRequestArgs);
|
|
4455
4455
|
};
|
|
@@ -4464,7 +4464,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4464
4464
|
*/
|
|
4465
4465
|
async updateDiscount(body, id, options) {
|
|
4466
4466
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).updateDiscount(body, id, options);
|
|
4467
|
-
return (axios =
|
|
4467
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4468
4468
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4469
4469
|
return axios.request(axiosRequestArgs);
|
|
4470
4470
|
};
|
|
@@ -4480,7 +4480,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4480
4480
|
*/
|
|
4481
4481
|
async validateCoupon(code, userId, discountId, options) {
|
|
4482
4482
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).validateCoupon(code, userId, discountId, options);
|
|
4483
|
-
return (axios =
|
|
4483
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4484
4484
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4485
4485
|
return axios.request(axiosRequestArgs);
|
|
4486
4486
|
};
|
|
@@ -4938,7 +4938,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4938
4938
|
*/
|
|
4939
4939
|
async bulkToggleChannel(body, options) {
|
|
4940
4940
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).bulkToggleChannel(body, options);
|
|
4941
|
-
return (axios =
|
|
4941
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4942
4942
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4943
4943
|
return axios.request(axiosRequestArgs);
|
|
4944
4944
|
};
|
|
@@ -4952,7 +4952,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4952
4952
|
*/
|
|
4953
4953
|
async deleteNotification(id, options) {
|
|
4954
4954
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).deleteNotification(id, options);
|
|
4955
|
-
return (axios =
|
|
4955
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4956
4956
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4957
4957
|
return axios.request(axiosRequestArgs);
|
|
4958
4958
|
};
|
|
@@ -4968,7 +4968,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4968
4968
|
*/
|
|
4969
4969
|
async getNotifications(page, limit, unreadOnly, options) {
|
|
4970
4970
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getNotifications(page, limit, unreadOnly, options);
|
|
4971
|
-
return (axios =
|
|
4971
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4972
4972
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4973
4973
|
return axios.request(axiosRequestArgs);
|
|
4974
4974
|
};
|
|
@@ -4981,7 +4981,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4981
4981
|
*/
|
|
4982
4982
|
async getSettings(options) {
|
|
4983
4983
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getSettings(options);
|
|
4984
|
-
return (axios =
|
|
4984
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4985
4985
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4986
4986
|
return axios.request(axiosRequestArgs);
|
|
4987
4987
|
};
|
|
@@ -4994,7 +4994,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4994
4994
|
*/
|
|
4995
4995
|
async getUnreadCount(options) {
|
|
4996
4996
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getUnreadCount(options);
|
|
4997
|
-
return (axios =
|
|
4997
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
4998
4998
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4999
4999
|
return axios.request(axiosRequestArgs);
|
|
5000
5000
|
};
|
|
@@ -5007,7 +5007,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5007
5007
|
*/
|
|
5008
5008
|
async markAllAsRead(options) {
|
|
5009
5009
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAllAsRead(options);
|
|
5010
|
-
return (axios =
|
|
5010
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5011
5011
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5012
5012
|
return axios.request(axiosRequestArgs);
|
|
5013
5013
|
};
|
|
@@ -5021,7 +5021,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5021
5021
|
*/
|
|
5022
5022
|
async markAsRead(id, options) {
|
|
5023
5023
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAsRead(id, options);
|
|
5024
|
-
return (axios =
|
|
5024
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5025
5025
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5026
5026
|
return axios.request(axiosRequestArgs);
|
|
5027
5027
|
};
|
|
@@ -5035,7 +5035,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5035
5035
|
*/
|
|
5036
5036
|
async stream(token, options) {
|
|
5037
5037
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).stream(token, options);
|
|
5038
|
-
return (axios =
|
|
5038
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5039
5039
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5040
5040
|
return axios.request(axiosRequestArgs);
|
|
5041
5041
|
};
|
|
@@ -5049,7 +5049,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5049
5049
|
*/
|
|
5050
5050
|
async updateSettings(body, options) {
|
|
5051
5051
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).updateSettings(body, options);
|
|
5052
|
-
return (axios =
|
|
5052
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5053
5053
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5054
5054
|
return axios.request(axiosRequestArgs);
|
|
5055
5055
|
};
|
|
@@ -5786,7 +5786,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5786
5786
|
*/
|
|
5787
5787
|
async assignPaymentMethod(orderId, paymentMethod, billingAddressId, options) {
|
|
5788
5788
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).assignPaymentMethod(orderId, paymentMethod, billingAddressId, options);
|
|
5789
|
-
return (axios =
|
|
5789
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5790
5790
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5791
5791
|
return axios.request(axiosRequestArgs);
|
|
5792
5792
|
};
|
|
@@ -5800,7 +5800,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5800
5800
|
*/
|
|
5801
5801
|
async cancelOrder(id, options) {
|
|
5802
5802
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).cancelOrder(id, options);
|
|
5803
|
-
return (axios =
|
|
5803
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5804
5804
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5805
5805
|
return axios.request(axiosRequestArgs);
|
|
5806
5806
|
};
|
|
@@ -5818,7 +5818,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5818
5818
|
*/
|
|
5819
5819
|
async createCheckout(body, isDelivery, userId, rateId, billingAddressId, options) {
|
|
5820
5820
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).createCheckout(body, isDelivery, userId, rateId, billingAddressId, options);
|
|
5821
|
-
return (axios =
|
|
5821
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5822
5822
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5823
5823
|
return axios.request(axiosRequestArgs);
|
|
5824
5824
|
};
|
|
@@ -5832,7 +5832,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5832
5832
|
*/
|
|
5833
5833
|
async deleteOrder(id, options) {
|
|
5834
5834
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).deleteOrder(id, options);
|
|
5835
|
-
return (axios =
|
|
5835
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5836
5836
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5837
5837
|
return axios.request(axiosRequestArgs);
|
|
5838
5838
|
};
|
|
@@ -5853,7 +5853,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5853
5853
|
*/
|
|
5854
5854
|
async getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options) {
|
|
5855
5855
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options);
|
|
5856
|
-
return (axios =
|
|
5856
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5857
5857
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5858
5858
|
return axios.request(axiosRequestArgs);
|
|
5859
5859
|
};
|
|
@@ -5867,7 +5867,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5867
5867
|
*/
|
|
5868
5868
|
async getSingleOrder(id, options) {
|
|
5869
5869
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getSingleOrder(id, options);
|
|
5870
|
-
return (axios =
|
|
5870
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5871
5871
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5872
5872
|
return axios.request(axiosRequestArgs);
|
|
5873
5873
|
};
|
|
@@ -5880,7 +5880,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5880
5880
|
*/
|
|
5881
5881
|
async getStoreOrderInsights(options) {
|
|
5882
5882
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getStoreOrderInsights(options);
|
|
5883
|
-
return (axios =
|
|
5883
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5884
5884
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5885
5885
|
return axios.request(axiosRequestArgs);
|
|
5886
5886
|
};
|
|
@@ -5893,7 +5893,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5893
5893
|
*/
|
|
5894
5894
|
async getUserOrders(options) {
|
|
5895
5895
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getUserOrders(options);
|
|
5896
|
-
return (axios =
|
|
5896
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5897
5897
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5898
5898
|
return axios.request(axiosRequestArgs);
|
|
5899
5899
|
};
|
|
@@ -5907,7 +5907,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5907
5907
|
*/
|
|
5908
5908
|
async payOrder(orderId, options) {
|
|
5909
5909
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).payOrder(orderId, options);
|
|
5910
|
-
return (axios =
|
|
5910
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5911
5911
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5912
5912
|
return axios.request(axiosRequestArgs);
|
|
5913
5913
|
};
|
|
@@ -5921,7 +5921,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5921
5921
|
*/
|
|
5922
5922
|
async sendOrderEmail(body, options) {
|
|
5923
5923
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).sendOrderEmail(body, options);
|
|
5924
|
-
return (axios =
|
|
5924
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5925
5925
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5926
5926
|
return axios.request(axiosRequestArgs);
|
|
5927
5927
|
};
|
|
@@ -5942,7 +5942,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5942
5942
|
*/
|
|
5943
5943
|
async updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options) {
|
|
5944
5944
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options);
|
|
5945
|
-
return (axios =
|
|
5945
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5946
5946
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5947
5947
|
return axios.request(axiosRequestArgs);
|
|
5948
5948
|
};
|
|
@@ -5957,7 +5957,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5957
5957
|
*/
|
|
5958
5958
|
async updateOrderStatus(id, orderStatus, options) {
|
|
5959
5959
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrderStatus(id, orderStatus, options);
|
|
5960
|
-
return (axios =
|
|
5960
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
5961
5961
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5962
5962
|
return axios.request(axiosRequestArgs);
|
|
5963
5963
|
};
|
|
@@ -7117,7 +7117,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7117
7117
|
*/
|
|
7118
7118
|
async addVariant(body, productId, options) {
|
|
7119
7119
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).addVariant(body, productId, options);
|
|
7120
|
-
return (axios =
|
|
7120
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7121
7121
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7122
7122
|
return axios.request(axiosRequestArgs);
|
|
7123
7123
|
};
|
|
@@ -7131,7 +7131,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7131
7131
|
*/
|
|
7132
7132
|
async createProduct(body, options) {
|
|
7133
7133
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProduct(body, options);
|
|
7134
|
-
return (axios =
|
|
7134
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7135
7135
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7136
7136
|
return axios.request(axiosRequestArgs);
|
|
7137
7137
|
};
|
|
@@ -7145,7 +7145,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7145
7145
|
*/
|
|
7146
7146
|
async createProductLegacy(body, options) {
|
|
7147
7147
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProductLegacy(body, options);
|
|
7148
|
-
return (axios =
|
|
7148
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7149
7149
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7150
7150
|
return axios.request(axiosRequestArgs);
|
|
7151
7151
|
};
|
|
@@ -7159,7 +7159,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7159
7159
|
*/
|
|
7160
7160
|
async deleteProduct(id, options) {
|
|
7161
7161
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteProduct(id, options);
|
|
7162
|
-
return (axios =
|
|
7162
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7163
7163
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7164
7164
|
return axios.request(axiosRequestArgs);
|
|
7165
7165
|
};
|
|
@@ -7174,7 +7174,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7174
7174
|
*/
|
|
7175
7175
|
async deleteVariant(productId, variantId, options) {
|
|
7176
7176
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteVariant(productId, variantId, options);
|
|
7177
|
-
return (axios =
|
|
7177
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7178
7178
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7179
7179
|
return axios.request(axiosRequestArgs);
|
|
7180
7180
|
};
|
|
@@ -7188,7 +7188,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7188
7188
|
*/
|
|
7189
7189
|
async getAllCategoryProducts(categoryId, options) {
|
|
7190
7190
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllCategoryProducts(categoryId, options);
|
|
7191
|
-
return (axios =
|
|
7191
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7192
7192
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7193
7193
|
return axios.request(axiosRequestArgs);
|
|
7194
7194
|
};
|
|
@@ -7201,7 +7201,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7201
7201
|
*/
|
|
7202
7202
|
async getAllFilters(options) {
|
|
7203
7203
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllFilters(options);
|
|
7204
|
-
return (axios =
|
|
7204
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7205
7205
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7206
7206
|
return axios.request(axiosRequestArgs);
|
|
7207
7207
|
};
|
|
@@ -7225,7 +7225,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7225
7225
|
*/
|
|
7226
7226
|
async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
|
|
7227
7227
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
|
|
7228
|
-
return (axios =
|
|
7228
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7229
7229
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7230
7230
|
return axios.request(axiosRequestArgs);
|
|
7231
7231
|
};
|
|
@@ -7239,7 +7239,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7239
7239
|
*/
|
|
7240
7240
|
async getAllProductsBySubCategory(subCategoryId, options) {
|
|
7241
7241
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsBySubCategory(subCategoryId, options);
|
|
7242
|
-
return (axios =
|
|
7242
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7243
7243
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7244
7244
|
return axios.request(axiosRequestArgs);
|
|
7245
7245
|
};
|
|
@@ -7252,7 +7252,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7252
7252
|
*/
|
|
7253
7253
|
async getAllProductsLight(options) {
|
|
7254
7254
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsLight(options);
|
|
7255
|
-
return (axios =
|
|
7255
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7256
7256
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7257
7257
|
return axios.request(axiosRequestArgs);
|
|
7258
7258
|
};
|
|
@@ -7265,7 +7265,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7265
7265
|
*/
|
|
7266
7266
|
async getFeaturedProduct(options) {
|
|
7267
7267
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getFeaturedProduct(options);
|
|
7268
|
-
return (axios =
|
|
7268
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7269
7269
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7270
7270
|
return axios.request(axiosRequestArgs);
|
|
7271
7271
|
};
|
|
@@ -7278,7 +7278,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7278
7278
|
*/
|
|
7279
7279
|
async getProductsInsights(options) {
|
|
7280
7280
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getProductsInsights(options);
|
|
7281
|
-
return (axios =
|
|
7281
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7282
7282
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7283
7283
|
return axios.request(axiosRequestArgs);
|
|
7284
7284
|
};
|
|
@@ -7293,7 +7293,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7293
7293
|
*/
|
|
7294
7294
|
async getRelatedProducts(id, limit, options) {
|
|
7295
7295
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProducts(id, limit, options);
|
|
7296
|
-
return (axios =
|
|
7296
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7297
7297
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7298
7298
|
return axios.request(axiosRequestArgs);
|
|
7299
7299
|
};
|
|
@@ -7307,7 +7307,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7307
7307
|
*/
|
|
7308
7308
|
async getRelatedProductsLegacy(productId, options) {
|
|
7309
7309
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProductsLegacy(productId, options);
|
|
7310
|
-
return (axios =
|
|
7310
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7311
7311
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7312
7312
|
return axios.request(axiosRequestArgs);
|
|
7313
7313
|
};
|
|
@@ -7321,7 +7321,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7321
7321
|
*/
|
|
7322
7322
|
async getSingleProduct(id, options) {
|
|
7323
7323
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProduct(id, options);
|
|
7324
|
-
return (axios =
|
|
7324
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7325
7325
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7326
7326
|
return axios.request(axiosRequestArgs);
|
|
7327
7327
|
};
|
|
@@ -7335,7 +7335,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7335
7335
|
*/
|
|
7336
7336
|
async getSingleProductLegacy(id, options) {
|
|
7337
7337
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProductLegacy(id, options);
|
|
7338
|
-
return (axios =
|
|
7338
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7339
7339
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7340
7340
|
return axios.request(axiosRequestArgs);
|
|
7341
7341
|
};
|
|
@@ -7350,7 +7350,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7350
7350
|
*/
|
|
7351
7351
|
async getTopSellingProducts(limit, page, options) {
|
|
7352
7352
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getTopSellingProducts(limit, page, options);
|
|
7353
|
-
return (axios =
|
|
7353
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7354
7354
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7355
7355
|
return axios.request(axiosRequestArgs);
|
|
7356
7356
|
};
|
|
@@ -7364,7 +7364,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7364
7364
|
*/
|
|
7365
7365
|
async reorderProducts(body, options) {
|
|
7366
7366
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reorderProducts(body, options);
|
|
7367
|
-
return (axios =
|
|
7367
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7368
7368
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7369
7369
|
return axios.request(axiosRequestArgs);
|
|
7370
7370
|
};
|
|
@@ -7380,7 +7380,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7380
7380
|
*/
|
|
7381
7381
|
async updateInventory(body, productId, variantId, options) {
|
|
7382
7382
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateInventory(body, productId, variantId, options);
|
|
7383
|
-
return (axios =
|
|
7383
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7384
7384
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7385
7385
|
return axios.request(axiosRequestArgs);
|
|
7386
7386
|
};
|
|
@@ -7395,7 +7395,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7395
7395
|
*/
|
|
7396
7396
|
async updateProduct(body, id, options) {
|
|
7397
7397
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateProduct(body, id, options);
|
|
7398
|
-
return (axios =
|
|
7398
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7399
7399
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7400
7400
|
return axios.request(axiosRequestArgs);
|
|
7401
7401
|
};
|
|
@@ -7411,7 +7411,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7411
7411
|
*/
|
|
7412
7412
|
async updateVariant(body, productId, variantId, options) {
|
|
7413
7413
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateVariant(body, productId, variantId, options);
|
|
7414
|
-
return (axios =
|
|
7414
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
7415
7415
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7416
7416
|
return axios.request(axiosRequestArgs);
|
|
7417
7417
|
};
|
|
@@ -8437,7 +8437,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8437
8437
|
*/
|
|
8438
8438
|
async addReplay(body, id, options) {
|
|
8439
8439
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).addReplay(body, id, options);
|
|
8440
|
-
return (axios =
|
|
8440
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8441
8441
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8442
8442
|
return axios.request(axiosRequestArgs);
|
|
8443
8443
|
};
|
|
@@ -8452,7 +8452,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8452
8452
|
*/
|
|
8453
8453
|
async checkReviewStatus(orderId, productVariantId, options) {
|
|
8454
8454
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).checkReviewStatus(orderId, productVariantId, options);
|
|
8455
|
-
return (axios =
|
|
8455
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8456
8456
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8457
8457
|
return axios.request(axiosRequestArgs);
|
|
8458
8458
|
};
|
|
@@ -8467,7 +8467,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8467
8467
|
*/
|
|
8468
8468
|
async createReview(body, orderId, options) {
|
|
8469
8469
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).createReview(body, orderId, options);
|
|
8470
|
-
return (axios =
|
|
8470
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8471
8471
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8472
8472
|
return axios.request(axiosRequestArgs);
|
|
8473
8473
|
};
|
|
@@ -8480,7 +8480,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8480
8480
|
*/
|
|
8481
8481
|
async getReviewCount(options) {
|
|
8482
8482
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewCount(options);
|
|
8483
|
-
return (axios =
|
|
8483
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8484
8484
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8485
8485
|
return axios.request(axiosRequestArgs);
|
|
8486
8486
|
};
|
|
@@ -8494,7 +8494,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8494
8494
|
*/
|
|
8495
8495
|
async getReviewableProducts(orderId, options) {
|
|
8496
8496
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewableProducts(orderId, options);
|
|
8497
|
-
return (axios =
|
|
8497
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8498
8498
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8499
8499
|
return axios.request(axiosRequestArgs);
|
|
8500
8500
|
};
|
|
@@ -8508,7 +8508,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8508
8508
|
*/
|
|
8509
8509
|
async getReviewsByDate(date, options) {
|
|
8510
8510
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDate(date, options);
|
|
8511
|
-
return (axios =
|
|
8511
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8512
8512
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8513
8513
|
return axios.request(axiosRequestArgs);
|
|
8514
8514
|
};
|
|
@@ -8523,7 +8523,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8523
8523
|
*/
|
|
8524
8524
|
async getReviewsByDateRange(from, to, options) {
|
|
8525
8525
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDateRange(from, to, options);
|
|
8526
|
-
return (axios =
|
|
8526
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8527
8527
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8528
8528
|
return axios.request(axiosRequestArgs);
|
|
8529
8529
|
};
|
|
@@ -8537,7 +8537,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8537
8537
|
*/
|
|
8538
8538
|
async getReviewsByProduct(productId, options) {
|
|
8539
8539
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByProduct(productId, options);
|
|
8540
|
-
return (axios =
|
|
8540
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8541
8541
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8542
8542
|
return axios.request(axiosRequestArgs);
|
|
8543
8543
|
};
|
|
@@ -8551,7 +8551,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8551
8551
|
*/
|
|
8552
8552
|
async getReviewsByRating(rating, options) {
|
|
8553
8553
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByRating(rating, options);
|
|
8554
|
-
return (axios =
|
|
8554
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8555
8555
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8556
8556
|
return axios.request(axiosRequestArgs);
|
|
8557
8557
|
};
|
|
@@ -8564,7 +8564,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8564
8564
|
*/
|
|
8565
8565
|
async getReviewsByStore(options) {
|
|
8566
8566
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByStore(options);
|
|
8567
|
-
return (axios =
|
|
8567
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8568
8568
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8569
8569
|
return axios.request(axiosRequestArgs);
|
|
8570
8570
|
};
|
|
@@ -8578,7 +8578,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8578
8578
|
*/
|
|
8579
8579
|
async getReviewsByType(type, options) {
|
|
8580
8580
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByType(type, options);
|
|
8581
|
-
return (axios =
|
|
8581
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8582
8582
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8583
8583
|
return axios.request(axiosRequestArgs);
|
|
8584
8584
|
};
|
|
@@ -8592,7 +8592,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8592
8592
|
*/
|
|
8593
8593
|
async getReviewsByUser(userId, options) {
|
|
8594
8594
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByUser(userId, options);
|
|
8595
|
-
return (axios =
|
|
8595
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8596
8596
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8597
8597
|
return axios.request(axiosRequestArgs);
|
|
8598
8598
|
};
|
|
@@ -8605,7 +8605,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8605
8605
|
*/
|
|
8606
8606
|
async getUserCompletedOrders(options) {
|
|
8607
8607
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getUserCompletedOrders(options);
|
|
8608
|
-
return (axios =
|
|
8608
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8609
8609
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8610
8610
|
return axios.request(axiosRequestArgs);
|
|
8611
8611
|
};
|
|
@@ -8619,7 +8619,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8619
8619
|
*/
|
|
8620
8620
|
async removeReplay(id, options) {
|
|
8621
8621
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReplay(id, options);
|
|
8622
|
-
return (axios =
|
|
8622
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8623
8623
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8624
8624
|
return axios.request(axiosRequestArgs);
|
|
8625
8625
|
};
|
|
@@ -8633,7 +8633,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8633
8633
|
*/
|
|
8634
8634
|
async removeReview(id, options) {
|
|
8635
8635
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReview(id, options);
|
|
8636
|
-
return (axios =
|
|
8636
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8637
8637
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8638
8638
|
return axios.request(axiosRequestArgs);
|
|
8639
8639
|
};
|
|
@@ -8648,7 +8648,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8648
8648
|
*/
|
|
8649
8649
|
async updateReplay(body, id, options) {
|
|
8650
8650
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReplay(body, id, options);
|
|
8651
|
-
return (axios =
|
|
8651
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8652
8652
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8653
8653
|
return axios.request(axiosRequestArgs);
|
|
8654
8654
|
};
|
|
@@ -8663,7 +8663,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8663
8663
|
*/
|
|
8664
8664
|
async updateReview(body, id, options) {
|
|
8665
8665
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReview(body, id, options);
|
|
8666
|
-
return (axios =
|
|
8666
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
8667
8667
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8668
8668
|
return axios.request(axiosRequestArgs);
|
|
8669
8669
|
};
|
|
@@ -9136,7 +9136,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9136
9136
|
*/
|
|
9137
9137
|
async getAllShipments(options) {
|
|
9138
9138
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllShipments(options);
|
|
9139
|
-
return (axios =
|
|
9139
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9140
9140
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9141
9141
|
return axios.request(axiosRequestArgs);
|
|
9142
9142
|
};
|
|
@@ -9149,7 +9149,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9149
9149
|
*/
|
|
9150
9150
|
async getAllUserShipments(options) {
|
|
9151
9151
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllUserShipments(options);
|
|
9152
|
-
return (axios =
|
|
9152
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9153
9153
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9154
9154
|
return axios.request(axiosRequestArgs);
|
|
9155
9155
|
};
|
|
@@ -9163,7 +9163,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9163
9163
|
*/
|
|
9164
9164
|
async getOrderShipment(orderId, options) {
|
|
9165
9165
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getOrderShipment(orderId, options);
|
|
9166
|
-
return (axios =
|
|
9166
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9167
9167
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9168
9168
|
return axios.request(axiosRequestArgs);
|
|
9169
9169
|
};
|
|
@@ -9178,7 +9178,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9178
9178
|
*/
|
|
9179
9179
|
async getShippingRates(body, addressId, options) {
|
|
9180
9180
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getShippingRates(body, addressId, options);
|
|
9181
|
-
return (axios =
|
|
9181
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9182
9182
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9183
9183
|
return axios.request(axiosRequestArgs);
|
|
9184
9184
|
};
|
|
@@ -9191,7 +9191,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9191
9191
|
*/
|
|
9192
9192
|
async getStoreAddress(options) {
|
|
9193
9193
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getStoreAddress(options);
|
|
9194
|
-
return (axios =
|
|
9194
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9195
9195
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9196
9196
|
return axios.request(axiosRequestArgs);
|
|
9197
9197
|
};
|
|
@@ -9206,7 +9206,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9206
9206
|
*/
|
|
9207
9207
|
async updateManualShipmentStatus(body, shipmentId, options) {
|
|
9208
9208
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).updateManualShipmentStatus(body, shipmentId, options);
|
|
9209
|
-
return (axios =
|
|
9209
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
9210
9210
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9211
9211
|
return axios.request(axiosRequestArgs);
|
|
9212
9212
|
};
|
|
@@ -10401,7 +10401,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10401
10401
|
*/
|
|
10402
10402
|
async createShippoAccount(body, storeId, options) {
|
|
10403
10403
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createShippoAccount(body, storeId, options);
|
|
10404
|
-
return (axios =
|
|
10404
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10405
10405
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10406
10406
|
return axios.request(axiosRequestArgs);
|
|
10407
10407
|
};
|
|
@@ -10415,7 +10415,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10415
10415
|
*/
|
|
10416
10416
|
async createStore(body, options) {
|
|
10417
10417
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createStore(body, options);
|
|
10418
|
-
return (axios =
|
|
10418
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10419
10419
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10420
10420
|
return axios.request(axiosRequestArgs);
|
|
10421
10421
|
};
|
|
@@ -10429,7 +10429,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10429
10429
|
*/
|
|
10430
10430
|
async deleteRefillRequest(requestId, options) {
|
|
10431
10431
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteRefillRequest(requestId, options);
|
|
10432
|
-
return (axios =
|
|
10432
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10433
10433
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10434
10434
|
return axios.request(axiosRequestArgs);
|
|
10435
10435
|
};
|
|
@@ -10443,7 +10443,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10443
10443
|
*/
|
|
10444
10444
|
async deleteStore(id, options) {
|
|
10445
10445
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteStore(id, options);
|
|
10446
|
-
return (axios =
|
|
10446
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10447
10447
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10448
10448
|
return axios.request(axiosRequestArgs);
|
|
10449
10449
|
};
|
|
@@ -10457,7 +10457,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10457
10457
|
*/
|
|
10458
10458
|
async deleteTransferePatientsRequest(requestId, options) {
|
|
10459
10459
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteTransferePatientsRequest(requestId, options);
|
|
10460
|
-
return (axios =
|
|
10460
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10461
10461
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10462
10462
|
return axios.request(axiosRequestArgs);
|
|
10463
10463
|
};
|
|
@@ -10470,7 +10470,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10470
10470
|
*/
|
|
10471
10471
|
async getAllStores(options) {
|
|
10472
10472
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getAllStores(options);
|
|
10473
|
-
return (axios =
|
|
10473
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10474
10474
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10475
10475
|
return axios.request(axiosRequestArgs);
|
|
10476
10476
|
};
|
|
@@ -10484,7 +10484,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10484
10484
|
*/
|
|
10485
10485
|
async getApiKeys(storeId, options) {
|
|
10486
10486
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getApiKeys(storeId, options);
|
|
10487
|
-
return (axios =
|
|
10487
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10488
10488
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10489
10489
|
return axios.request(axiosRequestArgs);
|
|
10490
10490
|
};
|
|
@@ -10498,7 +10498,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10498
10498
|
*/
|
|
10499
10499
|
async getRefillRequests(storeId, options) {
|
|
10500
10500
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getRefillRequests(storeId, options);
|
|
10501
|
-
return (axios =
|
|
10501
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10502
10502
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10503
10503
|
return axios.request(axiosRequestArgs);
|
|
10504
10504
|
};
|
|
@@ -10512,7 +10512,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10512
10512
|
*/
|
|
10513
10513
|
async getShippoAccount(storeId, options) {
|
|
10514
10514
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getShippoAccount(storeId, options);
|
|
10515
|
-
return (axios =
|
|
10515
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10516
10516
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10517
10517
|
return axios.request(axiosRequestArgs);
|
|
10518
10518
|
};
|
|
@@ -10526,7 +10526,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10526
10526
|
*/
|
|
10527
10527
|
async getStoreById(storeId, options) {
|
|
10528
10528
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreById(storeId, options);
|
|
10529
|
-
return (axios =
|
|
10529
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10530
10530
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10531
10531
|
return axios.request(axiosRequestArgs);
|
|
10532
10532
|
};
|
|
@@ -10540,7 +10540,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10540
10540
|
*/
|
|
10541
10541
|
async getStoreCapabilities(storeId, options) {
|
|
10542
10542
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreCapabilities(storeId, options);
|
|
10543
|
-
return (axios =
|
|
10543
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10544
10544
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10545
10545
|
return axios.request(axiosRequestArgs);
|
|
10546
10546
|
};
|
|
@@ -10554,7 +10554,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10554
10554
|
*/
|
|
10555
10555
|
async getTransferePatientsRequests(storeId, options) {
|
|
10556
10556
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getTransferePatientsRequests(storeId, options);
|
|
10557
|
-
return (axios =
|
|
10557
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10558
10558
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10559
10559
|
return axios.request(axiosRequestArgs);
|
|
10560
10560
|
};
|
|
@@ -10569,7 +10569,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10569
10569
|
*/
|
|
10570
10570
|
async revokeApiKey(storeId, keyType, options) {
|
|
10571
10571
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).revokeApiKey(storeId, keyType, options);
|
|
10572
|
-
return (axios =
|
|
10572
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10573
10573
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10574
10574
|
return axios.request(axiosRequestArgs);
|
|
10575
10575
|
};
|
|
@@ -10581,7 +10581,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10581
10581
|
*/
|
|
10582
10582
|
async sendContactUsEmail(options) {
|
|
10583
10583
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmail(options);
|
|
10584
|
-
return (axios =
|
|
10584
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10585
10585
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10586
10586
|
return axios.request(axiosRequestArgs);
|
|
10587
10587
|
};
|
|
@@ -10593,7 +10593,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10593
10593
|
*/
|
|
10594
10594
|
async sendContactUsEmailEzrirx(options) {
|
|
10595
10595
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmailEzrirx(options);
|
|
10596
|
-
return (axios =
|
|
10596
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10597
10597
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10598
10598
|
return axios.request(axiosRequestArgs);
|
|
10599
10599
|
};
|
|
@@ -10605,7 +10605,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10605
10605
|
*/
|
|
10606
10606
|
async sendGMBookDemoEmail(options) {
|
|
10607
10607
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMBookDemoEmail(options);
|
|
10608
|
-
return (axios =
|
|
10608
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10609
10609
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10610
10610
|
return axios.request(axiosRequestArgs);
|
|
10611
10611
|
};
|
|
@@ -10617,7 +10617,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10617
10617
|
*/
|
|
10618
10618
|
async sendGMContactUsEmail(options) {
|
|
10619
10619
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMContactUsEmail(options);
|
|
10620
|
-
return (axios =
|
|
10620
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10621
10621
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10622
10622
|
return axios.request(axiosRequestArgs);
|
|
10623
10623
|
};
|
|
@@ -10629,7 +10629,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10629
10629
|
*/
|
|
10630
10630
|
async sendGMJoinUsEmail(options) {
|
|
10631
10631
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMJoinUsEmail(options);
|
|
10632
|
-
return (axios =
|
|
10632
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10633
10633
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10634
10634
|
return axios.request(axiosRequestArgs);
|
|
10635
10635
|
};
|
|
@@ -10641,7 +10641,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10641
10641
|
*/
|
|
10642
10642
|
async sendHolyFamilyEmail(options) {
|
|
10643
10643
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendHolyFamilyEmail(options);
|
|
10644
|
-
return (axios =
|
|
10644
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10645
10645
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10646
10646
|
return axios.request(axiosRequestArgs);
|
|
10647
10647
|
};
|
|
@@ -10653,7 +10653,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10653
10653
|
*/
|
|
10654
10654
|
async sendMghBookingForm(options) {
|
|
10655
10655
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendMghBookingForm(options);
|
|
10656
|
-
return (axios =
|
|
10656
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10657
10657
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10658
10658
|
return axios.request(axiosRequestArgs);
|
|
10659
10659
|
};
|
|
@@ -10667,7 +10667,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10667
10667
|
*/
|
|
10668
10668
|
async sendNewClientEmail(body, options) {
|
|
10669
10669
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewClientEmail(body, options);
|
|
10670
|
-
return (axios =
|
|
10670
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10671
10671
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10672
10672
|
return axios.request(axiosRequestArgs);
|
|
10673
10673
|
};
|
|
@@ -10680,7 +10680,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10680
10680
|
*/
|
|
10681
10681
|
async sendNewPatientEmail(body, options) {
|
|
10682
10682
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewPatientEmail(body, options);
|
|
10683
|
-
return (axios =
|
|
10683
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10684
10684
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10685
10685
|
return axios.request(axiosRequestArgs);
|
|
10686
10686
|
};
|
|
@@ -10693,7 +10693,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10693
10693
|
*/
|
|
10694
10694
|
async sendRefillEmail(body, options) {
|
|
10695
10695
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendRefillEmail(body, options);
|
|
10696
|
-
return (axios =
|
|
10696
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10697
10697
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10698
10698
|
return axios.request(axiosRequestArgs);
|
|
10699
10699
|
};
|
|
@@ -10707,7 +10707,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10707
10707
|
*/
|
|
10708
10708
|
async sendScheduleTourEmail(body, options) {
|
|
10709
10709
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendScheduleTourEmail(body, options);
|
|
10710
|
-
return (axios =
|
|
10710
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10711
10711
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10712
10712
|
return axios.request(axiosRequestArgs);
|
|
10713
10713
|
};
|
|
@@ -10722,7 +10722,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10722
10722
|
*/
|
|
10723
10723
|
async updateApiKeys(body, storeId, options) {
|
|
10724
10724
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateApiKeys(body, storeId, options);
|
|
10725
|
-
return (axios =
|
|
10725
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10726
10726
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10727
10727
|
return axios.request(axiosRequestArgs);
|
|
10728
10728
|
};
|
|
@@ -10737,7 +10737,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10737
10737
|
*/
|
|
10738
10738
|
async updateRefillRequest(body, requestId, options) {
|
|
10739
10739
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateRefillRequest(body, requestId, options);
|
|
10740
|
-
return (axios =
|
|
10740
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10741
10741
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10742
10742
|
return axios.request(axiosRequestArgs);
|
|
10743
10743
|
};
|
|
@@ -10752,7 +10752,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10752
10752
|
*/
|
|
10753
10753
|
async updateStore(body, id, options) {
|
|
10754
10754
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateStore(body, id, options);
|
|
10755
|
-
return (axios =
|
|
10755
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10756
10756
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10757
10757
|
return axios.request(axiosRequestArgs);
|
|
10758
10758
|
};
|
|
@@ -10767,7 +10767,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10767
10767
|
*/
|
|
10768
10768
|
async updateTransferePatientsRequest(body, requestId, options) {
|
|
10769
10769
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateTransferePatientsRequest(body, requestId, options);
|
|
10770
|
-
return (axios =
|
|
10770
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
10771
10771
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10772
10772
|
return axios.request(axiosRequestArgs);
|
|
10773
10773
|
};
|
|
@@ -11271,7 +11271,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11271
11271
|
*/
|
|
11272
11272
|
async addToWishlist(productId, options) {
|
|
11273
11273
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
|
|
11274
|
-
return (axios =
|
|
11274
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11275
11275
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11276
11276
|
return axios.request(axiosRequestArgs);
|
|
11277
11277
|
};
|
|
@@ -11284,7 +11284,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11284
11284
|
*/
|
|
11285
11285
|
async clearWishlist(options) {
|
|
11286
11286
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).clearWishlist(options);
|
|
11287
|
-
return (axios =
|
|
11287
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11288
11288
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11289
11289
|
return axios.request(axiosRequestArgs);
|
|
11290
11290
|
};
|
|
@@ -11297,7 +11297,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11297
11297
|
*/
|
|
11298
11298
|
async getWishlist(options) {
|
|
11299
11299
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlist(options);
|
|
11300
|
-
return (axios =
|
|
11300
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11301
11301
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11302
11302
|
return axios.request(axiosRequestArgs);
|
|
11303
11303
|
};
|
|
@@ -11310,7 +11310,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11310
11310
|
*/
|
|
11311
11311
|
async getWishlistItemCount(options) {
|
|
11312
11312
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlistItemCount(options);
|
|
11313
|
-
return (axios =
|
|
11313
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11314
11314
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11315
11315
|
return axios.request(axiosRequestArgs);
|
|
11316
11316
|
};
|
|
@@ -11324,7 +11324,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11324
11324
|
*/
|
|
11325
11325
|
async removeFromWishlist(productId, options) {
|
|
11326
11326
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).removeFromWishlist(productId, options);
|
|
11327
|
-
return (axios =
|
|
11327
|
+
return (axios = globalAxios20__default.default, basePath = BASE_PATH) => {
|
|
11328
11328
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11329
11329
|
return axios.request(axiosRequestArgs);
|
|
11330
11330
|
};
|
|
@@ -11422,45 +11422,6 @@ var BulkChannelToggleDtoCategoryEnum = /* @__PURE__ */ ((BulkChannelToggleDtoCat
|
|
|
11422
11422
|
return BulkChannelToggleDtoCategoryEnum2;
|
|
11423
11423
|
})(BulkChannelToggleDtoCategoryEnum || {});
|
|
11424
11424
|
|
|
11425
|
-
// src/lib/Apis/models/campaign-draft-dto.ts
|
|
11426
|
-
var CampaignDraftDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftDtoStatusEnum2) => {
|
|
11427
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_3"] = -3] = "NUMBER_MINUS_3";
|
|
11428
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_2"] = -2] = "NUMBER_MINUS_2";
|
|
11429
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_1"] = -1] = "NUMBER_MINUS_1";
|
|
11430
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_0"] = 0] = "NUMBER_0";
|
|
11431
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
11432
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
11433
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_3"] = 3] = "NUMBER_3";
|
|
11434
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_4"] = 4] = "NUMBER_4";
|
|
11435
|
-
return CampaignDraftDtoStatusEnum2;
|
|
11436
|
-
})(CampaignDraftDtoStatusEnum || {});
|
|
11437
|
-
|
|
11438
|
-
// src/lib/Apis/models/campaign-draft-schedule-dto.ts
|
|
11439
|
-
var CampaignDraftScheduleDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftScheduleDtoStatusEnum2) => {
|
|
11440
|
-
CampaignDraftScheduleDtoStatusEnum2["AXCancelled"] = "AXCancelled";
|
|
11441
|
-
CampaignDraftScheduleDtoStatusEnum2["Deleted"] = "Deleted";
|
|
11442
|
-
CampaignDraftScheduleDtoStatusEnum2["Archived"] = "Archived";
|
|
11443
|
-
CampaignDraftScheduleDtoStatusEnum2["Draft"] = "Draft";
|
|
11444
|
-
CampaignDraftScheduleDtoStatusEnum2["Programmed"] = "Programmed";
|
|
11445
|
-
CampaignDraftScheduleDtoStatusEnum2["Sent"] = "Sent";
|
|
11446
|
-
CampaignDraftScheduleDtoStatusEnum2["AXTested"] = "AXTested";
|
|
11447
|
-
CampaignDraftScheduleDtoStatusEnum2["AXSelected"] = "AXSelected";
|
|
11448
|
-
return CampaignDraftScheduleDtoStatusEnum2;
|
|
11449
|
-
})(CampaignDraftScheduleDtoStatusEnum || {});
|
|
11450
|
-
|
|
11451
|
-
// src/lib/Apis/models/campaign-draft-sending-dto.ts
|
|
11452
|
-
var CampaignDraftSendingDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftSendingDtoStatusEnum2) => {
|
|
11453
|
-
CampaignDraftSendingDtoStatusEnum2["AXCancelled"] = "AXCancelled";
|
|
11454
|
-
CampaignDraftSendingDtoStatusEnum2["Deleted"] = "Deleted";
|
|
11455
|
-
CampaignDraftSendingDtoStatusEnum2["Archived"] = "Archived";
|
|
11456
|
-
CampaignDraftSendingDtoStatusEnum2["Draft"] = "Draft";
|
|
11457
|
-
CampaignDraftSendingDtoStatusEnum2["Programmed"] = "Programmed";
|
|
11458
|
-
CampaignDraftSendingDtoStatusEnum2["Sent"] = "Sent";
|
|
11459
|
-
CampaignDraftSendingDtoStatusEnum2["AXTested"] = "AXTested";
|
|
11460
|
-
CampaignDraftSendingDtoStatusEnum2["AXSelected"] = "AXSelected";
|
|
11461
|
-
return CampaignDraftSendingDtoStatusEnum2;
|
|
11462
|
-
})(CampaignDraftSendingDtoStatusEnum || {});
|
|
11463
|
-
|
|
11464
11425
|
// src/lib/Apis/models/create-address-dto.ts
|
|
11465
11426
|
var CreateAddressDtoAddressTypeEnum = /* @__PURE__ */ ((CreateAddressDtoAddressTypeEnum2) => {
|
|
11466
11427
|
CreateAddressDtoAddressTypeEnum2["Billing"] = "Billing";
|
|
@@ -11665,6 +11626,7 @@ var PreferenceUpdateItemTypeEnum = /* @__PURE__ */ ((PreferenceUpdateItemTypeEnu
|
|
|
11665
11626
|
PreferenceUpdateItemTypeEnum2["ORDERSHIPPED"] = "ORDER_SHIPPED";
|
|
11666
11627
|
PreferenceUpdateItemTypeEnum2["ORDERDELIVERED"] = "ORDER_DELIVERED";
|
|
11667
11628
|
PreferenceUpdateItemTypeEnum2["REFUNDPROCESSED"] = "REFUND_PROCESSED";
|
|
11629
|
+
PreferenceUpdateItemTypeEnum2["REVIEWREPLY"] = "REVIEW_REPLY";
|
|
11668
11630
|
PreferenceUpdateItemTypeEnum2["ABANDONEDCARTREMINDER"] = "ABANDONED_CART_REMINDER";
|
|
11669
11631
|
PreferenceUpdateItemTypeEnum2["PRICEDROPALERT"] = "PRICE_DROP_ALERT";
|
|
11670
11632
|
PreferenceUpdateItemTypeEnum2["BACKINSTOCK"] = "BACK_IN_STOCK";
|
|
@@ -11855,7 +11817,7 @@ function Notification2({ notification, onDismiss }) {
|
|
|
11855
11817
|
animate: { opacity: 1, y: 0, scale: 1 },
|
|
11856
11818
|
exit: { opacity: 0, x: 100, scale: 0.95 },
|
|
11857
11819
|
transition: { type: "spring", stiffness: 500, damping: 30 },
|
|
11858
|
-
className: `relative bg-
|
|
11820
|
+
className: `relative bg-hprimary-50 rounded-2xl border-2 ${config.borderColor} shadow-xl overflow-hidden min-w-[320px] max-w-[420px]`,
|
|
11859
11821
|
children: [
|
|
11860
11822
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `h-1 bg-linear-to-r ${config.gradient}` }),
|
|
11861
11823
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 flex items-start gap-3", children: [
|
|
@@ -11870,8 +11832,8 @@ function Notification2({ notification, onDismiss }) {
|
|
|
11870
11832
|
}
|
|
11871
11833
|
),
|
|
11872
11834
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
11873
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
11874
|
-
notification.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
11835
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[14px] text-[#2B4B7C] mb-1", children: notification.message }),
|
|
11836
|
+
notification.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[12px] text-[#676c80] leading-relaxed", children: notification.description })
|
|
11875
11837
|
] }),
|
|
11876
11838
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11877
11839
|
"button",
|
|
@@ -12146,7 +12108,7 @@ init_config();
|
|
|
12146
12108
|
init_config();
|
|
12147
12109
|
init_sharedConfig();
|
|
12148
12110
|
init_sharedConfig();
|
|
12149
|
-
|
|
12111
|
+
globalAxios20__default.default.interceptors.request.use(async (config) => {
|
|
12150
12112
|
if (!config?.headers) {
|
|
12151
12113
|
throw new Error(
|
|
12152
12114
|
`Expected 'config' and 'config.headers' not to be undefined`
|
|
@@ -12780,17 +12742,17 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12780
12742
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-8", children: [
|
|
12781
12743
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between mb-6", children: [
|
|
12782
12744
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
12783
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
12784
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
12745
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hprimary uppercase tracking-wide font-medium mb-2", children: product.brand }),
|
|
12746
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-hsecondary tracking-[-1px]", children: displayName }),
|
|
12785
12747
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mt-2", children: [
|
|
12786
12748
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12787
12749
|
lucideReact.Star,
|
|
12788
12750
|
{
|
|
12789
|
-
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-
|
|
12751
|
+
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-haccent fill-accent" : "text-gray-300"}`
|
|
12790
12752
|
},
|
|
12791
12753
|
i
|
|
12792
12754
|
)) }),
|
|
12793
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
12755
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[13px] text-hmuted", children: [
|
|
12794
12756
|
product.summary?.averageRating || 0,
|
|
12795
12757
|
" (",
|
|
12796
12758
|
product.summary?.reviewCount || 0,
|
|
@@ -12803,7 +12765,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12803
12765
|
{
|
|
12804
12766
|
onClick: onClose,
|
|
12805
12767
|
className: "p-2 hover:bg-gray-100 rounded-full transition-colors",
|
|
12806
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-6 text-
|
|
12768
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-6 text-hmuted" })
|
|
12807
12769
|
}
|
|
12808
12770
|
)
|
|
12809
12771
|
] }),
|
|
@@ -12818,7 +12780,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12818
12780
|
className: "w-full h-full object-contain"
|
|
12819
12781
|
}
|
|
12820
12782
|
),
|
|
12821
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: isDiscounted && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-
|
|
12783
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: isDiscounted && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-haccent text-white rounded-full px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[11px] uppercase", children: [
|
|
12822
12784
|
"-",
|
|
12823
12785
|
discountAmount,
|
|
12824
12786
|
"%"
|
|
@@ -12827,7 +12789,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12827
12789
|
selectedVariant.media.length > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-4 gap-3", children: selectedVariant.media.map((image, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12828
12790
|
"div",
|
|
12829
12791
|
{
|
|
12830
|
-
className: `aspect-square rounded-xl overflow-hidden cursor-pointer transition-opacity ${selectedImageIndex === index ? "ring-2 ring-
|
|
12792
|
+
className: `aspect-square rounded-xl overflow-hidden cursor-pointer transition-opacity ${selectedImageIndex === index ? "ring-2 ring-hprimary" : "bg-gray-50 hover:opacity-75"}`,
|
|
12831
12793
|
onClick: () => setSelectedImageIndex(index),
|
|
12832
12794
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12833
12795
|
"img",
|
|
@@ -12843,35 +12805,35 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12843
12805
|
] }),
|
|
12844
12806
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
|
|
12845
12807
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-4", children: [
|
|
12846
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-
|
|
12808
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[32px] text-haccent", children: [
|
|
12847
12809
|
"$",
|
|
12848
12810
|
displayPrice.toFixed(2)
|
|
12849
12811
|
] }),
|
|
12850
|
-
isDiscounted && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
12812
|
+
isDiscounted && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[20px] text-hmuted line-through", children: [
|
|
12851
12813
|
"$",
|
|
12852
12814
|
displayOriginalPrice.toFixed(2)
|
|
12853
12815
|
] })
|
|
12854
12816
|
] }),
|
|
12855
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "
|
|
12817
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[12px] text-red-500 font-medium", children: "Out of Stock" }) : selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[12px] text-hprimary font-medium flex items-center gap-1", children: [
|
|
12856
12818
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "size-3" }),
|
|
12857
12819
|
"Only ",
|
|
12858
12820
|
selectedVariant.inventoryCount,
|
|
12859
12821
|
" left in stock"
|
|
12860
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
12822
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[12px] text-green-600 font-medium flex items-center gap-1", children: [
|
|
12861
12823
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "size-3" }),
|
|
12862
12824
|
"In Stock"
|
|
12863
12825
|
] }) }),
|
|
12864
12826
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12865
12827
|
"div",
|
|
12866
12828
|
{
|
|
12867
|
-
className: "
|
|
12829
|
+
className: "text-[14px] text-hmuted leading-[1.7] mb-6 max-w-full overflow-hidden break-words",
|
|
12868
12830
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
12869
12831
|
}
|
|
12870
12832
|
),
|
|
12871
12833
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
12872
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "font-
|
|
12834
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: [
|
|
12873
12835
|
"Selected Variant: ",
|
|
12874
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-normal text-
|
|
12836
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-normal text-hmuted", children: product.variants[selectedVariantIndex].name })
|
|
12875
12837
|
] }),
|
|
12876
12838
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-3", children: product.variants.map((variant, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12877
12839
|
"button",
|
|
@@ -12881,7 +12843,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12881
12843
|
setSelectedSizeIndex(0);
|
|
12882
12844
|
setSelectedImageIndex(0);
|
|
12883
12845
|
},
|
|
12884
|
-
className: `size-10 rounded-full border-2 transition-all ${selectedVariantIndex === index ? "border-
|
|
12846
|
+
className: `size-10 rounded-full border-2 transition-all ${selectedVariantIndex === index ? "border-hprimary scale-110" : "border-gray-200 hover:border-hprimary-50"}`,
|
|
12885
12847
|
style: { backgroundColor: variant.colorHex },
|
|
12886
12848
|
title: variant.color,
|
|
12887
12849
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12899,11 +12861,11 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12899
12861
|
)) })
|
|
12900
12862
|
] }),
|
|
12901
12863
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6 p-4 bg-gray-50 rounded-xl", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-2", children: product.tags.slice(0, 3).map((feature, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-start gap-2", children: [
|
|
12902
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-4 text-
|
|
12903
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "
|
|
12864
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-4 text-hprimary shrink-0 mt-0.5" }),
|
|
12865
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[12px] text-hmuted", children: feature })
|
|
12904
12866
|
] }, index)) }) }),
|
|
12905
12867
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
12906
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
12868
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Quantity" }),
|
|
12907
12869
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
12908
12870
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12909
12871
|
"button",
|
|
@@ -12911,7 +12873,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12911
12873
|
onClick: () => handleQuantityChange(quantity - 1),
|
|
12912
12874
|
disabled: quantity <= 1,
|
|
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__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "size-4 text-
|
|
12876
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "size-4 text-hsecondary" })
|
|
12915
12877
|
}
|
|
12916
12878
|
),
|
|
12917
12879
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-8 text-center font-medium", children: quantity }),
|
|
@@ -12921,7 +12883,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12921
12883
|
onClick: () => handleQuantityChange(quantity + 1),
|
|
12922
12884
|
disabled: quantity >= (selectedVariant.inventoryCount || 10),
|
|
12923
12885
|
className: "p-2 rounded-full border border-gray-200 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
12924
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4 text-
|
|
12886
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4 text-hsecondary" })
|
|
12925
12887
|
}
|
|
12926
12888
|
)
|
|
12927
12889
|
] })
|
|
@@ -12932,7 +12894,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12932
12894
|
{
|
|
12933
12895
|
onClick: handleAddToCart,
|
|
12934
12896
|
disabled: addedToCart || selectedVariant.inventoryCount === 0,
|
|
12935
|
-
className: `w-full font-
|
|
12897
|
+
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"}`,
|
|
12936
12898
|
children: isAddingToCart ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12937
12899
|
/* @__PURE__ */ jsxRuntime.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: [
|
|
12938
12900
|
/* @__PURE__ */ jsxRuntime.jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
@@ -12951,7 +12913,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12951
12913
|
onClick: () => {
|
|
12952
12914
|
onClose();
|
|
12953
12915
|
},
|
|
12954
|
-
className: "w-full font-
|
|
12916
|
+
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",
|
|
12955
12917
|
children: [
|
|
12956
12918
|
"View Full Details",
|
|
12957
12919
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ExternalLink, { className: "size-4" })
|
|
@@ -13062,7 +13024,7 @@ function ProductCard({
|
|
|
13062
13024
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13063
13025
|
framerMotion.motion.div,
|
|
13064
13026
|
{
|
|
13065
|
-
className: "bg-white rounded-[16px] overflow-hidden border-2 border-gray-100 hover:border-
|
|
13027
|
+
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",
|
|
13066
13028
|
whileHover: { y: -4 },
|
|
13067
13029
|
onMouseEnter: () => setIsHovered(true),
|
|
13068
13030
|
onMouseLeave: () => setIsHovered(false),
|
|
@@ -13103,42 +13065,42 @@ function ProductCard({
|
|
|
13103
13065
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Eye, { className: "size-4 text-[#2B4B7C]" })
|
|
13104
13066
|
}
|
|
13105
13067
|
),
|
|
13106
|
-
displayInventoryCount === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-xs flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
13068
|
+
displayInventoryCount === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-xs flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-bold text-[11px] text-[#2B4B7C] uppercase", children: "Out of Stock" }) }) })
|
|
13107
13069
|
]
|
|
13108
13070
|
}
|
|
13109
13071
|
),
|
|
13110
13072
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4 flex-1 flex flex-col", children: [
|
|
13111
13073
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-0 flex-1 flex flex-col", children: [
|
|
13112
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-[#E67E50] text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-
|
|
13074
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-[#E67E50] text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[8px] uppercase", children: [
|
|
13113
13075
|
"-",
|
|
13114
13076
|
displayDiscountAmount,
|
|
13115
13077
|
"%"
|
|
13116
13078
|
] }) }) }),
|
|
13117
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
13079
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hsecondary uppercase tracking-wide font-medium", children: product.brand }) }),
|
|
13118
13080
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-[40px] mb-3", children: [
|
|
13119
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-
|
|
13120
|
-
selectedVariant && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs
|
|
13081
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-semibold text-[#2B4B7C] line-clamp-2", children: product.name }),
|
|
13082
|
+
selectedVariant && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-[#676c80]", children: selectedVariant.name })
|
|
13121
13083
|
] }),
|
|
13122
13084
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 my-2", children: [
|
|
13123
13085
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-0.5", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
13124
13086
|
lucideReact.Star,
|
|
13125
13087
|
{
|
|
13126
|
-
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-
|
|
13088
|
+
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-hsecondary fill-hsecondary-500" : "text-gray-300"}`
|
|
13127
13089
|
},
|
|
13128
13090
|
i
|
|
13129
13091
|
)) }),
|
|
13130
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
13092
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[10px] text-[#676c80] ", children: [
|
|
13131
13093
|
"(",
|
|
13132
13094
|
product.summary?.reviewCount || 0,
|
|
13133
13095
|
")"
|
|
13134
13096
|
] })
|
|
13135
13097
|
] }),
|
|
13136
13098
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 mb-3", children: [
|
|
13137
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-
|
|
13099
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-md text-hprimary-600", children: [
|
|
13138
13100
|
"$",
|
|
13139
13101
|
displayFinalPrice.toFixed(2)
|
|
13140
13102
|
] }),
|
|
13141
|
-
displayIsDiscounted && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
13103
|
+
displayIsDiscounted && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm text-[#676c80] line-through", children: [
|
|
13142
13104
|
"$",
|
|
13143
13105
|
displayPriceBeforeDiscount.toFixed(2)
|
|
13144
13106
|
] })
|
|
@@ -13158,7 +13120,7 @@ function ProductCard({
|
|
|
13158
13120
|
}
|
|
13159
13121
|
setIsImageLoaded(false);
|
|
13160
13122
|
},
|
|
13161
|
-
className: `relative w-8 h-8 rounded-full overflow-hidden border-2 transition-all ${selectedVariantId === variant.variantId ? "border-
|
|
13123
|
+
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"}`,
|
|
13162
13124
|
"aria-label": `Select ${variant.variantName || "variant"}`,
|
|
13163
13125
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13164
13126
|
Image4__default.default,
|
|
@@ -13213,7 +13175,7 @@ function ProductCard({
|
|
|
13213
13175
|
}
|
|
13214
13176
|
},
|
|
13215
13177
|
disabled: isAddingToCart || variantImages.length > 0 && !selectedVariantId || displayInventoryCount === 0,
|
|
13216
|
-
className: "w-full font-
|
|
13178
|
+
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",
|
|
13217
13179
|
children: [
|
|
13218
13180
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShoppingCart, { className: "h-4 w-4" }),
|
|
13219
13181
|
displayInventoryCount === 0 ? "Out of Stock" : "Add to Cart"
|
|
@@ -13277,11 +13239,11 @@ function Button({
|
|
|
13277
13239
|
children,
|
|
13278
13240
|
...props
|
|
13279
13241
|
}) {
|
|
13280
|
-
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-
|
|
13242
|
+
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";
|
|
13281
13243
|
const variants = {
|
|
13282
13244
|
primary: "bg-[#0E172B] text-white hover:bg-[#0E172B]/80 shadow-lg shadow-[#0E172B]/30 hover:shadow-xl hover:shadow-[#0E172B]/40",
|
|
13283
|
-
secondary: "bg-
|
|
13284
|
-
"outline-solid": "border-2 border-
|
|
13245
|
+
secondary: "bg-hsecondary-600 text-white hover:bg-hsecondary-700 shadow-lg shadow-secondary-500/30 hover:shadow-xl hover:shadow-secondary-500/40",
|
|
13246
|
+
"outline-solid": "border-2 border-hprimary-600 text-hprimary-600 hover:bg-hprimary-50",
|
|
13285
13247
|
ghost: "text-gray-700 hover:bg-gray-100"
|
|
13286
13248
|
};
|
|
13287
13249
|
const sizes = {
|
|
@@ -13333,7 +13295,7 @@ var Input = React10.forwardRef(
|
|
|
13333
13295
|
ref,
|
|
13334
13296
|
className: `
|
|
13335
13297
|
w-full px-4 py-3 rounded-lg border-2 transition-all duration-200
|
|
13336
|
-
${error ? "border-red-500 focus:border-red-600 focus:ring-red-500/20" : "border-gray-200 focus:border-
|
|
13298
|
+
${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"}
|
|
13337
13299
|
focus:outline-hidden focus:ring-4
|
|
13338
13300
|
placeholder:text-gray-400
|
|
13339
13301
|
disabled:bg-gray-50 disabled:cursor-not-allowed
|
|
@@ -14001,11 +13963,11 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14001
13963
|
return lucideReact.Package;
|
|
14002
13964
|
};
|
|
14003
13965
|
const renderFiltersPanel = () => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-6", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: `lg:w-72 ${showFilters ? "block rounded-full" : "hidden lg:block"}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white rounded-[24px] p-6 border-2 border-gray-100 sticky top-24", children: [
|
|
14004
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
13966
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-hsecondary", children: "Filters" }),
|
|
14005
13967
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
14006
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
13968
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted mb-2 block font-medium", children: "Search Products" }),
|
|
14007
13969
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
14008
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-
|
|
13970
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-hmuted" }),
|
|
14009
13971
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14010
13972
|
"input",
|
|
14011
13973
|
{
|
|
@@ -14013,7 +13975,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14013
13975
|
placeholder: "Search...",
|
|
14014
13976
|
value: searchQuery,
|
|
14015
13977
|
onChange: handleInputChange,
|
|
14016
|
-
className: "w-full pl-10 pr-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-
|
|
13978
|
+
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"
|
|
14017
13979
|
}
|
|
14018
13980
|
)
|
|
14019
13981
|
] })
|
|
@@ -14025,8 +13987,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14025
13987
|
onClick: () => toggleFilterSection("category"),
|
|
14026
13988
|
className: "w-full flex items-center justify-between mb-3",
|
|
14027
13989
|
children: [
|
|
14028
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
14029
|
-
expandedFilterSections.category ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-
|
|
13990
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Category" }),
|
|
13991
|
+
expandedFilterSections.category ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.category ? "rotate-180" : ""}` }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.category ? "rotate-180" : ""}` })
|
|
14030
13992
|
]
|
|
14031
13993
|
}
|
|
14032
13994
|
),
|
|
@@ -14042,7 +14004,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14042
14004
|
if (!isExpanded) toggleCategoryExpand(categoryId);
|
|
14043
14005
|
handleCategoryChange(categoryId);
|
|
14044
14006
|
},
|
|
14045
|
-
className: `w-full text-left px-4 py-3 rounded-xl
|
|
14007
|
+
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"}`,
|
|
14046
14008
|
children: [
|
|
14047
14009
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "size-4" }),
|
|
14048
14010
|
category.name
|
|
@@ -14059,8 +14021,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14059
14021
|
onClick: () => toggleFilterSection("brand"),
|
|
14060
14022
|
className: "w-full flex items-center justify-between mb-3",
|
|
14061
14023
|
children: [
|
|
14062
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
14063
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-
|
|
14024
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Brand" }),
|
|
14025
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.brand ? "rotate-180" : ""}` })
|
|
14064
14026
|
]
|
|
14065
14027
|
}
|
|
14066
14028
|
),
|
|
@@ -14070,7 +14032,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14070
14032
|
"button",
|
|
14071
14033
|
{
|
|
14072
14034
|
onClick: () => handleBrandChange(brand),
|
|
14073
|
-
className: `w-full text-left px-4 py-3 rounded-xl
|
|
14035
|
+
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"}`,
|
|
14074
14036
|
children: brand
|
|
14075
14037
|
},
|
|
14076
14038
|
brand
|
|
@@ -14084,8 +14046,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14084
14046
|
onClick: () => toggleFilterSection("availability"),
|
|
14085
14047
|
className: "w-full flex items-center justify-between mb-3",
|
|
14086
14048
|
children: [
|
|
14087
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
14088
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-
|
|
14049
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Availability" }),
|
|
14050
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.availability ? "rotate-180" : ""}` })
|
|
14089
14051
|
]
|
|
14090
14052
|
}
|
|
14091
14053
|
),
|
|
@@ -14093,7 +14055,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14093
14055
|
"button",
|
|
14094
14056
|
{
|
|
14095
14057
|
onClick: handleToggleStock,
|
|
14096
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl
|
|
14058
|
+
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"}`,
|
|
14097
14059
|
children: "In Stock Only"
|
|
14098
14060
|
}
|
|
14099
14061
|
) })
|
|
@@ -14105,8 +14067,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14105
14067
|
onClick: () => toggleFilterSection("price"),
|
|
14106
14068
|
className: "w-full flex items-center justify-between mb-3",
|
|
14107
14069
|
children: [
|
|
14108
|
-
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "
|
|
14109
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-
|
|
14070
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Price Range" }),
|
|
14071
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.price ? "rotate-180" : ""}` })
|
|
14110
14072
|
]
|
|
14111
14073
|
}
|
|
14112
14074
|
),
|
|
@@ -14118,7 +14080,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14118
14080
|
{
|
|
14119
14081
|
type: "button",
|
|
14120
14082
|
onClick: () => handlePriceRangeSelect(range.value),
|
|
14121
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl
|
|
14083
|
+
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"}`,
|
|
14122
14084
|
children: range.label
|
|
14123
14085
|
},
|
|
14124
14086
|
range.value
|
|
@@ -14133,7 +14095,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14133
14095
|
placeholder: "Min",
|
|
14134
14096
|
value: customPrice.min,
|
|
14135
14097
|
onChange: (event) => setCustomPrice((current) => ({ ...current, min: event.target.value })),
|
|
14136
|
-
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-
|
|
14098
|
+
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"
|
|
14137
14099
|
}
|
|
14138
14100
|
),
|
|
14139
14101
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -14144,7 +14106,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14144
14106
|
placeholder: "Max",
|
|
14145
14107
|
value: customPrice.max,
|
|
14146
14108
|
onChange: (event) => setCustomPrice((current) => ({ ...current, max: event.target.value })),
|
|
14147
|
-
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-
|
|
14109
|
+
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"
|
|
14148
14110
|
}
|
|
14149
14111
|
)
|
|
14150
14112
|
] }),
|
|
@@ -14154,7 +14116,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14154
14116
|
type: "button",
|
|
14155
14117
|
onClick: applyCustomPrice,
|
|
14156
14118
|
disabled: !isCustomPriceDirty,
|
|
14157
|
-
className: "w-full rounded-lg border border-
|
|
14119
|
+
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",
|
|
14158
14120
|
children: "Apply"
|
|
14159
14121
|
}
|
|
14160
14122
|
)
|
|
@@ -14173,7 +14135,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14173
14135
|
return lucideReact.Package;
|
|
14174
14136
|
};
|
|
14175
14137
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen bg-[#F9FAFB]", children: [
|
|
14176
|
-
/* @__PURE__ */ jsxRuntime.jsx("section", { className: "relative overflow-hidden bg-
|
|
14138
|
+
/* @__PURE__ */ jsxRuntime.jsx("section", { className: "relative overflow-hidden bg-hprimary-bg py-16 md:py-24", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14177
14139
|
framerMotion.motion.div,
|
|
14178
14140
|
{
|
|
14179
14141
|
initial: { opacity: 0, y: 24 },
|
|
@@ -14181,8 +14143,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14181
14143
|
className: "max-w-4xl mx-auto space-y-6 text-center",
|
|
14182
14144
|
children: [
|
|
14183
14145
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-2 mb-4", children: [
|
|
14184
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "h-5 w-5 text-
|
|
14185
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-semibold uppercase tracking-wider text-
|
|
14146
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Star, { className: "h-5 w-5 text-hprimary fill-primary" }),
|
|
14147
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-semibold uppercase tracking-wider text-hprimary", children: "COMPLETE PHARMACY SHOP" })
|
|
14186
14148
|
] }),
|
|
14187
14149
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl md:text-4xl font-bold text-slate-900 leading-tight", children: "Medical Supplies & Wellness Products" }),
|
|
14188
14150
|
/* @__PURE__ */ jsxRuntime.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." }),
|
|
@@ -14201,7 +14163,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14201
14163
|
value: searchQuery,
|
|
14202
14164
|
onChange: handleInputChange,
|
|
14203
14165
|
onKeyDown: handleKeyDown,
|
|
14204
|
-
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-
|
|
14166
|
+
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",
|
|
14205
14167
|
disabled: isSearching
|
|
14206
14168
|
}
|
|
14207
14169
|
)
|
|
@@ -14211,8 +14173,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14211
14173
|
]
|
|
14212
14174
|
}
|
|
14213
14175
|
) }) }),
|
|
14214
|
-
/* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-8 bg-white", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "container mx-auto px-4", children: [
|
|
14215
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-
|
|
14176
|
+
/* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-8 bg-white/50", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "container mx-auto px-4", children: [
|
|
14177
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-semibold text-hsecondary mb-6", children: "Shop by Category" }),
|
|
14216
14178
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4", children: [
|
|
14217
14179
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14218
14180
|
framerMotion.motion.button,
|
|
@@ -14220,11 +14182,11 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14220
14182
|
onClick: handleClearCategory,
|
|
14221
14183
|
initial: { opacity: 0, y: 20 },
|
|
14222
14184
|
animate: { opacity: 1, y: 0 },
|
|
14223
|
-
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-
|
|
14185
|
+
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"}`,
|
|
14224
14186
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
14225
|
-
/* @__PURE__ */ jsxRuntime.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-
|
|
14226
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `font-
|
|
14227
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `
|
|
14187
|
+
/* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(lucideReact.Package, { className: `size-6 ${!categoryFilter ? "text-white" : "text-hprimary"}` }) }),
|
|
14188
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `font-semibold text-[14px] mb-1.5 ${!categoryFilter ? "text-white" : "text-hsecondary"}`, children: "All Products" }),
|
|
14189
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-[11px] ${!categoryFilter ? "text-white/80" : "text-hmuted"}`, children: "Browse Everything" })
|
|
14228
14190
|
] })
|
|
14229
14191
|
}
|
|
14230
14192
|
),
|
|
@@ -14239,11 +14201,11 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14239
14201
|
animate: { opacity: 1, y: 0 },
|
|
14240
14202
|
transition: { delay: index * 0.1 },
|
|
14241
14203
|
onClick: () => handleCategoryChange(categoryId),
|
|
14242
|
-
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-
|
|
14204
|
+
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"}`,
|
|
14243
14205
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
14244
|
-
/* @__PURE__ */ jsxRuntime.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-
|
|
14245
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `font-
|
|
14246
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `
|
|
14206
|
+
/* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(Icon, { className: `size-6 ${isSelected ? "text-white" : "text-hprimary"}` }) }),
|
|
14207
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `font-semibold text-[14px] mb-1.5 ${isSelected ? "text-white" : "text-hsecondary"}`, children: category.name }),
|
|
14208
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-[11px] ${isSelected ? "text-white/80" : "text-hmuted"}`, children: category.description })
|
|
14247
14209
|
] })
|
|
14248
14210
|
},
|
|
14249
14211
|
categoryId
|
|
@@ -14267,7 +14229,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14267
14229
|
onChange: (event) => {
|
|
14268
14230
|
setSortOption(event.target.value);
|
|
14269
14231
|
},
|
|
14270
|
-
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-
|
|
14232
|
+
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",
|
|
14271
14233
|
children: [
|
|
14272
14234
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "featured", children: "Featured products" }),
|
|
14273
14235
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "price-low-high", children: "Price: low to high" }),
|
|
@@ -14284,7 +14246,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14284
14246
|
{
|
|
14285
14247
|
type: "button",
|
|
14286
14248
|
onClick: () => setViewMode("grid"),
|
|
14287
|
-
className: `flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition ${viewMode === "grid" ? "bg-white text-
|
|
14249
|
+
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"}`,
|
|
14288
14250
|
"aria-pressed": viewMode === "grid",
|
|
14289
14251
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LayoutGrid, { className: "h-4 w-4" })
|
|
14290
14252
|
}
|
|
@@ -14294,7 +14256,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14294
14256
|
{
|
|
14295
14257
|
type: "button",
|
|
14296
14258
|
onClick: () => setViewMode("list"),
|
|
14297
|
-
className: `flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition ${viewMode === "list" ? "bg-white text-
|
|
14259
|
+
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"}`,
|
|
14298
14260
|
"aria-pressed": viewMode === "list",
|
|
14299
14261
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.LayoutList, { className: "h-4 w-4" })
|
|
14300
14262
|
}
|
|
@@ -14308,10 +14270,10 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14308
14270
|
{
|
|
14309
14271
|
type: "button",
|
|
14310
14272
|
onClick: chip.onRemove,
|
|
14311
|
-
className: "group flex items-center gap-2 rounded-full bg-
|
|
14273
|
+
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",
|
|
14312
14274
|
children: [
|
|
14313
14275
|
chip.label,
|
|
14314
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4 text-
|
|
14276
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4 text-hprimary-500 group-hover:text-hprimary-700" })
|
|
14315
14277
|
]
|
|
14316
14278
|
},
|
|
14317
14279
|
chip.key
|
|
@@ -14359,7 +14321,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14359
14321
|
}
|
|
14360
14322
|
) }),
|
|
14361
14323
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 space-y-3", children: [
|
|
14362
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-2 text-xs font-semibold uppercase tracking-wide text-
|
|
14324
|
+
/* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(
|
|
14363
14325
|
"span",
|
|
14364
14326
|
{
|
|
14365
14327
|
className: "rounded-full bg-slate-100 px-3 py-1 text-gray-600",
|
|
@@ -14369,12 +14331,12 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14369
14331
|
)) }),
|
|
14370
14332
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-semibold text-gray-900 line-clamp-2", children: product.name }),
|
|
14371
14333
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-4 text-sm text-gray-500", children: [
|
|
14372
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-2 font-medium text-
|
|
14334
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-2 font-medium text-hprimary-600", children: [
|
|
14373
14335
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "h-4 w-4" }),
|
|
14374
14336
|
displayInventoryCount > 0 ? "In stock & ready to ship" : "Restocking soon"
|
|
14375
14337
|
] }),
|
|
14376
14338
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-2", children: [
|
|
14377
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "h-4 w-4 text-
|
|
14339
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "h-4 w-4 text-hprimary-500" }),
|
|
14378
14340
|
"Added ",
|
|
14379
14341
|
new Date(product.createdAt).toLocaleDateString()
|
|
14380
14342
|
] })
|
|
@@ -14392,7 +14354,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14392
14354
|
event.stopPropagation();
|
|
14393
14355
|
router.push(buildPath(`/products/${product._id}`));
|
|
14394
14356
|
},
|
|
14395
|
-
className: "w-full font-
|
|
14357
|
+
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",
|
|
14396
14358
|
children: "View product"
|
|
14397
14359
|
}
|
|
14398
14360
|
)
|
|
@@ -14755,10 +14717,10 @@ function RatingDistribution({ reviews, averageRating }) {
|
|
|
14755
14717
|
function ReviewCard({ review, showProductInfo = false }) {
|
|
14756
14718
|
const reviewDate = new Date(review.createdAt);
|
|
14757
14719
|
const replyDate = review.replyDate ? new Date(review.replyDate) : null;
|
|
14758
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-gray-200 rounded-lg p-4 bg-
|
|
14720
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border border-gray-200 rounded-lg p-4 bg-hprimary-50", children: [
|
|
14759
14721
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between mb-3", children: [
|
|
14760
14722
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
14761
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-10 h-10 bg-
|
|
14723
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-10 h-10 bg-hsecondary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "size-5 text-hsecondary" }) }),
|
|
14762
14724
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
14763
14725
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-gray-900", children: "Customer Review" }),
|
|
14764
14726
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500", children: dateFns.formatDistanceToNow(reviewDate, { addSuffix: true }) })
|
|
@@ -14766,11 +14728,11 @@ function ReviewCard({ review, showProductInfo = false }) {
|
|
|
14766
14728
|
] }),
|
|
14767
14729
|
/* @__PURE__ */ jsxRuntime.jsx(StarRating, { rating: review.rating, size: "sm" })
|
|
14768
14730
|
] }),
|
|
14769
|
-
review.reviewType && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-block px-2 py-1 text-xs bg-
|
|
14731
|
+
review.reviewType && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-block px-2 py-1 text-xs bg-hprimary-100 text-gray-600 rounded mb-2", children: review.reviewType }),
|
|
14770
14732
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-gray-700 text-sm leading-relaxed mb-3", children: review.review }),
|
|
14771
|
-
review.reply && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 pl-4 border-l-2 border-
|
|
14733
|
+
review.reply && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 pl-4 border-l-2 border-hsecondary bg-gray-50 p-3 rounded", children: [
|
|
14772
14734
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
14773
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageCircle, { className: "size-4 text-
|
|
14735
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageCircle, { className: "size-4 text-hsecondary" }),
|
|
14774
14736
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-medium text-gray-900", children: "Store Response" }),
|
|
14775
14737
|
replyDate && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500", children: dateFns.formatDistanceToNow(replyDate, { addSuffix: true }) })
|
|
14776
14738
|
] }),
|
|
@@ -15120,7 +15082,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15120
15082
|
}
|
|
15121
15083
|
if (!product) {
|
|
15122
15084
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-screen bg-slate-50", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 py-16", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-3xl bg-white p-10 text-center shadow-xs", children: [
|
|
15123
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "mx-auto h-10 w-10 text-
|
|
15085
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "mx-auto h-10 w-10 text-hprimary-500" }),
|
|
15124
15086
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "mt-6 text-2xl font-semibold text-gray-900", children: "Product not found" }),
|
|
15125
15087
|
/* @__PURE__ */ jsxRuntime.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." }),
|
|
15126
15088
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6", children: /* @__PURE__ */ jsxRuntime.jsx(Link9__default.default, { href: "/shop", className: "inline-block", children: /* @__PURE__ */ jsxRuntime.jsx(Button, { children: "Browse products" }) }) })
|
|
@@ -15131,7 +15093,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15131
15093
|
"button",
|
|
15132
15094
|
{
|
|
15133
15095
|
onClick: () => router.push(buildPath("/shop")),
|
|
15134
|
-
className: "flex items-center gap-2
|
|
15096
|
+
className: "flex items-center gap-2 text-[13px] text-hmuted hover:text-hprimary transition-colors",
|
|
15135
15097
|
children: [
|
|
15136
15098
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "size-4" }),
|
|
15137
15099
|
"Back to Shop"
|
|
@@ -15170,7 +15132,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15170
15132
|
className: "object-contain"
|
|
15171
15133
|
}
|
|
15172
15134
|
) : null,
|
|
15173
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-6 left-6 flex flex-col gap-3", children: discount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-
|
|
15135
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-6 left-6 flex flex-col gap-3", children: discount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-hsecondary text-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[12px] uppercase tracking-wide", children: [
|
|
15174
15136
|
"Save ",
|
|
15175
15137
|
discount,
|
|
15176
15138
|
"%"
|
|
@@ -15184,7 +15146,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15184
15146
|
{
|
|
15185
15147
|
type: "button",
|
|
15186
15148
|
onClick: () => setActiveImageIndex(index),
|
|
15187
|
-
className: `relative aspect-square overflow-hidden rounded-lg border-2 transition-all ${activeImageIndex === index ? "border-
|
|
15149
|
+
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"}`,
|
|
15188
15150
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15189
15151
|
Image4__default.default,
|
|
15190
15152
|
{
|
|
@@ -15202,12 +15164,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15202
15164
|
] }) }) }),
|
|
15203
15165
|
/* @__PURE__ */ jsxRuntime.jsxs("aside", { className: "space-y-6 lg:sticky lg:top-24", children: [
|
|
15204
15166
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
|
|
15205
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
15167
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[12px] text-hprimary uppercase tracking-wide font-medium mb-2", children: [
|
|
15206
15168
|
product.brand,
|
|
15207
15169
|
" \u2022 ",
|
|
15208
15170
|
product.categoryIds?.[0]?.name || "Uncategorized"
|
|
15209
15171
|
] }),
|
|
15210
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-
|
|
15172
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-semibold text-hsecondary tracking-[-1.5px] mb-3", children: selectedVariant?.name || product.name }),
|
|
15211
15173
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15212
15174
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
15213
15175
|
lucideReact.Star,
|
|
@@ -15216,7 +15178,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15216
15178
|
},
|
|
15217
15179
|
i
|
|
15218
15180
|
)) }),
|
|
15219
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15181
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[14px] text-hmuted", children: [
|
|
15220
15182
|
reviewStats.averageRating,
|
|
15221
15183
|
" (",
|
|
15222
15184
|
reviewStats.reviewCount,
|
|
@@ -15226,16 +15188,16 @@ function ProductDetailScreen({ productId }) {
|
|
|
15226
15188
|
] })
|
|
15227
15189
|
] }),
|
|
15228
15190
|
selectedVariant && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-6 pb-6 border-b-2 border-gray-100", children: [
|
|
15229
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-
|
|
15191
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold text-[40px] text-hsecondary", children: [
|
|
15230
15192
|
"$",
|
|
15231
15193
|
variantPrice.toFixed(2)
|
|
15232
15194
|
] }),
|
|
15233
15195
|
variantComparePrice && variantComparePrice > variantPrice && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15234
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15196
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[24px] text-hmuted line-through", children: [
|
|
15235
15197
|
"$",
|
|
15236
15198
|
variantComparePrice.toFixed(2)
|
|
15237
15199
|
] }),
|
|
15238
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1 rounded-full bg-
|
|
15200
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1 rounded-full bg-hsecondary/10", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-semibold text-[13px] text-hsecondary", children: [
|
|
15239
15201
|
"Save $",
|
|
15240
15202
|
formatPrice(variantComparePrice - variantPrice)
|
|
15241
15203
|
] }) })
|
|
@@ -15244,19 +15206,19 @@ function ProductDetailScreen({ productId }) {
|
|
|
15244
15206
|
selectedVariant && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
15245
15207
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 mb-2", children: selectedVariant.inventoryStatus === "OUT_OF_STOCK" /* OUTOFSTOCK */ ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15246
15208
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-3 rounded-full bg-red-500" }),
|
|
15247
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "
|
|
15209
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[13px] text-red-600 font-medium", children: "Out of Stock" })
|
|
15248
15210
|
] }) : selectedVariant.inventoryStatus === "LOW_STOCK" /* LOWSTOCK */ || selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15249
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-3 rounded-full bg-
|
|
15250
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15211
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-3 rounded-full bg-hprimary animate-pulse" }),
|
|
15212
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[13px] text-hprimary font-medium", children: [
|
|
15251
15213
|
"Only ",
|
|
15252
15214
|
selectedVariant.inventoryCount,
|
|
15253
15215
|
" left in stock - Order soon!"
|
|
15254
15216
|
] })
|
|
15255
15217
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15256
15218
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-3 rounded-full bg-green-500" }),
|
|
15257
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "
|
|
15219
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[13px] text-green-600 font-medium", children: "In Stock" })
|
|
15258
15220
|
] }) }),
|
|
15259
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
15221
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[12px] text-hmuted", children: [
|
|
15260
15222
|
"SKU: ",
|
|
15261
15223
|
selectedVariant?.sku || product?.sku
|
|
15262
15224
|
] })
|
|
@@ -15264,12 +15226,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15264
15226
|
product.description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15265
15227
|
"div",
|
|
15266
15228
|
{
|
|
15267
|
-
className: "
|
|
15229
|
+
className: "text-[14px] text-hmuted leading-[1.7] mb-8 max-w-full overflow-hidden break-words",
|
|
15268
15230
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15269
15231
|
}
|
|
15270
15232
|
),
|
|
15271
15233
|
product?.variants && product.variants.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
15272
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
15234
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-[14px] text-hsecondary mb-3", children: "Select Variant" }),
|
|
15273
15235
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-3", children: product.variants.map((variant) => {
|
|
15274
15236
|
const isSelected = selectedVariant?._id === variant._id;
|
|
15275
15237
|
const variantImage = variant.media?.[0]?.file || product.media?.[0]?.file || product.images?.[0] || PLACEHOLDER_IMAGE_SRC;
|
|
@@ -15278,9 +15240,9 @@ function ProductDetailScreen({ productId }) {
|
|
|
15278
15240
|
{
|
|
15279
15241
|
type: "button",
|
|
15280
15242
|
onClick: () => handleVariantSelect(variant),
|
|
15281
|
-
className: `flex items-start gap-3 px-4 py-2.5 rounded-xl border-2 transition-all ${isSelected ? "border-
|
|
15243
|
+
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"}`,
|
|
15282
15244
|
children: [
|
|
15283
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `relative h-12 w-12 shrink-0 overflow-hidden rounded-full border-2 ${isSelected ? "border-
|
|
15245
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `relative h-12 w-12 shrink-0 overflow-hidden rounded-full border-2 ${isSelected ? "border-hprimary" : "border-slate-200"}`, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15284
15246
|
Image4__default.default,
|
|
15285
15247
|
{
|
|
15286
15248
|
src: variantImage,
|
|
@@ -15291,13 +15253,13 @@ function ProductDetailScreen({ productId }) {
|
|
|
15291
15253
|
}
|
|
15292
15254
|
) }),
|
|
15293
15255
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1", children: [
|
|
15294
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-start text-sm font-medium ${isSelected ? "text-
|
|
15256
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-start text-sm font-medium ${isSelected ? "text-hsecondary" : "text-slate-900"}`, children: variant.name }),
|
|
15295
15257
|
variant.sku && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-start text-xs text-slate-500 mt-0.5", children: [
|
|
15296
15258
|
"SKU: ",
|
|
15297
15259
|
variant.sku
|
|
15298
15260
|
] })
|
|
15299
15261
|
] }),
|
|
15300
|
-
isSelected && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5 text-
|
|
15262
|
+
isSelected && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-5 w-5 text-hsecondary shrink-0" })
|
|
15301
15263
|
]
|
|
15302
15264
|
},
|
|
15303
15265
|
variant._id
|
|
@@ -15305,7 +15267,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15305
15267
|
}) })
|
|
15306
15268
|
] }),
|
|
15307
15269
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-8", children: [
|
|
15308
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
15270
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-[14px] text-hsecondary mb-3", children: "Quantity" }),
|
|
15309
15271
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15310
15272
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-4 bg-gray-100 rounded-full px-6 py-3", children: [
|
|
15311
15273
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -15313,18 +15275,18 @@ function ProductDetailScreen({ productId }) {
|
|
|
15313
15275
|
{
|
|
15314
15276
|
type: "button",
|
|
15315
15277
|
onClick: () => setQuantity((current) => Math.max(1, current - 1)),
|
|
15316
|
-
className: "font-
|
|
15278
|
+
className: "font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors",
|
|
15317
15279
|
"aria-label": "Increase quantity",
|
|
15318
15280
|
children: "-"
|
|
15319
15281
|
}
|
|
15320
15282
|
),
|
|
15321
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
15283
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-[16px] text-hsecondary min-w-[30px] text-center", children: quantity }),
|
|
15322
15284
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15323
15285
|
"button",
|
|
15324
15286
|
{
|
|
15325
15287
|
onClick: () => setQuantity(Math.min(selectedVariant?.inventoryCount || product.inventoryCount || 999, quantity + 1)),
|
|
15326
15288
|
disabled: quantity >= (selectedVariant?.inventoryCount || product.inventoryCount || 0),
|
|
15327
|
-
className: "font-
|
|
15289
|
+
className: "font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors disabled:opacity-50",
|
|
15328
15290
|
children: "+"
|
|
15329
15291
|
}
|
|
15330
15292
|
)
|
|
@@ -15339,7 +15301,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15339
15301
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15340
15302
|
"button",
|
|
15341
15303
|
{
|
|
15342
|
-
className: "flex-1 font-
|
|
15304
|
+
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",
|
|
15343
15305
|
onClick: handleAddToCart,
|
|
15344
15306
|
disabled: !selectedVariant || selectedVariant.inventoryStatus === "OUT_OF_STOCK" /* OUTOFSTOCK */ || isAddingToCart,
|
|
15345
15307
|
children: isAddingToCart ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -15357,40 +15319,40 @@ function ProductDetailScreen({ productId }) {
|
|
|
15357
15319
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15358
15320
|
"button",
|
|
15359
15321
|
{
|
|
15360
|
-
className: "sm:w-auto px-6 py-4 rounded-full border-2 border-
|
|
15322
|
+
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",
|
|
15361
15323
|
onClick: handleToggleFavorite,
|
|
15362
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heart, { className: `h-4 w-4 ${isFavorited ? "fill-red-500 text-red-500" : "text-
|
|
15324
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heart, { className: `h-4 w-4 ${isFavorited ? "fill-red-500 text-red-500" : "text-hprimary"}` })
|
|
15363
15325
|
}
|
|
15364
15326
|
)
|
|
15365
15327
|
] })
|
|
15366
15328
|
] }),
|
|
15367
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4 p-6 bg-linear-to-br from-
|
|
15329
|
+
/* @__PURE__ */ jsxRuntime.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: [
|
|
15368
15330
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15369
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "size-5 text-
|
|
15331
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "size-5 text-hprimary" }) }),
|
|
15370
15332
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15371
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
15372
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15333
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Free Shipping" }),
|
|
15334
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hmuted", children: "On all orders" })
|
|
15373
15335
|
] })
|
|
15374
15336
|
] }),
|
|
15375
15337
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15376
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCcw, { className: "size-5 text-
|
|
15338
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCcw, { className: "size-5 text-hprimary" }) }),
|
|
15377
15339
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15378
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
15379
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15340
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Easy Returns" }),
|
|
15341
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hmuted", children: "30-day return policy" })
|
|
15380
15342
|
] })
|
|
15381
15343
|
] }),
|
|
15382
15344
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15383
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { className: "size-5 text-
|
|
15345
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { className: "size-5 text-hprimary" }) }),
|
|
15384
15346
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15385
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
15386
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15347
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Secure Checkout" }),
|
|
15348
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hmuted", children: "Safe & protected" })
|
|
15387
15349
|
] })
|
|
15388
15350
|
] }),
|
|
15389
15351
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15390
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "size-5 text-
|
|
15352
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "size-5 text-hprimary" }) }),
|
|
15391
15353
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15392
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
15393
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15354
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Quality Guaranteed" }),
|
|
15355
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[11px] text-hmuted", children: "Premium materials" })
|
|
15394
15356
|
] })
|
|
15395
15357
|
] })
|
|
15396
15358
|
] })
|
|
@@ -15401,35 +15363,35 @@ function ProductDetailScreen({ productId }) {
|
|
|
15401
15363
|
"button",
|
|
15402
15364
|
{
|
|
15403
15365
|
onClick: () => setActiveTab(tab),
|
|
15404
|
-
className: `font-
|
|
15366
|
+
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"}`,
|
|
15405
15367
|
children: tab.charAt(0).toUpperCase() + tab.slice(1)
|
|
15406
15368
|
},
|
|
15407
15369
|
tab
|
|
15408
15370
|
)) }),
|
|
15409
15371
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white rounded-[24px] p-8 border-2 border-gray-100", children: [
|
|
15410
15372
|
activeTab === "description" && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15411
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
15373
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-hsecondary mb-4", children: "Product Description" }),
|
|
15412
15374
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15413
15375
|
"div",
|
|
15414
15376
|
{
|
|
15415
|
-
className: "
|
|
15377
|
+
className: "text-[14px] text-hmuted leading-[1.8] mb-4 max-w-full overflow-hidden break-words",
|
|
15416
15378
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15417
15379
|
}
|
|
15418
15380
|
),
|
|
15419
15381
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6", children: [
|
|
15420
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-
|
|
15421
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15382
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Last updated:" }),
|
|
15383
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] text-hmuted", children: lastUpdatedLabel })
|
|
15422
15384
|
] }),
|
|
15423
15385
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6", children: [
|
|
15424
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-
|
|
15425
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
15386
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Shipped from:" }),
|
|
15387
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] text-hmuted", children: "Local pharmacy distribution center" })
|
|
15426
15388
|
] })
|
|
15427
15389
|
] }),
|
|
15428
15390
|
activeTab === "reviews" && /* @__PURE__ */ jsxRuntime.jsx(ProductReviewsSection, { productId })
|
|
15429
15391
|
] })
|
|
15430
15392
|
] }),
|
|
15431
15393
|
relatedProducts.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
15432
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
15394
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-hsecondary mb-8 text-2xl", children: "You May Also Like" }),
|
|
15433
15395
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6", children: relatedProducts.map((relatedProduct) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
15434
15396
|
ProductCard,
|
|
15435
15397
|
{
|
|
@@ -15474,9 +15436,9 @@ function CartItem({ item }) {
|
|
|
15474
15436
|
initial: { opacity: 0, y: 20 },
|
|
15475
15437
|
animate: { opacity: 1, y: 0 },
|
|
15476
15438
|
exit: { opacity: 0, x: -100 },
|
|
15477
|
-
className: "bg-white border-2 border-gray-100 rounded-[24px] p-6 hover:border-
|
|
15478
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-
|
|
15479
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-28 h-28 rounded-[16px] overflow-hidden bg-gray-50 shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15439
|
+
className: "bg-white border-2 border-gray-100 rounded-[24px] p-4 md:p-6 hover:border-hsecondary/30 transition-all duration-300",
|
|
15440
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3 md:gap-4", children: [
|
|
15441
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-20 h-20 md:w-28 md:h-28 rounded-[16px] overflow-hidden bg-gray-50 shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15480
15442
|
Image4__default.default,
|
|
15481
15443
|
{
|
|
15482
15444
|
src: item.productVariantData.media[0]?.file || PLACEHOLDER_IMAGE_SRC,
|
|
@@ -15489,8 +15451,8 @@ function CartItem({ item }) {
|
|
|
15489
15451
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
15490
15452
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4 mb-3", children: [
|
|
15491
15453
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
15492
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-
|
|
15493
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15454
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-[#2B4B7C] mb-2", children: item.productVariantData.name }),
|
|
15455
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[12px] text-[#676c80]", children: [
|
|
15494
15456
|
"Variant: ",
|
|
15495
15457
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-[#2B4B7C]", children: item.productVariantData.name })
|
|
15496
15458
|
] }) })
|
|
@@ -15506,31 +15468,33 @@ function CartItem({ item }) {
|
|
|
15506
15468
|
}
|
|
15507
15469
|
)
|
|
15508
15470
|
] }),
|
|
15509
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15510
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 bg-gray-50 rounded-full px-4 py-2", children: [
|
|
15471
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4 mt-auto", children: [
|
|
15472
|
+
/* @__PURE__ */ jsxRuntime.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: [
|
|
15511
15473
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15512
15474
|
"button",
|
|
15513
15475
|
{
|
|
15514
15476
|
onClick: () => handleUpdateQuantity(item.quantity - 1),
|
|
15515
15477
|
disabled: isUpdating || item.quantity <= 1,
|
|
15516
15478
|
className: "p-1 hover:bg-white rounded-full transition-colors",
|
|
15517
|
-
|
|
15479
|
+
"aria-label": "Decrease quantity",
|
|
15480
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { className: "size-3 md:size-4 text-[#2B4B7C]" })
|
|
15518
15481
|
}
|
|
15519
15482
|
),
|
|
15520
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-[
|
|
15483
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-[13px] md:text-[14px] text-[#2B4B7C] min-w-[20px] text-center", children: item.quantity }),
|
|
15521
15484
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15522
15485
|
"button",
|
|
15523
15486
|
{
|
|
15524
15487
|
onClick: () => handleUpdateQuantity(item.quantity + 1),
|
|
15525
15488
|
disabled: isUpdating || item.quantity >= (item.productVariantData.inventoryCount || 999),
|
|
15526
15489
|
className: "p-1 hover:bg-white rounded-full transition-colors",
|
|
15527
|
-
|
|
15490
|
+
"aria-label": "Increase quantity",
|
|
15491
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-3 md:size-4 text-[#2B4B7C]" })
|
|
15528
15492
|
}
|
|
15529
15493
|
)
|
|
15530
15494
|
] }),
|
|
15531
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-right", children: [
|
|
15532
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-[
|
|
15533
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
15495
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-left sm:text-right", children: [
|
|
15496
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-bold text-[16px] md:text-[18px] text-hsecondary", children: formatPrice(itemTotal) }),
|
|
15497
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[10px] md:text-[11px] text-[#676c80]", children: [
|
|
15534
15498
|
formatPrice(unitPrice),
|
|
15535
15499
|
" each"
|
|
15536
15500
|
] })
|
|
@@ -15555,17 +15519,17 @@ function CartScreen() {
|
|
|
15555
15519
|
animate: { opacity: 1, y: 0 },
|
|
15556
15520
|
className: "text-center space-y-6 max-w-md",
|
|
15557
15521
|
children: [
|
|
15558
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShoppingBag, { className: "h-12 w-12 text-
|
|
15522
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShoppingBag, { className: "h-12 w-12 text-hsecondary" }) }) }),
|
|
15559
15523
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
15560
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-bold text-
|
|
15561
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-
|
|
15524
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-bold text-hsecondary", children: "Your cart is empty" }),
|
|
15525
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-hmuted", children: "Start adding products to your cart to see them here." })
|
|
15562
15526
|
] }),
|
|
15563
15527
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-3 justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
15564
15528
|
"button",
|
|
15565
15529
|
{
|
|
15566
15530
|
type: "button",
|
|
15567
15531
|
onClick: () => router.push(buildPath("/shop")),
|
|
15568
|
-
className: "rounded-xl border-2 border-
|
|
15532
|
+
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",
|
|
15569
15533
|
children: [
|
|
15570
15534
|
"Discover products",
|
|
15571
15535
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { className: "h-5 w-5" })
|
|
@@ -15574,15 +15538,15 @@ function CartScreen() {
|
|
|
15574
15538
|
) }),
|
|
15575
15539
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 space-y-3 pt-6 border-t border-gray-200", children: [
|
|
15576
15540
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15577
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-
|
|
15541
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-hsecondary shrink-0 mt-0.5" }),
|
|
15578
15542
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Free shipping on all orders" })
|
|
15579
15543
|
] }),
|
|
15580
15544
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15581
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-
|
|
15545
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-hsecondary shrink-0 mt-0.5" }),
|
|
15582
15546
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Easy returns within 30 days" })
|
|
15583
15547
|
] }),
|
|
15584
15548
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15585
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-
|
|
15549
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-hsecondary shrink-0 mt-0.5" }),
|
|
15586
15550
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Secure checkout process" })
|
|
15587
15551
|
] })
|
|
15588
15552
|
] })
|
|
@@ -15606,10 +15570,10 @@ function CartScreen() {
|
|
|
15606
15570
|
}
|
|
15607
15571
|
router.push(buildPath("/checkout"));
|
|
15608
15572
|
};
|
|
15609
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-screen bg-white", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-[1400px] mx-auto px-
|
|
15610
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-12", children: [
|
|
15611
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-
|
|
15612
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
15573
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-screen bg-white", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "max-w-[1400px] mx-auto px-4 md:px-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "py-8", children: [
|
|
15574
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-8 md:mb-12", children: [
|
|
15575
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-semibold text-hsecondary tracking-[-1px] md:tracking-[-2px] mb-2 text-3xl md:text-4xl", children: "Shopping Cart" }),
|
|
15576
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[14px] md:text-[16px] text-hmuted", children: [
|
|
15613
15577
|
itemCount,
|
|
15614
15578
|
" ",
|
|
15615
15579
|
itemCount === 1 ? "item" : "items",
|
|
@@ -15638,27 +15602,27 @@ function CartScreen() {
|
|
|
15638
15602
|
initial: { opacity: 0, y: 24 },
|
|
15639
15603
|
animate: { opacity: 1, y: 0 },
|
|
15640
15604
|
transition: { delay: 0.1 },
|
|
15641
|
-
className: "
|
|
15642
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-linear-to-br from-
|
|
15643
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
15605
|
+
className: "lg:sticky lg:top-24 h-fit lg:col-span-1",
|
|
15606
|
+
children: /* @__PURE__ */ jsxRuntime.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: [
|
|
15607
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-hsecondary mb-6", children: "Order Summary" }),
|
|
15644
15608
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4 mb-6", children: [
|
|
15645
15609
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15646
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "
|
|
15610
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-[14px] text-hmuted", children: [
|
|
15647
15611
|
"Subtotal (",
|
|
15648
15612
|
itemCount,
|
|
15649
15613
|
" ",
|
|
15650
15614
|
itemCount === 1 ? "item" : "items",
|
|
15651
15615
|
")"
|
|
15652
15616
|
] }),
|
|
15653
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
15617
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-[14px] text-hsecondary", children: formatPrice(subtotal) })
|
|
15654
15618
|
] }),
|
|
15655
15619
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
15656
15620
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-gray-600", children: "Shipping" }),
|
|
15657
15621
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-green-600", children: "Will be calculated at checkout" })
|
|
15658
15622
|
] }),
|
|
15659
15623
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-gray-200 pt-4 mt-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15660
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg font-bold text-
|
|
15661
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-2xl font-bold text-
|
|
15624
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg font-bold text-hsecondary", children: "Total" }),
|
|
15625
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-2xl font-bold text-hprimary", children: formatPrice(total) })
|
|
15662
15626
|
] }) })
|
|
15663
15627
|
] }),
|
|
15664
15628
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
@@ -15667,7 +15631,7 @@ function CartScreen() {
|
|
|
15667
15631
|
{
|
|
15668
15632
|
type: "submit",
|
|
15669
15633
|
onClick: handleSubmit,
|
|
15670
|
-
className: "w-full rounded-full border-2 border-
|
|
15634
|
+
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",
|
|
15671
15635
|
children: [
|
|
15672
15636
|
"Proceed to Checkout",
|
|
15673
15637
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { className: "h-5 w-5" })
|
|
@@ -15686,11 +15650,11 @@ function CartScreen() {
|
|
|
15686
15650
|
] }),
|
|
15687
15651
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 space-y-3 pt-6 border-t border-gray-200", children: [
|
|
15688
15652
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15689
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-
|
|
15653
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-hmuted shrink-0 mt-0.5" }),
|
|
15690
15654
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Easy returns within 30 days" })
|
|
15691
15655
|
] }),
|
|
15692
15656
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 text-sm text-slate-600", children: [
|
|
15693
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-
|
|
15657
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckCircle2, { className: "h-5 w-5 text-hmuted shrink-0 mt-0.5" }),
|
|
15694
15658
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Secure checkout process" })
|
|
15695
15659
|
] })
|
|
15696
15660
|
] })
|
|
@@ -16055,11 +16019,11 @@ function AddressFormModal({ isOpen, onClose, onAddressAdded, onAddressUpdated, i
|
|
|
16055
16019
|
{
|
|
16056
16020
|
type: "button",
|
|
16057
16021
|
onClick: onClose,
|
|
16058
|
-
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-
|
|
16022
|
+
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",
|
|
16059
16023
|
children: "Cancel"
|
|
16060
16024
|
}
|
|
16061
16025
|
),
|
|
16062
|
-
/* @__PURE__ */ jsxRuntime.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-
|
|
16026
|
+
/* @__PURE__ */ jsxRuntime.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" })
|
|
16063
16027
|
] })
|
|
16064
16028
|
] })
|
|
16065
16029
|
}
|
|
@@ -16640,8 +16604,8 @@ function CheckoutScreen() {
|
|
|
16640
16604
|
className: "space-y-8",
|
|
16641
16605
|
children: [
|
|
16642
16606
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-12", children: [
|
|
16643
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-
|
|
16644
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "
|
|
16607
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "font-semibold text-[#2B4B7C] mb-2 text-3xl", children: "Checkout" }),
|
|
16608
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-[14px] text-[#676c80] text-md leading-relaxed", children: "Complete your order information below" })
|
|
16645
16609
|
] }),
|
|
16646
16610
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
|
|
16647
16611
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -16666,13 +16630,13 @@ function CheckoutScreen() {
|
|
|
16666
16630
|
setShippingPrice(0);
|
|
16667
16631
|
}
|
|
16668
16632
|
},
|
|
16669
|
-
className: `relative flex w-full items-center justify-between rounded-xl border-2 p-3 transition-all duration-200 ${active ? "border-
|
|
16633
|
+
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"}`,
|
|
16670
16634
|
children: [
|
|
16671
16635
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
16672
16636
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16673
16637
|
"div",
|
|
16674
16638
|
{
|
|
16675
|
-
className: `p-2 rounded-lg ${active ? "bg-
|
|
16639
|
+
className: `p-2 rounded-lg ${active ? "bg-hprimary-100 text-hprimary-600" : "bg-gray-100 text-gray-600"}`,
|
|
16676
16640
|
children: option.icon
|
|
16677
16641
|
}
|
|
16678
16642
|
),
|
|
@@ -16681,7 +16645,7 @@ function CheckoutScreen() {
|
|
|
16681
16645
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-gray-500", children: option.desc })
|
|
16682
16646
|
] })
|
|
16683
16647
|
] }),
|
|
16684
|
-
active && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-5 h-5 rounded-full bg-
|
|
16648
|
+
active && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-5 h-5 rounded-full bg-hprimary-500 flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "w-3 h-3 text-white" }) })
|
|
16685
16649
|
]
|
|
16686
16650
|
},
|
|
16687
16651
|
option.id
|
|
@@ -16736,7 +16700,7 @@ function CheckoutScreen() {
|
|
|
16736
16700
|
] }) }),
|
|
16737
16701
|
isDelivery !== null && /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
|
|
16738
16702
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center justify-between gap-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
16739
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
16703
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-[#2B4B7C] mb-2 text-2xl", children: isDelivery ? "Delivery Address" : "Contact Information" }),
|
|
16740
16704
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500", children: "We use temperature-aware packaging and real-time tracking on every shipment." })
|
|
16741
16705
|
] }) }),
|
|
16742
16706
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-6 grid grid-cols-1 gap-4 md:grid-cols-2", children: [
|
|
@@ -16763,7 +16727,7 @@ function CheckoutScreen() {
|
|
|
16763
16727
|
userAddresses.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-4", children: userAddresses.map((addr) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16764
16728
|
"label",
|
|
16765
16729
|
{
|
|
16766
|
-
className: `group relative flex items-start gap-3 p-4 rounded-2xl border ${selectedAddressId === addr.id ? "border-
|
|
16730
|
+
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`,
|
|
16767
16731
|
children: [
|
|
16768
16732
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16769
16733
|
"input",
|
|
@@ -16800,7 +16764,7 @@ function CheckoutScreen() {
|
|
|
16800
16764
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-600", children: addr.country }),
|
|
16801
16765
|
addr.phone && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-600 mt-1", children: addr.phone }),
|
|
16802
16766
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex items-center gap-2", children: [
|
|
16803
|
-
addr.isDefault && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-flex items-center gap-1 rounded-full bg-
|
|
16767
|
+
addr.isDefault && /* @__PURE__ */ jsxRuntime.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" }),
|
|
16804
16768
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16805
16769
|
"button",
|
|
16806
16770
|
{
|
|
@@ -16810,7 +16774,7 @@ function CheckoutScreen() {
|
|
|
16810
16774
|
setEditingAddress(addr);
|
|
16811
16775
|
setIsAddressModalOpen(true);
|
|
16812
16776
|
},
|
|
16813
|
-
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-
|
|
16777
|
+
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",
|
|
16814
16778
|
children: [
|
|
16815
16779
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Edit3, { className: "h-3.5 w-3.5" }),
|
|
16816
16780
|
" Edit"
|
|
@@ -16870,10 +16834,10 @@ function CheckoutScreen() {
|
|
|
16870
16834
|
isDelivery === true && selectedAddressId && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
|
|
16871
16835
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 text-xl font-semibold text-gray-900 pb-4 mb-8 border-b", children: [
|
|
16872
16836
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "w-8 h-8 flex items-center justify-center text-[#2B4B7C]" }),
|
|
16873
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
16837
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-[#2B4B7C] text-2xl", children: "Shipping Options" })
|
|
16874
16838
|
] }),
|
|
16875
16839
|
shippingRatesLoading ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center py-12", children: [
|
|
16876
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-
|
|
16840
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-haccent" }),
|
|
16877
16841
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-3 text-gray-600", children: "Loading shipping options..." })
|
|
16878
16842
|
] }) : shippingRatesError ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center py-12", children: [
|
|
16879
16843
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 mx-auto mb-4 bg-red-100 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "w-8 h-8 text-red-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) }) }),
|
|
@@ -16889,7 +16853,7 @@ function CheckoutScreen() {
|
|
|
16889
16853
|
setSelectedShippingRateId(rate.objectId);
|
|
16890
16854
|
setShippingPrice(parseFloat(rate.amount));
|
|
16891
16855
|
},
|
|
16892
|
-
className: `relative p-5 border-2 rounded-xl cursor-pointer transition-all duration-200 hover:shadow-md ${isSelected ? "border-
|
|
16856
|
+
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"}`,
|
|
16893
16857
|
children: [
|
|
16894
16858
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between", children: [
|
|
16895
16859
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-4 flex-1", children: [
|
|
@@ -16914,7 +16878,7 @@ function CheckoutScreen() {
|
|
|
16914
16878
|
" ",
|
|
16915
16879
|
rate.servicelevel?.name
|
|
16916
16880
|
] }),
|
|
16917
|
-
isTest && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "px-2 py-1 text-xs font-medium bg-
|
|
16881
|
+
isTest && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "px-2 py-1 text-xs font-medium bg-hprimary-100 text-hprimary-800 rounded-full", children: "TEST" })
|
|
16918
16882
|
] }),
|
|
16919
16883
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1 text-sm text-gray-600", children: [
|
|
16920
16884
|
rate.durationTerms && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -16956,7 +16920,7 @@ function CheckoutScreen() {
|
|
|
16956
16920
|
] })
|
|
16957
16921
|
] })
|
|
16958
16922
|
] }),
|
|
16959
|
-
isSelected && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-6 h-6 bg-
|
|
16923
|
+
isSelected && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-3 right-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-6 h-6 bg-hprimary-500 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "w-4 h-4 text-white" }) }) })
|
|
16960
16924
|
]
|
|
16961
16925
|
},
|
|
16962
16926
|
rate.objectId
|
|
@@ -16977,22 +16941,22 @@ function CheckoutScreen() {
|
|
|
16977
16941
|
animate: { opacity: 1, y: 0 },
|
|
16978
16942
|
transition: { duration: 0.5, ease: "easeOut", delay: 0.1 },
|
|
16979
16943
|
className: "space-y-10 lg:sticky lg:top-24 lg:col-span-1",
|
|
16980
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-linear-to-br from-
|
|
16981
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-
|
|
16944
|
+
children: /* @__PURE__ */ jsxRuntime.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: [
|
|
16945
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-semibold text-hsecondary mb-6 text-2xl", children: "Order Summary" }),
|
|
16982
16946
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "mt-8 pt-6 border-t border-slate-100", children: [
|
|
16983
16947
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4 mb-6", children: cart?.cartBody?.items?.map((item) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3", children: [
|
|
16984
16948
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 rounded-xl overflow-hidden bg-white shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(Image4__default.default, { src: item.productVariantData?.media?.[0]?.file || PLACEHOLDER_IMAGE_SRC, alt: item.productVariantData.name, className: "w-full h-full object-cover", height: 200, width: 200 }) }),
|
|
16985
16949
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
16986
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
16987
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
16950
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-[12px] text-[#2B4B7C] mb-1", children: item?.productVariantData?.name }),
|
|
16951
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[11px] text-[#676c80]", children: [
|
|
16988
16952
|
item?.productVariantData?.brand,
|
|
16989
16953
|
" \u2022 Qty: ",
|
|
16990
16954
|
item.quantity
|
|
16991
16955
|
] }),
|
|
16992
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-
|
|
16956
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-[12px] text-hsecondary mt-1", children: formatPrice(item.productVariantData.finalPrice * item.quantity) })
|
|
16993
16957
|
] })
|
|
16994
16958
|
] }, item.productVariantId || item.id)) }),
|
|
16995
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-px bg-
|
|
16959
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-px bg-hsecondary/20 my-4" }),
|
|
16996
16960
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16997
16961
|
CouponCodeInput,
|
|
16998
16962
|
{
|
|
@@ -17024,14 +16988,14 @@ function CheckoutScreen() {
|
|
|
17024
16988
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Estimated tax" }),
|
|
17025
16989
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: formatPrice(tax) })
|
|
17026
16990
|
] }),
|
|
17027
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-px bg-
|
|
16991
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-px bg-hsecondary/20 mt-6" }),
|
|
17028
16992
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-6", children: [
|
|
17029
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
17030
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-
|
|
16993
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold text-[16px] text-hsecondary", children: "Total" }),
|
|
16994
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-bold text-[24px] text-hsecondary", children: formatPrice(total) })
|
|
17031
16995
|
] })
|
|
17032
16996
|
] }),
|
|
17033
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white/80 rounded-xl p-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "
|
|
17034
|
-
/* @__PURE__ */ jsxRuntime.jsx("strong", { className: "text-
|
|
16997
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-white/80 rounded-xl p-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-[11px] text-[#676c80] leading-[1.6]", children: [
|
|
16998
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { className: "text-hsecondary", children: "Payment:" }),
|
|
17035
16999
|
" We'll contact you to arrange payment upon pickup or delivery. We accept cash, credit cards, and all major payment methods."
|
|
17036
17000
|
] }) })
|
|
17037
17001
|
] }),
|
|
@@ -17067,7 +17031,7 @@ function CheckoutScreen() {
|
|
|
17067
17031
|
{
|
|
17068
17032
|
type: "submit",
|
|
17069
17033
|
disabled: isSubmitting,
|
|
17070
|
-
className: "font-
|
|
17034
|
+
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",
|
|
17071
17035
|
children: [
|
|
17072
17036
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: "h-5 w-5" }),
|
|
17073
17037
|
isSubmitting ? "Placing order..." : "Place Secure Order"
|
|
@@ -17159,9 +17123,9 @@ function LoginScreen() {
|
|
|
17159
17123
|
className: "flex items-center justify-center px-6 py-12 lg:px-16",
|
|
17160
17124
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-lg space-y-10 text-center", children: [
|
|
17161
17125
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
17162
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17163
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-4xl text-
|
|
17164
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
17126
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-hsecondary m-2 mb-4 px-4" }),
|
|
17127
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-4xl text-hsecondary", children: "Welcome Back" }),
|
|
17128
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted", children: "Sign in to access your patient portal" })
|
|
17165
17129
|
] }),
|
|
17166
17130
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
17167
17131
|
"form",
|
|
@@ -17179,10 +17143,10 @@ function LoginScreen() {
|
|
|
17179
17143
|
children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: status.message })
|
|
17180
17144
|
}
|
|
17181
17145
|
),
|
|
17182
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-start text-
|
|
17183
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17146
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-start text-hsecondary", children: [
|
|
17147
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17184
17148
|
"Email Address ",
|
|
17185
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17149
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17186
17150
|
] }),
|
|
17187
17151
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17188
17152
|
Input,
|
|
@@ -17191,14 +17155,14 @@ function LoginScreen() {
|
|
|
17191
17155
|
placeholder: "you@example.com",
|
|
17192
17156
|
...register("email"),
|
|
17193
17157
|
error: errors.email?.message,
|
|
17194
|
-
className: "text-
|
|
17158
|
+
className: "text-hsecondary"
|
|
17195
17159
|
}
|
|
17196
17160
|
)
|
|
17197
17161
|
] }),
|
|
17198
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative text-start text-
|
|
17199
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17162
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative text-start text-hsecondary", children: [
|
|
17163
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17200
17164
|
"Password ",
|
|
17201
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17165
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17202
17166
|
] }),
|
|
17203
17167
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17204
17168
|
Input,
|
|
@@ -17223,7 +17187,7 @@ function LoginScreen() {
|
|
|
17223
17187
|
Link9__default.default,
|
|
17224
17188
|
{
|
|
17225
17189
|
href: buildPath("/forgot-password"),
|
|
17226
|
-
className: "font-medium text-
|
|
17190
|
+
className: "font-medium text-hprimary transition hover:opacity-80",
|
|
17227
17191
|
children: "Forgot password?"
|
|
17228
17192
|
}
|
|
17229
17193
|
) }),
|
|
@@ -17232,16 +17196,16 @@ function LoginScreen() {
|
|
|
17232
17196
|
{
|
|
17233
17197
|
type: "submit",
|
|
17234
17198
|
disabled: isSubmitting,
|
|
17235
|
-
className: "w-full bg-
|
|
17199
|
+
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",
|
|
17236
17200
|
children: isSubmitting ? "Signing in..." : "Sign in"
|
|
17237
17201
|
}
|
|
17238
17202
|
)
|
|
17239
17203
|
]
|
|
17240
17204
|
}
|
|
17241
17205
|
),
|
|
17242
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-
|
|
17206
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-hmuted", children: [
|
|
17243
17207
|
"Don't have an account? ",
|
|
17244
|
-
/* @__PURE__ */ jsxRuntime.jsx(Link9__default.default, { href: buildPath("/register"), className: "font-medium text-
|
|
17208
|
+
/* @__PURE__ */ jsxRuntime.jsx(Link9__default.default, { href: buildPath("/register"), className: "font-medium text-hprimary transition hover:opacity-90", children: "Sign up" })
|
|
17245
17209
|
] }) })
|
|
17246
17210
|
] })
|
|
17247
17211
|
}
|
|
@@ -17306,9 +17270,9 @@ function RegisterScreen() {
|
|
|
17306
17270
|
className: "flex items-center justify-center px-6 py-12 lg:px-16",
|
|
17307
17271
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-xl space-y-10 text-center", children: [
|
|
17308
17272
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
17309
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserPlus, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17310
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-4xl text-
|
|
17311
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
17273
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserPlus, { strokeWidth: 2, className: "h-16 w-16 mx-auto text-white rounded-full bg-hprimary m-2 mb-4 px-4" }),
|
|
17274
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-4xl text-hsecondary", children: "Create Your Account" }),
|
|
17275
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted", children: "Join Holmdel Pharmacy Care for convenient healthcare access" })
|
|
17312
17276
|
] }),
|
|
17313
17277
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
17314
17278
|
"form",
|
|
@@ -17321,9 +17285,9 @@ function RegisterScreen() {
|
|
|
17321
17285
|
children: [
|
|
17322
17286
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-4 md:grid-cols-2 text-start", children: [
|
|
17323
17287
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
17324
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17288
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17325
17289
|
"First name ",
|
|
17326
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17290
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17327
17291
|
] }),
|
|
17328
17292
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17329
17293
|
Input,
|
|
@@ -17335,9 +17299,9 @@ function RegisterScreen() {
|
|
|
17335
17299
|
)
|
|
17336
17300
|
] }),
|
|
17337
17301
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
17338
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17302
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17339
17303
|
"Last name ",
|
|
17340
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17304
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17341
17305
|
] }),
|
|
17342
17306
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17343
17307
|
Input,
|
|
@@ -17350,9 +17314,9 @@ function RegisterScreen() {
|
|
|
17350
17314
|
] })
|
|
17351
17315
|
] }),
|
|
17352
17316
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
17353
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17317
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17354
17318
|
"Email Address ",
|
|
17355
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17319
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17356
17320
|
] }),
|
|
17357
17321
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17358
17322
|
Input,
|
|
@@ -17365,7 +17329,7 @@ function RegisterScreen() {
|
|
|
17365
17329
|
)
|
|
17366
17330
|
] }),
|
|
17367
17331
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
17368
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-
|
|
17332
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-sm text-hsecondary mb-3", children: "Phone Number" }),
|
|
17369
17333
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17370
17334
|
Input,
|
|
17371
17335
|
{
|
|
@@ -17377,9 +17341,9 @@ function RegisterScreen() {
|
|
|
17377
17341
|
)
|
|
17378
17342
|
] }),
|
|
17379
17343
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
17380
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17344
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17381
17345
|
"Password ",
|
|
17382
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17346
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17383
17347
|
] }),
|
|
17384
17348
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17385
17349
|
Input,
|
|
@@ -17401,9 +17365,9 @@ function RegisterScreen() {
|
|
|
17401
17365
|
)
|
|
17402
17366
|
] }),
|
|
17403
17367
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
17404
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17368
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17405
17369
|
"Confirm Password ",
|
|
17406
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17370
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17407
17371
|
] }),
|
|
17408
17372
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17409
17373
|
Input,
|
|
@@ -17425,11 +17389,11 @@ function RegisterScreen() {
|
|
|
17425
17389
|
)
|
|
17426
17390
|
] }),
|
|
17427
17391
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 rounded-2xl bg-slate-50 p-4 text-sm text-slate-600", children: [
|
|
17428
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { strokeWidth: 2, className: "mt-0.5 h-8 w-8 text-
|
|
17392
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { strokeWidth: 2, className: "mt-0.5 h-8 w-8 text-hprimary" }),
|
|
17429
17393
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
17430
17394
|
"By creating an account, you agree to our",
|
|
17431
17395
|
" ",
|
|
17432
|
-
/* @__PURE__ */ jsxRuntime.jsx(Link9__default.default, { href: buildPath("/terms"), className: "font-semibold text-
|
|
17396
|
+
/* @__PURE__ */ jsxRuntime.jsx(Link9__default.default, { href: buildPath("/terms"), className: "font-semibold text-hprimary hover:opacity-70", children: "Terms of Service" }),
|
|
17433
17397
|
" ",
|
|
17434
17398
|
"and",
|
|
17435
17399
|
" ",
|
|
@@ -17437,7 +17401,7 @@ function RegisterScreen() {
|
|
|
17437
17401
|
Link9__default.default,
|
|
17438
17402
|
{
|
|
17439
17403
|
href: buildPath("/privacy"),
|
|
17440
|
-
className: "font-semibold text-
|
|
17404
|
+
className: "font-semibold text-hprimary hover:opacity-70",
|
|
17441
17405
|
children: "Privacy Policy"
|
|
17442
17406
|
}
|
|
17443
17407
|
),
|
|
@@ -17449,16 +17413,16 @@ function RegisterScreen() {
|
|
|
17449
17413
|
{
|
|
17450
17414
|
type: "submit",
|
|
17451
17415
|
disabled: isSubmitting,
|
|
17452
|
-
className: "w-full bg-
|
|
17416
|
+
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",
|
|
17453
17417
|
children: isSubmitting ? "Creating account..." : "Create my account"
|
|
17454
17418
|
}
|
|
17455
17419
|
)
|
|
17456
17420
|
]
|
|
17457
17421
|
}
|
|
17458
17422
|
),
|
|
17459
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-
|
|
17423
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-hmuted", children: [
|
|
17460
17424
|
"Already have an account? ",
|
|
17461
|
-
/* @__PURE__ */ jsxRuntime.jsx(Link9__default.default, { href: buildPath("/login"), className: "font-medium text-
|
|
17425
|
+
/* @__PURE__ */ jsxRuntime.jsx(Link9__default.default, { href: buildPath("/login"), className: "font-medium text-hprimary transition hover:opacity-90", children: "Sign in" })
|
|
17462
17426
|
] }) })
|
|
17463
17427
|
] })
|
|
17464
17428
|
}
|
|
@@ -17513,11 +17477,11 @@ function ForgotPasswordScreen() {
|
|
|
17513
17477
|
lucideReact.Mail,
|
|
17514
17478
|
{
|
|
17515
17479
|
strokeWidth: 2,
|
|
17516
|
-
className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17480
|
+
className: "h-16 w-16 mx-auto text-white rounded-full bg-hsecondary m-2 mb-4 px-4"
|
|
17517
17481
|
}
|
|
17518
17482
|
),
|
|
17519
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-4xl text-
|
|
17520
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
17483
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-4xl text-hsecondary", children: "Forgot Password?" }),
|
|
17484
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted", children: "No worries! Enter your email and we'll send you reset instructions." })
|
|
17521
17485
|
] }),
|
|
17522
17486
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
17523
17487
|
"form",
|
|
@@ -17538,10 +17502,10 @@ function ForgotPasswordScreen() {
|
|
|
17538
17502
|
]
|
|
17539
17503
|
}
|
|
17540
17504
|
),
|
|
17541
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-start text-
|
|
17542
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17505
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-start text-hsecondary", children: [
|
|
17506
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17543
17507
|
"Email Address ",
|
|
17544
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17508
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17545
17509
|
] }),
|
|
17546
17510
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17547
17511
|
Input,
|
|
@@ -17550,7 +17514,7 @@ function ForgotPasswordScreen() {
|
|
|
17550
17514
|
placeholder: "you@example.com",
|
|
17551
17515
|
...register("email"),
|
|
17552
17516
|
error: errors.email?.message,
|
|
17553
|
-
className: "text-
|
|
17517
|
+
className: "text-hsecondary"
|
|
17554
17518
|
}
|
|
17555
17519
|
)
|
|
17556
17520
|
] }),
|
|
@@ -17559,7 +17523,7 @@ function ForgotPasswordScreen() {
|
|
|
17559
17523
|
{
|
|
17560
17524
|
type: "submit",
|
|
17561
17525
|
disabled: isSubmitting,
|
|
17562
|
-
className: "w-full bg-
|
|
17526
|
+
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",
|
|
17563
17527
|
children: isSubmitting ? "Sending..." : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
17564
17528
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Send, { className: "h-4 w-4" }),
|
|
17565
17529
|
"Send Reset Link"
|
|
@@ -17570,7 +17534,7 @@ function ForgotPasswordScreen() {
|
|
|
17570
17534
|
Link9__default.default,
|
|
17571
17535
|
{
|
|
17572
17536
|
href: buildPath("/login"),
|
|
17573
|
-
className: "flex items-center justify-center gap-2 text-sm font-medium text-
|
|
17537
|
+
className: "flex items-center justify-center gap-2 text-sm font-medium text-hprimary transition hover:opacity-80",
|
|
17574
17538
|
children: [
|
|
17575
17539
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "h-4 w-4" }),
|
|
17576
17540
|
"Back to login"
|
|
@@ -17580,14 +17544,14 @@ function ForgotPasswordScreen() {
|
|
|
17580
17544
|
]
|
|
17581
17545
|
}
|
|
17582
17546
|
),
|
|
17583
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-
|
|
17547
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-hmuted", children: [
|
|
17584
17548
|
"Don't have an account?",
|
|
17585
17549
|
" ",
|
|
17586
17550
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17587
17551
|
Link9__default.default,
|
|
17588
17552
|
{
|
|
17589
17553
|
href: buildPath("/register"),
|
|
17590
|
-
className: "font-medium text-
|
|
17554
|
+
className: "font-medium text-hprimary transition hover:opacity-90",
|
|
17591
17555
|
children: "Sign up"
|
|
17592
17556
|
}
|
|
17593
17557
|
)
|
|
@@ -17678,11 +17642,11 @@ function ResetPasswordScreen() {
|
|
|
17678
17642
|
lucideReact.Lock,
|
|
17679
17643
|
{
|
|
17680
17644
|
strokeWidth: 2,
|
|
17681
|
-
className: "h-16 w-16 mx-auto text-white rounded-full bg-
|
|
17645
|
+
className: "h-16 w-16 mx-auto text-white rounded-full bg-hsecondary m-2 mb-4 px-4"
|
|
17682
17646
|
}
|
|
17683
17647
|
),
|
|
17684
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-4xl text-
|
|
17685
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
17648
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-4xl text-hsecondary", children: "Reset Password" }),
|
|
17649
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted", children: "Enter your new password below to reset your account password." })
|
|
17686
17650
|
] }),
|
|
17687
17651
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
17688
17652
|
"form",
|
|
@@ -17703,10 +17667,10 @@ function ResetPasswordScreen() {
|
|
|
17703
17667
|
]
|
|
17704
17668
|
}
|
|
17705
17669
|
),
|
|
17706
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative text-start text-
|
|
17707
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17670
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative text-start text-hsecondary", children: [
|
|
17671
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17708
17672
|
"New Password ",
|
|
17709
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17673
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17710
17674
|
] }),
|
|
17711
17675
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17712
17676
|
Input,
|
|
@@ -17715,7 +17679,7 @@ function ResetPasswordScreen() {
|
|
|
17715
17679
|
placeholder: "Enter new password (min. 8 characters)",
|
|
17716
17680
|
...register("newPassword"),
|
|
17717
17681
|
error: errors.newPassword?.message,
|
|
17718
|
-
className: "text-
|
|
17682
|
+
className: "text-hsecondary"
|
|
17719
17683
|
}
|
|
17720
17684
|
),
|
|
17721
17685
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -17728,10 +17692,10 @@ function ResetPasswordScreen() {
|
|
|
17728
17692
|
}
|
|
17729
17693
|
)
|
|
17730
17694
|
] }),
|
|
17731
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative text-start text-
|
|
17732
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-
|
|
17695
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative text-start text-hsecondary", children: [
|
|
17696
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "text-sm text-hsecondary mb-3", children: [
|
|
17733
17697
|
"Confirm Password ",
|
|
17734
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
17698
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hprimary-500", children: "*" })
|
|
17735
17699
|
] }),
|
|
17736
17700
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17737
17701
|
Input,
|
|
@@ -17740,7 +17704,7 @@ function ResetPasswordScreen() {
|
|
|
17740
17704
|
placeholder: "Re-enter new password",
|
|
17741
17705
|
...register("confirmPassword"),
|
|
17742
17706
|
error: errors.confirmPassword?.message,
|
|
17743
|
-
className: "text-
|
|
17707
|
+
className: "text-hsecondary"
|
|
17744
17708
|
}
|
|
17745
17709
|
),
|
|
17746
17710
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -17758,19 +17722,19 @@ function ResetPasswordScreen() {
|
|
|
17758
17722
|
{
|
|
17759
17723
|
type: "submit",
|
|
17760
17724
|
disabled: isSubmitting || !token,
|
|
17761
|
-
className: "w-full bg-
|
|
17725
|
+
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",
|
|
17762
17726
|
children: isSubmitting ? "Resetting Password..." : "Reset Password"
|
|
17763
17727
|
}
|
|
17764
17728
|
),
|
|
17765
17729
|
/* @__PURE__ */ jsxRuntime.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: [
|
|
17766
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "h-4 w-4 text-
|
|
17730
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "h-4 w-4 text-hprimary-600" }),
|
|
17767
17731
|
"Use a strong password that you haven't used elsewhere."
|
|
17768
17732
|
] }),
|
|
17769
17733
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pt-4 border-t border-slate-200", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17770
17734
|
Link9__default.default,
|
|
17771
17735
|
{
|
|
17772
17736
|
href: buildPath("/login"),
|
|
17773
|
-
className: "text-sm font-medium text-
|
|
17737
|
+
className: "text-sm font-medium text-hprimary transition hover:opacity-80",
|
|
17774
17738
|
children: "Back to login"
|
|
17775
17739
|
}
|
|
17776
17740
|
) })
|
|
@@ -17792,7 +17756,7 @@ function TabNavigation({ tabs: tabs2, activeTab, onTabChange }) {
|
|
|
17792
17756
|
className: `
|
|
17793
17757
|
flex items-center gap-2 px-6 py-3 mt-2 text-sm font-medium whitespace-nowrap
|
|
17794
17758
|
border-b-2 transition-colors
|
|
17795
|
-
${isActive ? "bg-
|
|
17759
|
+
${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"}
|
|
17796
17760
|
`,
|
|
17797
17761
|
"aria-current": isActive ? "page" : void 0,
|
|
17798
17762
|
children: [
|
|
@@ -17911,8 +17875,8 @@ function useCurrentOrders() {
|
|
|
17911
17875
|
}
|
|
17912
17876
|
function Badge({ children, variant = "primary", size = "md", className = "" }) {
|
|
17913
17877
|
const variants = {
|
|
17914
|
-
primary: "bg-
|
|
17915
|
-
secondary: "bg-
|
|
17878
|
+
primary: "bg-hprimary-100 text-hprimary-700 border-hprimary-200",
|
|
17879
|
+
secondary: "bg-hsecondary-100 text-hsecondary-700 border-hsecondary-200",
|
|
17916
17880
|
success: "bg-green-100 text-green-700 border-green-200",
|
|
17917
17881
|
warning: "bg-yellow-100 text-yellow-700 border-yellow-200",
|
|
17918
17882
|
danger: "bg-red-100 text-red-700 border-red-200",
|
|
@@ -17941,7 +17905,7 @@ function AccountOverviewTab() {
|
|
|
17941
17905
|
icon: lucideReact.Package,
|
|
17942
17906
|
label: "Total Orders",
|
|
17943
17907
|
value: totalOrders,
|
|
17944
|
-
color: "bg-
|
|
17908
|
+
color: "bg-hprimary-100 text-[#5B9BD5]"
|
|
17945
17909
|
},
|
|
17946
17910
|
{
|
|
17947
17911
|
icon: lucideReact.CheckCircle,
|
|
@@ -17972,7 +17936,7 @@ function AccountOverviewTab() {
|
|
|
17972
17936
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
17973
17937
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `flex h-12 w-12 items-center justify-center rounded-lg ${stat.color}`, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "h-6 w-6" }) }),
|
|
17974
17938
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
17975
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl font-bold text-
|
|
17939
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-2xl font-bold text-hsecondary", children: stat.value }),
|
|
17976
17940
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-600", children: stat.label })
|
|
17977
17941
|
] })
|
|
17978
17942
|
] })
|
|
@@ -17982,12 +17946,12 @@ function AccountOverviewTab() {
|
|
|
17982
17946
|
}) }),
|
|
17983
17947
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-xl border border-slate-200 bg-white p-6", children: [
|
|
17984
17948
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
17985
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-
|
|
17949
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Profile Information" }),
|
|
17986
17950
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
17987
17951
|
"button",
|
|
17988
17952
|
{
|
|
17989
17953
|
onClick: () => router.push(buildPath("/account/edit")),
|
|
17990
|
-
className: "flex items-center gap-1 text-sm text-
|
|
17954
|
+
className: "flex items-center gap-1 text-sm text-hprimary-600 hover:text-hprimary-700",
|
|
17991
17955
|
children: [
|
|
17992
17956
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Edit, { className: "h-4 w-4" }),
|
|
17993
17957
|
"Edit"
|
|
@@ -17997,10 +17961,10 @@ function AccountOverviewTab() {
|
|
|
17997
17961
|
] }),
|
|
17998
17962
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
17999
17963
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18000
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17964
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18001
17965
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18002
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
18003
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-
|
|
17966
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: "Full Name" }),
|
|
17967
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-hsecondary", children: [
|
|
18004
17968
|
user.firstname,
|
|
18005
17969
|
" ",
|
|
18006
17970
|
user.lastname
|
|
@@ -18008,31 +17972,31 @@ function AccountOverviewTab() {
|
|
|
18008
17972
|
] })
|
|
18009
17973
|
] }),
|
|
18010
17974
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18011
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17975
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18012
17976
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18013
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
18014
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-
|
|
17977
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: "E-mail Address" }),
|
|
17978
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.email })
|
|
18015
17979
|
] })
|
|
18016
17980
|
] }),
|
|
18017
17981
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18018
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17982
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Phone, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18019
17983
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18020
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
18021
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-
|
|
17984
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: "Phone Number" }),
|
|
17985
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.phoneNumber || "Not provided" })
|
|
18022
17986
|
] })
|
|
18023
17987
|
] }),
|
|
18024
17988
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18025
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17989
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18026
17990
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18027
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
18028
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-
|
|
17991
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: "Date of Birth" }),
|
|
17992
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-hsecondary", children: "Not provided" })
|
|
18029
17993
|
] })
|
|
18030
17994
|
] })
|
|
18031
17995
|
] })
|
|
18032
17996
|
] }),
|
|
18033
17997
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-xl border border-slate-200 bg-white p-6", children: [
|
|
18034
17998
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
18035
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-
|
|
17999
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Recent Orders" }),
|
|
18036
18000
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18037
18001
|
"button",
|
|
18038
18002
|
{
|
|
@@ -18040,7 +18004,7 @@ function AccountOverviewTab() {
|
|
|
18040
18004
|
const event = new CustomEvent("switchTab", { detail: "orders" });
|
|
18041
18005
|
window.dispatchEvent(event);
|
|
18042
18006
|
},
|
|
18043
|
-
className: "text-sm text-
|
|
18007
|
+
className: "text-sm text-hprimary-600 hover:text-hprimary-700",
|
|
18044
18008
|
children: "View All \u2192"
|
|
18045
18009
|
}
|
|
18046
18010
|
)
|
|
@@ -18051,7 +18015,7 @@ function AccountOverviewTab() {
|
|
|
18051
18015
|
className: "h-16 animate-pulse rounded-lg bg-slate-50"
|
|
18052
18016
|
},
|
|
18053
18017
|
index
|
|
18054
|
-
)) }) : recentOrders.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
18018
|
+
)) }) : recentOrders.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted text-center py-8", children: "No orders yet" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: recentOrders.map((order) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18055
18019
|
"div",
|
|
18056
18020
|
{
|
|
18057
18021
|
onClick: () => router.push(buildPath(`/account/orders/${order._id}`)),
|
|
@@ -18061,7 +18025,7 @@ function AccountOverviewTab() {
|
|
|
18061
18025
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-white", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "h-5 w-5 text-slate-600" }) }),
|
|
18062
18026
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18063
18027
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
18064
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-
|
|
18028
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-hsecondary", children: [
|
|
18065
18029
|
"ORD-",
|
|
18066
18030
|
order._id?.slice(-6).toUpperCase()
|
|
18067
18031
|
] }),
|
|
@@ -18074,10 +18038,10 @@ function AccountOverviewTab() {
|
|
|
18074
18038
|
}
|
|
18075
18039
|
)
|
|
18076
18040
|
] }),
|
|
18077
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
18041
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: formatDate(order.createdAt || /* @__PURE__ */ new Date(), "short") })
|
|
18078
18042
|
] })
|
|
18079
18043
|
] }),
|
|
18080
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-
|
|
18044
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-hsecondary", children: formatPrice(order.grandTotal || 0) }) })
|
|
18081
18045
|
]
|
|
18082
18046
|
},
|
|
18083
18047
|
order._id
|
|
@@ -18122,11 +18086,11 @@ function AccountOrdersTab() {
|
|
|
18122
18086
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between mb-4 pb-4 border-b border-slate-200", children: [
|
|
18123
18087
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
18124
18088
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18125
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "text-base font-semibold text-
|
|
18089
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "text-base font-semibold text-hsecondary", children: [
|
|
18126
18090
|
"Order ORD-",
|
|
18127
18091
|
order._id?.slice(-6).toUpperCase()
|
|
18128
18092
|
] }),
|
|
18129
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-
|
|
18093
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-hmuted mb-4", children: [
|
|
18130
18094
|
"Placed on ",
|
|
18131
18095
|
formatDate(order.createdAt || /* @__PURE__ */ new Date(), "long")
|
|
18132
18096
|
] })
|
|
@@ -18141,8 +18105,8 @@ function AccountOrdersTab() {
|
|
|
18141
18105
|
)
|
|
18142
18106
|
] }),
|
|
18143
18107
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-right", children: [
|
|
18144
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
18145
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-bold text-
|
|
18108
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted mb-1", children: "Total Amount" }),
|
|
18109
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-bold text-hsecondary", children: formatPrice(order.grandTotal || 0) })
|
|
18146
18110
|
] })
|
|
18147
18111
|
] }),
|
|
18148
18112
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3 mb-4", children: order.items && order.items.length > 0 ? order.items.map((item, index) => {
|
|
@@ -18160,15 +18124,15 @@ function AccountOrdersTab() {
|
|
|
18160
18124
|
}
|
|
18161
18125
|
) }),
|
|
18162
18126
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
18163
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-
|
|
18164
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-
|
|
18127
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium text-hsecondary text-sm truncate", children: item.productVariantData?.name || "Unknown Product" }),
|
|
18128
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-hmuted", children: [
|
|
18165
18129
|
"Qty: ",
|
|
18166
18130
|
item.quantity
|
|
18167
18131
|
] })
|
|
18168
18132
|
] }),
|
|
18169
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-
|
|
18133
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-hsecondary text-sm", children: formatPrice(itemTotal) })
|
|
18170
18134
|
] }, item.productVariantId || index);
|
|
18171
|
-
}) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
18135
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted text-center py-2", children: "No items found" }) })
|
|
18172
18136
|
]
|
|
18173
18137
|
},
|
|
18174
18138
|
order._id
|
|
@@ -18199,15 +18163,15 @@ function ConfirmModal({
|
|
|
18199
18163
|
button: "primary"
|
|
18200
18164
|
},
|
|
18201
18165
|
info: {
|
|
18202
|
-
icon: "text-
|
|
18166
|
+
icon: "text-hsecondary bg-blue-100",
|
|
18203
18167
|
button: "primary"
|
|
18204
18168
|
}
|
|
18205
18169
|
};
|
|
18206
18170
|
const style = variantStyles[variant];
|
|
18207
18171
|
return /* @__PURE__ */ jsxRuntime.jsx(Modal, { isOpen, onClose, size: "sm", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center text-center", children: [
|
|
18208
18172
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `w-12 h-12 rounded-full ${style.icon} flex items-center justify-center mb-4`, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangle, { className: "w-6 h-6" }) }),
|
|
18209
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-semibold text-
|
|
18210
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-
|
|
18173
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-semibold text-hsecondary mb-2", children: title }),
|
|
18174
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-hmuted mb-6", children: message }),
|
|
18211
18175
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-3 w-full justify-center", children: [
|
|
18212
18176
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18213
18177
|
"button",
|
|
@@ -18269,13 +18233,13 @@ function AccountAddressesTab() {
|
|
|
18269
18233
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-6 bg-white rounded-xl", children: [
|
|
18270
18234
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6 flex items-center justify-between", children: [
|
|
18271
18235
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18272
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-
|
|
18273
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
18236
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Saved Addresses" }),
|
|
18237
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted", children: "Manage your delivery and billing addresses" })
|
|
18274
18238
|
] }),
|
|
18275
18239
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18276
18240
|
"button",
|
|
18277
18241
|
{
|
|
18278
|
-
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-
|
|
18242
|
+
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",
|
|
18279
18243
|
onClick: () => {
|
|
18280
18244
|
setEditingAddress(void 0);
|
|
18281
18245
|
setIsAddressModalOpen(true);
|
|
@@ -18306,8 +18270,8 @@ function AccountAddressesTab() {
|
|
|
18306
18270
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-3", children: [
|
|
18307
18271
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "justify-between flex items-center", children: [
|
|
18308
18272
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
18309
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "h-4 w-4 text-
|
|
18310
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-
|
|
18273
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "h-4 w-4 text-hsecondary" }),
|
|
18274
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-hsecondary", children: address.name }),
|
|
18311
18275
|
address.isDefault && /* @__PURE__ */ jsxRuntime.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" })
|
|
18312
18276
|
] }),
|
|
18313
18277
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
@@ -18318,7 +18282,7 @@ function AccountAddressesTab() {
|
|
|
18318
18282
|
setEditingAddress(address);
|
|
18319
18283
|
setIsAddressModalOpen(true);
|
|
18320
18284
|
},
|
|
18321
|
-
className: "inline-flex items-center gap-1 rounded-full border border-slate-200 px-2 py-1 text-xs font-medium text-
|
|
18285
|
+
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",
|
|
18322
18286
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Edit3, { className: "h-3 w-3" })
|
|
18323
18287
|
}
|
|
18324
18288
|
),
|
|
@@ -18333,18 +18297,18 @@ function AccountAddressesTab() {
|
|
|
18333
18297
|
)
|
|
18334
18298
|
] })
|
|
18335
18299
|
] }),
|
|
18336
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-
|
|
18300
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-hmuted mt-1", children: [
|
|
18337
18301
|
address.street1,
|
|
18338
18302
|
address.street2 && `, ${address.street2}`
|
|
18339
18303
|
] }),
|
|
18340
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-
|
|
18304
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-hmuted", children: [
|
|
18341
18305
|
address.city,
|
|
18342
18306
|
", ",
|
|
18343
18307
|
address.state,
|
|
18344
18308
|
" ",
|
|
18345
18309
|
address.zip
|
|
18346
18310
|
] }),
|
|
18347
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
18311
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted", children: address.country }),
|
|
18348
18312
|
address.phone && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-slate-500 mt-1", children: address.phone })
|
|
18349
18313
|
] })
|
|
18350
18314
|
},
|
|
@@ -18407,14 +18371,14 @@ function AccountSettingsTab() {
|
|
|
18407
18371
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-6 space-y-6", children: [
|
|
18408
18372
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-2xl border border-slate-200 bg-white p-6", children: [
|
|
18409
18373
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
18410
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "h-5 w-5 text-
|
|
18411
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-
|
|
18374
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "h-5 w-5 text-hsecondary" }),
|
|
18375
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: "Security" })
|
|
18412
18376
|
] }),
|
|
18413
18377
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
18414
18378
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between rounded-lg border border-slate-200 bg-slate-50 px-4 py-3", children: [
|
|
18415
18379
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18416
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-
|
|
18417
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-
|
|
18380
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-hsecondary", children: "Change Password" }),
|
|
18381
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-hmuted", children: "Update your account password" })
|
|
18418
18382
|
] }),
|
|
18419
18383
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18420
18384
|
Button,
|
|
@@ -18557,7 +18521,7 @@ function AccountReviewsTab() {
|
|
|
18557
18521
|
"button",
|
|
18558
18522
|
{
|
|
18559
18523
|
onClick: () => router.push(buildPath("/reviews")),
|
|
18560
|
-
className: "inline-flex items-center gap-2 px-4 py-2 border border-
|
|
18524
|
+
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",
|
|
18561
18525
|
children: [
|
|
18562
18526
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { className: "size-4" }),
|
|
18563
18527
|
"Write a Review"
|
|
@@ -18626,8 +18590,8 @@ function AccountPage() {
|
|
|
18626
18590
|
};
|
|
18627
18591
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen bg-linear-to-b from-[#F8FAFC] to-[#EBF4FB]", children: [
|
|
18628
18592
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 py-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
18629
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-semibold text-
|
|
18630
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
18593
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-semibold text-hsecondary", children: "My Account" }),
|
|
18594
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted", children: "Manage your profile, orders, and preferences" })
|
|
18631
18595
|
] }) }) }) }),
|
|
18632
18596
|
/* @__PURE__ */ jsxRuntime.jsx(TabNavigation, { tabs, activeTab, onTabChange: setActiveTab }),
|
|
18633
18597
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto max-w-7xl", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-2xl shadow-xs", children: renderTabContent() }) })
|
|
@@ -18684,7 +18648,7 @@ function OrderCard({ order, onDelete }) {
|
|
|
18684
18648
|
children: [
|
|
18685
18649
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between mb-4 pb-4 border-b border-gray-200", children: [
|
|
18686
18650
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
18687
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "text-base font-bold text-slate-900 group-hover:text-
|
|
18651
|
+
/* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "text-base font-bold text-slate-900 group-hover:text-hprimary transition-colors", children: [
|
|
18688
18652
|
"Order #",
|
|
18689
18653
|
(order._id || order.id || "").slice(-8).toUpperCase()
|
|
18690
18654
|
] }),
|
|
@@ -18757,7 +18721,7 @@ function OrderCard({ order, onDelete }) {
|
|
|
18757
18721
|
e.stopPropagation();
|
|
18758
18722
|
window.open(order?.payment?.hostedInvoiceUrl || "", "_blank");
|
|
18759
18723
|
},
|
|
18760
|
-
className: "inline-flex items-center gap-2 rounded-full border-2 border-
|
|
18724
|
+
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",
|
|
18761
18725
|
onPointerDown: (e) => e.stopPropagation(),
|
|
18762
18726
|
children: [
|
|
18763
18727
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: "w-4 h-4" }),
|
|
@@ -18837,7 +18801,7 @@ function FilterChips({
|
|
|
18837
18801
|
{
|
|
18838
18802
|
type: "button",
|
|
18839
18803
|
onClick: () => onSelect("All"),
|
|
18840
|
-
className: "ml-auto text-xs text-
|
|
18804
|
+
className: "ml-auto text-xs text-hprimary-600 hover:text-hprimary-700 font-medium",
|
|
18841
18805
|
children: "Clear"
|
|
18842
18806
|
}
|
|
18843
18807
|
)
|
|
@@ -18850,7 +18814,7 @@ function FilterChips({
|
|
|
18850
18814
|
{
|
|
18851
18815
|
type: "button",
|
|
18852
18816
|
onClick: () => onSelect(filter),
|
|
18853
|
-
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-
|
|
18817
|
+
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"}`,
|
|
18854
18818
|
children: [
|
|
18855
18819
|
filter,
|
|
18856
18820
|
isSelected && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-3.5 w-3.5" })
|
|
@@ -18865,7 +18829,7 @@ function FilterChips({
|
|
|
18865
18829
|
{
|
|
18866
18830
|
type: "button",
|
|
18867
18831
|
onClick: () => setIsOverflowOpen((prev) => !prev),
|
|
18868
|
-
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-
|
|
18832
|
+
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"}`,
|
|
18869
18833
|
children: [
|
|
18870
18834
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: overflowFilters.includes(selected) ? selected : "More" }),
|
|
18871
18835
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `h-3.5 w-3.5 transition-transform ${isOverflowOpen ? "rotate-180" : ""}` })
|
|
@@ -18890,7 +18854,7 @@ function FilterChips({
|
|
|
18890
18854
|
onSelect(filter);
|
|
18891
18855
|
setIsOverflowOpen(false);
|
|
18892
18856
|
},
|
|
18893
|
-
className: `flex w-full items-center justify-between rounded-md px-3 py-2 text-sm font-medium transition ${isSelected ? isPrimary ? "bg-
|
|
18857
|
+
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"}`,
|
|
18894
18858
|
children: [
|
|
18895
18859
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: filter }),
|
|
18896
18860
|
isSelected && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" })
|
|
@@ -19012,9 +18976,9 @@ function OrdersScreen() {
|
|
|
19012
18976
|
className: "space-y-6",
|
|
19013
18977
|
children: [
|
|
19014
18978
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-8", children: [
|
|
19015
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-black text-
|
|
19016
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-
|
|
19017
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-
|
|
18979
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-black text-hsecondary tracking-tight", children: "Order History" }),
|
|
18980
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-hmuted mt-1 flex items-center gap-2", children: [
|
|
18981
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-haccent animate-pulse" }),
|
|
19018
18982
|
filteredOrders.length,
|
|
19019
18983
|
" ",
|
|
19020
18984
|
filteredOrders.length === 1 ? "record found" : "records found",
|
|
@@ -19191,21 +19155,21 @@ function CurrentOrdersScreen() {
|
|
|
19191
19155
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold text-slate-900", children: "Real-time milestones" }),
|
|
19192
19156
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 space-y-4 text-sm text-slate-600", children: [
|
|
19193
19157
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 rounded-2xl bg-slate-50 p-4", children: [
|
|
19194
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Warehouse, { className: "h-5 w-5 text-
|
|
19158
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Warehouse, { className: "h-5 w-5 text-hprimary-500" }),
|
|
19195
19159
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
19196
19160
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-slate-800", children: "Preparation" }),
|
|
19197
19161
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Our pharmacists verify ingredients and pack thermo-sensitive items." })
|
|
19198
19162
|
] })
|
|
19199
19163
|
] }),
|
|
19200
19164
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 rounded-2xl bg-slate-50 p-4", children: [
|
|
19201
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "h-5 w-5 text-
|
|
19165
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Truck, { className: "h-5 w-5 text-hprimary-500" }),
|
|
19202
19166
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
19203
19167
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-slate-800", children: "In transit" }),
|
|
19204
19168
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Track live courier location with ETA updates tailored to your delivery window." })
|
|
19205
19169
|
] })
|
|
19206
19170
|
] }),
|
|
19207
19171
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3 rounded-2xl bg-slate-50 p-4", children: [
|
|
19208
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.BellRing, { className: "h-5 w-5 text-
|
|
19172
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.BellRing, { className: "h-5 w-5 text-hprimary-500" }),
|
|
19209
19173
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
19210
19174
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold text-slate-800", children: "Arrival alerts" }),
|
|
19211
19175
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Receive SMS and email notifications when parcels are out for delivery." })
|
|
@@ -19213,7 +19177,7 @@ function CurrentOrdersScreen() {
|
|
|
19213
19177
|
] })
|
|
19214
19178
|
] })
|
|
19215
19179
|
] }),
|
|
19216
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-3xl border border-
|
|
19180
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-3xl border border-hprimary-100 bg-hprimary-50/70 p-6 text-sm text-hprimary-700 shadow-xs", children: [
|
|
19217
19181
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold uppercase tracking-[0.3em]", children: "Need support?" }),
|
|
19218
19182
|
/* @__PURE__ */ jsxRuntime.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." })
|
|
19219
19183
|
] })
|
|
@@ -19419,7 +19383,7 @@ You can add it back at any time.`
|
|
|
19419
19383
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-semibold md:text-4xl", children: "Manage where your care arrives" }),
|
|
19420
19384
|
/* @__PURE__ */ jsxRuntime.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." }),
|
|
19421
19385
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-3 text-xs text-slate-500", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-2 rounded-full border border-slate-200 bg-slate-50 px-3 py-2", children: [
|
|
19422
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4 text-
|
|
19386
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4 text-hprimary-600" }),
|
|
19423
19387
|
"Default: ",
|
|
19424
19388
|
defaultAddress ? defaultAddress.name : "Not set"
|
|
19425
19389
|
] }) })
|
|
@@ -19487,14 +19451,14 @@ You can add it back at any time.`
|
|
|
19487
19451
|
{
|
|
19488
19452
|
initial: { opacity: 0, y: 24 },
|
|
19489
19453
|
animate: { opacity: 1, y: 0 },
|
|
19490
|
-
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-
|
|
19454
|
+
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",
|
|
19491
19455
|
children: [
|
|
19492
19456
|
address.isDefault && /* @__PURE__ */ jsxRuntime.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: [
|
|
19493
19457
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Crown, { className: "h-4 w-4" }),
|
|
19494
19458
|
"Default"
|
|
19495
19459
|
] }),
|
|
19496
19460
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
19497
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-
|
|
19461
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-hprimary-50 p-3 text-hprimary-600", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-5 w-5" }) }),
|
|
19498
19462
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
19499
19463
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base font-semibold text-slate-900", children: address.name }),
|
|
19500
19464
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs uppercase tracking-[0.3em] text-slate-400", children: typeCopy.label })
|
|
@@ -19513,7 +19477,7 @@ You can add it back at any time.`
|
|
|
19513
19477
|
{
|
|
19514
19478
|
type: "button",
|
|
19515
19479
|
onClick: () => openEditModal(address),
|
|
19516
|
-
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-
|
|
19480
|
+
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",
|
|
19517
19481
|
children: [
|
|
19518
19482
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Edit3, { className: "h-4 w-4" }),
|
|
19519
19483
|
"Edit"
|
|
@@ -19646,7 +19610,7 @@ You can add it back at any time.`
|
|
|
19646
19610
|
"select",
|
|
19647
19611
|
{
|
|
19648
19612
|
...register("addressType"),
|
|
19649
|
-
className: "rounded-xl border border-slate-200 px-3 py-2 text-sm text-slate-700 focus:border-
|
|
19613
|
+
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",
|
|
19650
19614
|
children: [
|
|
19651
19615
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "Shipping", children: "Shipping" }),
|
|
19652
19616
|
/* @__PURE__ */ jsxRuntime.jsx("option", { value: "Billing", children: "Billing" }),
|
|
@@ -19662,7 +19626,7 @@ You can add it back at any time.`
|
|
|
19662
19626
|
{
|
|
19663
19627
|
type: "checkbox",
|
|
19664
19628
|
...register("isDefault"),
|
|
19665
|
-
className: "h-4 w-4 rounded-sm border-
|
|
19629
|
+
className: "h-4 w-4 rounded-sm border-hprimary-300 text-hprimary-600 focus:ring-hprimary-500"
|
|
19666
19630
|
}
|
|
19667
19631
|
)
|
|
19668
19632
|
] })
|
|
@@ -19827,25 +19791,25 @@ function WishlistScreen() {
|
|
|
19827
19791
|
className: "space-y-6",
|
|
19828
19792
|
children: [
|
|
19829
19793
|
!isAuthenticated && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-[40vh] items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-lg text-center space-y-6", children: [
|
|
19830
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heart, { className: "h-12 w-12 text-
|
|
19794
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heart, { className: "h-12 w-12 text-hsecondary" }) }) }),
|
|
19831
19795
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
19832
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-bold text-
|
|
19833
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-
|
|
19796
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-bold text-hsecondary", children: "Sign in to see your favourites" }),
|
|
19797
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-hmuted", children: "Create your curated shelf of products and we'll keep them ready whenever you return." })
|
|
19834
19798
|
] }),
|
|
19835
19799
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19836
19800
|
"button",
|
|
19837
19801
|
{
|
|
19838
19802
|
type: "button",
|
|
19839
19803
|
onClick: () => router.push(buildPath("/login")),
|
|
19840
|
-
className: "rounded-xl border-2 border-
|
|
19804
|
+
className: "rounded-xl border-2 border-hprimary bg-hprimary text-white px-6 py-3 text-sm font-medium transition-colors hover:opacity-80",
|
|
19841
19805
|
children: "Sign In"
|
|
19842
19806
|
}
|
|
19843
19807
|
)
|
|
19844
19808
|
] }) }),
|
|
19845
19809
|
isAuthenticated && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
19846
19810
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
19847
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold text-
|
|
19848
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-
|
|
19811
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-bold text-hsecondary", children: "Wishlist" }),
|
|
19812
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm text-hmuted mt-1", children: [
|
|
19849
19813
|
wishlistCount,
|
|
19850
19814
|
" ",
|
|
19851
19815
|
wishlistCount === 1 ? "item" : "items",
|
|
@@ -19854,16 +19818,16 @@ function WishlistScreen() {
|
|
|
19854
19818
|
] })
|
|
19855
19819
|
] }),
|
|
19856
19820
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between mb-6", children: [
|
|
19857
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1", children: onlyInStock && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
19821
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1", children: onlyInStock && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted", children: "Showing items ready to ship" }) }),
|
|
19858
19822
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
19859
|
-
/* @__PURE__ */ jsxRuntime.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-
|
|
19823
|
+
/* @__PURE__ */ jsxRuntime.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: [
|
|
19860
19824
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19861
19825
|
"input",
|
|
19862
19826
|
{
|
|
19863
19827
|
type: "checkbox",
|
|
19864
19828
|
checked: onlyInStock,
|
|
19865
19829
|
onChange: (event) => setOnlyInStock(event.target.checked),
|
|
19866
|
-
className: "h-4 w-4 rounded-sm border-slate-300 text-
|
|
19830
|
+
className: "h-4 w-4 rounded-sm border-slate-300 text-hsecondary focus:ring-hsecondary"
|
|
19867
19831
|
}
|
|
19868
19832
|
),
|
|
19869
19833
|
"Only show in-stock"
|
|
@@ -19886,7 +19850,7 @@ function WishlistScreen() {
|
|
|
19886
19850
|
{
|
|
19887
19851
|
type: "button",
|
|
19888
19852
|
onClick: () => setViewMode("grid"),
|
|
19889
|
-
className: `flex items-center gap-1 px-3 py-1.5 text-sm font-medium transition rounded-full ${viewMode === "grid" ? "bg-white text-
|
|
19853
|
+
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"}`,
|
|
19890
19854
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Grid, { className: "h-4 w-4" })
|
|
19891
19855
|
}
|
|
19892
19856
|
),
|
|
@@ -19895,7 +19859,7 @@ function WishlistScreen() {
|
|
|
19895
19859
|
{
|
|
19896
19860
|
type: "button",
|
|
19897
19861
|
onClick: () => setViewMode("list"),
|
|
19898
|
-
className: `flex items-center gap-1 px-3 py-1.5 text-sm font-medium transition rounded-full ${viewMode === "list" ? "bg-white text-
|
|
19862
|
+
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"}`,
|
|
19899
19863
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.List, { className: "h-4 w-4" })
|
|
19900
19864
|
}
|
|
19901
19865
|
)
|
|
@@ -19922,17 +19886,17 @@ function WishlistScreen() {
|
|
|
19922
19886
|
index
|
|
19923
19887
|
)) }),
|
|
19924
19888
|
!isLoading && wishlistCount === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-[30vh] items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center space-y-6 max-w-md", children: [
|
|
19925
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heart, { className: "h-12 w-12 text-
|
|
19889
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-full bg-gray-100 p-6", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heart, { className: "h-12 w-12 text-hsecondary" }) }) }),
|
|
19926
19890
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
19927
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-bold text-
|
|
19928
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-
|
|
19891
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-bold text-hsecondary", children: "Your wishlist is empty" }),
|
|
19892
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-hmuted", children: "Start adding products to your wishlist to see them here." })
|
|
19929
19893
|
] }),
|
|
19930
19894
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap justify-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19931
19895
|
"button",
|
|
19932
19896
|
{
|
|
19933
19897
|
type: "button",
|
|
19934
19898
|
onClick: () => router.push(buildPath("/shop")),
|
|
19935
|
-
className: "rounded-xl border-2 border-
|
|
19899
|
+
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",
|
|
19936
19900
|
children: "Discover products"
|
|
19937
19901
|
}
|
|
19938
19902
|
) })
|
|
@@ -19985,11 +19949,11 @@ function WishlistScreen() {
|
|
|
19985
19949
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
19986
19950
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
19987
19951
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
19988
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-
|
|
19989
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
19952
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold text-hsecondary", children: product.name }),
|
|
19953
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted", children: "General wellness" })
|
|
19990
19954
|
] }),
|
|
19991
19955
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-right", children: [
|
|
19992
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-bold text-
|
|
19956
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg font-bold text-hprimary", children: formatPrice(product.summary?.minPrice ?? 0) }),
|
|
19993
19957
|
product.summary?.hasDiscount && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-emerald-500", children: [
|
|
19994
19958
|
"You save ",
|
|
19995
19959
|
formatPrice(Math.max((product.summary?.maxPrice ?? 0) - (product.summary?.minPrice ?? 0), 0))
|
|
@@ -20013,7 +19977,7 @@ function WishlistScreen() {
|
|
|
20013
19977
|
{
|
|
20014
19978
|
size: "sm",
|
|
20015
19979
|
onClick: () => router.push(buildPath(`/products/${product._id}`)),
|
|
20016
|
-
className: "bg-
|
|
19980
|
+
className: "bg-hprimary-90 text-white hover:bg-hprimary-70",
|
|
20017
19981
|
children: "View details"
|
|
20018
19982
|
}
|
|
20019
19983
|
),
|
|
@@ -20033,13 +19997,13 @@ function WishlistScreen() {
|
|
|
20033
19997
|
)) }) }) }),
|
|
20034
19998
|
isAuthenticated && emptyAfterFiltering && /* @__PURE__ */ jsxRuntime.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: [
|
|
20035
19999
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full bg-gray-200 text-gray-500", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "h-8 w-8" }) }),
|
|
20036
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mt-6 text-xl font-semibold text-
|
|
20037
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 max-w-md text-sm text-
|
|
20000
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mt-6 text-xl font-semibold text-hsecondary", children: "Nothing matches those filters" }),
|
|
20001
|
+
/* @__PURE__ */ jsxRuntime.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." }),
|
|
20038
20002
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20039
20003
|
"button",
|
|
20040
20004
|
{
|
|
20041
20005
|
type: "button",
|
|
20042
|
-
className: "mt-6 rounded-xl border-2 border-
|
|
20006
|
+
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",
|
|
20043
20007
|
onClick: () => setOnlyInStock(false),
|
|
20044
20008
|
children: "Show all saved products"
|
|
20045
20009
|
}
|
|
@@ -20218,7 +20182,7 @@ function SearchPage() {
|
|
|
20218
20182
|
onFocus: handleInputFocus,
|
|
20219
20183
|
onBlur: () => setTimeout(() => setShowSuggestions(false), 200),
|
|
20220
20184
|
placeholder: "Search for products...",
|
|
20221
|
-
className: "pl-10 pr-10 py-6 text-base rounded-lg border-gray-300 focus:ring-2 focus:ring-
|
|
20185
|
+
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",
|
|
20222
20186
|
autoComplete: "off"
|
|
20223
20187
|
}
|
|
20224
20188
|
),
|
|
@@ -20252,7 +20216,7 @@ function SearchPage() {
|
|
|
20252
20216
|
onClick: () => handleSuggestionClick(suggestion),
|
|
20253
20217
|
className: "w-full text-left px-3 py-2.5 hover:bg-gray-50 rounded-md transition-colors flex items-center gap-2 group",
|
|
20254
20218
|
children: [
|
|
20255
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "h-4 w-4 text-gray-400 group-hover:text-
|
|
20219
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "h-4 w-4 text-gray-400 group-hover:text-hprimary-500" }),
|
|
20256
20220
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-gray-700 group-hover:text-gray-900", children: suggestion })
|
|
20257
20221
|
]
|
|
20258
20222
|
},
|
|
@@ -20271,7 +20235,7 @@ function SearchPage() {
|
|
|
20271
20235
|
onClick: () => handleSuggestionClick(search),
|
|
20272
20236
|
className: "w-full text-left px-3 py-2.5 hover:bg-gray-50 rounded-md transition-colors flex items-center gap-2 group",
|
|
20273
20237
|
children: [
|
|
20274
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "h-4 w-4 text-gray-400 group-hover:text-
|
|
20238
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "h-4 w-4 text-gray-400 group-hover:text-hprimary-500" }),
|
|
20275
20239
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-gray-700 group-hover:text-gray-900", children: search })
|
|
20276
20240
|
]
|
|
20277
20241
|
},
|
|
@@ -20286,7 +20250,7 @@ function SearchPage() {
|
|
|
20286
20250
|
"button",
|
|
20287
20251
|
{
|
|
20288
20252
|
type: "submit",
|
|
20289
|
-
className: "mt-4 w-full bg-
|
|
20253
|
+
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",
|
|
20290
20254
|
disabled: !searchInput.trim(),
|
|
20291
20255
|
children: "Search"
|
|
20292
20256
|
}
|
|
@@ -20328,7 +20292,7 @@ function SearchPage() {
|
|
|
20328
20292
|
Link9__default.default,
|
|
20329
20293
|
{
|
|
20330
20294
|
href: buildPath("/shop"),
|
|
20331
|
-
className: "px-6 py-2.5 bg-
|
|
20295
|
+
className: "px-6 py-2.5 bg-hprimary-600 text-white rounded-lg hover:bg-hprimary-700 transition-colors font-medium",
|
|
20332
20296
|
children: "Browse All Products"
|
|
20333
20297
|
}
|
|
20334
20298
|
) }),
|
|
@@ -20345,7 +20309,7 @@ function SearchPage() {
|
|
|
20345
20309
|
)) })
|
|
20346
20310
|
] })
|
|
20347
20311
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center py-12", children: [
|
|
20348
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 bg-
|
|
20312
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 bg-hprimary-50 rounded-full flex items-center justify-center mx-auto mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "h-8 w-8 text-hprimary-500" }) }),
|
|
20349
20313
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-semibold text-gray-900 mb-2", children: "Start Searching" }),
|
|
20350
20314
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-gray-500 mb-6", children: "Enter a search term above to find products" }),
|
|
20351
20315
|
recentSearches.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-md mx-auto", children: [
|
|
@@ -20597,7 +20561,7 @@ function EditProfileScreen() {
|
|
|
20597
20561
|
className: "mx-auto max-w-3xl rounded-3xl border border-slate-200 bg-white p-8 shadow-xl shadow-primary-50",
|
|
20598
20562
|
children: [
|
|
20599
20563
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
20600
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-11 w-11 items-center justify-center rounded-2xl bg-
|
|
20564
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-11 w-11 items-center justify-center rounded-2xl bg-hprimary-50 text-hprimary-600", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-5 w-5" }) }),
|
|
20601
20565
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
20602
20566
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold uppercase tracking-[0.32em] text-slate-500", children: "Profile" }),
|
|
20603
20567
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-semibold text-slate-900", children: "Edit core information" })
|
|
@@ -21342,15 +21306,15 @@ function OrderDetailScreen({ id }) {
|
|
|
21342
21306
|
}, [order]);
|
|
21343
21307
|
if (isLoading) {
|
|
21344
21308
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen bg-slate-50 flex flex-col items-center justify-center p-4", children: [
|
|
21345
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 border-4 border-
|
|
21346
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-
|
|
21309
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-16 h-16 border-4 border-hprimary-20 border-t-primary rounded-full animate-spin mb-4" }),
|
|
21310
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-hmuted font-medium animate-pulse", children: "Retrieving order details..." })
|
|
21347
21311
|
] });
|
|
21348
21312
|
}
|
|
21349
21313
|
if (error || !order) {
|
|
21350
21314
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-screen bg-slate-50 flex flex-col items-center justify-center p-4", children: [
|
|
21351
21315
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-red-50 rounded-full mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "w-10 h-10 text-red-500" }) }),
|
|
21352
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-xl font-bold text-
|
|
21353
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-
|
|
21316
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-xl font-bold text-hsecondary mb-2", children: "Order Not Found" }),
|
|
21317
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-hmuted mb-6", children: "We couldn't find the order you're looking for." }),
|
|
21354
21318
|
/* @__PURE__ */ jsxRuntime.jsx(Button, { onClick: () => router.push(buildPath("/account")), children: "Back to Account" })
|
|
21355
21319
|
] });
|
|
21356
21320
|
}
|
|
@@ -21382,7 +21346,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21382
21346
|
"button",
|
|
21383
21347
|
{
|
|
21384
21348
|
onClick: () => router.back(),
|
|
21385
|
-
className: "group flex items-center gap-2 text-
|
|
21349
|
+
className: "group flex items-center gap-2 text-hmuted hover:text-hsecondary transition-colors mb-6",
|
|
21386
21350
|
children: [
|
|
21387
21351
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-1.5 rounded-full bg-white shadow-xs group-hover:shadow-md transition-all", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "w-4 h-4" }) }),
|
|
21388
21352
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-semibold", children: "Back to History" })
|
|
@@ -21392,14 +21356,14 @@ function OrderDetailScreen({ id }) {
|
|
|
21392
21356
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col md:flex-row md:items-end justify-between gap-6 mb-8", children: [
|
|
21393
21357
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21394
21358
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 mb-2", children: [
|
|
21395
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-bold text-
|
|
21359
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl font-bold text-hsecondary", children: "Order Details" }),
|
|
21396
21360
|
/* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: getStatusVariant(status), children: status }),
|
|
21397
|
-
/* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "primary", className: "bg-
|
|
21361
|
+
/* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "primary", className: "bg-hprimary-100 text-hprimary-700 border-hprimary-200", children: order.orderType || "Pickup" })
|
|
21398
21362
|
] }),
|
|
21399
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-
|
|
21363
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-hmuted", children: [
|
|
21400
21364
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1.5 font-medium", children: [
|
|
21401
21365
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "opacity-60 text-xs uppercase tracking-widest font-bold", children: "ID:" }),
|
|
21402
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-
|
|
21366
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-hsecondary font-mono tracking-tight", children: [
|
|
21403
21367
|
"#",
|
|
21404
21368
|
id.toUpperCase()
|
|
21405
21369
|
] })
|
|
@@ -21410,7 +21374,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21410
21374
|
] })
|
|
21411
21375
|
] })
|
|
21412
21376
|
] }),
|
|
21413
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-3", children: order.payment?.hostedInvoiceUrl && /* @__PURE__ */ jsxRuntime.jsxs(Button, { size: "sm", onClick: () => window.open(order.payment?.hostedInvoiceUrl, "_blank"), className: "bg-
|
|
21377
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-3", children: order.payment?.hostedInvoiceUrl && /* @__PURE__ */ jsxRuntime.jsxs(Button, { size: "sm", onClick: () => window.open(order.payment?.hostedInvoiceUrl, "_blank"), className: "bg-haccent hover:bg-haccent-dark border-none", children: [
|
|
21414
21378
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ExternalLink, { className: "w-4 h-4" }),
|
|
21415
21379
|
"Payment Details"
|
|
21416
21380
|
] }) })
|
|
@@ -21427,10 +21391,10 @@ function OrderDetailScreen({ id }) {
|
|
|
21427
21391
|
children: [
|
|
21428
21392
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-6 border-b border-slate-100 bg-slate-50/50 flex items-center justify-between", children: [
|
|
21429
21393
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
21430
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "w-5 h-5 text-
|
|
21431
|
-
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-bold text-
|
|
21394
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Package, { className: "w-5 h-5 text-hsecondary" }),
|
|
21395
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-bold text-hsecondary", children: "Order Items" })
|
|
21432
21396
|
] }),
|
|
21433
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs font-bold bg-slate-200 text-
|
|
21397
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs font-bold bg-slate-200 text-hmuted px-2.5 py-1 rounded-full", children: [
|
|
21434
21398
|
items.length,
|
|
21435
21399
|
" ",
|
|
21436
21400
|
items.length === 1 ? "Product" : "Products"
|
|
@@ -21449,19 +21413,19 @@ function OrderDetailScreen({ id }) {
|
|
|
21449
21413
|
) }),
|
|
21450
21414
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 flex flex-col justify-between py-1", children: [
|
|
21451
21415
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21452
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-bold text-
|
|
21453
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-x-4 gap-y-1 text-sm text-
|
|
21416
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-bold text-hsecondary text-lg group-hover:text-hprimary transition-colors leading-snug mb-1", children: item.productVariantData?.name }),
|
|
21417
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-x-4 gap-y-1 text-sm text-hmuted", children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1.5", children: [
|
|
21454
21418
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-slate-300" }),
|
|
21455
21419
|
"Quantity: ",
|
|
21456
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
21420
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-hsecondary font-bold", children: item.quantity })
|
|
21457
21421
|
] }) })
|
|
21458
21422
|
] }),
|
|
21459
21423
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
21460
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-
|
|
21424
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-hmuted text-sm", children: [
|
|
21461
21425
|
formatPrice(item.productVariantData?.finalPrice || 0),
|
|
21462
21426
|
" per unit"
|
|
21463
21427
|
] }),
|
|
21464
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-black text-
|
|
21428
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-black text-hsecondary", children: formatPrice((item.productVariantData?.finalPrice || 0) * item.quantity) })
|
|
21465
21429
|
] })
|
|
21466
21430
|
] })
|
|
21467
21431
|
] }, item._id || idx)) })
|
|
@@ -21471,11 +21435,11 @@ function OrderDetailScreen({ id }) {
|
|
|
21471
21435
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
21472
21436
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white p-6 rounded-3xl border border-slate-200 shadow-xs", children: [
|
|
21473
21437
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
21474
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-5 h-5 text-
|
|
21475
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-bold text-
|
|
21438
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-5 h-5 text-haccent" }),
|
|
21439
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-bold text-hsecondary", children: isDelivery ? "Shipping Address" : "Pickup Location" })
|
|
21476
21440
|
] }),
|
|
21477
|
-
activeAddress ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm text-
|
|
21478
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-bold text-
|
|
21441
|
+
activeAddress ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm text-hmuted leading-relaxed", children: [
|
|
21442
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-bold text-hsecondary text-base mb-1", children: activeAddress.name }),
|
|
21479
21443
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: activeAddress.street1 }),
|
|
21480
21444
|
activeAddress.street2 && /* @__PURE__ */ jsxRuntime.jsx("p", { children: activeAddress.street2 }),
|
|
21481
21445
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
@@ -21486,15 +21450,15 @@ function OrderDetailScreen({ id }) {
|
|
|
21486
21450
|
activeAddress.zip
|
|
21487
21451
|
] }),
|
|
21488
21452
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: activeAddress.country })
|
|
21489
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
21453
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-hmuted italic", children: "No address recorded" })
|
|
21490
21454
|
] }),
|
|
21491
21455
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-white p-6 rounded-3xl border border-slate-200 shadow-xs", children: [
|
|
21492
21456
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 mb-4", children: [
|
|
21493
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: "w-5 h-5 text-
|
|
21494
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-bold text-
|
|
21457
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.CreditCard, { className: "w-5 h-5 text-haccent" }),
|
|
21458
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-bold text-hsecondary", children: "Payment Method" })
|
|
21495
21459
|
] }),
|
|
21496
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm text-
|
|
21497
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-bold text-
|
|
21460
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-sm text-hmuted leading-relaxed", children: [
|
|
21461
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-bold text-hsecondary text-base mb-1", children: order.payment?.paymentMethod ? order.payment.paymentMethod.replace("_", " ").toUpperCase() : "N/A" }),
|
|
21498
21462
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-2 mt-2", children: [
|
|
21499
21463
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "opacity-60", children: "Status:" }),
|
|
21500
21464
|
/* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: order.payment?.paymentStatus === "Paid" ? "success" : "warning", children: order.payment?.paymentStatus || "Processing" })
|
|
@@ -21512,7 +21476,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21512
21476
|
{
|
|
21513
21477
|
initial: { opacity: 0, x: 20 },
|
|
21514
21478
|
animate: { opacity: 1, x: 0 },
|
|
21515
|
-
className: "bg-
|
|
21479
|
+
className: "bg-hsecondary p-8 rounded-[2rem] text-white shadow-xl shadow-secondary-20 sticky top-8",
|
|
21516
21480
|
children: [
|
|
21517
21481
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-bold mb-6 flex items-center gap-2", children: "Summary View" }),
|
|
21518
21482
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4 mb-8", children: [
|
|
@@ -21528,7 +21492,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21528
21492
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Tax" }),
|
|
21529
21493
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-bold text-white", children: formatPrice(order.tax || 0) })
|
|
21530
21494
|
] }),
|
|
21531
|
-
order.discountedAmount !== void 0 && order.discountedAmount > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center text-
|
|
21495
|
+
order.discountedAmount !== void 0 && order.discountedAmount > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center text-hprimary", children: [
|
|
21532
21496
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium", children: "Discount" }),
|
|
21533
21497
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-bold", children: [
|
|
21534
21498
|
"-",
|
|
@@ -21544,7 +21508,7 @@ function OrderDetailScreen({ id }) {
|
|
|
21544
21508
|
] }) })
|
|
21545
21509
|
] }),
|
|
21546
21510
|
order.orderStatus === "Pending" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-4 bg-white/5 rounded-2xl border border-white/10 mb-8", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
21547
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Info, { className: "w-5 h-5 text-
|
|
21511
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Info, { className: "w-5 h-5 text-hprimary shrink-0 mt-0.5" }),
|
|
21548
21512
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21549
21513
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-bold mb-1", children: "Order is processing" }),
|
|
21550
21514
|
/* @__PURE__ */ jsxRuntime.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." })
|
|
@@ -21608,7 +21572,7 @@ function ChangePasswordScreen() {
|
|
|
21608
21572
|
className: "mx-auto max-w-2xl rounded-3xl border border-slate-200 bg-white p-8 shadow-xl shadow-primary-50",
|
|
21609
21573
|
children: [
|
|
21610
21574
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
21611
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-11 w-11 items-center justify-center rounded-2xl bg-
|
|
21575
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-11 w-11 items-center justify-center rounded-2xl bg-hprimary-50 text-hprimary-600", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Lock, { className: "h-5 w-5" }) }),
|
|
21612
21576
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21613
21577
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold uppercase tracking-[0.32em] text-slate-500", children: "Security" }),
|
|
21614
21578
|
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-2xl font-semibold text-slate-900", children: "Change password" })
|
|
@@ -21681,7 +21645,7 @@ function ChangePasswordScreen() {
|
|
|
21681
21645
|
] })
|
|
21682
21646
|
] }),
|
|
21683
21647
|
/* @__PURE__ */ jsxRuntime.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: [
|
|
21684
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "h-4 w-4 text-
|
|
21648
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "h-4 w-4 text-hprimary-600" }),
|
|
21685
21649
|
"Strong passwords and up-to-date contact details help pharmacists verify changes quickly."
|
|
21686
21650
|
] })
|
|
21687
21651
|
]
|
|
@@ -21896,7 +21860,7 @@ function NotificationModal() {
|
|
|
21896
21860
|
style: { maxHeight: "calc(100vh - 120px)" },
|
|
21897
21861
|
children: [
|
|
21898
21862
|
/* @__PURE__ */ jsxRuntime.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" }),
|
|
21899
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between px-4 py-3 border-b bg-gradient-to-r from-
|
|
21863
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between px-4 py-3 border-b bg-gradient-to-r from-hprimary-50 to-white", children: [
|
|
21900
21864
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
21901
21865
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21902
21866
|
"h2",
|
|
@@ -21997,7 +21961,7 @@ function NotificationBell() {
|
|
|
21997
21961
|
id: "notification-bell-button",
|
|
21998
21962
|
onClick: handleToggle,
|
|
21999
21963
|
onMouseDown: (e) => e.stopPropagation(),
|
|
22000
|
-
className: `relative p-2.5 rounded-xl transition-all duration-300 group flex items-center justify-center ${isDrawerOpen ? "bg-
|
|
21964
|
+
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"}`,
|
|
22001
21965
|
"aria-label": "Notifications",
|
|
22002
21966
|
whileHover: isDrawerOpen ? {} : { scale: 1.05 },
|
|
22003
21967
|
whileTap: { scale: 0.95 },
|
|
@@ -22005,7 +21969,7 @@ function NotificationBell() {
|
|
|
22005
21969
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22006
21970
|
lucideReact.Bell,
|
|
22007
21971
|
{
|
|
22008
|
-
className: `w-6 h-6 transition-colors duration-300 ${isDrawerOpen ? "text-
|
|
21972
|
+
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"}`,
|
|
22009
21973
|
strokeWidth: 2
|
|
22010
21974
|
}
|
|
22011
21975
|
),
|
|
@@ -22091,10 +22055,10 @@ function Header() {
|
|
|
22091
22055
|
Link9__default.default,
|
|
22092
22056
|
{
|
|
22093
22057
|
href: link.href,
|
|
22094
|
-
className: "text-gray-700 hover:text-
|
|
22058
|
+
className: "text-gray-700 hover:text-hprimary-600 font-medium transition-colors relative group",
|
|
22095
22059
|
children: [
|
|
22096
22060
|
link.label,
|
|
22097
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute bottom-0 left-0 w-0 h-0.5 bg-
|
|
22061
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute bottom-0 left-0 w-0 h-0.5 bg-hprimary-600 group-hover:w-full transition-all duration-300" })
|
|
22098
22062
|
]
|
|
22099
22063
|
},
|
|
22100
22064
|
link.href
|
|
@@ -22159,7 +22123,7 @@ function Header() {
|
|
|
22159
22123
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Heart, { className: "w-6 h-6" }),
|
|
22160
22124
|
wishlistCount > 0 && /* @__PURE__ */ jsxRuntime.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 })
|
|
22161
22125
|
] }),
|
|
22162
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Link9__default.default, { href: buildPath("/cart"), className: "relative p-2 text-gray-700 hover:text-
|
|
22126
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Link9__default.default, { href: buildPath("/cart"), className: "relative p-2 text-gray-700 hover:text-hprimary-600 transition-colors", children: [
|
|
22163
22127
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShoppingCart, { className: "w-6 h-6" }),
|
|
22164
22128
|
cart?.cartBody?.items?.length && cart.cartBody?.items?.length > 0 ? /* @__PURE__ */ jsxRuntime.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
|
|
22165
22129
|
] }),
|
|
@@ -22170,7 +22134,7 @@ function Header() {
|
|
|
22170
22134
|
onClick: () => setIsDropdownOpen(!isDropdownOpen),
|
|
22171
22135
|
className: "flex items-center gap-2 rounded-full border border-slate-200 bg-white px-3 py-2 hover:bg-slate-50 transition-colors",
|
|
22172
22136
|
children: [
|
|
22173
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-7 w-7 items-center justify-center rounded-full bg-
|
|
22137
|
+
/* @__PURE__ */ jsxRuntime.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 || "") }),
|
|
22174
22138
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: `h-4 w-4 text-slate-400 transition-transform ${isDropdownOpen ? "rotate-180" : ""}` })
|
|
22175
22139
|
]
|
|
22176
22140
|
}
|
|
@@ -22185,7 +22149,7 @@ function Header() {
|
|
|
22185
22149
|
),
|
|
22186
22150
|
/* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsxs("div", { className: "p-2", children: [
|
|
22187
22151
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-3 py-2 border-b border-slate-200 mb-1", children: [
|
|
22188
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-
|
|
22152
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm font-medium text-hsecondary truncate", children: [
|
|
22189
22153
|
user?.firstname,
|
|
22190
22154
|
" ",
|
|
22191
22155
|
user?.lastname
|
|
@@ -22223,7 +22187,7 @@ function Header() {
|
|
|
22223
22187
|
Link9__default.default,
|
|
22224
22188
|
{
|
|
22225
22189
|
href: buildPath("/login"),
|
|
22226
|
-
className: "hidden sm:block px-4 py-2 bg-
|
|
22190
|
+
className: "hidden sm:block px-4 py-2 bg-hprimary-600 text-white rounded-lg hover:bg-hprimary-700 transition-colors font-medium",
|
|
22227
22191
|
children: "Sign In"
|
|
22228
22192
|
}
|
|
22229
22193
|
)
|
|
@@ -22260,7 +22224,7 @@ function Header() {
|
|
|
22260
22224
|
{
|
|
22261
22225
|
href: buildPath("/login"),
|
|
22262
22226
|
onClick: () => setIsMobileMenuOpen(false),
|
|
22263
|
-
className: "px-4 py-3 text-
|
|
22227
|
+
className: "px-4 py-3 text-hprimary-600 hover:bg-gray-50 rounded-lg font-medium",
|
|
22264
22228
|
children: "Sign In"
|
|
22265
22229
|
}
|
|
22266
22230
|
)
|
|
@@ -22304,7 +22268,7 @@ function Footer() {
|
|
|
22304
22268
|
/* @__PURE__ */ jsxRuntime.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." }),
|
|
22305
22269
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
22306
22270
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
22307
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "w-5 h-5 text-
|
|
22271
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "w-5 h-5 text-hprimary-500" }),
|
|
22308
22272
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
22309
22273
|
"support@",
|
|
22310
22274
|
config.storeName.toLowerCase().replace(/\s+/g, ""),
|
|
@@ -22312,11 +22276,11 @@ function Footer() {
|
|
|
22312
22276
|
] })
|
|
22313
22277
|
] }),
|
|
22314
22278
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
22315
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Phone, { className: "w-5 h-5 text-
|
|
22279
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Phone, { className: "w-5 h-5 text-hprimary-500" }),
|
|
22316
22280
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "+1 (555) 123-4567" })
|
|
22317
22281
|
] }),
|
|
22318
22282
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
22319
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-5 h-5 text-
|
|
22283
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MapPin, { className: "w-5 h-5 text-hprimary-500" }),
|
|
22320
22284
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "123 Store Street, City, Country" })
|
|
22321
22285
|
] })
|
|
22322
22286
|
] })
|
|
@@ -22327,7 +22291,7 @@ function Footer() {
|
|
|
22327
22291
|
Link9__default.default,
|
|
22328
22292
|
{
|
|
22329
22293
|
href: link.href,
|
|
22330
|
-
className: "hover:text-
|
|
22294
|
+
className: "hover:text-hprimary-500 transition-colors",
|
|
22331
22295
|
children: link.label
|
|
22332
22296
|
}
|
|
22333
22297
|
) }, link.href)) })
|
|
@@ -22338,7 +22302,7 @@ function Footer() {
|
|
|
22338
22302
|
Link9__default.default,
|
|
22339
22303
|
{
|
|
22340
22304
|
href: link.href,
|
|
22341
|
-
className: "hover:text-
|
|
22305
|
+
className: "hover:text-hprimary-500 transition-colors",
|
|
22342
22306
|
children: link.label
|
|
22343
22307
|
}
|
|
22344
22308
|
) }, link.href)) })
|
|
@@ -22349,7 +22313,7 @@ function Footer() {
|
|
|
22349
22313
|
Link9__default.default,
|
|
22350
22314
|
{
|
|
22351
22315
|
href: link.href,
|
|
22352
|
-
className: "hover:text-
|
|
22316
|
+
className: "hover:text-hprimary-500 transition-colors",
|
|
22353
22317
|
children: link.label
|
|
22354
22318
|
}
|
|
22355
22319
|
) }, link.href)) })
|
|
@@ -22368,7 +22332,7 @@ function Footer() {
|
|
|
22368
22332
|
"a",
|
|
22369
22333
|
{
|
|
22370
22334
|
href: "#",
|
|
22371
|
-
className: "w-10 h-10 bg-gray-800 hover:bg-
|
|
22335
|
+
className: "w-10 h-10 bg-gray-800 hover:bg-hprimary-600 rounded-full flex items-center justify-center transition-colors",
|
|
22372
22336
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Facebook, { className: "w-5 h-5" })
|
|
22373
22337
|
}
|
|
22374
22338
|
),
|
|
@@ -22376,7 +22340,7 @@ function Footer() {
|
|
|
22376
22340
|
"a",
|
|
22377
22341
|
{
|
|
22378
22342
|
href: "#",
|
|
22379
|
-
className: "w-10 h-10 bg-gray-800 hover:bg-
|
|
22343
|
+
className: "w-10 h-10 bg-gray-800 hover:bg-hprimary-600 rounded-full flex items-center justify-center transition-colors",
|
|
22380
22344
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Twitter, { className: "w-5 h-5" })
|
|
22381
22345
|
}
|
|
22382
22346
|
),
|
|
@@ -22384,7 +22348,7 @@ function Footer() {
|
|
|
22384
22348
|
"a",
|
|
22385
22349
|
{
|
|
22386
22350
|
href: "#",
|
|
22387
|
-
className: "w-10 h-10 bg-gray-800 hover:bg-
|
|
22351
|
+
className: "w-10 h-10 bg-gray-800 hover:bg-hprimary-600 rounded-full flex items-center justify-center transition-colors",
|
|
22388
22352
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Instagram, { className: "w-5 h-5" })
|
|
22389
22353
|
}
|
|
22390
22354
|
)
|
|
@@ -22517,7 +22481,7 @@ function NotificationDrawer() {
|
|
|
22517
22481
|
},
|
|
22518
22482
|
notification._id
|
|
22519
22483
|
)),
|
|
22520
|
-
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-6 h-6 border-2 border-
|
|
22484
|
+
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-4", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-6 h-6 border-2 border-hprimary-600 border-t-transparent rounded-full animate-spin" }) }),
|
|
22521
22485
|
!hasMore && notifications.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-center py-4 text-sm text-gray-500", children: "You're all caught up! \u{1F389}" })
|
|
22522
22486
|
] })
|
|
22523
22487
|
}
|
|
@@ -22537,9 +22501,6 @@ exports.AuthProvider = AuthProvider;
|
|
|
22537
22501
|
exports.Badge = Badge;
|
|
22538
22502
|
exports.BulkChannelToggleDtoCategoryEnum = BulkChannelToggleDtoCategoryEnum;
|
|
22539
22503
|
exports.Button = Button;
|
|
22540
|
-
exports.CampaignDraftDtoStatusEnum = CampaignDraftDtoStatusEnum;
|
|
22541
|
-
exports.CampaignDraftScheduleDtoStatusEnum = CampaignDraftScheduleDtoStatusEnum;
|
|
22542
|
-
exports.CampaignDraftSendingDtoStatusEnum = CampaignDraftSendingDtoStatusEnum;
|
|
22543
22504
|
exports.CartItem = CartItem;
|
|
22544
22505
|
exports.CartProvider = CartProvider;
|
|
22545
22506
|
exports.CartScreen = CartScreen;
|