hey-pharmacist-ecommerce 1.1.42 → 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 +287 -326
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +287 -323
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/components/AccountOverviewTab.tsx +5 -5
- package/src/components/CartItem.tsx +15 -15
- package/src/components/Notification.tsx +3 -3
- package/src/components/ProductCard.tsx +10 -10
- package/src/components/QuickViewModal.tsx +16 -16
- package/src/components/ReviewCard.tsx +2 -2
- 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/screens/CartScreen.tsx +10 -10
- package/src/screens/CheckoutScreen.tsx +12 -12
- package/src/screens/ProductDetailScreen.tsx +39 -39
- package/src/screens/ShopScreen.tsx +20 -20
- package/src/lib/Apis/apis/marketing-api.ts +0 -3099
- package/src/lib/Apis/models/add-contact-to-list-dto.ts +0 -33
- package/src/lib/Apis/models/browser-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-content-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-dto.ts +0 -175
- package/src/lib/Apis/models/campaign-draft-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-schedule-dto.ts +0 -49
- package/src/lib/Apis/models/campaign-draft-schedule-response-dto.ts +0 -40
- package/src/lib/Apis/models/campaign-draft-sending-dto.ts +0 -43
- package/src/lib/Apis/models/campaign-draft-sending-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-aggregated-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-full-dto.ts +0 -93
- package/src/lib/Apis/models/contact-full-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-list-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/contact-lists-response-dto.ts +0 -40
- package/src/lib/Apis/models/country-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/create-contact-dto.ts +0 -39
- package/src/lib/Apis/models/create-contact-list-dto.ts +0 -27
- package/src/lib/Apis/models/create-email-template-dto.ts +0 -51
- package/src/lib/Apis/models/create-marketing-campaign-dto.ts +0 -81
- package/src/lib/Apis/models/email-template-response-dto.ts +0 -117
- package/src/lib/Apis/models/general-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/link-stats-response-dto.ts +0 -40
- package/src/lib/Apis/models/marketing-campaign-content-dto.ts +0 -27
- package/src/lib/Apis/models/marketing-list-contact-dto.ts +0 -51
- package/src/lib/Apis/models/schedule-campaign-draft-dto.ts +0 -27
- package/src/lib/Apis/models/send-test-email-dto.ts +0 -28
- package/src/lib/Apis/models/single-browser-stats-dto.ts +0 -45
- package/src/lib/Apis/models/single-contact-aggregated-stats-dto.ts +0 -129
- package/src/lib/Apis/models/single-contact-list-stats-dto.ts +0 -117
- package/src/lib/Apis/models/single-country-stats-dto.ts +0 -39
- package/src/lib/Apis/models/single-general-stats.ts +0 -153
- package/src/lib/Apis/models/single-link-stats-dto.ts +0 -39
- package/src/lib/Apis/models/single-recipient-dto.ts +0 -33
- package/src/lib/Apis/models/update-campaign-draft-content-dto.ts +0 -27
- package/src/lib/Apis/models/update-marketing-camp-draft-dto.ts +0 -81
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React10, { createContext, forwardRef, useContext, useLayoutEffect, useEffect, useState, useCallback, useRef, useMemo } from 'react';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
|
-
import
|
|
4
|
+
import globalAxios20 from 'axios';
|
|
5
5
|
import { motion, AnimatePresence, useMotionValue, useTransform } from 'framer-motion';
|
|
6
6
|
import { Eye, Star, ShoppingCart, Sparkles, ShieldCheck, TrendingUp, Search, Package, ArrowUpDown, ChevronDown, LayoutGrid, LayoutList, X, Clock, User, MessageCircle, Filter, ChevronLeft, Check, Heart, Truck, RotateCcw, Shield, Trash2, Minus, Plus, ShoppingBag, ArrowRight, CheckCircle2, MapPin, CreditCard, Edit3, AlertCircle, Lock, EyeOff, UserPlus, Mail, Send, ArrowLeft, MessageSquare, Settings, ChevronRight, ArrowUpRight, PackageCheck, Warehouse, BellRing, Crown, Phone, Grid, List, Loader2, Calendar, ExternalLink, Info, Bell, LogOut, Menu, Facebook, Twitter, Instagram, CheckCheck, BellOff, Shirt, Pill, Box, Gift, Tag, Globe, Home, TrendingDown, CheckCircle, Edit, AlertTriangle, XCircle } from 'lucide-react';
|
|
7
7
|
import { QueryClient, QueryClientProvider, useQuery } from '@tanstack/react-query';
|
|
@@ -61,7 +61,7 @@ var init_sharedConfig = __esm({
|
|
|
61
61
|
basePath: "https://api.heypharmacist.com",
|
|
62
62
|
// Default fallback
|
|
63
63
|
baseOptions: {
|
|
64
|
-
timeout:
|
|
64
|
+
timeout: 6e4
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -281,7 +281,7 @@ function ThemeProvider({ config, children }) {
|
|
|
281
281
|
init_config();
|
|
282
282
|
var BASE_PATH = "/".replace(/\/+$/, "");
|
|
283
283
|
var BaseAPI = class {
|
|
284
|
-
constructor(configuration, basePath = BASE_PATH, axios =
|
|
284
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios20) {
|
|
285
285
|
this.basePath = basePath;
|
|
286
286
|
this.axios = axios;
|
|
287
287
|
if (configuration) {
|
|
@@ -952,7 +952,7 @@ var UsersApiFp = function(configuration) {
|
|
|
952
952
|
*/
|
|
953
953
|
async allowUserCredit(body, userId, options) {
|
|
954
954
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).allowUserCredit(body, userId, options);
|
|
955
|
-
return (axios =
|
|
955
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
956
956
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
957
957
|
return axios.request(axiosRequestArgs);
|
|
958
958
|
};
|
|
@@ -966,7 +966,7 @@ var UsersApiFp = function(configuration) {
|
|
|
966
966
|
*/
|
|
967
967
|
async changeUserEmail(body, options) {
|
|
968
968
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).changeUserEmail(body, options);
|
|
969
|
-
return (axios =
|
|
969
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
970
970
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
971
971
|
return axios.request(axiosRequestArgs);
|
|
972
972
|
};
|
|
@@ -980,7 +980,7 @@ var UsersApiFp = function(configuration) {
|
|
|
980
980
|
*/
|
|
981
981
|
async createUser(body, options) {
|
|
982
982
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).createUser(body, options);
|
|
983
|
-
return (axios =
|
|
983
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
984
984
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
985
985
|
return axios.request(axiosRequestArgs);
|
|
986
986
|
};
|
|
@@ -993,7 +993,7 @@ var UsersApiFp = function(configuration) {
|
|
|
993
993
|
*/
|
|
994
994
|
async deleteMyProfile(options) {
|
|
995
995
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteMyProfile(options);
|
|
996
|
-
return (axios =
|
|
996
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
997
997
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
998
998
|
return axios.request(axiosRequestArgs);
|
|
999
999
|
};
|
|
@@ -1007,7 +1007,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1007
1007
|
*/
|
|
1008
1008
|
async deleteUser(id, options) {
|
|
1009
1009
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).deleteUser(id, options);
|
|
1010
|
-
return (axios =
|
|
1010
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1011
1011
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1012
1012
|
return axios.request(axiosRequestArgs);
|
|
1013
1013
|
};
|
|
@@ -1021,7 +1021,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1021
1021
|
*/
|
|
1022
1022
|
async disableUserCredit(userId, options) {
|
|
1023
1023
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).disableUserCredit(userId, options);
|
|
1024
|
-
return (axios =
|
|
1024
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1025
1025
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1026
1026
|
return axios.request(axiosRequestArgs);
|
|
1027
1027
|
};
|
|
@@ -1042,7 +1042,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1042
1042
|
*/
|
|
1043
1043
|
async getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options) {
|
|
1044
1044
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getAllUsers(role, sortingOrder, sortingColumn, createdBefore, createdAfter, search, limit, page, options);
|
|
1045
|
-
return (axios =
|
|
1045
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1046
1046
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1047
1047
|
return axios.request(axiosRequestArgs);
|
|
1048
1048
|
};
|
|
@@ -1056,7 +1056,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1056
1056
|
*/
|
|
1057
1057
|
async getInsights(groupId, options) {
|
|
1058
1058
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getInsights(groupId, options);
|
|
1059
|
-
return (axios =
|
|
1059
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1060
1060
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1061
1061
|
return axios.request(axiosRequestArgs);
|
|
1062
1062
|
};
|
|
@@ -1069,7 +1069,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1069
1069
|
*/
|
|
1070
1070
|
async getMyProfile(options) {
|
|
1071
1071
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getMyProfile(options);
|
|
1072
|
-
return (axios =
|
|
1072
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1073
1073
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1074
1074
|
return axios.request(axiosRequestArgs);
|
|
1075
1075
|
};
|
|
@@ -1083,7 +1083,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1083
1083
|
*/
|
|
1084
1084
|
async getSingleUser(id, options) {
|
|
1085
1085
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).getSingleUser(id, options);
|
|
1086
|
-
return (axios =
|
|
1086
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1087
1087
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1088
1088
|
return axios.request(axiosRequestArgs);
|
|
1089
1089
|
};
|
|
@@ -1096,7 +1096,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1096
1096
|
*/
|
|
1097
1097
|
async sendOTP(options) {
|
|
1098
1098
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).sendOTP(options);
|
|
1099
|
-
return (axios =
|
|
1099
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1100
1100
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1101
1101
|
return axios.request(axiosRequestArgs);
|
|
1102
1102
|
};
|
|
@@ -1110,7 +1110,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1110
1110
|
*/
|
|
1111
1111
|
async updateMyProfile(body, options) {
|
|
1112
1112
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateMyProfile(body, options);
|
|
1113
|
-
return (axios =
|
|
1113
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1114
1114
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1115
1115
|
return axios.request(axiosRequestArgs);
|
|
1116
1116
|
};
|
|
@@ -1125,7 +1125,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1125
1125
|
*/
|
|
1126
1126
|
async updateUser(body, id, options) {
|
|
1127
1127
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).updateUser(body, id, options);
|
|
1128
|
-
return (axios =
|
|
1128
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1129
1129
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1130
1130
|
return axios.request(axiosRequestArgs);
|
|
1131
1131
|
};
|
|
@@ -1138,7 +1138,7 @@ var UsersApiFp = function(configuration) {
|
|
|
1138
1138
|
*/
|
|
1139
1139
|
async verifyOTP(options) {
|
|
1140
1140
|
const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).verifyOTP(options);
|
|
1141
|
-
return (axios =
|
|
1141
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1142
1142
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1143
1143
|
return axios.request(axiosRequestArgs);
|
|
1144
1144
|
};
|
|
@@ -1755,7 +1755,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1755
1755
|
*/
|
|
1756
1756
|
async changeEmail(body, options) {
|
|
1757
1757
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changeEmail(body, options);
|
|
1758
|
-
return (axios =
|
|
1758
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1759
1759
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1760
1760
|
return axios.request(axiosRequestArgs);
|
|
1761
1761
|
};
|
|
@@ -1769,7 +1769,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1769
1769
|
*/
|
|
1770
1770
|
async changePassword(body, options) {
|
|
1771
1771
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).changePassword(body, options);
|
|
1772
|
-
return (axios =
|
|
1772
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1773
1773
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1774
1774
|
return axios.request(axiosRequestArgs);
|
|
1775
1775
|
};
|
|
@@ -1783,7 +1783,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1783
1783
|
*/
|
|
1784
1784
|
async dashboardLogin(body, options) {
|
|
1785
1785
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).dashboardLogin(body, options);
|
|
1786
|
-
return (axios =
|
|
1786
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1787
1787
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1788
1788
|
return axios.request(axiosRequestArgs);
|
|
1789
1789
|
};
|
|
@@ -1799,7 +1799,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1799
1799
|
*/
|
|
1800
1800
|
async resetPassword(newPassword, token, xStoreKey, options) {
|
|
1801
1801
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).resetPassword(newPassword, token, xStoreKey, options);
|
|
1802
|
-
return (axios =
|
|
1802
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1803
1803
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1804
1804
|
return axios.request(axiosRequestArgs);
|
|
1805
1805
|
};
|
|
@@ -1813,7 +1813,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1813
1813
|
*/
|
|
1814
1814
|
async sendForgetPasswordEmail(body, options) {
|
|
1815
1815
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).sendForgetPasswordEmail(body, options);
|
|
1816
|
-
return (axios =
|
|
1816
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1817
1817
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1818
1818
|
return axios.request(axiosRequestArgs);
|
|
1819
1819
|
};
|
|
@@ -1827,7 +1827,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1827
1827
|
*/
|
|
1828
1828
|
async signin(body, options) {
|
|
1829
1829
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signin(body, options);
|
|
1830
|
-
return (axios =
|
|
1830
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1831
1831
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1832
1832
|
return axios.request(axiosRequestArgs);
|
|
1833
1833
|
};
|
|
@@ -1841,7 +1841,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1841
1841
|
*/
|
|
1842
1842
|
async signinWithGmail(body, options) {
|
|
1843
1843
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signinWithGmail(body, options);
|
|
1844
|
-
return (axios =
|
|
1844
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1845
1845
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1846
1846
|
return axios.request(axiosRequestArgs);
|
|
1847
1847
|
};
|
|
@@ -1855,7 +1855,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1855
1855
|
*/
|
|
1856
1856
|
async signup(body, options) {
|
|
1857
1857
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signup(body, options);
|
|
1858
|
-
return (axios =
|
|
1858
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1859
1859
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1860
1860
|
return axios.request(axiosRequestArgs);
|
|
1861
1861
|
};
|
|
@@ -1869,7 +1869,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1869
1869
|
*/
|
|
1870
1870
|
async signupWithGmail(body, options) {
|
|
1871
1871
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).signupWithGmail(body, options);
|
|
1872
|
-
return (axios =
|
|
1872
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1873
1873
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1874
1874
|
return axios.request(axiosRequestArgs);
|
|
1875
1875
|
};
|
|
@@ -1883,7 +1883,7 @@ var AuthApiFp = function(configuration) {
|
|
|
1883
1883
|
*/
|
|
1884
1884
|
async verifyUserEmail(body, options) {
|
|
1885
1885
|
const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).verifyUserEmail(body, options);
|
|
1886
|
-
return (axios =
|
|
1886
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
1887
1887
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
1888
1888
|
return axios.request(axiosRequestArgs);
|
|
1889
1889
|
};
|
|
@@ -2804,7 +2804,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2804
2804
|
*/
|
|
2805
2805
|
async adminCreateAddressForUser(body, userId, options) {
|
|
2806
2806
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminCreateAddressForUser(body, userId, options);
|
|
2807
|
-
return (axios =
|
|
2807
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2808
2808
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2809
2809
|
return axios.request(axiosRequestArgs);
|
|
2810
2810
|
};
|
|
@@ -2818,7 +2818,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2818
2818
|
*/
|
|
2819
2819
|
async adminDeleteUserAddress(addressId, options) {
|
|
2820
2820
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminDeleteUserAddress(addressId, options);
|
|
2821
|
-
return (axios =
|
|
2821
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2822
2822
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2823
2823
|
return axios.request(axiosRequestArgs);
|
|
2824
2824
|
};
|
|
@@ -2832,7 +2832,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2832
2832
|
*/
|
|
2833
2833
|
async adminGetSingleUserAddresses(userId, options) {
|
|
2834
2834
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminGetSingleUserAddresses(userId, options);
|
|
2835
|
-
return (axios =
|
|
2835
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2836
2836
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2837
2837
|
return axios.request(axiosRequestArgs);
|
|
2838
2838
|
};
|
|
@@ -2847,7 +2847,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2847
2847
|
*/
|
|
2848
2848
|
async adminUpdateUserAddress(body, addressId, options) {
|
|
2849
2849
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).adminUpdateUserAddress(body, addressId, options);
|
|
2850
|
-
return (axios =
|
|
2850
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2851
2851
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2852
2852
|
return axios.request(axiosRequestArgs);
|
|
2853
2853
|
};
|
|
@@ -2861,7 +2861,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2861
2861
|
*/
|
|
2862
2862
|
async createAddressForStore(body, options) {
|
|
2863
2863
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForStore(body, options);
|
|
2864
|
-
return (axios =
|
|
2864
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2865
2865
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2866
2866
|
return axios.request(axiosRequestArgs);
|
|
2867
2867
|
};
|
|
@@ -2875,7 +2875,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2875
2875
|
*/
|
|
2876
2876
|
async createAddressForUser(body, options) {
|
|
2877
2877
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).createAddressForUser(body, options);
|
|
2878
|
-
return (axios =
|
|
2878
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2879
2879
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2880
2880
|
return axios.request(axiosRequestArgs);
|
|
2881
2881
|
};
|
|
@@ -2889,7 +2889,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2889
2889
|
*/
|
|
2890
2890
|
async deleteUserAddress(addressId, options) {
|
|
2891
2891
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).deleteUserAddress(addressId, options);
|
|
2892
|
-
return (axios =
|
|
2892
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2893
2893
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2894
2894
|
return axios.request(axiosRequestArgs);
|
|
2895
2895
|
};
|
|
@@ -2903,7 +2903,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2903
2903
|
*/
|
|
2904
2904
|
async getAllStoreAddresses(storeId, options) {
|
|
2905
2905
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllStoreAddresses(storeId, options);
|
|
2906
|
-
return (axios =
|
|
2906
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2907
2907
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2908
2908
|
return axios.request(axiosRequestArgs);
|
|
2909
2909
|
};
|
|
@@ -2916,7 +2916,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2916
2916
|
*/
|
|
2917
2917
|
async getAllUserAddresses(options) {
|
|
2918
2918
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getAllUserAddresses(options);
|
|
2919
|
-
return (axios =
|
|
2919
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2920
2920
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2921
2921
|
return axios.request(axiosRequestArgs);
|
|
2922
2922
|
};
|
|
@@ -2929,7 +2929,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2929
2929
|
*/
|
|
2930
2930
|
async getMyAddresses(options) {
|
|
2931
2931
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyAddresses(options);
|
|
2932
|
-
return (axios =
|
|
2932
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2933
2933
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2934
2934
|
return axios.request(axiosRequestArgs);
|
|
2935
2935
|
};
|
|
@@ -2942,7 +2942,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2942
2942
|
*/
|
|
2943
2943
|
async getMyDefaultAddress(options) {
|
|
2944
2944
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getMyDefaultAddress(options);
|
|
2945
|
-
return (axios =
|
|
2945
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2946
2946
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2947
2947
|
return axios.request(axiosRequestArgs);
|
|
2948
2948
|
};
|
|
@@ -2956,7 +2956,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2956
2956
|
*/
|
|
2957
2957
|
async getSingleAddress(addressId, options) {
|
|
2958
2958
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).getSingleAddress(addressId, options);
|
|
2959
|
-
return (axios =
|
|
2959
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2960
2960
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2961
2961
|
return axios.request(axiosRequestArgs);
|
|
2962
2962
|
};
|
|
@@ -2971,7 +2971,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2971
2971
|
*/
|
|
2972
2972
|
async setDefaultShippingAddress(userId, addressId, options) {
|
|
2973
2973
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).setDefaultShippingAddress(userId, addressId, options);
|
|
2974
|
-
return (axios =
|
|
2974
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2975
2975
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2976
2976
|
return axios.request(axiosRequestArgs);
|
|
2977
2977
|
};
|
|
@@ -2985,7 +2985,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
2985
2985
|
*/
|
|
2986
2986
|
async updateDefaultAddress(addressId, options) {
|
|
2987
2987
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateDefaultAddress(addressId, options);
|
|
2988
|
-
return (axios =
|
|
2988
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
2989
2989
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
2990
2990
|
return axios.request(axiosRequestArgs);
|
|
2991
2991
|
};
|
|
@@ -3000,7 +3000,7 @@ var AddressesApiFp = function(configuration) {
|
|
|
3000
3000
|
*/
|
|
3001
3001
|
async updateUserAddress(body, addressId, options) {
|
|
3002
3002
|
const localVarAxiosArgs = await AddressesApiAxiosParamCreator(configuration).updateUserAddress(body, addressId, options);
|
|
3003
|
-
return (axios =
|
|
3003
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3004
3004
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3005
3005
|
return axios.request(axiosRequestArgs);
|
|
3006
3006
|
};
|
|
@@ -3382,7 +3382,7 @@ var CartApiFp = function(configuration) {
|
|
|
3382
3382
|
*/
|
|
3383
3383
|
async clearCart(options) {
|
|
3384
3384
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).clearCart(options);
|
|
3385
|
-
return (axios =
|
|
3385
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3386
3386
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3387
3387
|
return axios.request(axiosRequestArgs);
|
|
3388
3388
|
};
|
|
@@ -3396,7 +3396,7 @@ var CartApiFp = function(configuration) {
|
|
|
3396
3396
|
*/
|
|
3397
3397
|
async getUserCart(rateId, options) {
|
|
3398
3398
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).getUserCart(rateId, options);
|
|
3399
|
-
return (axios =
|
|
3399
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3400
3400
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3401
3401
|
return axios.request(axiosRequestArgs);
|
|
3402
3402
|
};
|
|
@@ -3410,7 +3410,7 @@ var CartApiFp = function(configuration) {
|
|
|
3410
3410
|
*/
|
|
3411
3411
|
async handleUserCart(body, options) {
|
|
3412
3412
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleUserCart(body, options);
|
|
3413
|
-
return (axios =
|
|
3413
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3414
3414
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3415
3415
|
return axios.request(axiosRequestArgs);
|
|
3416
3416
|
};
|
|
@@ -3428,7 +3428,7 @@ var CartApiFp = function(configuration) {
|
|
|
3428
3428
|
*/
|
|
3429
3429
|
async handleVisitorCart(body, isDelivery, userId, rateId, addressId, options) {
|
|
3430
3430
|
const localVarAxiosArgs = await CartApiAxiosParamCreator(configuration).handleVisitorCart(body, isDelivery, userId, rateId, addressId, options);
|
|
3431
|
-
return (axios =
|
|
3431
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3432
3432
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3433
3433
|
return axios.request(axiosRequestArgs);
|
|
3434
3434
|
};
|
|
@@ -3860,7 +3860,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3860
3860
|
*/
|
|
3861
3861
|
async createCategory(body, options) {
|
|
3862
3862
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).createCategory(body, options);
|
|
3863
|
-
return (axios =
|
|
3863
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3864
3864
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3865
3865
|
return axios.request(axiosRequestArgs);
|
|
3866
3866
|
};
|
|
@@ -3874,7 +3874,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3874
3874
|
*/
|
|
3875
3875
|
async deleteCategory(id, options) {
|
|
3876
3876
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).deleteCategory(id, options);
|
|
3877
|
-
return (axios =
|
|
3877
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3878
3878
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3879
3879
|
return axios.request(axiosRequestArgs);
|
|
3880
3880
|
};
|
|
@@ -3890,7 +3890,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3890
3890
|
*/
|
|
3891
3891
|
async getAllCategories(search, limit, page, options) {
|
|
3892
3892
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getAllCategories(search, limit, page, options);
|
|
3893
|
-
return (axios =
|
|
3893
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3894
3894
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3895
3895
|
return axios.request(axiosRequestArgs);
|
|
3896
3896
|
};
|
|
@@ -3903,7 +3903,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3903
3903
|
*/
|
|
3904
3904
|
async getCategoreisAndSubCategories(options) {
|
|
3905
3905
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoreisAndSubCategories(options);
|
|
3906
|
-
return (axios =
|
|
3906
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3907
3907
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3908
3908
|
return axios.request(axiosRequestArgs);
|
|
3909
3909
|
};
|
|
@@ -3917,7 +3917,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3917
3917
|
*/
|
|
3918
3918
|
async getCategoryFilters(id, options) {
|
|
3919
3919
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getCategoryFilters(id, options);
|
|
3920
|
-
return (axios =
|
|
3920
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3921
3921
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3922
3922
|
return axios.request(axiosRequestArgs);
|
|
3923
3923
|
};
|
|
@@ -3931,7 +3931,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3931
3931
|
*/
|
|
3932
3932
|
async getSingleCategory(id, options) {
|
|
3933
3933
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).getSingleCategory(id, options);
|
|
3934
|
-
return (axios =
|
|
3934
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3935
3935
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3936
3936
|
return axios.request(axiosRequestArgs);
|
|
3937
3937
|
};
|
|
@@ -3945,7 +3945,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3945
3945
|
*/
|
|
3946
3946
|
async reorderCategories(body, options) {
|
|
3947
3947
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).reorderCategories(body, options);
|
|
3948
|
-
return (axios =
|
|
3948
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3949
3949
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3950
3950
|
return axios.request(axiosRequestArgs);
|
|
3951
3951
|
};
|
|
@@ -3960,7 +3960,7 @@ var CategoriesApiFp = function(configuration) {
|
|
|
3960
3960
|
*/
|
|
3961
3961
|
async updateCategory(body, id, options) {
|
|
3962
3962
|
const localVarAxiosArgs = await CategoriesApiAxiosParamCreator(configuration).updateCategory(body, id, options);
|
|
3963
|
-
return (axios =
|
|
3963
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
3964
3964
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
3965
3965
|
return axios.request(axiosRequestArgs);
|
|
3966
3966
|
};
|
|
@@ -4385,7 +4385,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4385
4385
|
*/
|
|
4386
4386
|
async createDiscount(body, options) {
|
|
4387
4387
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).createDiscount(body, options);
|
|
4388
|
-
return (axios =
|
|
4388
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4389
4389
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4390
4390
|
return axios.request(axiosRequestArgs);
|
|
4391
4391
|
};
|
|
@@ -4399,7 +4399,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4399
4399
|
*/
|
|
4400
4400
|
async deleteDiscount(id, options) {
|
|
4401
4401
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).deleteDiscount(id, options);
|
|
4402
|
-
return (axios =
|
|
4402
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4403
4403
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4404
4404
|
return axios.request(axiosRequestArgs);
|
|
4405
4405
|
};
|
|
@@ -4412,7 +4412,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4412
4412
|
*/
|
|
4413
4413
|
async getAllDiscounts(options) {
|
|
4414
4414
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getAllDiscounts(options);
|
|
4415
|
-
return (axios =
|
|
4415
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4416
4416
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4417
4417
|
return axios.request(axiosRequestArgs);
|
|
4418
4418
|
};
|
|
@@ -4425,7 +4425,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4425
4425
|
*/
|
|
4426
4426
|
async getDiscountsInsights(options) {
|
|
4427
4427
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getDiscountsInsights(options);
|
|
4428
|
-
return (axios =
|
|
4428
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4429
4429
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4430
4430
|
return axios.request(axiosRequestArgs);
|
|
4431
4431
|
};
|
|
@@ -4439,7 +4439,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4439
4439
|
*/
|
|
4440
4440
|
async getSingleDiscount(id, options) {
|
|
4441
4441
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).getSingleDiscount(id, options);
|
|
4442
|
-
return (axios =
|
|
4442
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4443
4443
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4444
4444
|
return axios.request(axiosRequestArgs);
|
|
4445
4445
|
};
|
|
@@ -4454,7 +4454,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4454
4454
|
*/
|
|
4455
4455
|
async updateDiscount(body, id, options) {
|
|
4456
4456
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).updateDiscount(body, id, options);
|
|
4457
|
-
return (axios =
|
|
4457
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4458
4458
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4459
4459
|
return axios.request(axiosRequestArgs);
|
|
4460
4460
|
};
|
|
@@ -4470,7 +4470,7 @@ var DiscountsApiFp = function(configuration) {
|
|
|
4470
4470
|
*/
|
|
4471
4471
|
async validateCoupon(code, userId, discountId, options) {
|
|
4472
4472
|
const localVarAxiosArgs = await DiscountsApiAxiosParamCreator(configuration).validateCoupon(code, userId, discountId, options);
|
|
4473
|
-
return (axios =
|
|
4473
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4474
4474
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4475
4475
|
return axios.request(axiosRequestArgs);
|
|
4476
4476
|
};
|
|
@@ -4928,7 +4928,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4928
4928
|
*/
|
|
4929
4929
|
async bulkToggleChannel(body, options) {
|
|
4930
4930
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).bulkToggleChannel(body, options);
|
|
4931
|
-
return (axios =
|
|
4931
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4932
4932
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4933
4933
|
return axios.request(axiosRequestArgs);
|
|
4934
4934
|
};
|
|
@@ -4942,7 +4942,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4942
4942
|
*/
|
|
4943
4943
|
async deleteNotification(id, options) {
|
|
4944
4944
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).deleteNotification(id, options);
|
|
4945
|
-
return (axios =
|
|
4945
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4946
4946
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4947
4947
|
return axios.request(axiosRequestArgs);
|
|
4948
4948
|
};
|
|
@@ -4958,7 +4958,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4958
4958
|
*/
|
|
4959
4959
|
async getNotifications(page, limit, unreadOnly, options) {
|
|
4960
4960
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getNotifications(page, limit, unreadOnly, options);
|
|
4961
|
-
return (axios =
|
|
4961
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4962
4962
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4963
4963
|
return axios.request(axiosRequestArgs);
|
|
4964
4964
|
};
|
|
@@ -4971,7 +4971,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4971
4971
|
*/
|
|
4972
4972
|
async getSettings(options) {
|
|
4973
4973
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getSettings(options);
|
|
4974
|
-
return (axios =
|
|
4974
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4975
4975
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4976
4976
|
return axios.request(axiosRequestArgs);
|
|
4977
4977
|
};
|
|
@@ -4984,7 +4984,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4984
4984
|
*/
|
|
4985
4985
|
async getUnreadCount(options) {
|
|
4986
4986
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).getUnreadCount(options);
|
|
4987
|
-
return (axios =
|
|
4987
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
4988
4988
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
4989
4989
|
return axios.request(axiosRequestArgs);
|
|
4990
4990
|
};
|
|
@@ -4997,7 +4997,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
4997
4997
|
*/
|
|
4998
4998
|
async markAllAsRead(options) {
|
|
4999
4999
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAllAsRead(options);
|
|
5000
|
-
return (axios =
|
|
5000
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5001
5001
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5002
5002
|
return axios.request(axiosRequestArgs);
|
|
5003
5003
|
};
|
|
@@ -5011,7 +5011,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5011
5011
|
*/
|
|
5012
5012
|
async markAsRead(id, options) {
|
|
5013
5013
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).markAsRead(id, options);
|
|
5014
|
-
return (axios =
|
|
5014
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5015
5015
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5016
5016
|
return axios.request(axiosRequestArgs);
|
|
5017
5017
|
};
|
|
@@ -5025,7 +5025,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5025
5025
|
*/
|
|
5026
5026
|
async stream(token, options) {
|
|
5027
5027
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).stream(token, options);
|
|
5028
|
-
return (axios =
|
|
5028
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5029
5029
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5030
5030
|
return axios.request(axiosRequestArgs);
|
|
5031
5031
|
};
|
|
@@ -5039,7 +5039,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
5039
5039
|
*/
|
|
5040
5040
|
async updateSettings(body, options) {
|
|
5041
5041
|
const localVarAxiosArgs = await NotificationsApiAxiosParamCreator(configuration).updateSettings(body, options);
|
|
5042
|
-
return (axios =
|
|
5042
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5043
5043
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5044
5044
|
return axios.request(axiosRequestArgs);
|
|
5045
5045
|
};
|
|
@@ -5776,7 +5776,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5776
5776
|
*/
|
|
5777
5777
|
async assignPaymentMethod(orderId, paymentMethod, billingAddressId, options) {
|
|
5778
5778
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).assignPaymentMethod(orderId, paymentMethod, billingAddressId, options);
|
|
5779
|
-
return (axios =
|
|
5779
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5780
5780
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5781
5781
|
return axios.request(axiosRequestArgs);
|
|
5782
5782
|
};
|
|
@@ -5790,7 +5790,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5790
5790
|
*/
|
|
5791
5791
|
async cancelOrder(id, options) {
|
|
5792
5792
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).cancelOrder(id, options);
|
|
5793
|
-
return (axios =
|
|
5793
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5794
5794
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5795
5795
|
return axios.request(axiosRequestArgs);
|
|
5796
5796
|
};
|
|
@@ -5808,7 +5808,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5808
5808
|
*/
|
|
5809
5809
|
async createCheckout(body, isDelivery, userId, rateId, billingAddressId, options) {
|
|
5810
5810
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).createCheckout(body, isDelivery, userId, rateId, billingAddressId, options);
|
|
5811
|
-
return (axios =
|
|
5811
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5812
5812
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5813
5813
|
return axios.request(axiosRequestArgs);
|
|
5814
5814
|
};
|
|
@@ -5822,7 +5822,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5822
5822
|
*/
|
|
5823
5823
|
async deleteOrder(id, options) {
|
|
5824
5824
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).deleteOrder(id, options);
|
|
5825
|
-
return (axios =
|
|
5825
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5826
5826
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5827
5827
|
return axios.request(axiosRequestArgs);
|
|
5828
5828
|
};
|
|
@@ -5843,7 +5843,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5843
5843
|
*/
|
|
5844
5844
|
async getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options) {
|
|
5845
5845
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getAllOrders(paymentStatus, orderStatus, page, limit, search, createdAfter, createdBefore, userId, options);
|
|
5846
|
-
return (axios =
|
|
5846
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5847
5847
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5848
5848
|
return axios.request(axiosRequestArgs);
|
|
5849
5849
|
};
|
|
@@ -5857,7 +5857,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5857
5857
|
*/
|
|
5858
5858
|
async getSingleOrder(id, options) {
|
|
5859
5859
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getSingleOrder(id, options);
|
|
5860
|
-
return (axios =
|
|
5860
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5861
5861
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5862
5862
|
return axios.request(axiosRequestArgs);
|
|
5863
5863
|
};
|
|
@@ -5870,7 +5870,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5870
5870
|
*/
|
|
5871
5871
|
async getStoreOrderInsights(options) {
|
|
5872
5872
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getStoreOrderInsights(options);
|
|
5873
|
-
return (axios =
|
|
5873
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5874
5874
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5875
5875
|
return axios.request(axiosRequestArgs);
|
|
5876
5876
|
};
|
|
@@ -5883,7 +5883,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5883
5883
|
*/
|
|
5884
5884
|
async getUserOrders(options) {
|
|
5885
5885
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).getUserOrders(options);
|
|
5886
|
-
return (axios =
|
|
5886
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5887
5887
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5888
5888
|
return axios.request(axiosRequestArgs);
|
|
5889
5889
|
};
|
|
@@ -5897,7 +5897,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5897
5897
|
*/
|
|
5898
5898
|
async payOrder(orderId, options) {
|
|
5899
5899
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).payOrder(orderId, options);
|
|
5900
|
-
return (axios =
|
|
5900
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5901
5901
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5902
5902
|
return axios.request(axiosRequestArgs);
|
|
5903
5903
|
};
|
|
@@ -5911,7 +5911,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5911
5911
|
*/
|
|
5912
5912
|
async sendOrderEmail(body, options) {
|
|
5913
5913
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).sendOrderEmail(body, options);
|
|
5914
|
-
return (axios =
|
|
5914
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5915
5915
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5916
5916
|
return axios.request(axiosRequestArgs);
|
|
5917
5917
|
};
|
|
@@ -5932,7 +5932,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5932
5932
|
*/
|
|
5933
5933
|
async updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options) {
|
|
5934
5934
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrder(body, isDelivery, id, paymentMethod, userId, rateId, addressId, billingAddressId, options);
|
|
5935
|
-
return (axios =
|
|
5935
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5936
5936
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5937
5937
|
return axios.request(axiosRequestArgs);
|
|
5938
5938
|
};
|
|
@@ -5947,7 +5947,7 @@ var OrdersApiFp = function(configuration) {
|
|
|
5947
5947
|
*/
|
|
5948
5948
|
async updateOrderStatus(id, orderStatus, options) {
|
|
5949
5949
|
const localVarAxiosArgs = await OrdersApiAxiosParamCreator(configuration).updateOrderStatus(id, orderStatus, options);
|
|
5950
|
-
return (axios =
|
|
5950
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
5951
5951
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
5952
5952
|
return axios.request(axiosRequestArgs);
|
|
5953
5953
|
};
|
|
@@ -7107,7 +7107,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7107
7107
|
*/
|
|
7108
7108
|
async addVariant(body, productId, options) {
|
|
7109
7109
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).addVariant(body, productId, options);
|
|
7110
|
-
return (axios =
|
|
7110
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7111
7111
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7112
7112
|
return axios.request(axiosRequestArgs);
|
|
7113
7113
|
};
|
|
@@ -7121,7 +7121,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7121
7121
|
*/
|
|
7122
7122
|
async createProduct(body, options) {
|
|
7123
7123
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProduct(body, options);
|
|
7124
|
-
return (axios =
|
|
7124
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7125
7125
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7126
7126
|
return axios.request(axiosRequestArgs);
|
|
7127
7127
|
};
|
|
@@ -7135,7 +7135,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7135
7135
|
*/
|
|
7136
7136
|
async createProductLegacy(body, options) {
|
|
7137
7137
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).createProductLegacy(body, options);
|
|
7138
|
-
return (axios =
|
|
7138
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7139
7139
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7140
7140
|
return axios.request(axiosRequestArgs);
|
|
7141
7141
|
};
|
|
@@ -7149,7 +7149,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7149
7149
|
*/
|
|
7150
7150
|
async deleteProduct(id, options) {
|
|
7151
7151
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteProduct(id, options);
|
|
7152
|
-
return (axios =
|
|
7152
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7153
7153
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7154
7154
|
return axios.request(axiosRequestArgs);
|
|
7155
7155
|
};
|
|
@@ -7164,7 +7164,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7164
7164
|
*/
|
|
7165
7165
|
async deleteVariant(productId, variantId, options) {
|
|
7166
7166
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).deleteVariant(productId, variantId, options);
|
|
7167
|
-
return (axios =
|
|
7167
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7168
7168
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7169
7169
|
return axios.request(axiosRequestArgs);
|
|
7170
7170
|
};
|
|
@@ -7178,7 +7178,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7178
7178
|
*/
|
|
7179
7179
|
async getAllCategoryProducts(categoryId, options) {
|
|
7180
7180
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllCategoryProducts(categoryId, options);
|
|
7181
|
-
return (axios =
|
|
7181
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7182
7182
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7183
7183
|
return axios.request(axiosRequestArgs);
|
|
7184
7184
|
};
|
|
@@ -7191,7 +7191,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7191
7191
|
*/
|
|
7192
7192
|
async getAllFilters(options) {
|
|
7193
7193
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllFilters(options);
|
|
7194
|
-
return (axios =
|
|
7194
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7195
7195
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7196
7196
|
return axios.request(axiosRequestArgs);
|
|
7197
7197
|
};
|
|
@@ -7215,7 +7215,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7215
7215
|
*/
|
|
7216
7216
|
async getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options) {
|
|
7217
7217
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProducts(searchTerm, maxPrice, minPrice, brandFilter, availability, sort, subCategoryId, categoryId, isActive, limit, page, options);
|
|
7218
|
-
return (axios =
|
|
7218
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7219
7219
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7220
7220
|
return axios.request(axiosRequestArgs);
|
|
7221
7221
|
};
|
|
@@ -7229,7 +7229,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7229
7229
|
*/
|
|
7230
7230
|
async getAllProductsBySubCategory(subCategoryId, options) {
|
|
7231
7231
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsBySubCategory(subCategoryId, options);
|
|
7232
|
-
return (axios =
|
|
7232
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7233
7233
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7234
7234
|
return axios.request(axiosRequestArgs);
|
|
7235
7235
|
};
|
|
@@ -7242,7 +7242,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7242
7242
|
*/
|
|
7243
7243
|
async getAllProductsLight(options) {
|
|
7244
7244
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getAllProductsLight(options);
|
|
7245
|
-
return (axios =
|
|
7245
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7246
7246
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7247
7247
|
return axios.request(axiosRequestArgs);
|
|
7248
7248
|
};
|
|
@@ -7255,7 +7255,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7255
7255
|
*/
|
|
7256
7256
|
async getFeaturedProduct(options) {
|
|
7257
7257
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getFeaturedProduct(options);
|
|
7258
|
-
return (axios =
|
|
7258
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7259
7259
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7260
7260
|
return axios.request(axiosRequestArgs);
|
|
7261
7261
|
};
|
|
@@ -7268,7 +7268,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7268
7268
|
*/
|
|
7269
7269
|
async getProductsInsights(options) {
|
|
7270
7270
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getProductsInsights(options);
|
|
7271
|
-
return (axios =
|
|
7271
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7272
7272
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7273
7273
|
return axios.request(axiosRequestArgs);
|
|
7274
7274
|
};
|
|
@@ -7283,7 +7283,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7283
7283
|
*/
|
|
7284
7284
|
async getRelatedProducts(id, limit, options) {
|
|
7285
7285
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProducts(id, limit, options);
|
|
7286
|
-
return (axios =
|
|
7286
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7287
7287
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7288
7288
|
return axios.request(axiosRequestArgs);
|
|
7289
7289
|
};
|
|
@@ -7297,7 +7297,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7297
7297
|
*/
|
|
7298
7298
|
async getRelatedProductsLegacy(productId, options) {
|
|
7299
7299
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getRelatedProductsLegacy(productId, options);
|
|
7300
|
-
return (axios =
|
|
7300
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7301
7301
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7302
7302
|
return axios.request(axiosRequestArgs);
|
|
7303
7303
|
};
|
|
@@ -7311,7 +7311,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7311
7311
|
*/
|
|
7312
7312
|
async getSingleProduct(id, options) {
|
|
7313
7313
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProduct(id, options);
|
|
7314
|
-
return (axios =
|
|
7314
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7315
7315
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7316
7316
|
return axios.request(axiosRequestArgs);
|
|
7317
7317
|
};
|
|
@@ -7325,7 +7325,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7325
7325
|
*/
|
|
7326
7326
|
async getSingleProductLegacy(id, options) {
|
|
7327
7327
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getSingleProductLegacy(id, options);
|
|
7328
|
-
return (axios =
|
|
7328
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7329
7329
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7330
7330
|
return axios.request(axiosRequestArgs);
|
|
7331
7331
|
};
|
|
@@ -7340,7 +7340,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7340
7340
|
*/
|
|
7341
7341
|
async getTopSellingProducts(limit, page, options) {
|
|
7342
7342
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).getTopSellingProducts(limit, page, options);
|
|
7343
|
-
return (axios =
|
|
7343
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7344
7344
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7345
7345
|
return axios.request(axiosRequestArgs);
|
|
7346
7346
|
};
|
|
@@ -7354,7 +7354,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7354
7354
|
*/
|
|
7355
7355
|
async reorderProducts(body, options) {
|
|
7356
7356
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).reorderProducts(body, options);
|
|
7357
|
-
return (axios =
|
|
7357
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7358
7358
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7359
7359
|
return axios.request(axiosRequestArgs);
|
|
7360
7360
|
};
|
|
@@ -7370,7 +7370,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7370
7370
|
*/
|
|
7371
7371
|
async updateInventory(body, productId, variantId, options) {
|
|
7372
7372
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateInventory(body, productId, variantId, options);
|
|
7373
|
-
return (axios =
|
|
7373
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7374
7374
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7375
7375
|
return axios.request(axiosRequestArgs);
|
|
7376
7376
|
};
|
|
@@ -7385,7 +7385,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7385
7385
|
*/
|
|
7386
7386
|
async updateProduct(body, id, options) {
|
|
7387
7387
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateProduct(body, id, options);
|
|
7388
|
-
return (axios =
|
|
7388
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7389
7389
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7390
7390
|
return axios.request(axiosRequestArgs);
|
|
7391
7391
|
};
|
|
@@ -7401,7 +7401,7 @@ var ProductsApiFp = function(configuration) {
|
|
|
7401
7401
|
*/
|
|
7402
7402
|
async updateVariant(body, productId, variantId, options) {
|
|
7403
7403
|
const localVarAxiosArgs = await ProductsApiAxiosParamCreator(configuration).updateVariant(body, productId, variantId, options);
|
|
7404
|
-
return (axios =
|
|
7404
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
7405
7405
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
7406
7406
|
return axios.request(axiosRequestArgs);
|
|
7407
7407
|
};
|
|
@@ -8427,7 +8427,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8427
8427
|
*/
|
|
8428
8428
|
async addReplay(body, id, options) {
|
|
8429
8429
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).addReplay(body, id, options);
|
|
8430
|
-
return (axios =
|
|
8430
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8431
8431
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8432
8432
|
return axios.request(axiosRequestArgs);
|
|
8433
8433
|
};
|
|
@@ -8442,7 +8442,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8442
8442
|
*/
|
|
8443
8443
|
async checkReviewStatus(orderId, productVariantId, options) {
|
|
8444
8444
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).checkReviewStatus(orderId, productVariantId, options);
|
|
8445
|
-
return (axios =
|
|
8445
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8446
8446
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8447
8447
|
return axios.request(axiosRequestArgs);
|
|
8448
8448
|
};
|
|
@@ -8457,7 +8457,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8457
8457
|
*/
|
|
8458
8458
|
async createReview(body, orderId, options) {
|
|
8459
8459
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).createReview(body, orderId, options);
|
|
8460
|
-
return (axios =
|
|
8460
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8461
8461
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8462
8462
|
return axios.request(axiosRequestArgs);
|
|
8463
8463
|
};
|
|
@@ -8470,7 +8470,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8470
8470
|
*/
|
|
8471
8471
|
async getReviewCount(options) {
|
|
8472
8472
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewCount(options);
|
|
8473
|
-
return (axios =
|
|
8473
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8474
8474
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8475
8475
|
return axios.request(axiosRequestArgs);
|
|
8476
8476
|
};
|
|
@@ -8484,7 +8484,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8484
8484
|
*/
|
|
8485
8485
|
async getReviewableProducts(orderId, options) {
|
|
8486
8486
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewableProducts(orderId, options);
|
|
8487
|
-
return (axios =
|
|
8487
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8488
8488
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8489
8489
|
return axios.request(axiosRequestArgs);
|
|
8490
8490
|
};
|
|
@@ -8498,7 +8498,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8498
8498
|
*/
|
|
8499
8499
|
async getReviewsByDate(date, options) {
|
|
8500
8500
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDate(date, options);
|
|
8501
|
-
return (axios =
|
|
8501
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8502
8502
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8503
8503
|
return axios.request(axiosRequestArgs);
|
|
8504
8504
|
};
|
|
@@ -8513,7 +8513,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8513
8513
|
*/
|
|
8514
8514
|
async getReviewsByDateRange(from, to, options) {
|
|
8515
8515
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByDateRange(from, to, options);
|
|
8516
|
-
return (axios =
|
|
8516
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8517
8517
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8518
8518
|
return axios.request(axiosRequestArgs);
|
|
8519
8519
|
};
|
|
@@ -8527,7 +8527,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8527
8527
|
*/
|
|
8528
8528
|
async getReviewsByProduct(productId, options) {
|
|
8529
8529
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByProduct(productId, options);
|
|
8530
|
-
return (axios =
|
|
8530
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8531
8531
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8532
8532
|
return axios.request(axiosRequestArgs);
|
|
8533
8533
|
};
|
|
@@ -8541,7 +8541,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8541
8541
|
*/
|
|
8542
8542
|
async getReviewsByRating(rating, options) {
|
|
8543
8543
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByRating(rating, options);
|
|
8544
|
-
return (axios =
|
|
8544
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8545
8545
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8546
8546
|
return axios.request(axiosRequestArgs);
|
|
8547
8547
|
};
|
|
@@ -8554,7 +8554,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8554
8554
|
*/
|
|
8555
8555
|
async getReviewsByStore(options) {
|
|
8556
8556
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByStore(options);
|
|
8557
|
-
return (axios =
|
|
8557
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8558
8558
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8559
8559
|
return axios.request(axiosRequestArgs);
|
|
8560
8560
|
};
|
|
@@ -8568,7 +8568,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8568
8568
|
*/
|
|
8569
8569
|
async getReviewsByType(type, options) {
|
|
8570
8570
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByType(type, options);
|
|
8571
|
-
return (axios =
|
|
8571
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8572
8572
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8573
8573
|
return axios.request(axiosRequestArgs);
|
|
8574
8574
|
};
|
|
@@ -8582,7 +8582,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8582
8582
|
*/
|
|
8583
8583
|
async getReviewsByUser(userId, options) {
|
|
8584
8584
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getReviewsByUser(userId, options);
|
|
8585
|
-
return (axios =
|
|
8585
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8586
8586
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8587
8587
|
return axios.request(axiosRequestArgs);
|
|
8588
8588
|
};
|
|
@@ -8595,7 +8595,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8595
8595
|
*/
|
|
8596
8596
|
async getUserCompletedOrders(options) {
|
|
8597
8597
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).getUserCompletedOrders(options);
|
|
8598
|
-
return (axios =
|
|
8598
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8599
8599
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8600
8600
|
return axios.request(axiosRequestArgs);
|
|
8601
8601
|
};
|
|
@@ -8609,7 +8609,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8609
8609
|
*/
|
|
8610
8610
|
async removeReplay(id, options) {
|
|
8611
8611
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReplay(id, options);
|
|
8612
|
-
return (axios =
|
|
8612
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8613
8613
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8614
8614
|
return axios.request(axiosRequestArgs);
|
|
8615
8615
|
};
|
|
@@ -8623,7 +8623,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8623
8623
|
*/
|
|
8624
8624
|
async removeReview(id, options) {
|
|
8625
8625
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).removeReview(id, options);
|
|
8626
|
-
return (axios =
|
|
8626
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8627
8627
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8628
8628
|
return axios.request(axiosRequestArgs);
|
|
8629
8629
|
};
|
|
@@ -8638,7 +8638,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8638
8638
|
*/
|
|
8639
8639
|
async updateReplay(body, id, options) {
|
|
8640
8640
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReplay(body, id, options);
|
|
8641
|
-
return (axios =
|
|
8641
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8642
8642
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8643
8643
|
return axios.request(axiosRequestArgs);
|
|
8644
8644
|
};
|
|
@@ -8653,7 +8653,7 @@ var ReviewApiFp = function(configuration) {
|
|
|
8653
8653
|
*/
|
|
8654
8654
|
async updateReview(body, id, options) {
|
|
8655
8655
|
const localVarAxiosArgs = await ReviewApiAxiosParamCreator(configuration).updateReview(body, id, options);
|
|
8656
|
-
return (axios =
|
|
8656
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
8657
8657
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
8658
8658
|
return axios.request(axiosRequestArgs);
|
|
8659
8659
|
};
|
|
@@ -9126,7 +9126,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9126
9126
|
*/
|
|
9127
9127
|
async getAllShipments(options) {
|
|
9128
9128
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllShipments(options);
|
|
9129
|
-
return (axios =
|
|
9129
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9130
9130
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9131
9131
|
return axios.request(axiosRequestArgs);
|
|
9132
9132
|
};
|
|
@@ -9139,7 +9139,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9139
9139
|
*/
|
|
9140
9140
|
async getAllUserShipments(options) {
|
|
9141
9141
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getAllUserShipments(options);
|
|
9142
|
-
return (axios =
|
|
9142
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9143
9143
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9144
9144
|
return axios.request(axiosRequestArgs);
|
|
9145
9145
|
};
|
|
@@ -9153,7 +9153,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9153
9153
|
*/
|
|
9154
9154
|
async getOrderShipment(orderId, options) {
|
|
9155
9155
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getOrderShipment(orderId, options);
|
|
9156
|
-
return (axios =
|
|
9156
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9157
9157
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9158
9158
|
return axios.request(axiosRequestArgs);
|
|
9159
9159
|
};
|
|
@@ -9168,7 +9168,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9168
9168
|
*/
|
|
9169
9169
|
async getShippingRates(body, addressId, options) {
|
|
9170
9170
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getShippingRates(body, addressId, options);
|
|
9171
|
-
return (axios =
|
|
9171
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9172
9172
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9173
9173
|
return axios.request(axiosRequestArgs);
|
|
9174
9174
|
};
|
|
@@ -9181,7 +9181,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9181
9181
|
*/
|
|
9182
9182
|
async getStoreAddress(options) {
|
|
9183
9183
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).getStoreAddress(options);
|
|
9184
|
-
return (axios =
|
|
9184
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9185
9185
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9186
9186
|
return axios.request(axiosRequestArgs);
|
|
9187
9187
|
};
|
|
@@ -9196,7 +9196,7 @@ var ShippingApiFp = function(configuration) {
|
|
|
9196
9196
|
*/
|
|
9197
9197
|
async updateManualShipmentStatus(body, shipmentId, options) {
|
|
9198
9198
|
const localVarAxiosArgs = await ShippingApiAxiosParamCreator(configuration).updateManualShipmentStatus(body, shipmentId, options);
|
|
9199
|
-
return (axios =
|
|
9199
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
9200
9200
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
9201
9201
|
return axios.request(axiosRequestArgs);
|
|
9202
9202
|
};
|
|
@@ -10391,7 +10391,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10391
10391
|
*/
|
|
10392
10392
|
async createShippoAccount(body, storeId, options) {
|
|
10393
10393
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createShippoAccount(body, storeId, options);
|
|
10394
|
-
return (axios =
|
|
10394
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10395
10395
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10396
10396
|
return axios.request(axiosRequestArgs);
|
|
10397
10397
|
};
|
|
@@ -10405,7 +10405,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10405
10405
|
*/
|
|
10406
10406
|
async createStore(body, options) {
|
|
10407
10407
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).createStore(body, options);
|
|
10408
|
-
return (axios =
|
|
10408
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10409
10409
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10410
10410
|
return axios.request(axiosRequestArgs);
|
|
10411
10411
|
};
|
|
@@ -10419,7 +10419,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10419
10419
|
*/
|
|
10420
10420
|
async deleteRefillRequest(requestId, options) {
|
|
10421
10421
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteRefillRequest(requestId, options);
|
|
10422
|
-
return (axios =
|
|
10422
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10423
10423
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10424
10424
|
return axios.request(axiosRequestArgs);
|
|
10425
10425
|
};
|
|
@@ -10433,7 +10433,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10433
10433
|
*/
|
|
10434
10434
|
async deleteStore(id, options) {
|
|
10435
10435
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteStore(id, options);
|
|
10436
|
-
return (axios =
|
|
10436
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10437
10437
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10438
10438
|
return axios.request(axiosRequestArgs);
|
|
10439
10439
|
};
|
|
@@ -10447,7 +10447,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10447
10447
|
*/
|
|
10448
10448
|
async deleteTransferePatientsRequest(requestId, options) {
|
|
10449
10449
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).deleteTransferePatientsRequest(requestId, options);
|
|
10450
|
-
return (axios =
|
|
10450
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10451
10451
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10452
10452
|
return axios.request(axiosRequestArgs);
|
|
10453
10453
|
};
|
|
@@ -10460,7 +10460,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10460
10460
|
*/
|
|
10461
10461
|
async getAllStores(options) {
|
|
10462
10462
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getAllStores(options);
|
|
10463
|
-
return (axios =
|
|
10463
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10464
10464
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10465
10465
|
return axios.request(axiosRequestArgs);
|
|
10466
10466
|
};
|
|
@@ -10474,7 +10474,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10474
10474
|
*/
|
|
10475
10475
|
async getApiKeys(storeId, options) {
|
|
10476
10476
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getApiKeys(storeId, options);
|
|
10477
|
-
return (axios =
|
|
10477
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10478
10478
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10479
10479
|
return axios.request(axiosRequestArgs);
|
|
10480
10480
|
};
|
|
@@ -10488,7 +10488,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10488
10488
|
*/
|
|
10489
10489
|
async getRefillRequests(storeId, options) {
|
|
10490
10490
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getRefillRequests(storeId, options);
|
|
10491
|
-
return (axios =
|
|
10491
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10492
10492
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10493
10493
|
return axios.request(axiosRequestArgs);
|
|
10494
10494
|
};
|
|
@@ -10502,7 +10502,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10502
10502
|
*/
|
|
10503
10503
|
async getShippoAccount(storeId, options) {
|
|
10504
10504
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getShippoAccount(storeId, options);
|
|
10505
|
-
return (axios =
|
|
10505
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10506
10506
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10507
10507
|
return axios.request(axiosRequestArgs);
|
|
10508
10508
|
};
|
|
@@ -10516,7 +10516,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10516
10516
|
*/
|
|
10517
10517
|
async getStoreById(storeId, options) {
|
|
10518
10518
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreById(storeId, options);
|
|
10519
|
-
return (axios =
|
|
10519
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10520
10520
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10521
10521
|
return axios.request(axiosRequestArgs);
|
|
10522
10522
|
};
|
|
@@ -10530,7 +10530,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10530
10530
|
*/
|
|
10531
10531
|
async getStoreCapabilities(storeId, options) {
|
|
10532
10532
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getStoreCapabilities(storeId, options);
|
|
10533
|
-
return (axios =
|
|
10533
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10534
10534
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10535
10535
|
return axios.request(axiosRequestArgs);
|
|
10536
10536
|
};
|
|
@@ -10544,7 +10544,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10544
10544
|
*/
|
|
10545
10545
|
async getTransferePatientsRequests(storeId, options) {
|
|
10546
10546
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).getTransferePatientsRequests(storeId, options);
|
|
10547
|
-
return (axios =
|
|
10547
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10548
10548
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10549
10549
|
return axios.request(axiosRequestArgs);
|
|
10550
10550
|
};
|
|
@@ -10559,7 +10559,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10559
10559
|
*/
|
|
10560
10560
|
async revokeApiKey(storeId, keyType, options) {
|
|
10561
10561
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).revokeApiKey(storeId, keyType, options);
|
|
10562
|
-
return (axios =
|
|
10562
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10563
10563
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10564
10564
|
return axios.request(axiosRequestArgs);
|
|
10565
10565
|
};
|
|
@@ -10571,7 +10571,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10571
10571
|
*/
|
|
10572
10572
|
async sendContactUsEmail(options) {
|
|
10573
10573
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmail(options);
|
|
10574
|
-
return (axios =
|
|
10574
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10575
10575
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10576
10576
|
return axios.request(axiosRequestArgs);
|
|
10577
10577
|
};
|
|
@@ -10583,7 +10583,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10583
10583
|
*/
|
|
10584
10584
|
async sendContactUsEmailEzrirx(options) {
|
|
10585
10585
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendContactUsEmailEzrirx(options);
|
|
10586
|
-
return (axios =
|
|
10586
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10587
10587
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10588
10588
|
return axios.request(axiosRequestArgs);
|
|
10589
10589
|
};
|
|
@@ -10595,7 +10595,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10595
10595
|
*/
|
|
10596
10596
|
async sendGMBookDemoEmail(options) {
|
|
10597
10597
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMBookDemoEmail(options);
|
|
10598
|
-
return (axios =
|
|
10598
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10599
10599
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10600
10600
|
return axios.request(axiosRequestArgs);
|
|
10601
10601
|
};
|
|
@@ -10607,7 +10607,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10607
10607
|
*/
|
|
10608
10608
|
async sendGMContactUsEmail(options) {
|
|
10609
10609
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMContactUsEmail(options);
|
|
10610
|
-
return (axios =
|
|
10610
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10611
10611
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10612
10612
|
return axios.request(axiosRequestArgs);
|
|
10613
10613
|
};
|
|
@@ -10619,7 +10619,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10619
10619
|
*/
|
|
10620
10620
|
async sendGMJoinUsEmail(options) {
|
|
10621
10621
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendGMJoinUsEmail(options);
|
|
10622
|
-
return (axios =
|
|
10622
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10623
10623
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10624
10624
|
return axios.request(axiosRequestArgs);
|
|
10625
10625
|
};
|
|
@@ -10631,7 +10631,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10631
10631
|
*/
|
|
10632
10632
|
async sendHolyFamilyEmail(options) {
|
|
10633
10633
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendHolyFamilyEmail(options);
|
|
10634
|
-
return (axios =
|
|
10634
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10635
10635
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10636
10636
|
return axios.request(axiosRequestArgs);
|
|
10637
10637
|
};
|
|
@@ -10643,7 +10643,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10643
10643
|
*/
|
|
10644
10644
|
async sendMghBookingForm(options) {
|
|
10645
10645
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendMghBookingForm(options);
|
|
10646
|
-
return (axios =
|
|
10646
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10647
10647
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10648
10648
|
return axios.request(axiosRequestArgs);
|
|
10649
10649
|
};
|
|
@@ -10657,7 +10657,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10657
10657
|
*/
|
|
10658
10658
|
async sendNewClientEmail(body, options) {
|
|
10659
10659
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewClientEmail(body, options);
|
|
10660
|
-
return (axios =
|
|
10660
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10661
10661
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10662
10662
|
return axios.request(axiosRequestArgs);
|
|
10663
10663
|
};
|
|
@@ -10670,7 +10670,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10670
10670
|
*/
|
|
10671
10671
|
async sendNewPatientEmail(body, options) {
|
|
10672
10672
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendNewPatientEmail(body, options);
|
|
10673
|
-
return (axios =
|
|
10673
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10674
10674
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10675
10675
|
return axios.request(axiosRequestArgs);
|
|
10676
10676
|
};
|
|
@@ -10683,7 +10683,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10683
10683
|
*/
|
|
10684
10684
|
async sendRefillEmail(body, options) {
|
|
10685
10685
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendRefillEmail(body, options);
|
|
10686
|
-
return (axios =
|
|
10686
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10687
10687
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10688
10688
|
return axios.request(axiosRequestArgs);
|
|
10689
10689
|
};
|
|
@@ -10697,7 +10697,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10697
10697
|
*/
|
|
10698
10698
|
async sendScheduleTourEmail(body, options) {
|
|
10699
10699
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).sendScheduleTourEmail(body, options);
|
|
10700
|
-
return (axios =
|
|
10700
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10701
10701
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10702
10702
|
return axios.request(axiosRequestArgs);
|
|
10703
10703
|
};
|
|
@@ -10712,7 +10712,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10712
10712
|
*/
|
|
10713
10713
|
async updateApiKeys(body, storeId, options) {
|
|
10714
10714
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateApiKeys(body, storeId, options);
|
|
10715
|
-
return (axios =
|
|
10715
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10716
10716
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10717
10717
|
return axios.request(axiosRequestArgs);
|
|
10718
10718
|
};
|
|
@@ -10727,7 +10727,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10727
10727
|
*/
|
|
10728
10728
|
async updateRefillRequest(body, requestId, options) {
|
|
10729
10729
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateRefillRequest(body, requestId, options);
|
|
10730
|
-
return (axios =
|
|
10730
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10731
10731
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10732
10732
|
return axios.request(axiosRequestArgs);
|
|
10733
10733
|
};
|
|
@@ -10742,7 +10742,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10742
10742
|
*/
|
|
10743
10743
|
async updateStore(body, id, options) {
|
|
10744
10744
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateStore(body, id, options);
|
|
10745
|
-
return (axios =
|
|
10745
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10746
10746
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10747
10747
|
return axios.request(axiosRequestArgs);
|
|
10748
10748
|
};
|
|
@@ -10757,7 +10757,7 @@ var StoresApiFp = function(configuration) {
|
|
|
10757
10757
|
*/
|
|
10758
10758
|
async updateTransferePatientsRequest(body, requestId, options) {
|
|
10759
10759
|
const localVarAxiosArgs = await StoresApiAxiosParamCreator(configuration).updateTransferePatientsRequest(body, requestId, options);
|
|
10760
|
-
return (axios =
|
|
10760
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
10761
10761
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
10762
10762
|
return axios.request(axiosRequestArgs);
|
|
10763
10763
|
};
|
|
@@ -11261,7 +11261,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11261
11261
|
*/
|
|
11262
11262
|
async addToWishlist(productId, options) {
|
|
11263
11263
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).addToWishlist(productId, options);
|
|
11264
|
-
return (axios =
|
|
11264
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11265
11265
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11266
11266
|
return axios.request(axiosRequestArgs);
|
|
11267
11267
|
};
|
|
@@ -11274,7 +11274,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11274
11274
|
*/
|
|
11275
11275
|
async clearWishlist(options) {
|
|
11276
11276
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).clearWishlist(options);
|
|
11277
|
-
return (axios =
|
|
11277
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11278
11278
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11279
11279
|
return axios.request(axiosRequestArgs);
|
|
11280
11280
|
};
|
|
@@ -11287,7 +11287,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11287
11287
|
*/
|
|
11288
11288
|
async getWishlist(options) {
|
|
11289
11289
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlist(options);
|
|
11290
|
-
return (axios =
|
|
11290
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11291
11291
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11292
11292
|
return axios.request(axiosRequestArgs);
|
|
11293
11293
|
};
|
|
@@ -11300,7 +11300,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11300
11300
|
*/
|
|
11301
11301
|
async getWishlistItemCount(options) {
|
|
11302
11302
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).getWishlistItemCount(options);
|
|
11303
|
-
return (axios =
|
|
11303
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11304
11304
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11305
11305
|
return axios.request(axiosRequestArgs);
|
|
11306
11306
|
};
|
|
@@ -11314,7 +11314,7 @@ var WishlistApiFp = function(configuration) {
|
|
|
11314
11314
|
*/
|
|
11315
11315
|
async removeFromWishlist(productId, options) {
|
|
11316
11316
|
const localVarAxiosArgs = await WishlistApiAxiosParamCreator(configuration).removeFromWishlist(productId, options);
|
|
11317
|
-
return (axios =
|
|
11317
|
+
return (axios = globalAxios20, basePath = BASE_PATH) => {
|
|
11318
11318
|
const axiosRequestArgs = { ...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url };
|
|
11319
11319
|
return axios.request(axiosRequestArgs);
|
|
11320
11320
|
};
|
|
@@ -11412,45 +11412,6 @@ var BulkChannelToggleDtoCategoryEnum = /* @__PURE__ */ ((BulkChannelToggleDtoCat
|
|
|
11412
11412
|
return BulkChannelToggleDtoCategoryEnum2;
|
|
11413
11413
|
})(BulkChannelToggleDtoCategoryEnum || {});
|
|
11414
11414
|
|
|
11415
|
-
// src/lib/Apis/models/campaign-draft-dto.ts
|
|
11416
|
-
var CampaignDraftDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftDtoStatusEnum2) => {
|
|
11417
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_3"] = -3] = "NUMBER_MINUS_3";
|
|
11418
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_2"] = -2] = "NUMBER_MINUS_2";
|
|
11419
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_MINUS_1"] = -1] = "NUMBER_MINUS_1";
|
|
11420
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_0"] = 0] = "NUMBER_0";
|
|
11421
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_1"] = 1] = "NUMBER_1";
|
|
11422
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_2"] = 2] = "NUMBER_2";
|
|
11423
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_3"] = 3] = "NUMBER_3";
|
|
11424
|
-
CampaignDraftDtoStatusEnum2[CampaignDraftDtoStatusEnum2["NUMBER_4"] = 4] = "NUMBER_4";
|
|
11425
|
-
return CampaignDraftDtoStatusEnum2;
|
|
11426
|
-
})(CampaignDraftDtoStatusEnum || {});
|
|
11427
|
-
|
|
11428
|
-
// src/lib/Apis/models/campaign-draft-schedule-dto.ts
|
|
11429
|
-
var CampaignDraftScheduleDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftScheduleDtoStatusEnum2) => {
|
|
11430
|
-
CampaignDraftScheduleDtoStatusEnum2["AXCancelled"] = "AXCancelled";
|
|
11431
|
-
CampaignDraftScheduleDtoStatusEnum2["Deleted"] = "Deleted";
|
|
11432
|
-
CampaignDraftScheduleDtoStatusEnum2["Archived"] = "Archived";
|
|
11433
|
-
CampaignDraftScheduleDtoStatusEnum2["Draft"] = "Draft";
|
|
11434
|
-
CampaignDraftScheduleDtoStatusEnum2["Programmed"] = "Programmed";
|
|
11435
|
-
CampaignDraftScheduleDtoStatusEnum2["Sent"] = "Sent";
|
|
11436
|
-
CampaignDraftScheduleDtoStatusEnum2["AXTested"] = "AXTested";
|
|
11437
|
-
CampaignDraftScheduleDtoStatusEnum2["AXSelected"] = "AXSelected";
|
|
11438
|
-
return CampaignDraftScheduleDtoStatusEnum2;
|
|
11439
|
-
})(CampaignDraftScheduleDtoStatusEnum || {});
|
|
11440
|
-
|
|
11441
|
-
// src/lib/Apis/models/campaign-draft-sending-dto.ts
|
|
11442
|
-
var CampaignDraftSendingDtoStatusEnum = /* @__PURE__ */ ((CampaignDraftSendingDtoStatusEnum2) => {
|
|
11443
|
-
CampaignDraftSendingDtoStatusEnum2["AXCancelled"] = "AXCancelled";
|
|
11444
|
-
CampaignDraftSendingDtoStatusEnum2["Deleted"] = "Deleted";
|
|
11445
|
-
CampaignDraftSendingDtoStatusEnum2["Archived"] = "Archived";
|
|
11446
|
-
CampaignDraftSendingDtoStatusEnum2["Draft"] = "Draft";
|
|
11447
|
-
CampaignDraftSendingDtoStatusEnum2["Programmed"] = "Programmed";
|
|
11448
|
-
CampaignDraftSendingDtoStatusEnum2["Sent"] = "Sent";
|
|
11449
|
-
CampaignDraftSendingDtoStatusEnum2["AXTested"] = "AXTested";
|
|
11450
|
-
CampaignDraftSendingDtoStatusEnum2["AXSelected"] = "AXSelected";
|
|
11451
|
-
return CampaignDraftSendingDtoStatusEnum2;
|
|
11452
|
-
})(CampaignDraftSendingDtoStatusEnum || {});
|
|
11453
|
-
|
|
11454
11415
|
// src/lib/Apis/models/create-address-dto.ts
|
|
11455
11416
|
var CreateAddressDtoAddressTypeEnum = /* @__PURE__ */ ((CreateAddressDtoAddressTypeEnum2) => {
|
|
11456
11417
|
CreateAddressDtoAddressTypeEnum2["Billing"] = "Billing";
|
|
@@ -11655,6 +11616,7 @@ var PreferenceUpdateItemTypeEnum = /* @__PURE__ */ ((PreferenceUpdateItemTypeEnu
|
|
|
11655
11616
|
PreferenceUpdateItemTypeEnum2["ORDERSHIPPED"] = "ORDER_SHIPPED";
|
|
11656
11617
|
PreferenceUpdateItemTypeEnum2["ORDERDELIVERED"] = "ORDER_DELIVERED";
|
|
11657
11618
|
PreferenceUpdateItemTypeEnum2["REFUNDPROCESSED"] = "REFUND_PROCESSED";
|
|
11619
|
+
PreferenceUpdateItemTypeEnum2["REVIEWREPLY"] = "REVIEW_REPLY";
|
|
11658
11620
|
PreferenceUpdateItemTypeEnum2["ABANDONEDCARTREMINDER"] = "ABANDONED_CART_REMINDER";
|
|
11659
11621
|
PreferenceUpdateItemTypeEnum2["PRICEDROPALERT"] = "PRICE_DROP_ALERT";
|
|
11660
11622
|
PreferenceUpdateItemTypeEnum2["BACKINSTOCK"] = "BACK_IN_STOCK";
|
|
@@ -11845,7 +11807,7 @@ function Notification2({ notification, onDismiss }) {
|
|
|
11845
11807
|
animate: { opacity: 1, y: 0, scale: 1 },
|
|
11846
11808
|
exit: { opacity: 0, x: 100, scale: 0.95 },
|
|
11847
11809
|
transition: { type: "spring", stiffness: 500, damping: 30 },
|
|
11848
|
-
className: `relative bg-
|
|
11810
|
+
className: `relative bg-hprimary-50 rounded-2xl border-2 ${config.borderColor} shadow-xl overflow-hidden min-w-[320px] max-w-[420px]`,
|
|
11849
11811
|
children: [
|
|
11850
11812
|
/* @__PURE__ */ jsx("div", { className: `h-1 bg-linear-to-r ${config.gradient}` }),
|
|
11851
11813
|
/* @__PURE__ */ jsxs("div", { className: "p-4 flex items-start gap-3", children: [
|
|
@@ -11860,8 +11822,8 @@ function Notification2({ notification, onDismiss }) {
|
|
|
11860
11822
|
}
|
|
11861
11823
|
),
|
|
11862
11824
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
11863
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
11864
|
-
notification.description && /* @__PURE__ */ jsx("p", { className: "
|
|
11825
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[14px] text-[#2B4B7C] mb-1", children: notification.message }),
|
|
11826
|
+
notification.description && /* @__PURE__ */ jsx("p", { className: "text-[12px] text-[#676c80] leading-relaxed", children: notification.description })
|
|
11865
11827
|
] }),
|
|
11866
11828
|
/* @__PURE__ */ jsx(
|
|
11867
11829
|
"button",
|
|
@@ -12136,7 +12098,7 @@ init_config();
|
|
|
12136
12098
|
init_config();
|
|
12137
12099
|
init_sharedConfig();
|
|
12138
12100
|
init_sharedConfig();
|
|
12139
|
-
|
|
12101
|
+
globalAxios20.interceptors.request.use(async (config) => {
|
|
12140
12102
|
if (!config?.headers) {
|
|
12141
12103
|
throw new Error(
|
|
12142
12104
|
`Expected 'config' and 'config.headers' not to be undefined`
|
|
@@ -12770,8 +12732,8 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12770
12732
|
children: /* @__PURE__ */ jsxs("div", { className: "p-8", children: [
|
|
12771
12733
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-6", children: [
|
|
12772
12734
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
12773
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
12774
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
12735
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hprimary uppercase tracking-wide font-medium mb-2", children: product.brand }),
|
|
12736
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-hsecondary tracking-[-1px]", children: displayName }),
|
|
12775
12737
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mt-2", children: [
|
|
12776
12738
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-0.5", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx(
|
|
12777
12739
|
Star,
|
|
@@ -12780,7 +12742,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12780
12742
|
},
|
|
12781
12743
|
i
|
|
12782
12744
|
)) }),
|
|
12783
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
12745
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[13px] text-hmuted", children: [
|
|
12784
12746
|
product.summary?.averageRating || 0,
|
|
12785
12747
|
" (",
|
|
12786
12748
|
product.summary?.reviewCount || 0,
|
|
@@ -12808,7 +12770,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12808
12770
|
className: "w-full h-full object-contain"
|
|
12809
12771
|
}
|
|
12810
12772
|
),
|
|
12811
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: isDiscounted && /* @__PURE__ */ jsx("div", { className: "bg-haccent text-white rounded-full px-3 py-1.5", children: /* @__PURE__ */ jsxs("span", { className: "font-
|
|
12773
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-4 left-4 flex flex-col gap-2", children: isDiscounted && /* @__PURE__ */ jsx("div", { className: "bg-haccent text-white rounded-full px-3 py-1.5", children: /* @__PURE__ */ jsxs("span", { className: "font-bold text-[11px] uppercase", children: [
|
|
12812
12774
|
"-",
|
|
12813
12775
|
discountAmount,
|
|
12814
12776
|
"%"
|
|
@@ -12833,33 +12795,33 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12833
12795
|
] }),
|
|
12834
12796
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
12835
12797
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-4", children: [
|
|
12836
|
-
/* @__PURE__ */ jsxs("span", { className: "font-
|
|
12798
|
+
/* @__PURE__ */ jsxs("span", { className: "font-bold text-[32px] text-haccent", children: [
|
|
12837
12799
|
"$",
|
|
12838
12800
|
displayPrice.toFixed(2)
|
|
12839
12801
|
] }),
|
|
12840
|
-
isDiscounted && /* @__PURE__ */ jsxs("span", { className: "
|
|
12802
|
+
isDiscounted && /* @__PURE__ */ jsxs("span", { className: "text-[20px] text-hmuted line-through", children: [
|
|
12841
12803
|
"$",
|
|
12842
12804
|
displayOriginalPrice.toFixed(2)
|
|
12843
12805
|
] })
|
|
12844
12806
|
] }),
|
|
12845
|
-
/* @__PURE__ */ jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsx("span", { className: "
|
|
12807
|
+
/* @__PURE__ */ jsx("div", { className: "mb-6", children: selectedVariant.inventoryCount === 0 ? /* @__PURE__ */ jsx("span", { className: "text-[12px] text-red-500 font-medium", children: "Out of Stock" }) : selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxs("span", { className: "text-[12px] text-hprimary font-medium flex items-center gap-1", children: [
|
|
12846
12808
|
/* @__PURE__ */ jsx(Package, { className: "size-3" }),
|
|
12847
12809
|
"Only ",
|
|
12848
12810
|
selectedVariant.inventoryCount,
|
|
12849
12811
|
" left in stock"
|
|
12850
|
-
] }) : /* @__PURE__ */ jsxs("span", { className: "
|
|
12812
|
+
] }) : /* @__PURE__ */ jsxs("span", { className: "text-[12px] text-green-600 font-medium flex items-center gap-1", children: [
|
|
12851
12813
|
/* @__PURE__ */ jsx(Package, { className: "size-3" }),
|
|
12852
12814
|
"In Stock"
|
|
12853
12815
|
] }) }),
|
|
12854
12816
|
/* @__PURE__ */ jsx(
|
|
12855
12817
|
"div",
|
|
12856
12818
|
{
|
|
12857
|
-
className: "
|
|
12819
|
+
className: "text-[14px] text-hmuted leading-[1.7] mb-6 max-w-full overflow-hidden break-words",
|
|
12858
12820
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
12859
12821
|
}
|
|
12860
12822
|
),
|
|
12861
12823
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
12862
|
-
/* @__PURE__ */ jsxs("h3", { className: "font-
|
|
12824
|
+
/* @__PURE__ */ jsxs("h3", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: [
|
|
12863
12825
|
"Selected Variant: ",
|
|
12864
12826
|
/* @__PURE__ */ jsx("span", { className: "font-normal text-hmuted", children: product.variants[selectedVariantIndex].name })
|
|
12865
12827
|
] }),
|
|
@@ -12890,10 +12852,10 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12890
12852
|
] }),
|
|
12891
12853
|
/* @__PURE__ */ jsx("div", { className: "mb-6 p-4 bg-gray-50 rounded-xl", children: /* @__PURE__ */ jsx("ul", { className: "space-y-2", children: product.tags.slice(0, 3).map((feature, index) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2", children: [
|
|
12892
12854
|
/* @__PURE__ */ jsx(Check, { className: "size-4 text-hprimary shrink-0 mt-0.5" }),
|
|
12893
|
-
/* @__PURE__ */ jsx("span", { className: "
|
|
12855
|
+
/* @__PURE__ */ jsx("span", { className: "text-[12px] text-hmuted", children: feature })
|
|
12894
12856
|
] }, index)) }) }),
|
|
12895
12857
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
12896
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
12858
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Quantity" }),
|
|
12897
12859
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
12898
12860
|
/* @__PURE__ */ jsx(
|
|
12899
12861
|
"button",
|
|
@@ -12922,7 +12884,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12922
12884
|
{
|
|
12923
12885
|
onClick: handleAddToCart,
|
|
12924
12886
|
disabled: addedToCart || selectedVariant.inventoryCount === 0,
|
|
12925
|
-
className: `w-full font-
|
|
12887
|
+
className: `w-full font-medium text-[14px] px-6 py-4 rounded-full transition-all duration-300 flex items-center justify-center gap-3 ${addedToCart ? "bg-green-500 text-white" : "bg-haccent text-white hover:bg-[#d66f45] hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed"}`,
|
|
12926
12888
|
children: isAddingToCart ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12927
12889
|
/* @__PURE__ */ jsxs("svg", { className: "animate-spin h-5 w-5", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", children: [
|
|
12928
12890
|
/* @__PURE__ */ jsx("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
|
|
@@ -12941,7 +12903,7 @@ function QuickViewModal({ product, onClose, onNavigateToProduct }) {
|
|
|
12941
12903
|
onClick: () => {
|
|
12942
12904
|
onClose();
|
|
12943
12905
|
},
|
|
12944
|
-
className: "w-full font-
|
|
12906
|
+
className: "w-full font-medium text-[13px] px-6 py-3 rounded-full bg-white text-hsecondary border-2 border-hprimary hover:bg-gray-50 transition-all flex items-center justify-center gap-2",
|
|
12945
12907
|
children: [
|
|
12946
12908
|
"View Full Details",
|
|
12947
12909
|
/* @__PURE__ */ jsx(ExternalLink, { className: "size-4" })
|
|
@@ -13093,42 +13055,42 @@ function ProductCard({
|
|
|
13093
13055
|
children: /* @__PURE__ */ jsx(Eye, { className: "size-4 text-[#2B4B7C]" })
|
|
13094
13056
|
}
|
|
13095
13057
|
),
|
|
13096
|
-
displayInventoryCount === 0 && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-xs flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "bg-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsx("span", { className: "font-
|
|
13058
|
+
displayInventoryCount === 0 && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-xs flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "bg-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsx("span", { className: "font-bold text-[11px] text-[#2B4B7C] uppercase", children: "Out of Stock" }) }) })
|
|
13097
13059
|
]
|
|
13098
13060
|
}
|
|
13099
13061
|
),
|
|
13100
13062
|
/* @__PURE__ */ jsxs("div", { className: "p-4 flex-1 flex flex-col", children: [
|
|
13101
13063
|
/* @__PURE__ */ jsxs("div", { className: "p-0 flex-1 flex flex-col", children: [
|
|
13102
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsx("span", { className: "bg-[#E67E50] text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxs("span", { className: "font-
|
|
13064
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1 mb-2 flex-wrap", children: displayIsDiscounted && /* @__PURE__ */ jsx("span", { className: "bg-[#E67E50] text-white rounded-full px-2 py-0.5 flex items-center gap-1", children: /* @__PURE__ */ jsxs("span", { className: "font-bold text-[8px] uppercase", children: [
|
|
13103
13065
|
"-",
|
|
13104
13066
|
displayDiscountAmount,
|
|
13105
13067
|
"%"
|
|
13106
13068
|
] }) }) }),
|
|
13107
|
-
/* @__PURE__ */ jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsx("p", { className: "
|
|
13069
|
+
/* @__PURE__ */ jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsx("p", { className: "text-xs text-hsecondary uppercase tracking-wide font-medium", children: product.brand }) }),
|
|
13108
13070
|
/* @__PURE__ */ jsxs("div", { className: "h-[40px] mb-3", children: [
|
|
13109
|
-
/* @__PURE__ */ jsx("h3", { className: "text-sm font-
|
|
13110
|
-
selectedVariant && /* @__PURE__ */ jsx("p", { className: "text-xs
|
|
13071
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-[#2B4B7C] line-clamp-2", children: product.name }),
|
|
13072
|
+
selectedVariant && /* @__PURE__ */ jsx("p", { className: "text-xs text-[#676c80]", children: selectedVariant.name })
|
|
13111
13073
|
] }),
|
|
13112
13074
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 my-2", children: [
|
|
13113
13075
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-0.5", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx(
|
|
13114
13076
|
Star,
|
|
13115
13077
|
{
|
|
13116
|
-
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-
|
|
13078
|
+
className: `size-4 ${i < Math.floor(product.summary?.averageRating || 0) ? "text-hsecondary fill-hsecondary-500" : "text-gray-300"}`
|
|
13117
13079
|
},
|
|
13118
13080
|
i
|
|
13119
13081
|
)) }),
|
|
13120
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
13082
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[10px] text-[#676c80] ", children: [
|
|
13121
13083
|
"(",
|
|
13122
13084
|
product.summary?.reviewCount || 0,
|
|
13123
13085
|
")"
|
|
13124
13086
|
] })
|
|
13125
13087
|
] }),
|
|
13126
13088
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 mb-3", children: [
|
|
13127
|
-
/* @__PURE__ */ jsxs("span", { className: "font-
|
|
13089
|
+
/* @__PURE__ */ jsxs("span", { className: "font-bold text-md text-hprimary-600", children: [
|
|
13128
13090
|
"$",
|
|
13129
13091
|
displayFinalPrice.toFixed(2)
|
|
13130
13092
|
] }),
|
|
13131
|
-
displayIsDiscounted && /* @__PURE__ */ jsxs("span", { className: "
|
|
13093
|
+
displayIsDiscounted && /* @__PURE__ */ jsxs("span", { className: "text-sm text-[#676c80] line-through", children: [
|
|
13132
13094
|
"$",
|
|
13133
13095
|
displayPriceBeforeDiscount.toFixed(2)
|
|
13134
13096
|
] })
|
|
@@ -13203,7 +13165,7 @@ function ProductCard({
|
|
|
13203
13165
|
}
|
|
13204
13166
|
},
|
|
13205
13167
|
disabled: isAddingToCart || variantImages.length > 0 && !selectedVariantId || displayInventoryCount === 0,
|
|
13206
|
-
className: "w-full font-
|
|
13168
|
+
className: "w-full font-medium text-[11px] px-3 py-2 rounded-full bg-hsecondary text-white hover:bg-hsecondary/80 hover:shadow-lg transition-all duration-300 flex items-center justify-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer",
|
|
13207
13169
|
children: [
|
|
13208
13170
|
/* @__PURE__ */ jsx(ShoppingCart, { className: "h-4 w-4" }),
|
|
13209
13171
|
displayInventoryCount === 0 ? "Out of Stock" : "Add to Cart"
|
|
@@ -13991,9 +13953,9 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
13991
13953
|
return Package;
|
|
13992
13954
|
};
|
|
13993
13955
|
const renderFiltersPanel = () => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: "space-y-6", children: /* @__PURE__ */ jsx("div", { className: `lg:w-72 ${showFilters ? "block rounded-full" : "hidden lg:block"}`, children: /* @__PURE__ */ jsxs("div", { className: "bg-white rounded-[24px] p-6 border-2 border-gray-100 sticky top-24", children: [
|
|
13994
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
13956
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-hsecondary", children: "Filters" }),
|
|
13995
13957
|
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
13996
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
13958
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted mb-2 block font-medium", children: "Search Products" }),
|
|
13997
13959
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
13998
13960
|
/* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-hmuted" }),
|
|
13999
13961
|
/* @__PURE__ */ jsx(
|
|
@@ -14003,7 +13965,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14003
13965
|
placeholder: "Search...",
|
|
14004
13966
|
value: searchQuery,
|
|
14005
13967
|
onChange: handleInputChange,
|
|
14006
|
-
className: "w-full pl-10 pr-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden
|
|
13968
|
+
className: "w-full pl-10 pr-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden text-[13px] text-hsecondary"
|
|
14007
13969
|
}
|
|
14008
13970
|
)
|
|
14009
13971
|
] })
|
|
@@ -14015,7 +13977,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14015
13977
|
onClick: () => toggleFilterSection("category"),
|
|
14016
13978
|
className: "w-full flex items-center justify-between mb-3",
|
|
14017
13979
|
children: [
|
|
14018
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
13980
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Category" }),
|
|
14019
13981
|
expandedFilterSections.category ? /* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.category ? "rotate-180" : ""}` }) : /* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.category ? "rotate-180" : ""}` })
|
|
14020
13982
|
]
|
|
14021
13983
|
}
|
|
@@ -14032,7 +13994,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14032
13994
|
if (!isExpanded) toggleCategoryExpand(categoryId);
|
|
14033
13995
|
handleCategoryChange(categoryId);
|
|
14034
13996
|
},
|
|
14035
|
-
className: `w-full text-left px-4 py-3 rounded-xl
|
|
13997
|
+
className: `w-full text-left px-4 py-3 rounded-xl text-[13px] transition-all flex items-center gap-3 ${isCategoryActive ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14036
13998
|
children: [
|
|
14037
13999
|
/* @__PURE__ */ jsx(Icon, { className: "size-4" }),
|
|
14038
14000
|
category.name
|
|
@@ -14049,7 +14011,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14049
14011
|
onClick: () => toggleFilterSection("brand"),
|
|
14050
14012
|
className: "w-full flex items-center justify-between mb-3",
|
|
14051
14013
|
children: [
|
|
14052
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
14014
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Brand" }),
|
|
14053
14015
|
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.brand ? "rotate-180" : ""}` })
|
|
14054
14016
|
]
|
|
14055
14017
|
}
|
|
@@ -14060,7 +14022,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14060
14022
|
"button",
|
|
14061
14023
|
{
|
|
14062
14024
|
onClick: () => handleBrandChange(brand),
|
|
14063
|
-
className: `w-full text-left px-4 py-3 rounded-xl
|
|
14025
|
+
className: `w-full text-left px-4 py-3 rounded-xl text-[13px] transition-all ${isSelected ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14064
14026
|
children: brand
|
|
14065
14027
|
},
|
|
14066
14028
|
brand
|
|
@@ -14074,7 +14036,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14074
14036
|
onClick: () => toggleFilterSection("availability"),
|
|
14075
14037
|
className: "w-full flex items-center justify-between mb-3",
|
|
14076
14038
|
children: [
|
|
14077
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
14039
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Availability" }),
|
|
14078
14040
|
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.availability ? "rotate-180" : ""}` })
|
|
14079
14041
|
]
|
|
14080
14042
|
}
|
|
@@ -14083,7 +14045,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14083
14045
|
"button",
|
|
14084
14046
|
{
|
|
14085
14047
|
onClick: handleToggleStock,
|
|
14086
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl
|
|
14048
|
+
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl text-[13px] transition-all border-2 ${inStockOnly ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14087
14049
|
children: "In Stock Only"
|
|
14088
14050
|
}
|
|
14089
14051
|
) })
|
|
@@ -14095,7 +14057,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14095
14057
|
onClick: () => toggleFilterSection("price"),
|
|
14096
14058
|
className: "w-full flex items-center justify-between mb-3",
|
|
14097
14059
|
children: [
|
|
14098
|
-
/* @__PURE__ */ jsx("label", { className: "
|
|
14060
|
+
/* @__PURE__ */ jsx("label", { className: "text-[12px] text-hmuted font-medium cursor-pointer", children: "Price Range" }),
|
|
14099
14061
|
/* @__PURE__ */ jsx(ChevronDown, { className: `size-4 text-hmuted transition-transform ${expandedFilterSections.price ? "rotate-180" : ""}` })
|
|
14100
14062
|
]
|
|
14101
14063
|
}
|
|
@@ -14108,7 +14070,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14108
14070
|
{
|
|
14109
14071
|
type: "button",
|
|
14110
14072
|
onClick: () => handlePriceRangeSelect(range.value),
|
|
14111
|
-
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl
|
|
14073
|
+
className: `w-full flex items-center justify-between px-4 py-3 rounded-xl text-[13px] transition-all border-2 ${isActive ? "bg-hprimary text-white shadow-lg" : "text-hsecondary hover:bg-gray-50 border-2 border-gray-100"}`,
|
|
14112
14074
|
children: range.label
|
|
14113
14075
|
},
|
|
14114
14076
|
range.value
|
|
@@ -14123,7 +14085,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14123
14085
|
placeholder: "Min",
|
|
14124
14086
|
value: customPrice.min,
|
|
14125
14087
|
onChange: (event) => setCustomPrice((current) => ({ ...current, min: event.target.value })),
|
|
14126
|
-
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden
|
|
14088
|
+
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden text-[13px] text-hsecondary"
|
|
14127
14089
|
}
|
|
14128
14090
|
),
|
|
14129
14091
|
/* @__PURE__ */ jsx(
|
|
@@ -14134,7 +14096,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14134
14096
|
placeholder: "Max",
|
|
14135
14097
|
value: customPrice.max,
|
|
14136
14098
|
onChange: (event) => setCustomPrice((current) => ({ ...current, max: event.target.value })),
|
|
14137
|
-
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden
|
|
14099
|
+
className: "w-1/2 px-4 py-2.5 rounded-xl border-2 border-gray-200 focus:border-hprimary focus:outline-hidden text-[13px] text-hsecondary"
|
|
14138
14100
|
}
|
|
14139
14101
|
)
|
|
14140
14102
|
] }),
|
|
@@ -14201,8 +14163,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14201
14163
|
]
|
|
14202
14164
|
}
|
|
14203
14165
|
) }) }),
|
|
14204
|
-
/* @__PURE__ */ jsx("section", { className: "py-8 bg-white", children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-4", children: [
|
|
14205
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-
|
|
14166
|
+
/* @__PURE__ */ jsx("section", { className: "py-8 bg-white/50", children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-4", children: [
|
|
14167
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-semibold text-hsecondary mb-6", children: "Shop by Category" }),
|
|
14206
14168
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4", children: [
|
|
14207
14169
|
/* @__PURE__ */ jsx(
|
|
14208
14170
|
motion.button,
|
|
@@ -14213,8 +14175,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14213
14175
|
className: `group relative overflow-hidden rounded-[24px] p-6 min-h-[180px] min-w-[170px] transition-all duration-300 ${!categoryFilter ? "bg-linear-to-br from-hprimary to-hsecondary text-white shadow-xl scale-105" : "bg-linear-to-br from-gray-50 to-white hover:shadow-lg border-2 border-gray-100 hover:border-hprimary"}`,
|
|
14214
14176
|
children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
14215
14177
|
/* @__PURE__ */ jsx("div", { className: `size-12 rounded-full mb-3 mx-auto flex items-center justify-center transition-all ${!categoryFilter ? "bg-white/20" : "bg-linear-to-br from-hprimary-10 to-hsecondary-10 group-hover:scale-110"}`, children: /* @__PURE__ */ jsx(Package, { className: `size-6 ${!categoryFilter ? "text-white" : "text-hprimary"}` }) }),
|
|
14216
|
-
/* @__PURE__ */ jsx("h3", { className: `font-
|
|
14217
|
-
/* @__PURE__ */ jsx("p", { className: `
|
|
14178
|
+
/* @__PURE__ */ jsx("h3", { className: `font-semibold text-[14px] mb-1.5 ${!categoryFilter ? "text-white" : "text-hsecondary"}`, children: "All Products" }),
|
|
14179
|
+
/* @__PURE__ */ jsx("p", { className: `text-[11px] ${!categoryFilter ? "text-white/80" : "text-hmuted"}`, children: "Browse Everything" })
|
|
14218
14180
|
] })
|
|
14219
14181
|
}
|
|
14220
14182
|
),
|
|
@@ -14232,8 +14194,8 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14232
14194
|
className: `group relative overflow-hidden rounded-[24px] p-6 min-h-[180px] min-w-[170px] transition-all duration-300 ${isSelected ? "bg-linear-to-br from-hprimary to-hsecondary text-white shadow-xl scale-105" : "bg-linear-to-br from-gray-50 to-white hover:shadow-lg border-2 border-gray-100 hover:border-hprimary"}`,
|
|
14233
14195
|
children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
14234
14196
|
/* @__PURE__ */ jsx("div", { className: `size-12 rounded-full mb-3 mx-auto flex items-center justify-center transition-all ${isSelected ? "bg-white/20" : "bg-linear-to-br from-hprimary-10 to-hsecondary-10 group-hover:scale-110"}`, children: /* @__PURE__ */ jsx(Icon, { className: `size-6 ${isSelected ? "text-white" : "text-hprimary"}` }) }),
|
|
14235
|
-
/* @__PURE__ */ jsx("h3", { className: `font-
|
|
14236
|
-
/* @__PURE__ */ jsx("p", { className: `
|
|
14197
|
+
/* @__PURE__ */ jsx("h3", { className: `font-semibold text-[14px] mb-1.5 ${isSelected ? "text-white" : "text-hsecondary"}`, children: category.name }),
|
|
14198
|
+
/* @__PURE__ */ jsx("p", { className: `text-[11px] ${isSelected ? "text-white/80" : "text-hmuted"}`, children: category.description })
|
|
14237
14199
|
] })
|
|
14238
14200
|
},
|
|
14239
14201
|
categoryId
|
|
@@ -14382,7 +14344,7 @@ function ShopScreen({ initialFilters = {}, categoryName }) {
|
|
|
14382
14344
|
event.stopPropagation();
|
|
14383
14345
|
router.push(buildPath(`/products/${product._id}`));
|
|
14384
14346
|
},
|
|
14385
|
-
className: "w-full font-
|
|
14347
|
+
className: "w-full font-medium text-sm px-3 py-2 rounded-xl bg-hsecondary text-white hover:opacity-80 hover:shadow-lg transition-all duration-300 flex items-center justify-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
14386
14348
|
children: "View product"
|
|
14387
14349
|
}
|
|
14388
14350
|
)
|
|
@@ -14745,7 +14707,7 @@ function RatingDistribution({ reviews, averageRating }) {
|
|
|
14745
14707
|
function ReviewCard({ review, showProductInfo = false }) {
|
|
14746
14708
|
const reviewDate = new Date(review.createdAt);
|
|
14747
14709
|
const replyDate = review.replyDate ? new Date(review.replyDate) : null;
|
|
14748
|
-
return /* @__PURE__ */ jsxs("div", { className: "border border-gray-200 rounded-lg p-4 bg-
|
|
14710
|
+
return /* @__PURE__ */ jsxs("div", { className: "border border-gray-200 rounded-lg p-4 bg-hprimary-50", children: [
|
|
14749
14711
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between mb-3", children: [
|
|
14750
14712
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
14751
14713
|
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 bg-hsecondary/10 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsx(User, { className: "size-5 text-hsecondary" }) }),
|
|
@@ -14756,7 +14718,7 @@ function ReviewCard({ review, showProductInfo = false }) {
|
|
|
14756
14718
|
] }),
|
|
14757
14719
|
/* @__PURE__ */ jsx(StarRating, { rating: review.rating, size: "sm" })
|
|
14758
14720
|
] }),
|
|
14759
|
-
review.reviewType && /* @__PURE__ */ jsx("span", { className: "inline-block px-2 py-1 text-xs bg-
|
|
14721
|
+
review.reviewType && /* @__PURE__ */ jsx("span", { className: "inline-block px-2 py-1 text-xs bg-hprimary-100 text-gray-600 rounded mb-2", children: review.reviewType }),
|
|
14760
14722
|
/* @__PURE__ */ jsx("p", { className: "text-gray-700 text-sm leading-relaxed mb-3", children: review.review }),
|
|
14761
14723
|
review.reply && /* @__PURE__ */ jsxs("div", { className: "mt-4 pl-4 border-l-2 border-hsecondary bg-gray-50 p-3 rounded", children: [
|
|
14762
14724
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
@@ -15121,7 +15083,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15121
15083
|
"button",
|
|
15122
15084
|
{
|
|
15123
15085
|
onClick: () => router.push(buildPath("/shop")),
|
|
15124
|
-
className: "flex items-center gap-2
|
|
15086
|
+
className: "flex items-center gap-2 text-[13px] text-hmuted hover:text-hprimary transition-colors",
|
|
15125
15087
|
children: [
|
|
15126
15088
|
/* @__PURE__ */ jsx(ChevronLeft, { className: "size-4" }),
|
|
15127
15089
|
"Back to Shop"
|
|
@@ -15160,7 +15122,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15160
15122
|
className: "object-contain"
|
|
15161
15123
|
}
|
|
15162
15124
|
) : null,
|
|
15163
|
-
/* @__PURE__ */ jsx("div", { className: "absolute top-6 left-6 flex flex-col gap-3", children: discount > 0 && /* @__PURE__ */ jsx("div", { className: "bg-
|
|
15125
|
+
/* @__PURE__ */ jsx("div", { className: "absolute top-6 left-6 flex flex-col gap-3", children: discount > 0 && /* @__PURE__ */ jsx("div", { className: "bg-hsecondary text-white rounded-full px-4 py-2", children: /* @__PURE__ */ jsxs("span", { className: "font-bold text-[12px] uppercase tracking-wide", children: [
|
|
15164
15126
|
"Save ",
|
|
15165
15127
|
discount,
|
|
15166
15128
|
"%"
|
|
@@ -15192,12 +15154,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15192
15154
|
] }) }) }),
|
|
15193
15155
|
/* @__PURE__ */ jsxs("aside", { className: "space-y-6 lg:sticky lg:top-24", children: [
|
|
15194
15156
|
/* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
15195
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
15157
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[12px] text-hprimary uppercase tracking-wide font-medium mb-2", children: [
|
|
15196
15158
|
product.brand,
|
|
15197
15159
|
" \u2022 ",
|
|
15198
15160
|
product.categoryIds?.[0]?.name || "Uncategorized"
|
|
15199
15161
|
] }),
|
|
15200
|
-
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-
|
|
15162
|
+
/* @__PURE__ */ jsx("h1", { className: "text-3xl font-semibold text-hsecondary tracking-[-1.5px] mb-3", children: selectedVariant?.name || product.name }),
|
|
15201
15163
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15202
15164
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", children: [...Array(5)].map((_, i) => /* @__PURE__ */ jsx(
|
|
15203
15165
|
Star,
|
|
@@ -15206,7 +15168,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15206
15168
|
},
|
|
15207
15169
|
i
|
|
15208
15170
|
)) }),
|
|
15209
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
15171
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[14px] text-hmuted", children: [
|
|
15210
15172
|
reviewStats.averageRating,
|
|
15211
15173
|
" (",
|
|
15212
15174
|
reviewStats.reviewCount,
|
|
@@ -15216,16 +15178,16 @@ function ProductDetailScreen({ productId }) {
|
|
|
15216
15178
|
] })
|
|
15217
15179
|
] }),
|
|
15218
15180
|
selectedVariant && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 mb-6 pb-6 border-b-2 border-gray-100", children: [
|
|
15219
|
-
/* @__PURE__ */ jsxs("span", { className: "font-
|
|
15181
|
+
/* @__PURE__ */ jsxs("span", { className: "font-bold text-[40px] text-hsecondary", children: [
|
|
15220
15182
|
"$",
|
|
15221
15183
|
variantPrice.toFixed(2)
|
|
15222
15184
|
] }),
|
|
15223
15185
|
variantComparePrice && variantComparePrice > variantPrice && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15224
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
15186
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[24px] text-hmuted line-through", children: [
|
|
15225
15187
|
"$",
|
|
15226
15188
|
variantComparePrice.toFixed(2)
|
|
15227
15189
|
] }),
|
|
15228
|
-
/* @__PURE__ */ jsx("div", { className: "px-3 py-1 rounded-full bg-
|
|
15190
|
+
/* @__PURE__ */ jsx("div", { className: "px-3 py-1 rounded-full bg-hsecondary/10", children: /* @__PURE__ */ jsxs("span", { className: "font-semibold text-[13px] text-hsecondary", children: [
|
|
15229
15191
|
"Save $",
|
|
15230
15192
|
formatPrice(variantComparePrice - variantPrice)
|
|
15231
15193
|
] }) })
|
|
@@ -15234,19 +15196,19 @@ function ProductDetailScreen({ productId }) {
|
|
|
15234
15196
|
selectedVariant && /* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
15235
15197
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 mb-2", children: selectedVariant.inventoryStatus === "OUT_OF_STOCK" /* OUTOFSTOCK */ ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15236
15198
|
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-red-500" }),
|
|
15237
|
-
/* @__PURE__ */ jsx("span", { className: "
|
|
15199
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13px] text-red-600 font-medium", children: "Out of Stock" })
|
|
15238
15200
|
] }) : selectedVariant.inventoryStatus === "LOW_STOCK" /* LOWSTOCK */ || selectedVariant.inventoryCount <= 10 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15239
15201
|
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-hprimary animate-pulse" }),
|
|
15240
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
15202
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[13px] text-hprimary font-medium", children: [
|
|
15241
15203
|
"Only ",
|
|
15242
15204
|
selectedVariant.inventoryCount,
|
|
15243
15205
|
" left in stock - Order soon!"
|
|
15244
15206
|
] })
|
|
15245
15207
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15246
15208
|
/* @__PURE__ */ jsx("div", { className: "size-3 rounded-full bg-green-500" }),
|
|
15247
|
-
/* @__PURE__ */ jsx("span", { className: "
|
|
15209
|
+
/* @__PURE__ */ jsx("span", { className: "text-[13px] text-green-600 font-medium", children: "In Stock" })
|
|
15248
15210
|
] }) }),
|
|
15249
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
15211
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[12px] text-hmuted", children: [
|
|
15250
15212
|
"SKU: ",
|
|
15251
15213
|
selectedVariant?.sku || product?.sku
|
|
15252
15214
|
] })
|
|
@@ -15254,12 +15216,12 @@ function ProductDetailScreen({ productId }) {
|
|
|
15254
15216
|
product.description && /* @__PURE__ */ jsx(
|
|
15255
15217
|
"div",
|
|
15256
15218
|
{
|
|
15257
|
-
className: "
|
|
15219
|
+
className: "text-[14px] text-hmuted leading-[1.7] mb-8 max-w-full overflow-hidden break-words",
|
|
15258
15220
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15259
15221
|
}
|
|
15260
15222
|
),
|
|
15261
15223
|
product?.variants && product.variants.length > 0 && /* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
15262
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
15224
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-[14px] text-hsecondary mb-3", children: "Select Variant" }),
|
|
15263
15225
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3", children: product.variants.map((variant) => {
|
|
15264
15226
|
const isSelected = selectedVariant?._id === variant._id;
|
|
15265
15227
|
const variantImage = variant.media?.[0]?.file || product.media?.[0]?.file || product.images?.[0] || PLACEHOLDER_IMAGE_SRC;
|
|
@@ -15295,7 +15257,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15295
15257
|
}) })
|
|
15296
15258
|
] }),
|
|
15297
15259
|
/* @__PURE__ */ jsxs("div", { className: "mb-8", children: [
|
|
15298
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
15260
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-[14px] text-hsecondary mb-3", children: "Quantity" }),
|
|
15299
15261
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
15300
15262
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 bg-gray-100 rounded-full px-6 py-3", children: [
|
|
15301
15263
|
/* @__PURE__ */ jsx(
|
|
@@ -15303,18 +15265,18 @@ function ProductDetailScreen({ productId }) {
|
|
|
15303
15265
|
{
|
|
15304
15266
|
type: "button",
|
|
15305
15267
|
onClick: () => setQuantity((current) => Math.max(1, current - 1)),
|
|
15306
|
-
className: "font-
|
|
15268
|
+
className: "font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors",
|
|
15307
15269
|
"aria-label": "Increase quantity",
|
|
15308
15270
|
children: "-"
|
|
15309
15271
|
}
|
|
15310
15272
|
),
|
|
15311
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
15273
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-[16px] text-hsecondary min-w-[30px] text-center", children: quantity }),
|
|
15312
15274
|
/* @__PURE__ */ jsx(
|
|
15313
15275
|
"button",
|
|
15314
15276
|
{
|
|
15315
15277
|
onClick: () => setQuantity(Math.min(selectedVariant?.inventoryCount || product.inventoryCount || 999, quantity + 1)),
|
|
15316
15278
|
disabled: quantity >= (selectedVariant?.inventoryCount || product.inventoryCount || 0),
|
|
15317
|
-
className: "font-
|
|
15279
|
+
className: "font-bold text-[18px] text-hsecondary hover:text-hprimary transition-colors disabled:opacity-50",
|
|
15318
15280
|
children: "+"
|
|
15319
15281
|
}
|
|
15320
15282
|
)
|
|
@@ -15329,7 +15291,7 @@ function ProductDetailScreen({ productId }) {
|
|
|
15329
15291
|
/* @__PURE__ */ jsx(
|
|
15330
15292
|
"button",
|
|
15331
15293
|
{
|
|
15332
|
-
className: "flex-1 font-
|
|
15294
|
+
className: "flex-1 font-medium text-[14px] px-8 py-4 rounded-full transition-all duration-300 flex items-center justify-center gap-3 bg-hsecondary text-white hover:bg-hsecondary/80 hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed",
|
|
15333
15295
|
onClick: handleAddToCart,
|
|
15334
15296
|
disabled: !selectedVariant || selectedVariant.inventoryStatus === "OUT_OF_STOCK" /* OUTOFSTOCK */ || isAddingToCart,
|
|
15335
15297
|
children: isAddingToCart ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -15358,29 +15320,29 @@ function ProductDetailScreen({ productId }) {
|
|
|
15358
15320
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15359
15321
|
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Truck, { className: "size-5 text-hprimary" }) }),
|
|
15360
15322
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15361
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
15362
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15323
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Free Shipping" }),
|
|
15324
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hmuted", children: "On all orders" })
|
|
15363
15325
|
] })
|
|
15364
15326
|
] }),
|
|
15365
15327
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15366
15328
|
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(RotateCcw, { className: "size-5 text-hprimary" }) }),
|
|
15367
15329
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15368
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
15369
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15330
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Easy Returns" }),
|
|
15331
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hmuted", children: "30-day return policy" })
|
|
15370
15332
|
] })
|
|
15371
15333
|
] }),
|
|
15372
15334
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15373
15335
|
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Shield, { className: "size-5 text-hprimary" }) }),
|
|
15374
15336
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15375
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
15376
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15337
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Secure Checkout" }),
|
|
15338
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hmuted", children: "Safe & protected" })
|
|
15377
15339
|
] })
|
|
15378
15340
|
] }),
|
|
15379
15341
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
15380
15342
|
/* @__PURE__ */ jsx("div", { className: "size-10 rounded-full bg-white flex items-center justify-center shrink-0", children: /* @__PURE__ */ jsx(Package, { className: "size-5 text-hprimary" }) }),
|
|
15381
15343
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
15382
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
15383
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15344
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mb-1", children: "Quality Guaranteed" }),
|
|
15345
|
+
/* @__PURE__ */ jsx("p", { className: "text-[11px] text-hmuted", children: "Premium materials" })
|
|
15384
15346
|
] })
|
|
15385
15347
|
] })
|
|
15386
15348
|
] })
|
|
@@ -15391,35 +15353,35 @@ function ProductDetailScreen({ productId }) {
|
|
|
15391
15353
|
"button",
|
|
15392
15354
|
{
|
|
15393
15355
|
onClick: () => setActiveTab(tab),
|
|
15394
|
-
className: `font-
|
|
15356
|
+
className: `font-medium text-[14px] px-6 py-4 transition-all ${activeTab === tab ? "text-hprimary border-b-2 border-hprimary -mb-0.5" : "text-hmuted hover:text-hprimary"}`,
|
|
15395
15357
|
children: tab.charAt(0).toUpperCase() + tab.slice(1)
|
|
15396
15358
|
},
|
|
15397
15359
|
tab
|
|
15398
15360
|
)) }),
|
|
15399
15361
|
/* @__PURE__ */ jsxs("div", { className: "bg-white rounded-[24px] p-8 border-2 border-gray-100", children: [
|
|
15400
15362
|
activeTab === "description" && /* @__PURE__ */ jsxs("div", { children: [
|
|
15401
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
15363
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-hsecondary mb-4", children: "Product Description" }),
|
|
15402
15364
|
/* @__PURE__ */ jsx(
|
|
15403
15365
|
"div",
|
|
15404
15366
|
{
|
|
15405
|
-
className: "
|
|
15367
|
+
className: "text-[14px] text-hmuted leading-[1.8] mb-4 max-w-full overflow-hidden break-words",
|
|
15406
15368
|
dangerouslySetInnerHTML: { __html: product.description }
|
|
15407
15369
|
}
|
|
15408
15370
|
),
|
|
15409
15371
|
/* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
15410
|
-
/* @__PURE__ */ jsx("h4", { className: "font-
|
|
15411
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15372
|
+
/* @__PURE__ */ jsx("h4", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Last updated:" }),
|
|
15373
|
+
/* @__PURE__ */ jsx("p", { className: "text-[14px] text-hmuted", children: lastUpdatedLabel })
|
|
15412
15374
|
] }),
|
|
15413
15375
|
/* @__PURE__ */ jsxs("div", { className: "mt-6", children: [
|
|
15414
|
-
/* @__PURE__ */ jsx("h4", { className: "font-
|
|
15415
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
15376
|
+
/* @__PURE__ */ jsx("h4", { className: "font-semibold text-[13px] text-hsecondary mb-3", children: "Shipped from:" }),
|
|
15377
|
+
/* @__PURE__ */ jsx("p", { className: "text-[14px] text-hmuted", children: "Local pharmacy distribution center" })
|
|
15416
15378
|
] })
|
|
15417
15379
|
] }),
|
|
15418
15380
|
activeTab === "reviews" && /* @__PURE__ */ jsx(ProductReviewsSection, { productId })
|
|
15419
15381
|
] })
|
|
15420
15382
|
] }),
|
|
15421
15383
|
relatedProducts.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
15422
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
15384
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-hsecondary mb-8 text-2xl", children: "You May Also Like" }),
|
|
15423
15385
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6", children: relatedProducts.map((relatedProduct) => /* @__PURE__ */ jsx(
|
|
15424
15386
|
ProductCard,
|
|
15425
15387
|
{
|
|
@@ -15464,9 +15426,9 @@ function CartItem({ item }) {
|
|
|
15464
15426
|
initial: { opacity: 0, y: 20 },
|
|
15465
15427
|
animate: { opacity: 1, y: 0 },
|
|
15466
15428
|
exit: { opacity: 0, x: -100 },
|
|
15467
|
-
className: "bg-white border-2 border-gray-100 rounded-[24px] p-6 hover:border-hsecondary/30 transition-all duration-300",
|
|
15468
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex gap-
|
|
15469
|
-
/* @__PURE__ */ jsx("div", { className: "w-28 h-28 rounded-[16px] overflow-hidden bg-gray-50 shrink-0", children: /* @__PURE__ */ jsx(
|
|
15429
|
+
className: "bg-white border-2 border-gray-100 rounded-[24px] p-4 md:p-6 hover:border-hsecondary/30 transition-all duration-300",
|
|
15430
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex gap-3 md:gap-4", children: [
|
|
15431
|
+
/* @__PURE__ */ jsx("div", { className: "w-20 h-20 md:w-28 md:h-28 rounded-[16px] overflow-hidden bg-gray-50 shrink-0", children: /* @__PURE__ */ jsx(
|
|
15470
15432
|
Image4,
|
|
15471
15433
|
{
|
|
15472
15434
|
src: item.productVariantData.media[0]?.file || PLACEHOLDER_IMAGE_SRC,
|
|
@@ -15479,8 +15441,8 @@ function CartItem({ item }) {
|
|
|
15479
15441
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
15480
15442
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4 mb-3", children: [
|
|
15481
15443
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
15482
|
-
/* @__PURE__ */ jsx("h3", { className: "font-
|
|
15483
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ jsxs("span", { className: "
|
|
15444
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-[#2B4B7C] mb-2", children: item.productVariantData.name }),
|
|
15445
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-3", children: /* @__PURE__ */ jsxs("span", { className: "text-[12px] text-[#676c80]", children: [
|
|
15484
15446
|
"Variant: ",
|
|
15485
15447
|
/* @__PURE__ */ jsx("span", { className: "font-medium text-[#2B4B7C]", children: item.productVariantData.name })
|
|
15486
15448
|
] }) })
|
|
@@ -15496,31 +15458,33 @@ function CartItem({ item }) {
|
|
|
15496
15458
|
}
|
|
15497
15459
|
)
|
|
15498
15460
|
] }),
|
|
15499
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
15500
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 bg-gray-50 rounded-full px-4 py-2", children: [
|
|
15461
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4 mt-auto", children: [
|
|
15462
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 bg-gray-50 rounded-full px-3 py-1.5 md:px-4 md:py-2 w-fit", children: [
|
|
15501
15463
|
/* @__PURE__ */ jsx(
|
|
15502
15464
|
"button",
|
|
15503
15465
|
{
|
|
15504
15466
|
onClick: () => handleUpdateQuantity(item.quantity - 1),
|
|
15505
15467
|
disabled: isUpdating || item.quantity <= 1,
|
|
15506
15468
|
className: "p-1 hover:bg-white rounded-full transition-colors",
|
|
15507
|
-
|
|
15469
|
+
"aria-label": "Decrease quantity",
|
|
15470
|
+
children: /* @__PURE__ */ jsx(Minus, { className: "size-3 md:size-4 text-[#2B4B7C]" })
|
|
15508
15471
|
}
|
|
15509
15472
|
),
|
|
15510
|
-
/* @__PURE__ */ jsx("span", { className: "font-[
|
|
15473
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-[13px] md:text-[14px] text-[#2B4B7C] min-w-[20px] text-center", children: item.quantity }),
|
|
15511
15474
|
/* @__PURE__ */ jsx(
|
|
15512
15475
|
"button",
|
|
15513
15476
|
{
|
|
15514
15477
|
onClick: () => handleUpdateQuantity(item.quantity + 1),
|
|
15515
15478
|
disabled: isUpdating || item.quantity >= (item.productVariantData.inventoryCount || 999),
|
|
15516
15479
|
className: "p-1 hover:bg-white rounded-full transition-colors",
|
|
15517
|
-
|
|
15480
|
+
"aria-label": "Increase quantity",
|
|
15481
|
+
children: /* @__PURE__ */ jsx(Plus, { className: "size-3 md:size-4 text-[#2B4B7C]" })
|
|
15518
15482
|
}
|
|
15519
15483
|
)
|
|
15520
15484
|
] }),
|
|
15521
|
-
/* @__PURE__ */ jsxs("div", { className: "text-right", children: [
|
|
15522
|
-
/* @__PURE__ */ jsx("p", { className: "font-[
|
|
15523
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
15485
|
+
/* @__PURE__ */ jsxs("div", { className: "text-left sm:text-right", children: [
|
|
15486
|
+
/* @__PURE__ */ jsx("p", { className: "font-bold text-[16px] md:text-[18px] text-hsecondary", children: formatPrice(itemTotal) }),
|
|
15487
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[10px] md:text-[11px] text-[#676c80]", children: [
|
|
15524
15488
|
formatPrice(unitPrice),
|
|
15525
15489
|
" each"
|
|
15526
15490
|
] })
|
|
@@ -15596,10 +15560,10 @@ function CartScreen() {
|
|
|
15596
15560
|
}
|
|
15597
15561
|
router.push(buildPath("/checkout"));
|
|
15598
15562
|
};
|
|
15599
|
-
return /* @__PURE__ */ jsx("div", { className: "min-h-screen bg-white", children: /* @__PURE__ */ jsx("div", { className: "max-w-[1400px] mx-auto px-
|
|
15600
|
-
/* @__PURE__ */ jsxs("div", { className: "mb-12", children: [
|
|
15601
|
-
/* @__PURE__ */ jsx("h1", { className: "font-
|
|
15602
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
15563
|
+
return /* @__PURE__ */ jsx("div", { className: "min-h-screen bg-white", children: /* @__PURE__ */ jsx("div", { className: "max-w-[1400px] mx-auto px-4 md:px-12", children: /* @__PURE__ */ jsxs("div", { className: "py-8", children: [
|
|
15564
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-8 md:mb-12", children: [
|
|
15565
|
+
/* @__PURE__ */ jsx("h1", { className: "font-semibold text-hsecondary tracking-[-1px] md:tracking-[-2px] mb-2 text-3xl md:text-4xl", children: "Shopping Cart" }),
|
|
15566
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[14px] md:text-[16px] text-hmuted", children: [
|
|
15603
15567
|
itemCount,
|
|
15604
15568
|
" ",
|
|
15605
15569
|
itemCount === 1 ? "item" : "items",
|
|
@@ -15628,19 +15592,19 @@ function CartScreen() {
|
|
|
15628
15592
|
initial: { opacity: 0, y: 24 },
|
|
15629
15593
|
animate: { opacity: 1, y: 0 },
|
|
15630
15594
|
transition: { delay: 0.1 },
|
|
15631
|
-
className: "
|
|
15632
|
-
children: /* @__PURE__ */ jsxs("div", { className: "bg-linear-to-br from-hsecondary/10 to-hsecondary/10 rounded-[24px] p-8 border-2 border-hsecondary/20 sticky top-24", children: [
|
|
15633
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
15595
|
+
className: "lg:sticky lg:top-24 h-fit lg:col-span-1",
|
|
15596
|
+
children: /* @__PURE__ */ jsxs("div", { className: "bg-hsecondary/[0.03] md:bg-linear-to-br md:from-hsecondary/10 md:to-hsecondary/10 rounded-[24px] p-6 md:p-8 border-2 border-hsecondary/10 md:border-hsecondary/20 lg:sticky lg:top-24", children: [
|
|
15597
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-hsecondary mb-6", children: "Order Summary" }),
|
|
15634
15598
|
/* @__PURE__ */ jsxs("div", { className: "space-y-4 mb-6", children: [
|
|
15635
15599
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
15636
|
-
/* @__PURE__ */ jsxs("span", { className: "
|
|
15600
|
+
/* @__PURE__ */ jsxs("span", { className: "text-[14px] text-hmuted", children: [
|
|
15637
15601
|
"Subtotal (",
|
|
15638
15602
|
itemCount,
|
|
15639
15603
|
" ",
|
|
15640
15604
|
itemCount === 1 ? "item" : "items",
|
|
15641
15605
|
")"
|
|
15642
15606
|
] }),
|
|
15643
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
15607
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-[14px] text-hsecondary", children: formatPrice(subtotal) })
|
|
15644
15608
|
] }),
|
|
15645
15609
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
15646
15610
|
/* @__PURE__ */ jsx("span", { className: "text-gray-600", children: "Shipping" }),
|
|
@@ -16630,8 +16594,8 @@ function CheckoutScreen() {
|
|
|
16630
16594
|
className: "space-y-8",
|
|
16631
16595
|
children: [
|
|
16632
16596
|
/* @__PURE__ */ jsxs("div", { className: "mb-12", children: [
|
|
16633
|
-
/* @__PURE__ */ jsx("h1", { className: "font-
|
|
16634
|
-
/* @__PURE__ */ jsx("p", { className: "
|
|
16597
|
+
/* @__PURE__ */ jsx("h1", { className: "font-semibold text-[#2B4B7C] mb-2 text-3xl", children: "Checkout" }),
|
|
16598
|
+
/* @__PURE__ */ jsx("p", { className: "text-[14px] text-[#676c80] text-md leading-relaxed", children: "Complete your order information below" })
|
|
16635
16599
|
] }),
|
|
16636
16600
|
/* @__PURE__ */ jsx("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-8", children: [
|
|
16637
16601
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -16726,7 +16690,7 @@ function CheckoutScreen() {
|
|
|
16726
16690
|
] }) }),
|
|
16727
16691
|
isDelivery !== null && /* @__PURE__ */ jsxs("section", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
|
|
16728
16692
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center justify-between gap-4", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
16729
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
16693
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-[#2B4B7C] mb-2 text-2xl", children: isDelivery ? "Delivery Address" : "Contact Information" }),
|
|
16730
16694
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-slate-500", children: "We use temperature-aware packaging and real-time tracking on every shipment." })
|
|
16731
16695
|
] }) }),
|
|
16732
16696
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 grid grid-cols-1 gap-4 md:grid-cols-2", children: [
|
|
@@ -16860,7 +16824,7 @@ function CheckoutScreen() {
|
|
|
16860
16824
|
isDelivery === true && selectedAddressId && /* @__PURE__ */ jsxs("div", { className: "bg-white border-2 border-gray-100 rounded-[24px] p-8 text-[#2B4B7C]", children: [
|
|
16861
16825
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 text-xl font-semibold text-gray-900 pb-4 mb-8 border-b", children: [
|
|
16862
16826
|
/* @__PURE__ */ jsx(Truck, { className: "w-8 h-8 flex items-center justify-center text-[#2B4B7C]" }),
|
|
16863
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
16827
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-[#2B4B7C] text-2xl", children: "Shipping Options" })
|
|
16864
16828
|
] }),
|
|
16865
16829
|
shippingRatesLoading ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center py-12", children: [
|
|
16866
16830
|
/* @__PURE__ */ jsx("div", { className: "animate-spin rounded-full h-8 w-8 border-b-2 border-haccent" }),
|
|
@@ -16968,18 +16932,18 @@ function CheckoutScreen() {
|
|
|
16968
16932
|
transition: { duration: 0.5, ease: "easeOut", delay: 0.1 },
|
|
16969
16933
|
className: "space-y-10 lg:sticky lg:top-24 lg:col-span-1",
|
|
16970
16934
|
children: /* @__PURE__ */ jsxs("div", { className: "bg-linear-to-br from-hsecondary/10 to-hsecondary/10 rounded-[24px] p-8 border-2 border-hsecondary/20 sticky top-24", children: [
|
|
16971
|
-
/* @__PURE__ */ jsx("h2", { className: "font-
|
|
16935
|
+
/* @__PURE__ */ jsx("h2", { className: "font-semibold text-hsecondary mb-6 text-2xl", children: "Order Summary" }),
|
|
16972
16936
|
/* @__PURE__ */ jsxs("section", { className: "mt-8 pt-6 border-t border-slate-100", children: [
|
|
16973
16937
|
/* @__PURE__ */ jsx("div", { className: "space-y-4 mb-6", children: cart?.cartBody?.items?.map((item) => /* @__PURE__ */ jsxs("div", { className: "flex gap-3", children: [
|
|
16974
16938
|
/* @__PURE__ */ jsx("div", { className: "w-16 h-16 rounded-xl overflow-hidden bg-white shrink-0", children: /* @__PURE__ */ jsx(Image4, { src: item.productVariantData?.media?.[0]?.file || PLACEHOLDER_IMAGE_SRC, alt: item.productVariantData.name, className: "w-full h-full object-cover", height: 200, width: 200 }) }),
|
|
16975
16939
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
16976
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
16977
|
-
/* @__PURE__ */ jsxs("p", { className: "
|
|
16940
|
+
/* @__PURE__ */ jsx("p", { className: "font-medium text-[12px] text-[#2B4B7C] mb-1", children: item?.productVariantData?.name }),
|
|
16941
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[11px] text-[#676c80]", children: [
|
|
16978
16942
|
item?.productVariantData?.brand,
|
|
16979
16943
|
" \u2022 Qty: ",
|
|
16980
16944
|
item.quantity
|
|
16981
16945
|
] }),
|
|
16982
|
-
/* @__PURE__ */ jsx("p", { className: "font-
|
|
16946
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[12px] text-hsecondary mt-1", children: formatPrice(item.productVariantData.finalPrice * item.quantity) })
|
|
16983
16947
|
] })
|
|
16984
16948
|
] }, item.productVariantId || item.id)) }),
|
|
16985
16949
|
/* @__PURE__ */ jsx("div", { className: "h-px bg-hsecondary/20 my-4" }),
|
|
@@ -17016,11 +16980,11 @@ function CheckoutScreen() {
|
|
|
17016
16980
|
] }),
|
|
17017
16981
|
/* @__PURE__ */ jsx("div", { className: "h-px bg-hsecondary/20 mt-6" }),
|
|
17018
16982
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-6", children: [
|
|
17019
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
17020
|
-
/* @__PURE__ */ jsx("span", { className: "font-
|
|
16983
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-[16px] text-hsecondary", children: "Total" }),
|
|
16984
|
+
/* @__PURE__ */ jsx("span", { className: "font-bold text-[24px] text-hsecondary", children: formatPrice(total) })
|
|
17021
16985
|
] })
|
|
17022
16986
|
] }),
|
|
17023
|
-
/* @__PURE__ */ jsx("div", { className: "bg-white/80 rounded-xl p-4", children: /* @__PURE__ */ jsxs("p", { className: "
|
|
16987
|
+
/* @__PURE__ */ jsx("div", { className: "bg-white/80 rounded-xl p-4", children: /* @__PURE__ */ jsxs("p", { className: "text-[11px] text-[#676c80] leading-[1.6]", children: [
|
|
17024
16988
|
/* @__PURE__ */ jsx("strong", { className: "text-hsecondary", children: "Payment:" }),
|
|
17025
16989
|
" We'll contact you to arrange payment upon pickup or delivery. We accept cash, credit cards, and all major payment methods."
|
|
17026
16990
|
] }) })
|
|
@@ -17057,7 +17021,7 @@ function CheckoutScreen() {
|
|
|
17057
17021
|
{
|
|
17058
17022
|
type: "submit",
|
|
17059
17023
|
disabled: isSubmitting,
|
|
17060
|
-
className: "font-
|
|
17024
|
+
className: "font-medium text-[14px] px-6 py-3 rounded-full text-white hover:bg-[#d66f45] hover:shadow-lg transition-all duration-300 mt-4 w-full bg-hsecondary hover:bg-[#2B4B7C] flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
17061
17025
|
children: [
|
|
17062
17026
|
/* @__PURE__ */ jsx(CreditCard, { className: "h-5 w-5" }),
|
|
17063
17027
|
isSubmitting ? "Placing order..." : "Place Secure Order"
|
|
@@ -17931,7 +17895,7 @@ function AccountOverviewTab() {
|
|
|
17931
17895
|
icon: Package,
|
|
17932
17896
|
label: "Total Orders",
|
|
17933
17897
|
value: totalOrders,
|
|
17934
|
-
color: "bg-
|
|
17898
|
+
color: "bg-hprimary-100 text-[#5B9BD5]"
|
|
17935
17899
|
},
|
|
17936
17900
|
{
|
|
17937
17901
|
icon: CheckCircle,
|
|
@@ -17987,7 +17951,7 @@ function AccountOverviewTab() {
|
|
|
17987
17951
|
] }),
|
|
17988
17952
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
|
|
17989
17953
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
17990
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17954
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsx(User, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
17991
17955
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
17992
17956
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Full Name" }),
|
|
17993
17957
|
/* @__PURE__ */ jsxs("p", { className: "text-sm font-medium text-hsecondary", children: [
|
|
@@ -17998,21 +17962,21 @@ function AccountOverviewTab() {
|
|
|
17998
17962
|
] })
|
|
17999
17963
|
] }),
|
|
18000
17964
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18001
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17965
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsx(Mail, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18002
17966
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18003
17967
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "E-mail Address" }),
|
|
18004
17968
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.email })
|
|
18005
17969
|
] })
|
|
18006
17970
|
] }),
|
|
18007
17971
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18008
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17972
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsx(Phone, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18009
17973
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18010
17974
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Phone Number" }),
|
|
18011
17975
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: user.phoneNumber || "Not provided" })
|
|
18012
17976
|
] })
|
|
18013
17977
|
] }),
|
|
18014
17978
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
18015
|
-
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-
|
|
17979
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-lg bg-hprimary-100", children: /* @__PURE__ */ jsx(MapPin, { className: "h-5 w-5 text-hsecondary" }) }),
|
|
18016
17980
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
18017
17981
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-hmuted", children: "Date of Birth" }),
|
|
18018
17982
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-hsecondary", children: "Not provided" })
|
|
@@ -22518,6 +22482,6 @@ function NotificationDrawer() {
|
|
|
22518
22482
|
] }) });
|
|
22519
22483
|
}
|
|
22520
22484
|
|
|
22521
|
-
export { AccountReviewsTab, AddressAddressTypeEnum, AddressCreatedRequestAddressTypeEnum, AddressesScreen, ApiKeyInfoDtoKeyTypeEnum, AuthProvider, Badge, BulkChannelToggleDtoCategoryEnum, Button,
|
|
22485
|
+
export { AccountReviewsTab, AddressAddressTypeEnum, AddressCreatedRequestAddressTypeEnum, AddressesScreen, ApiKeyInfoDtoKeyTypeEnum, AuthProvider, Badge, BulkChannelToggleDtoCategoryEnum, Button, CartItem, CartProvider, CartScreen, ChangePasswordScreen, CheckoutScreen, CreateAddressDtoAddressTypeEnum, CreateDiscountDtoStateEnum, CreateDiscountDtoTypeEnum, CreateDiscountDtoValueTypeEnum, CreateStoreAddressDtoAddressTypeEnum, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, CurrentOrdersScreen, DiscountStateEnum, DiscountTypeEnum, DiscountValueTypeEnum, EcommerceProvider, EditProfileScreen, EmptyState, Footer, ForgotPasswordScreen, Header, Input, LoginScreen, ManualDiscountDtoValueTypeEnum, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, Modal, NewAddressPage as NewAddressScreen, NotificationBell, NotificationCard, NotificationCenterProvider, NotificationDrawer, NotificationSettingsScreen, OrderCard, OrderCardSkeleton, OrderDetailScreen, OrderOrderTypeEnum, OrderReviewsScreen, OrderTimeLineDTOTypeEnum, OrderTypeEnum, OrdersScreen, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, PaymentTimeLineDTOTitleEnum, PopulatedDiscountStateEnum, PopulatedDiscountTypeEnum, PopulatedDiscountValueTypeEnum, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, PreferenceUpdateItemTypeEnum, ProductCard, ProductCardSkeleton, ProductDetailScreen, ProductReviewsSection, ProductVariantInventoryStatusEnum, AccountPage as ProfileScreen, RatingDistribution, RegisterScreen, ReorderProductsDtoContainerTypeEnum, ResetPasswordScreen, ReviewCard, ReviewForm, ReviewPromptBanner, ReviewsList, SearchPage as SearchResultsScreen, ShipmentDetailsDtoStatusEnum, ShippingInfoStatusEnum, ShopScreen, SingleProductMediaTypeEnum, Skeleton, StarRating, ThemeProvider, UpdateAddressDtoAddressTypeEnum, UpdateDiscountDtoStateEnum, UpdateDiscountDtoTypeEnum, UpdateDiscountDtoValueTypeEnum, UpdateManualShipmentStatusDtoStatusEnum, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, UserEntityCustomerTypeEnum, UserEntityRoleEnum, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCreateReview, useCurrentOrders, useDeleteReview, useNotificationCenter, useOrder, useOrders, useProduct, useProductReviews, useProducts, useReviewStats, useReviewsByRating, useStoreCapabilities, useTheme, useUpdateReview, useUserReviews, useWishlist };
|
|
22522
22486
|
//# sourceMappingURL=index.mjs.map
|
|
22523
22487
|
//# sourceMappingURL=index.mjs.map
|