@salesgenterp/ui-components 0.4.550 → 0.4.552

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.
@@ -1,9 +1,9 @@
1
- import { Skeleton as Skeleton$1, CircularProgress, TextField, Button, IconButton, Stack, Typography, Grid, InputAdornment, Popover, TableHead, TableRow, TableSortLabel, Paper, TableContainer as TableContainer$3, Table, TableBody, TableCell, TablePagination, Dialog, DialogContent, DialogActions, DialogTitle, RadioGroup, Radio, FormControlLabel, FormLabel, FormControl, FormHelperText, Select as Select$1, InputLabel, MenuItem, CardMedia, Divider, Tabs, Box, Tab, CardContent, ListItemIcon, ListItem, Collapse, List, ListItemText, Checkbox as Checkbox$1, Card as Card$1, CardHeader, CssBaseline, Toolbar, Drawer, useMediaQuery as useMediaQuery$1, Pagination, Tooltip, CardActionArea, Avatar as Avatar$1, alpha, Stepper, Step, StepLabel, StepContent, Container as Container$4 } from '@mui/material';
1
+ import { Skeleton as Skeleton$1, CircularProgress, TextField, Button, IconButton, Stack, Typography, Grid, InputAdornment, Popover, TableHead, TableRow, TableSortLabel, Paper, TableContainer as TableContainer$4, Table, TableBody, TableCell, TablePagination, Dialog, DialogContent, DialogActions, DialogTitle as DialogTitle$1, RadioGroup, Radio, FormControlLabel, FormLabel, FormControl, FormHelperText, Select as Select$1, InputLabel, MenuItem, CardMedia, Divider, Tabs, Tooltip, Box, Tab, CardContent, ListItemIcon, ListItem, Collapse, List, ListItemText, Checkbox as Checkbox$1, Card as Card$1, CardHeader as CardHeader$1, CssBaseline, Toolbar, Drawer, useMediaQuery as useMediaQuery$1, Pagination, CardActionArea, Avatar as Avatar$1, alpha, Stepper, Step, StepLabel, StepContent, Container as Container$4 } from '@mui/material';
2
2
  import { styled as styled$1 } from '@mui/material/styles';
3
3
  import useMediaQuery from '@mui/material/useMediaQuery';
4
- import React__default, { useState, useEffect, forwardRef, createElement, useCallback, memo, Fragment as Fragment$1, useRef, useMemo } from 'react';
5
- import { MdVisibilityOff, MdVisibility, MdClose, MdMonetizationOn, MdOutlineStorefront, MdRemoveRedEye, MdOutlineFileDownload, MdPersonOutline, MdOutlineCall, MdMailOutline, MdExpandMore, MdExpandLess, MdStore, MdOutlineMenuOpen, MdMenu, MdDarkMode, MdOutlineDarkMode, MdDelete, MdCheckCircle, MdArrowBack, MdOutlineCircle, MdOutlineStickyNote2, MdOutlineNumbers, MdDateRange, MdOutlineWarehouse } from 'react-icons/md';
6
- import styled, { css, ThemeProvider } from 'styled-components';
4
+ import React__default, { useState, useEffect, forwardRef, memo, createElement, useCallback, Fragment as Fragment$1, useRef, useMemo } from 'react';
5
+ import { MdVisibilityOff, MdVisibility, MdClose, MdMonetizationOn, MdAdd, MdOutlineStorefront, MdRemoveRedEye, MdOutlineFileDownload, MdPersonOutline, MdOutlineCall, MdMailOutline, MdExpandMore, MdExpandLess, MdStore, MdOutlineMenuOpen, MdMenu, MdDarkMode, MdOutlineDarkMode, MdLocalOffer, MdDelete, MdCheckCircle, MdArrowBack, MdOutlineCircle, MdOutlineStickyNote2, MdOutlineNumbers, MdDateRange, MdOutlineWarehouse } from 'react-icons/md';
6
+ import styled, { css, ThemeProvider, keyframes } from 'styled-components';
7
7
  import { isEmpty, isString, toNumber, reduce, concat, omit, replace, template, isArray, some, toLower, isPlainObject, includes, values, cloneDeep, filter, sortBy, isObject, sumBy, get, isNumber, remove } from 'lodash';
8
8
  import axios from 'axios';
9
9
  import moment from 'moment';
@@ -12,7 +12,7 @@ import Cookies from 'js-cookie';
12
12
  import Alert from '@mui/material/Alert';
13
13
  import AlertTitle from '@mui/material/AlertTitle';
14
14
  import { Controller, useForm } from 'react-hook-form';
15
- import { AiOutlinePlus, AiOutlineRise, AiOutlineShoppingCart, AiOutlineLeft, AiOutlineRight, AiOutlineMinus, AiOutlineDelete, AiOutlineHome, AiOutlineShop, AiOutlineCheckCircle, AiOutlineCheck, AiFillEyeInvisible, AiFillEye } from 'react-icons/ai';
15
+ import { AiOutlinePlus, AiOutlineRise, AiOutlineShoppingCart, AiOutlineCreditCard, AiOutlineLeft, AiOutlineRight, AiOutlineMinus, AiOutlineDelete, AiOutlineHome, AiOutlineShop, AiOutlineCheckCircle, AiOutlineCheck, AiFillEyeInvisible, AiFillEye } from 'react-icons/ai';
16
16
  import { FaRegUser, FaFacebookF, FaInstagram, FaTwitter, FaLinkedinIn, FaYoutube, FaCalendarCheck, FaUserAlt, FaLock, FaTools } from 'react-icons/fa';
17
17
  import { GiCardboardBoxClosed } from 'react-icons/gi';
18
18
  import { GrStackOverflow, GrClose, GrRadialSelected } from 'react-icons/gr';
@@ -43,21 +43,22 @@ import Paper$1 from '@mui/material/Paper';
43
43
  import Table$1 from '@mui/material/Table';
44
44
  import TableBody$1 from '@mui/material/TableBody';
45
45
  import TableCell$1 from '@mui/material/TableCell';
46
- import TableContainer$4 from '@mui/material/TableContainer';
46
+ import TableContainer$5 from '@mui/material/TableContainer';
47
47
  import TableHead$1 from '@mui/material/TableHead';
48
48
  import TableRow$1 from '@mui/material/TableRow';
49
49
  import { Virtuoso } from 'react-virtuoso';
50
50
  import Box$1 from '@mui/material/Box';
51
51
  import TableSortLabel$1 from '@mui/material/TableSortLabel';
52
- import { HiChevronUpDown } from 'react-icons/hi2';
52
+ import { FiZap, FiCheck, FiCopy, FiShoppingCart, FiGift, FiArrowRight, FiPlusCircle, FiTag, FiPercent, FiLayers, FiTruck } from 'react-icons/fi';
53
+ import { createPortal } from 'react-dom';
54
+ import { HiSparkles, HiChevronUpDown } from 'react-icons/hi2';
55
+ import { paramCase } from 'param-case';
53
56
  import InputBase from '@mui/material/InputBase';
54
57
  import { components } from 'react-select';
55
58
  import ReactAsyncSelect from 'react-select/async';
56
59
  import Snowfall from 'react-snowfall';
57
60
  import ReCAPTCHA from 'react-google-recaptcha';
58
- import { paramCase } from 'param-case';
59
61
  import { CgProfile } from 'react-icons/cg';
60
- import { FiTruck } from 'react-icons/fi';
61
62
  import { FaCheck, FaRegNoteSticky } from 'react-icons/fa6';
62
63
  import Image$3 from 'next/image';
63
64
  import debounce$1 from 'lodash/debounce';
@@ -2027,7 +2028,7 @@ var PaperContainer = styled(Paper)(_templateObject2$2 || (_templateObject2$2 = _
2027
2028
  return props.fontColor;
2028
2029
  });
2029
2030
  var HeaderContent = styled.div(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n padding: 0 1rem;\n @media only screen and (max-width: 608px) {\n padding: 0 0.5rem;\n }\n"])));
2030
- var TableStyledContainer = styled(TableContainer$3)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n border-radius: 14px 12px 0 0 !important;\n"])));
2031
+ var TableStyledContainer = styled(TableContainer$4)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n border-radius: 14px 12px 0 0 !important;\n"])));
2031
2032
  var TableStyled = styled(Table)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 0 1rem;\n @media only screen and (max-width: 608px) {\n padding: 0 0.5rem;\n }\n"])));
2032
2033
  var TableBodyContainer = styled(TableBody)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose([""])));
2033
2034
  var TableRowContainer = styled(TableRow)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n &:hover {\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n td {\n // border: none !important;\n }\n }\n"])));
@@ -2077,7 +2078,7 @@ function BootstrapDialogTitle(props) {
2077
2078
  onClose = props.onClose,
2078
2079
  fontColor = props.fontColor,
2079
2080
  other = _objectWithoutPropertiesLoose(props, _excluded$2);
2080
- return /*#__PURE__*/React__default.createElement(DialogTitle, _extends({
2081
+ return /*#__PURE__*/React__default.createElement(DialogTitle$1, _extends({
2081
2082
  sx: {
2082
2083
  m: 0,
2083
2084
  p: 2,
@@ -2830,7 +2831,301 @@ var InfoContainer = styled.div(_templateObject$9 || (_templateObject$9 = _tagged
2830
2831
  return props.fontColor;
2831
2832
  });
2832
2833
 
2833
- var _templateObject$a, _templateObject2$5, _templateObject3$3, _templateObject4$2, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
2834
+ var AsyncDataLoad = function AsyncDataLoad(_ref) {
2835
+ var apiEndPoint = _ref.apiEndPoint,
2836
+ token = _ref.token,
2837
+ children = _ref.children,
2838
+ onError = _ref.onError,
2839
+ skeletonHeight = _ref.skeletonHeight,
2840
+ loadingView = _ref.loadingView,
2841
+ errorView = _ref.errorView,
2842
+ asyncService = _ref.asyncService,
2843
+ triggerChange = _ref.triggerChange,
2844
+ apiConfig = _ref.apiConfig;
2845
+ var _useState = useState({
2846
+ status: 'loading',
2847
+ data: {}
2848
+ }),
2849
+ apiState = _useState[0],
2850
+ setApiState = _useState[1];
2851
+ var getAPIData = function getAPIData() {
2852
+ try {
2853
+ var _temp3 = _catch(function () {
2854
+ function _temp2() {
2855
+ setApiState({
2856
+ status: API_STATUSES.SUCCESS,
2857
+ data: data
2858
+ });
2859
+ }
2860
+ setApiState({
2861
+ status: API_STATUSES.LOADING,
2862
+ data: {}
2863
+ });
2864
+ var data;
2865
+ var _temp = function () {
2866
+ if (asyncService) {
2867
+ return Promise.resolve(asyncService()).then(function (_asyncService) {
2868
+ data = _asyncService;
2869
+ });
2870
+ } else {
2871
+ return Promise.resolve(API(_extends({
2872
+ apiEndPoint: apiEndPoint,
2873
+ token: token,
2874
+ hideErrorMessage: true
2875
+ }, apiConfig))).then(function (_API) {
2876
+ data = _API;
2877
+ });
2878
+ }
2879
+ }();
2880
+ return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
2881
+ }, function (e) {
2882
+ setApiState({
2883
+ status: API_STATUSES.ERROR,
2884
+ data: {}
2885
+ });
2886
+ if (onError) {
2887
+ onError(e);
2888
+ }
2889
+ });
2890
+ return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
2891
+ } catch (e) {
2892
+ return Promise.reject(e);
2893
+ }
2894
+ };
2895
+ useEffect(function () {
2896
+ if (apiConfig || asyncService) {
2897
+ (function () {
2898
+ return getAPIData();
2899
+ })();
2900
+ }
2901
+ }, [apiConfig, triggerChange]);
2902
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, apiState.status === API_STATUSES.LOADING ? loadingView ? loadingView : /*#__PURE__*/React__default.createElement(Loader, {
2903
+ skeleton: skeletonHeight,
2904
+ height: skeletonHeight
2905
+ }) : null, apiState.status === API_STATUSES.SUCCESS ? typeof children === 'function' ? children(apiState.data) : {
2906
+ children: children
2907
+ } : null, apiState.status === API_STATUSES.ERROR ? errorView ? errorView : 'NO DATA' : null);
2908
+ };
2909
+ var AsyncDataLoadComponent = memo(AsyncDataLoad);
2910
+
2911
+ var getUpcomingAchPayments = function getUpcomingAchPayments(_ref) {
2912
+ var apiEndPoint = _ref.apiEndPoint,
2913
+ token = _ref.token;
2914
+ try {
2915
+ return Promise.resolve(API({
2916
+ url: '/ecommerce/order/payment/upcoming-auto-ach',
2917
+ apiEndPoint: apiEndPoint,
2918
+ token: token
2919
+ }));
2920
+ } catch (e) {
2921
+ return Promise.reject(e);
2922
+ }
2923
+ };
2924
+ var saveExcessPayment = function saveExcessPayment(_ref2) {
2925
+ var apiEndPoint = _ref2.apiEndPoint,
2926
+ token = _ref2.token,
2927
+ payload = _ref2.payload;
2928
+ try {
2929
+ return Promise.resolve(API({
2930
+ url: '/ecommerce/order/payment/excess',
2931
+ apiEndPoint: apiEndPoint,
2932
+ token: token,
2933
+ method: 'POST',
2934
+ body: payload
2935
+ }));
2936
+ } catch (e) {
2937
+ return Promise.reject(e);
2938
+ }
2939
+ };
2940
+
2941
+ var ExcessPaymentForm = function ExcessPaymentForm(_ref) {
2942
+ var paymentMethods = _ref.paymentMethods,
2943
+ control = _ref.control,
2944
+ styles = _ref.styles,
2945
+ handleSubmit = _ref.handleSubmit,
2946
+ onSubmit = _ref.onSubmit,
2947
+ onClose = _ref.onClose,
2948
+ loading = _ref.loading;
2949
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("form", null, /*#__PURE__*/React__default.createElement(Grid, {
2950
+ container: true,
2951
+ spacing: 2
2952
+ }, /*#__PURE__*/React__default.createElement(Grid, {
2953
+ item: true,
2954
+ xs: 12
2955
+ }, /*#__PURE__*/React__default.createElement(FormSelect, {
2956
+ label: "Payment Method",
2957
+ name: "paymentModeId",
2958
+ required: true,
2959
+ control: control,
2960
+ options: paymentMethods,
2961
+ valueKey: "id",
2962
+ labelKey: "name",
2963
+ placeholder: "Select Payment Mode",
2964
+ fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
2965
+ })), /*#__PURE__*/React__default.createElement(Grid, {
2966
+ item: true,
2967
+ xs: 12
2968
+ }, /*#__PURE__*/React__default.createElement(FormTextField, {
2969
+ label: "Excess Amount",
2970
+ name: "excessAmount",
2971
+ type: "number",
2972
+ required: true,
2973
+ control: control,
2974
+ fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
2975
+ })), /*#__PURE__*/React__default.createElement(Grid, {
2976
+ item: true,
2977
+ xs: 12
2978
+ }, /*#__PURE__*/React__default.createElement(FormTextField, {
2979
+ label: "Transaction Id",
2980
+ name: "transactionId",
2981
+ control: control,
2982
+ fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
2983
+ })), /*#__PURE__*/React__default.createElement(Grid, {
2984
+ item: true,
2985
+ xs: 12
2986
+ }, /*#__PURE__*/React__default.createElement(FormTextField, {
2987
+ label: "Notes",
2988
+ name: "notes",
2989
+ control: control,
2990
+ fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor,
2991
+ multiline: true,
2992
+ rows: 3
2993
+ })))), /*#__PURE__*/React__default.createElement(DialogActions, {
2994
+ sx: {
2995
+ justifyContent: 'center',
2996
+ px: 0,
2997
+ pt: 2
2998
+ }
2999
+ }, /*#__PURE__*/React__default.createElement(Grid, {
3000
+ container: true,
3001
+ spacing: 4,
3002
+ alignItems: "center",
3003
+ justifyContent: "center"
3004
+ }, /*#__PURE__*/React__default.createElement(Grid, {
3005
+ item: true
3006
+ }, /*#__PURE__*/React__default.createElement(MuiButton, {
3007
+ primaryColor: styles === null || styles === void 0 ? void 0 : styles.primaryColor,
3008
+ sx: {
3009
+ fontSize: '1.3rem'
3010
+ },
3011
+ onClick: handleSubmit(onSubmit),
3012
+ loading: loading,
3013
+ size: "small"
3014
+ }, "Save")), /*#__PURE__*/React__default.createElement(Grid, {
3015
+ item: true
3016
+ }, /*#__PURE__*/React__default.createElement(MuiButton, {
3017
+ primaryColor: styles === null || styles === void 0 ? void 0 : styles.primaryColor,
3018
+ sx: {
3019
+ fontSize: '1.3rem'
3020
+ },
3021
+ onClick: onClose,
3022
+ size: "small"
3023
+ }, "Cancel")))));
3024
+ };
3025
+ var ExcessPaymentDialog = function ExcessPaymentDialog(_ref2) {
3026
+ var visible = _ref2.visible,
3027
+ onClose = _ref2.onClose,
3028
+ defaultStoreId = _ref2.defaultStoreId,
3029
+ apiEndPoint = _ref2.apiEndPoint,
3030
+ token = _ref2.token,
3031
+ styles = _ref2.styles,
3032
+ onSave = _ref2.onSave,
3033
+ customerData = _ref2.customerData;
3034
+ var _useForm = useForm({
3035
+ defaultValues: {
3036
+ paymentModeId: '',
3037
+ excessAmount: '',
3038
+ transactionId: '',
3039
+ notes: ''
3040
+ }
3041
+ }),
3042
+ handleSubmit = _useForm.handleSubmit,
3043
+ control = _useForm.control,
3044
+ reset = _useForm.reset;
3045
+ var _useState = useState(false),
3046
+ loading = _useState[0],
3047
+ setLoading = _useState[1];
3048
+ useEffect(function () {
3049
+ if (!visible) {
3050
+ reset({
3051
+ paymentModeId: '',
3052
+ excessAmount: '',
3053
+ transactionId: '',
3054
+ notes: ''
3055
+ });
3056
+ }
3057
+ }, [visible, reset]);
3058
+ var onSubmit = function onSubmit(formData) {
3059
+ try {
3060
+ var _customerData$custome;
3061
+ var payload = {
3062
+ customerId: customerData === null || customerData === void 0 ? void 0 : (_customerData$custome = customerData.customerDto) === null || _customerData$custome === void 0 ? void 0 : _customerData$custome.id,
3063
+ insertedTimestamp: getUTCTime({
3064
+ time: new Date()
3065
+ }),
3066
+ paymentModeId: Number(formData === null || formData === void 0 ? void 0 : formData.paymentModeId),
3067
+ excessAmount: Number(formData === null || formData === void 0 ? void 0 : formData.excessAmount),
3068
+ storeId: defaultStoreId,
3069
+ amount: Number(formData === null || formData === void 0 ? void 0 : formData.excessAmount),
3070
+ transactionId: (formData === null || formData === void 0 ? void 0 : formData.transactionId) || null,
3071
+ notes: (formData === null || formData === void 0 ? void 0 : formData.notes) || null
3072
+ };
3073
+ var _temp = _finallyRethrows(function () {
3074
+ return _catch(function () {
3075
+ setLoading(true);
3076
+ return Promise.resolve(saveExcessPayment({
3077
+ apiEndPoint: apiEndPoint,
3078
+ token: token,
3079
+ payload: payload
3080
+ })).then(function (response) {
3081
+ onSave && onSave(payload);
3082
+ });
3083
+ }, function () {});
3084
+ }, function (_wasThrown, _result) {
3085
+ setLoading(false);
3086
+ if (_wasThrown) throw _result;
3087
+ return _result;
3088
+ });
3089
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
3090
+ } catch (e) {
3091
+ return Promise.reject(e);
3092
+ }
3093
+ };
3094
+ return /*#__PURE__*/React__default.createElement(Dialog, {
3095
+ open: visible,
3096
+ onClose: onClose,
3097
+ fullWidth: true,
3098
+ maxWidth: "sm"
3099
+ }, /*#__PURE__*/React__default.createElement(DialogTitle$1, null, "Excess Payment"), /*#__PURE__*/React__default.createElement(DialogContent, null, /*#__PURE__*/React__default.createElement(AsyncDataLoadComponent, {
3100
+ apiEndPoint: apiEndPoint,
3101
+ token: token,
3102
+ asyncService: function asyncService() {
3103
+ try {
3104
+ return Promise.resolve(getPaymentMethods({
3105
+ apiEndPoint: apiEndPoint,
3106
+ token: token
3107
+ }));
3108
+ } catch (e) {
3109
+ return Promise.reject(e);
3110
+ }
3111
+ }
3112
+ }, function (data) {
3113
+ var paymentMethods = (data === null || data === void 0 ? void 0 : data.filter(function (item) {
3114
+ return item === null || item === void 0 ? void 0 : item.ecommerce;
3115
+ })) || [];
3116
+ return /*#__PURE__*/React__default.createElement(ExcessPaymentForm, {
3117
+ loading: loading,
3118
+ paymentMethods: paymentMethods,
3119
+ control: control,
3120
+ styles: styles,
3121
+ handleSubmit: handleSubmit,
3122
+ onSubmit: onSubmit,
3123
+ onClose: onClose
3124
+ });
3125
+ })));
3126
+ };
3127
+
3128
+ var _templateObject$a, _templateObject2$5, _templateObject3$3, _templateObject4$2, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
2834
3129
  var totalIcons = [{
2835
3130
  name: '',
2836
3131
  icon: /*#__PURE__*/React__default.createElement(AiOutlineShoppingCart, null)
@@ -2843,6 +3138,9 @@ var totalIcons = [{
2843
3138
  }, {
2844
3139
  name: 'Total Number Of Orders',
2845
3140
  icon: /*#__PURE__*/React__default.createElement(GiCardboardBoxClosed, null)
3141
+ }, {
3142
+ name: 'Excess Payment',
3143
+ icon: /*#__PURE__*/React__default.createElement(TbFileDollar, null)
2846
3144
  }];
2847
3145
  var Dashboard = function Dashboard(_ref) {
2848
3146
  var _customerData$custome, _selectDates$salesOrd, _selectDates$recentIn, _selectDates$salesOrd2, _selectDates$recentIn2, _customerData$custome2, _customerData$custome3, _customerData$custome4;
@@ -2873,14 +3171,18 @@ var Dashboard = function Dashboard(_ref) {
2873
3171
  showOnlyRecentOrder = _ref$showOnlyRecentOr === void 0 ? false : _ref$showOnlyRecentOr,
2874
3172
  hidePayActionButton = _ref.hidePayActionButton,
2875
3173
  hideInvoiceTab = _ref.hideInvoiceTab,
2876
- hideSalesOrderTab = _ref.hideSalesOrderTab;
3174
+ hideSalesOrderTab = _ref.hideSalesOrderTab,
3175
+ hideAddAccessPaymentButton = _ref.hideAddAccessPaymentButton;
2877
3176
  var _useState = useState({}),
2878
3177
  customerData = _useState[0],
2879
3178
  setCustomerData = _useState[1];
2880
3179
  var _useState2 = useState({}),
2881
3180
  dashboardData = _useState2[0],
2882
3181
  setDashboardData = _useState2[1];
2883
- var _useState3 = useState({
3182
+ var _useState3 = useState(),
3183
+ refetchDashboardData = _useState3[0],
3184
+ setRefetchDashboardData = _useState3[1];
3185
+ var _useState4 = useState({
2884
3186
  recentInvoices: {
2885
3187
  startDate: null,
2886
3188
  endDate: null
@@ -2890,25 +3192,30 @@ var Dashboard = function Dashboard(_ref) {
2890
3192
  endDate: null
2891
3193
  }
2892
3194
  }),
2893
- selectDates = _useState3[0],
2894
- setSelectDates = _useState3[1];
2895
- var _useState4 = useState(getRandomString()),
2896
- triggerTableData = _useState4[0],
2897
- setTriggerTableData = _useState4[1];
2898
- var _useState5 = useState({
3195
+ selectDates = _useState4[0],
3196
+ setSelectDates = _useState4[1];
3197
+ var _useState5 = useState(getRandomString()),
3198
+ triggerTableData = _useState5[0],
3199
+ setTriggerTableData = _useState5[1];
3200
+ var _useState6 = useState({
2899
3201
  open: false,
2900
3202
  url: ''
2901
3203
  }),
2902
- invoiceModal = _useState5[0],
2903
- setInvoiceModal = _useState5[1];
2904
- var _useState6 = useState({
3204
+ invoiceModal = _useState6[0],
3205
+ setInvoiceModal = _useState6[1];
3206
+ var _useState7 = useState({
3207
+ open: false
3208
+ }),
3209
+ isPaymentModal = _useState7[0],
3210
+ setIsPaymentModal = _useState7[1];
3211
+ var _useState8 = useState({
2905
3212
  open: false
2906
3213
  }),
2907
- isPaymentModal = _useState6[0],
2908
- setIsPaymentModal = _useState6[1];
2909
- var _useState7 = useState(0),
2910
- value = _useState7[0],
2911
- setValue = _useState7[1];
3214
+ isExcessPaymentModal = _useState8[0],
3215
+ setIsExcessPaymentModal = _useState8[1];
3216
+ var _useState9 = useState(0),
3217
+ value = _useState9[0],
3218
+ setValue = _useState9[1];
2912
3219
  useEffect(function () {
2913
3220
  if (hideSalesOrderTab) {
2914
3221
  setValue(1);
@@ -3144,7 +3451,7 @@ var Dashboard = function Dashboard(_ref) {
3144
3451
  Promise.reject(e);
3145
3452
  }
3146
3453
  })();
3147
- }, []);
3454
+ }, [refetchDashboardData]);
3148
3455
  useEffect(function () {
3149
3456
  try {
3150
3457
  try {
@@ -3197,6 +3504,30 @@ var Dashboard = function Dashboard(_ref) {
3197
3504
  orderId: isPaymentModal === null || isPaymentModal === void 0 ? void 0 : isPaymentModal.orderId,
3198
3505
  setTriggerTableData: setTriggerTableData,
3199
3506
  styles: styles
3507
+ }), (isExcessPaymentModal === null || isExcessPaymentModal === void 0 ? void 0 : isExcessPaymentModal.open) && /*#__PURE__*/React__default.createElement(ExcessPaymentDialog, {
3508
+ customerData: customerData,
3509
+ apiEndPoint: apiEndPoint,
3510
+ token: token,
3511
+ defaultStoreId: defaultStoreId,
3512
+ styles: styles,
3513
+ onSave: function onSave(payload) {
3514
+ try {
3515
+ setRefetchDashboardData(getRandomString());
3516
+ alert("Excess Payment $" + (payload === null || payload === void 0 ? void 0 : payload.excessAmount) + " added successfully");
3517
+ setIsExcessPaymentModal({
3518
+ open: false
3519
+ });
3520
+ return Promise.resolve();
3521
+ } catch (e) {
3522
+ return Promise.reject(e);
3523
+ }
3524
+ },
3525
+ visible: isExcessPaymentModal === null || isExcessPaymentModal === void 0 ? void 0 : isExcessPaymentModal.open,
3526
+ onClose: function onClose() {
3527
+ return setIsExcessPaymentModal({
3528
+ open: false
3529
+ });
3530
+ }
3200
3531
  }), /*#__PURE__*/React__default.createElement(Grid, {
3201
3532
  container: true,
3202
3533
  columnSpacing: 4
@@ -3214,7 +3545,8 @@ var Dashboard = function Dashboard(_ref) {
3214
3545
  spacing: 3
3215
3546
  }, totalDataSource === null || totalDataSource === void 0 ? void 0 : totalDataSource.map(function (data) {
3216
3547
  var _data$name, _data$name2, _data$name3, _totalIcons$find;
3217
- var isAmount = (data === null || data === void 0 ? void 0 : (_data$name = data.name) === null || _data$name === void 0 ? void 0 : _data$name.indexOf('Amount')) > 1 || (data === null || data === void 0 ? void 0 : (_data$name2 = data.name) === null || _data$name2 === void 0 ? void 0 : _data$name2.indexOf('Credit')) > 1 || (data === null || data === void 0 ? void 0 : (_data$name3 = data.name) === null || _data$name3 === void 0 ? void 0 : _data$name3.indexOf('Price')) > 1;
3548
+ var isAmount = (data === null || data === void 0 ? void 0 : (_data$name = data.name) === null || _data$name === void 0 ? void 0 : _data$name.indexOf('Amount')) > 1 || (data === null || data === void 0 ? void 0 : (_data$name2 = data.name) === null || _data$name2 === void 0 ? void 0 : _data$name2.indexOf('Credit')) > 1 || (data === null || data === void 0 ? void 0 : (_data$name3 = data.name) === null || _data$name3 === void 0 ? void 0 : _data$name3.indexOf('Price')) > 1 || (data === null || data === void 0 ? void 0 : data.name) === 'Excess Payment';
3549
+ var isExcessPayment = (data === null || data === void 0 ? void 0 : data.name) === 'Excess Payment';
3218
3550
  return /*#__PURE__*/React__default.createElement(Grid, {
3219
3551
  item: true,
3220
3552
  xs: 12,
@@ -3234,7 +3566,23 @@ var Dashboard = function Dashboard(_ref) {
3234
3566
  className: "icon-container"
3235
3567
  }, (totalIcons === null || totalIcons === void 0 ? void 0 : (_totalIcons$find = totalIcons.find(function (icons) {
3236
3568
  return (icons === null || icons === void 0 ? void 0 : icons.name) === (data === null || data === void 0 ? void 0 : data.name);
3237
- })) === null || _totalIcons$find === void 0 ? void 0 : _totalIcons$find.icon) || (isAmount ? /*#__PURE__*/React__default.createElement(MdMonetizationOn, null) : /*#__PURE__*/React__default.createElement(GrStackOverflow, null))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", null, data === null || data === void 0 ? void 0 : data.name), /*#__PURE__*/React__default.createElement("h3", null, "" + (isAmount ? renderMoney(data === null || data === void 0 ? void 0 : data.value) : data === null || data === void 0 ? void 0 : data.value)))));
3569
+ })) === null || _totalIcons$find === void 0 ? void 0 : _totalIcons$find.icon) || (isAmount ? /*#__PURE__*/React__default.createElement(MdMonetizationOn, null) : /*#__PURE__*/React__default.createElement(GrStackOverflow, null))), /*#__PURE__*/React__default.createElement("div", {
3570
+ style: {
3571
+ flex: 1
3572
+ }
3573
+ }, /*#__PURE__*/React__default.createElement("p", null, data === null || data === void 0 ? void 0 : data.name), /*#__PURE__*/React__default.createElement("h3", null, "" + (isAmount ? renderMoney(data === null || data === void 0 ? void 0 : data.value) : data === null || data === void 0 ? void 0 : data.value))), isExcessPayment && !hideAddAccessPaymentButton && /*#__PURE__*/React__default.createElement(Tooltip, {
3574
+ title: "Add Excess Payment",
3575
+ arrow: true
3576
+ }, /*#__PURE__*/React__default.createElement(AddExcessPaymentButton, {
3577
+ className: "add-excess-payment-btn",
3578
+ primaryColor: primaryColor,
3579
+ onClick: function onClick() {
3580
+ return setIsExcessPaymentModal({
3581
+ open: true
3582
+ });
3583
+ },
3584
+ "aria-label": "Add excess payment"
3585
+ }, /*#__PURE__*/React__default.createElement(MdAdd, null), /*#__PURE__*/React__default.createElement("span", null, "Add")))));
3238
3586
  }))), !hideBannerSection && /*#__PURE__*/React__default.createElement(BannerContainer, null, /*#__PURE__*/React__default.createElement(Grid, {
3239
3587
  container: true,
3240
3588
  spacing: 3,
@@ -3553,10 +3901,12 @@ var SocialIconContainer = styled.a(_templateObject8$1 || (_templateObject8$1 = _
3553
3901
  });
3554
3902
  var ImageContainer = styled(CardMedia)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n border-radius: 14px;\n img {\n max-width: 100%;\n }\n"])));
3555
3903
  var TotalRoot = styled.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n margin: 2rem 0;\n"])));
3556
- var TotalContainer = styled(Stack)(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n border-radius: 14px;\n background-color: ", ";\n padding: 1.8rem 1.4rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n :hover {\n background-color: ", ";\n p,\n h3 {\n color: #fff !important;\n }\n .icon-container {\n background: #fff;\n }\n }\n p {\n font-size: 1rem;\n font-weight: 600;\n color: ", ";\n margin-bottom: 0rem;\n }\n h3 {\n font-size: 1.7rem;\n font-weight: 600;\n color: ", ";\n }\n .icon-container {\n background: ", ";\n border-radius: 14px;\n padding: 0.6rem;\n display: flex;\n margin: auto 0;\n svg {\n font-size: 2.6rem;\n color: ", ";\n }\n }\n"])), function (props) {
3904
+ var TotalContainer = styled(Stack)(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n border-radius: 14px;\n background-color: ", ";\n padding: 1.8rem 1.4rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n align-items: center;\n :hover {\n background-color: ", ";\n p,\n h3 {\n color: #fff !important;\n }\n .icon-container {\n background: #fff;\n }\n .add-excess-payment-btn {\n background: #fff;\n color: ", ";\n }\n }\n p {\n font-size: 1rem;\n font-weight: 600;\n color: ", ";\n margin-bottom: 0rem;\n }\n h3 {\n font-size: 1.7rem;\n font-weight: 600;\n color: ", ";\n }\n .icon-container {\n background: ", ";\n border-radius: 14px;\n padding: 0.6rem;\n display: flex;\n margin: auto 0;\n svg {\n font-size: 2.6rem;\n color: ", ";\n }\n }\n"])), function (props) {
3557
3905
  return props.secondaryColor;
3558
3906
  }, function (props) {
3559
3907
  return props.primaryColor;
3908
+ }, function (props) {
3909
+ return props.primaryColor;
3560
3910
  }, function (props) {
3561
3911
  return props.fontColor;
3562
3912
  }, function (props) {
@@ -3566,12 +3916,15 @@ var TotalContainer = styled(Stack)(_templateObject11$1 || (_templateObject11$1 =
3566
3916
  }, function (props) {
3567
3917
  return props.primaryColor;
3568
3918
  });
3569
- var BannerContainer = styled(Stack)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose([""])));
3570
- var CategoryContainer = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 1.8rem;\n border-radius: 14px;\n"])), function (props) {
3919
+ var AddExcessPaymentButton = styled.button(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n margin-left: auto;\n border: none;\n cursor: pointer;\n border-radius: 999px;\n padding: 0.45rem 0.9rem 0.45rem 0.55rem;\n background: ", ";\n color: #fff;\n font-size: 0.85rem;\n font-weight: 600;\n line-height: 1;\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n\n svg {\n font-size: 1.35rem;\n }\n\n &:hover {\n transform: translateY(-1px);\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);\n }\n\n &:active {\n transform: translateY(0);\n }\n"])), function (props) {
3920
+ return props.primaryColor;
3921
+ });
3922
+ var BannerContainer = styled(Stack)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose([""])));
3923
+ var CategoryContainer = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 1.8rem;\n border-radius: 14px;\n"])), function (props) {
3571
3924
  var _props$theme;
3572
3925
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.primaryColor;
3573
3926
  });
3574
- var CategoryText = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n h3 {\n color: #fff;\n font-size: 2rem;\n font-weight: 700;\n margin: 1rem 0;\n }\n p {\n color: #fff;\n font-size: 1.2rem;\n text-transform: capitalize;\n }\n button {\n padding: 0.5rem 2rem;\n margin-top: 1rem;\n background-color: ", ";\n color: ", ";\n border-radius: 14px;\n font-size: 1.2rem;\n font-weight: 600;\n &:hover {\n background-color: ", ";\n color: #fff;\n }\n }\n"])), function (props) {
3927
+ var CategoryText = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n h3 {\n color: #fff;\n font-size: 2rem;\n font-weight: 700;\n margin: 1rem 0;\n }\n p {\n color: #fff;\n font-size: 1.2rem;\n text-transform: capitalize;\n }\n button {\n padding: 0.5rem 2rem;\n margin-top: 1rem;\n background-color: ", ";\n color: ", ";\n border-radius: 14px;\n font-size: 1.2rem;\n font-weight: 600;\n &:hover {\n background-color: ", ";\n color: #fff;\n }\n }\n"])), function (props) {
3575
3928
  var _props$theme2;
3576
3929
  return (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.secondaryColor;
3577
3930
  }, function (props) {
@@ -3581,19 +3934,19 @@ var CategoryText = styled.div(_templateObject14 || (_templateObject14 = _taggedT
3581
3934
  var _props$theme4;
3582
3935
  return (_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.primaryColor;
3583
3936
  });
3584
- var DiscoverContainer = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 1.8rem;\n border-radius: 14px;\n h3,\n svg {\n color: ", ";\n font-size: 2rem;\n font-weight: 700;\n line-height: 2rem;\n }\n"])), function (props) {
3937
+ var DiscoverContainer = styled.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 1.8rem;\n border-radius: 14px;\n h3,\n svg {\n color: ", ";\n font-size: 2rem;\n font-weight: 700;\n line-height: 2rem;\n }\n"])), function (props) {
3585
3938
  var _props$theme5, _props$theme6, _props$theme7;
3586
3939
  return (_props$theme5 = props.theme) !== null && _props$theme5 !== void 0 && _props$theme5.isNightMode ? (_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.secondaryColor : "rgba(" + hexToRgbA((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.primaryColor) + ",0.1)";
3587
3940
  }, function (props) {
3588
3941
  var _props$theme8;
3589
3942
  return (_props$theme8 = props.theme) === null || _props$theme8 === void 0 ? void 0 : _props$theme8.fontColor;
3590
3943
  });
3591
- var StatusContainer = styled(Stack)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n padding: 4px 8px;\n border-radius: 6px;\n background-color: ", ";\n color: #fff;\n width: max-content;\n"])), function (props) {
3944
+ var StatusContainer = styled(Stack)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n padding: 4px 8px;\n border-radius: 6px;\n background-color: ", ";\n color: #fff;\n width: max-content;\n"])), function (props) {
3592
3945
  return props.primaryColor;
3593
3946
  });
3594
- var TableContainer = styled.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n margin-top: 2rem;\n border-radius: 14px;\n"])));
3595
- var InvoiceDialog = styled(Dialog)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n iframe {\n width: 900px;\n border: none;\n height: 600px;\n }\n"])));
3596
- var TabsContainer = styled(Tabs)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n button {\n color: ", " !important;\n font-size: 1.1rem;\n font-weight: 600;\n }\n .Mui-selected {\n color: ", " !important;\n }\n .MuiTabs-indicator {\n background-color: ", " !important;\n }\n"])), function (props) {
3947
+ var TableContainer = styled.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n margin-top: 2rem;\n border-radius: 14px;\n"])));
3948
+ var InvoiceDialog = styled(Dialog)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n iframe {\n width: 900px;\n border: none;\n height: 600px;\n }\n"])));
3949
+ var TabsContainer = styled(Tabs)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n button {\n color: ", " !important;\n font-size: 1.1rem;\n font-weight: 600;\n }\n .Mui-selected {\n color: ", " !important;\n }\n .MuiTabs-indicator {\n background-color: ", " !important;\n }\n"])), function (props) {
3597
3950
  return props.fontColor;
3598
3951
  }, function (props) {
3599
3952
  return props.primaryColor;
@@ -3985,42 +4338,63 @@ var SideMenuItemComponentContainer = styled$1(SideMenuItemComponent)(function (_
3985
4338
  };
3986
4339
  });
3987
4340
 
3988
- var sideMenuItems = [{
3989
- name: 'My Account',
3990
- Icon: RiAccountBoxLine,
3991
- items: [{
3992
- name: 'Dashboard',
3993
- path: 'dashboard',
3994
- link: '/',
3995
- Icon: RiHome7Line
3996
- }, {
3997
- name: 'My Profile',
3998
- path: 'myProfile',
3999
- link: '/',
4000
- Icon: TbUserCircle
4001
- }, {
4002
- name: 'Address List',
4003
- path: 'addressList',
4004
- link: '/',
4005
- Icon: TbBuildingStore
4006
- }, {
4007
- name: 'Statement',
4008
- path: 'statement',
4009
- link: '/',
4010
- Icon: RiFileTextLine
4011
- }, {
4012
- name: 'Change Password',
4013
- path: 'changePassword',
4014
- link: '/',
4015
- Icon: BiLockOpen
4016
- }]
4017
- }];
4341
+ var sideMenuItems = function sideMenuItems(props) {
4342
+ return [{
4343
+ name: 'My Account',
4344
+ Icon: RiAccountBoxLine,
4345
+ items: [{
4346
+ name: 'Dashboard',
4347
+ path: 'dashboard',
4348
+ link: '/',
4349
+ Icon: RiHome7Line,
4350
+ hide: (props === null || props === void 0 ? void 0 : props.hideDashboard) || false
4351
+ }, {
4352
+ name: 'My Profile',
4353
+ path: 'myProfile',
4354
+ link: '/',
4355
+ Icon: TbUserCircle,
4356
+ hide: (props === null || props === void 0 ? void 0 : props.hideMyProfile) || false
4357
+ }, {
4358
+ name: 'Address List',
4359
+ path: 'addressList',
4360
+ link: '/',
4361
+ Icon: TbBuildingStore,
4362
+ hide: (props === null || props === void 0 ? void 0 : props.hideAddressList) || false
4363
+ }, {
4364
+ name: 'Statement',
4365
+ path: 'statement',
4366
+ link: '/',
4367
+ Icon: RiFileTextLine,
4368
+ hide: (props === null || props === void 0 ? void 0 : props.hideStatement) || false
4369
+ }, {
4370
+ name: 'Upcoming ACH Payments',
4371
+ path: 'upcomingACHPayments',
4372
+ link: '/',
4373
+ Icon: AiOutlineCreditCard,
4374
+ hide: (props === null || props === void 0 ? void 0 : props.hideUpcomingACHPayments) || false
4375
+ }, {
4376
+ name: 'Change Password',
4377
+ path: 'changePassword',
4378
+ link: '/',
4379
+ Icon: BiLockOpen,
4380
+ hide: (props === null || props === void 0 ? void 0 : props.hideChangePassword) || false
4381
+ }]
4382
+ }];
4383
+ };
4018
4384
  var SideMenu = function SideMenu(props) {
4019
4385
  var _props$menuItems;
4386
+ var menuItems = ((props === null || props === void 0 ? void 0 : (_props$menuItems = props.menuItems) === null || _props$menuItems === void 0 ? void 0 : _props$menuItems.length) > 0 ? props.menuItems : sideMenuItems(props)).map(function (section) {
4387
+ var _section$items;
4388
+ return _extends({}, section, {
4389
+ items: (_section$items = section.items) === null || _section$items === void 0 ? void 0 : _section$items.filter(function (item) {
4390
+ return !item.hide;
4391
+ })
4392
+ });
4393
+ });
4020
4394
  return /*#__PURE__*/React__default.createElement(List, {
4021
4395
  component: "nav",
4022
4396
  disablePadding: true
4023
- }, ((props === null || props === void 0 ? void 0 : (_props$menuItems = props.menuItems) === null || _props$menuItems === void 0 ? void 0 : _props$menuItems.length) > 0 ? props === null || props === void 0 ? void 0 : props.menuItems : sideMenuItems).map(function (item, index) {
4397
+ }, menuItems.map(function (item, index) {
4024
4398
  return /*#__PURE__*/React__default.createElement(_SideMenuItem, _extends({}, item, {
4025
4399
  key: index,
4026
4400
  primaryColor: props.primaryColor,
@@ -4679,7 +5053,7 @@ var StoreDetails = function StoreDetails(_ref) {
4679
5053
  secondaryColor: secondaryColor,
4680
5054
  backgroundColor: backgroundColor,
4681
5055
  fontColor: fontColor
4682
- }, /*#__PURE__*/React__default.createElement(CardHeader, {
5056
+ }, /*#__PURE__*/React__default.createElement(CardHeader$1, {
4683
5057
  title: /*#__PURE__*/React__default.createElement(Grid, {
4684
5058
  container: true,
4685
5059
  justifyContent: "space-between",
@@ -4907,7 +5281,7 @@ var getDropzoneRejectionError = function getDropzoneRejectionError(fileRejection
4907
5281
  return (error === null || error === void 0 ? void 0 : error.message) || 'Invalid file';
4908
5282
  };
4909
5283
 
4910
- var _templateObject$k, _templateObject2$c, _templateObject3$8, _templateObject4$6, _templateObject5$4, _templateObject6$3, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34;
5284
+ var _templateObject$k, _templateObject2$c, _templateObject3$8, _templateObject4$6, _templateObject5$4, _templateObject6$3, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34;
4911
5285
  var DEFAULT_PRIMARY_COLOR = "#437c0f";
4912
5286
  var Container = styled.div(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n width: 100%;\n min-height: 80vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background: #f6f6f6;\n padding: 2rem 1rem;\n"])));
4913
5287
  var Card = styled.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n width: min(100%, 720px);\n background: #fff;\n border: 1px solid #cac8c8;\n border-radius: 8px;\n padding: 1.5rem;\n"])));
@@ -4947,7 +5321,7 @@ var DropzoneBtn = styled.span(_templateObject16$1 || (_templateObject16$1 = _tag
4947
5321
  var DropzoneText = styled.span(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n font-size: 0.875rem;\n color: #666;\n"])));
4948
5322
  var DropzoneError = styled.p(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n margin: 0.5rem 0 0;\n font-size: 0.8rem;\n color: #c62828;\n"])));
4949
5323
  var SelectedFileRow = styled.div(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.6rem 0.75rem;\n border: 1px solid #e0e0e0;\n border-radius: 6px;\n background: #fafafa;\n"])));
4950
- var SelectedFileInfo = styled.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n flex: 1;\n"])));
5324
+ var SelectedFileInfo = styled.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n flex: 1;\n"])));
4951
5325
  var SelectedFileName = styled.span(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n font-size: 0.875rem;\n color: #333;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])));
4952
5326
  var ClearFileBtn = styled.button(_templateObject22 || (_templateObject22 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background: none;\n color: #c62828;\n font-size: 1.1rem;\n cursor: pointer;\n flex-shrink: 0;\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n"])));
4953
5327
  var UploadedFiles = styled.ul(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n\n li {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n font-size: 0.875rem;\n color: #555;\n padding: 0.65rem 0.75rem;\n background: #fff;\n border: 1px solid #eee;\n border-radius: 4px;\n }\n"])));
@@ -5263,7 +5637,70 @@ var getDocumentTypes = function getDocumentTypes(_ref3) {
5263
5637
  }
5264
5638
  };
5265
5639
 
5266
- var _templateObject$l, _templateObject2$d, _templateObject3$9, _templateObject4$7;
5640
+ var _templateObject$l;
5641
+ var columns = [{
5642
+ id: 'orderId',
5643
+ label: 'Order Id',
5644
+ minWidth: 120
5645
+ }, {
5646
+ id: 'amount',
5647
+ label: 'Amount',
5648
+ minWidth: 120,
5649
+ format: function format(value) {
5650
+ return renderMoney(value);
5651
+ }
5652
+ }, {
5653
+ id: 'scheduleDate',
5654
+ label: 'Schedule Date',
5655
+ minWidth: 160,
5656
+ format: function format(value) {
5657
+ return getLocalTime({
5658
+ time: value
5659
+ });
5660
+ }
5661
+ }, {
5662
+ id: 'notes',
5663
+ label: 'Notes',
5664
+ minWidth: 180
5665
+ }, {
5666
+ id: 'achAccountUUID',
5667
+ label: 'ACH Account',
5668
+ minWidth: 280
5669
+ }];
5670
+ var UpcomingACHPayments = function UpcomingACHPayments(_ref) {
5671
+ var apiEndPoint = _ref.apiEndPoint,
5672
+ token = _ref.token,
5673
+ primaryColor = _ref.primaryColor,
5674
+ secondaryColor = _ref.secondaryColor,
5675
+ backgroundColor = _ref.backgroundColor,
5676
+ fontColor = _ref.fontColor;
5677
+ return /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
5678
+ pagination: false,
5679
+ scroll: {
5680
+ x: 1000
5681
+ },
5682
+ tableId: "upcoming-ach-payments",
5683
+ columns: columns,
5684
+ asyncService: function asyncService() {
5685
+ try {
5686
+ return Promise.resolve(getUpcomingAchPayments({
5687
+ apiEndPoint: apiEndPoint,
5688
+ token: token
5689
+ }));
5690
+ } catch (e) {
5691
+ return Promise.reject(e);
5692
+ }
5693
+ },
5694
+ primaryColor: primaryColor,
5695
+ secondaryColor: secondaryColor,
5696
+ backgroundColor: backgroundColor,
5697
+ fontColor: fontColor
5698
+ }));
5699
+ };
5700
+ var TableContainer$2 = styled.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n margin: 1.2rem 0;\n border-radius: 14px;\n"])));
5701
+
5702
+ var _templateObject$m, _templateObject2$d, _templateObject3$9, _templateObject4$7;
5703
+ var _excluded$5 = ["apiEndPoint", "serviceApiEndPoint", "token", "primaryColor", "secondaryColor", "backgroundColor", "fontColor", "darkMode", "onChangeColors", "path", "onChangePath", "maxWidth", "logoUrl", "sectionLeftImageSection", "exploreCategoryImage", "sectionRightImageSection", "discountImageSection", "disabledUpdateProfileFromDashboard", "hideTotalCardInDashboardSummary", "showOnlyRecentOrder", "hidePayActionButton", "hideSalesOrderTab", "hideInvoiceTab", "hideAddAccessPaymentButton"];
5267
5704
  var AccountDetails = function AccountDetails(_ref) {
5268
5705
  var _storeData$map, _storeData$find, _storeData$;
5269
5706
  var apiEndPoint = _ref.apiEndPoint,
@@ -5296,7 +5733,10 @@ var AccountDetails = function AccountDetails(_ref) {
5296
5733
  _ref$hideSalesOrderTa = _ref.hideSalesOrderTab,
5297
5734
  hideSalesOrderTab = _ref$hideSalesOrderTa === void 0 ? false : _ref$hideSalesOrderTa,
5298
5735
  _ref$hideInvoiceTab = _ref.hideInvoiceTab,
5299
- hideInvoiceTab = _ref$hideInvoiceTab === void 0 ? false : _ref$hideInvoiceTab;
5736
+ hideInvoiceTab = _ref$hideInvoiceTab === void 0 ? false : _ref$hideInvoiceTab,
5737
+ _ref$hideAddAccessPay = _ref.hideAddAccessPaymentButton,
5738
+ hideAddAccessPaymentButton = _ref$hideAddAccessPay === void 0 ? false : _ref$hideAddAccessPay,
5739
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
5300
5740
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
5301
5741
  apiEndPoint: apiEndPoint,
5302
5742
  token: token
@@ -5469,7 +5909,8 @@ var AccountDetails = function AccountDetails(_ref) {
5469
5909
  showOnlyRecentOrder: showOnlyRecentOrder,
5470
5910
  hidePayActionButton: hidePayActionButton,
5471
5911
  hideSalesOrderTab: hideSalesOrderTab,
5472
- hideInvoiceTab: hideInvoiceTab
5912
+ hideInvoiceTab: hideInvoiceTab,
5913
+ hideAddAccessPaymentButton: hideAddAccessPaymentButton
5473
5914
  });
5474
5915
  case 'myProfile':
5475
5916
  return /*#__PURE__*/React__default.createElement(MyProfile, {
@@ -5509,6 +5950,20 @@ var AccountDetails = function AccountDetails(_ref) {
5509
5950
  storeIdList: storeIdList,
5510
5951
  defaultStoreId: defaultStoreId
5511
5952
  });
5953
+ case 'upcomingACHPayments':
5954
+ if (props !== null && props !== void 0 && props.hideUpcomingAchPayments) {
5955
+ return /*#__PURE__*/React__default.createElement(TypographyContainer$7, {
5956
+ fontColor: colors.fontColor
5957
+ }, "Empty");
5958
+ }
5959
+ return /*#__PURE__*/React__default.createElement(UpcomingACHPayments, {
5960
+ apiEndPoint: apiEndPoint,
5961
+ token: token,
5962
+ primaryColor: colors.primaryColor,
5963
+ secondaryColor: colors.secondaryColor,
5964
+ backgroundColor: colors.backgroundColor,
5965
+ fontColor: colors.fontColor
5966
+ });
5512
5967
  case 'changePassword':
5513
5968
  return /*#__PURE__*/React__default.createElement(ChangePassword, {
5514
5969
  apiEndPoint: apiEndPoint,
@@ -5559,12 +6014,12 @@ var AccountDetails = function AccountDetails(_ref) {
5559
6014
  style: {
5560
6015
  padding: '0 3rem 1rem'
5561
6016
  }
5562
- }), /*#__PURE__*/React__default.createElement(SideMenu, {
6017
+ }), /*#__PURE__*/React__default.createElement(SideMenu, _extends({
5563
6018
  primaryColor: colors.primaryColor,
5564
6019
  fontColor: colors.fontColor,
5565
6020
  tabValue: tabValue,
5566
6021
  onTabChange: onTabChange
5567
- })), /*#__PURE__*/React__default.createElement(Main, {
6022
+ }, props))), /*#__PURE__*/React__default.createElement(Main, {
5568
6023
  open: open,
5569
6024
  backgroundColor: colors.backgroundColor,
5570
6025
  style: {
@@ -5621,7 +6076,7 @@ var AccountDetails = function AccountDetails(_ref) {
5621
6076
  skeleton: true
5622
6077
  }, apiEndPoint && token && renderListItemComponent(tabValue))))))));
5623
6078
  };
5624
- var Root$4 = styled(Box)(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n // background-image: url(", ");\n // background-position: center;\n // background-repeat: no-repeat;\n // background-size: cover;\n padding: 1.4rem;\n background-color: ", ";\n"])), function (props) {
6079
+ var Root$4 = styled(Box)(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n // background-image: url(", ");\n // background-position: center;\n // background-repeat: no-repeat;\n // background-size: cover;\n padding: 1.4rem;\n background-color: ", ";\n"])), function (props) {
5625
6080
  var _props$theme;
5626
6081
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.backgroundImage;
5627
6082
  }, function (props) {
@@ -5655,101 +6110,24 @@ var Main = styled$1('main', {
5655
6110
  easing: theme.transitions.easing.easeOut,
5656
6111
  duration: theme.transitions.duration.enteringScreen
5657
6112
  }),
5658
- marginLeft: 0
5659
- }, {
5660
- background: backgroundColor,
5661
- borderRadius: 14,
5662
- height: 'auto',
5663
- overflow: 'auto'
5664
- });
5665
- });
5666
- var ContainerDrawer = styled(Drawer)(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n // height: 100%;\n margin-right: ", ";\n .MuiDrawer-paper {\n padding: 1rem;\n position: relative;\n z-index: 1;\n background: ", ";\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n }\n"])), function (props) {
5667
- return props.open && '2rem';
5668
- }, function (props) {
5669
- return props.primaryColor || transparent;
5670
- });
5671
- var TypographyContainer$7 = styled(Typography)(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
5672
- return props.fontColor;
5673
- });
5674
-
5675
- var AsyncDataLoad = function AsyncDataLoad(_ref) {
5676
- var apiEndPoint = _ref.apiEndPoint,
5677
- token = _ref.token,
5678
- children = _ref.children,
5679
- onError = _ref.onError,
5680
- skeletonHeight = _ref.skeletonHeight,
5681
- loadingView = _ref.loadingView,
5682
- errorView = _ref.errorView,
5683
- asyncService = _ref.asyncService,
5684
- triggerChange = _ref.triggerChange,
5685
- apiConfig = _ref.apiConfig;
5686
- var _useState = useState({
5687
- status: 'loading',
5688
- data: {}
5689
- }),
5690
- apiState = _useState[0],
5691
- setApiState = _useState[1];
5692
- var getAPIData = function getAPIData() {
5693
- try {
5694
- var _temp3 = _catch(function () {
5695
- function _temp2() {
5696
- setApiState({
5697
- status: API_STATUSES.SUCCESS,
5698
- data: data
5699
- });
5700
- }
5701
- setApiState({
5702
- status: API_STATUSES.LOADING,
5703
- data: {}
5704
- });
5705
- var data;
5706
- var _temp = function () {
5707
- if (asyncService) {
5708
- return Promise.resolve(asyncService()).then(function (_asyncService) {
5709
- data = _asyncService;
5710
- });
5711
- } else {
5712
- return Promise.resolve(API(_extends({
5713
- apiEndPoint: apiEndPoint,
5714
- token: token,
5715
- hideErrorMessage: true
5716
- }, apiConfig))).then(function (_API) {
5717
- data = _API;
5718
- });
5719
- }
5720
- }();
5721
- return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
5722
- }, function (e) {
5723
- setApiState({
5724
- status: API_STATUSES.ERROR,
5725
- data: {}
5726
- });
5727
- if (onError) {
5728
- onError(e);
5729
- }
5730
- });
5731
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
5732
- } catch (e) {
5733
- return Promise.reject(e);
5734
- }
5735
- };
5736
- useEffect(function () {
5737
- if (apiConfig || asyncService) {
5738
- (function () {
5739
- return getAPIData();
5740
- })();
5741
- }
5742
- }, [apiConfig, triggerChange]);
5743
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, apiState.status === API_STATUSES.LOADING ? loadingView ? loadingView : /*#__PURE__*/React__default.createElement(Loader, {
5744
- skeleton: skeletonHeight,
5745
- height: skeletonHeight
5746
- }) : null, apiState.status === API_STATUSES.SUCCESS ? typeof children === 'function' ? children(apiState.data) : {
5747
- children: children
5748
- } : null, apiState.status === API_STATUSES.ERROR ? errorView ? errorView : 'NO DATA' : null);
5749
- };
5750
- var AsyncDataLoadComponent = memo(AsyncDataLoad);
6113
+ marginLeft: 0
6114
+ }, {
6115
+ background: backgroundColor,
6116
+ borderRadius: 14,
6117
+ height: 'auto',
6118
+ overflow: 'auto'
6119
+ });
6120
+ });
6121
+ var ContainerDrawer = styled(Drawer)(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n // height: 100%;\n margin-right: ", ";\n .MuiDrawer-paper {\n padding: 1rem;\n position: relative;\n z-index: 1;\n background: ", ";\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n }\n"])), function (props) {
6122
+ return props.open && '2rem';
6123
+ }, function (props) {
6124
+ return props.primaryColor || transparent;
6125
+ });
6126
+ var TypographyContainer$7 = styled(Typography)(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
6127
+ return props.fontColor;
6128
+ });
5751
6129
 
5752
- var _templateObject$m, _templateObject2$e, _templateObject3$a;
6130
+ var _templateObject$n, _templateObject2$e, _templateObject3$a;
5753
6131
  var BannerImages = function BannerImages(_ref) {
5754
6132
  var config = _ref.config,
5755
6133
  sliderImages = _ref.sliderImages,
@@ -5814,11 +6192,11 @@ var BannerImages = function BannerImages(_ref) {
5814
6192
  }))));
5815
6193
  })));
5816
6194
  };
5817
- var Video = styled.video(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n width: 100%;\n cursor: pointer;\n transition: all 0.5s;\n height: 100%;\n object-fit: cover;\n object-position: center;\n &:hover {\n transform: scale(1.02);\n }\n"])));
6195
+ var Video = styled.video(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n width: 100%;\n cursor: pointer;\n transition: all 0.5s;\n height: 100%;\n object-fit: cover;\n object-position: center;\n &:hover {\n transform: scale(1.02);\n }\n"])));
5818
6196
  var Image = styled.img(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteralLoose(["\n width: 100%;\n cursor: pointer;\n transition: all 0.5s;\n height: 100%;\n object-fit: cover;\n object-position: center;\n &:hover {\n transform: scale(1.02);\n }\n"])));
5819
6197
  var BannerContainer$1 = styled.section(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n font-size: 0;\n"])));
5820
6198
 
5821
- var _templateObject$n, _templateObject2$f, _templateObject3$b, _templateObject4$8;
6199
+ var _templateObject$o, _templateObject2$f, _templateObject3$b, _templateObject4$8;
5822
6200
  var LandingCarousel = function LandingCarousel(_ref) {
5823
6201
  var _config$spaceBetweenC, _config$colLg, _ref2, _ref3, _config$colSm, _ref4, _config$colMd, _config$colLg2;
5824
6202
  var config = _ref.config,
@@ -5900,7 +6278,7 @@ var LandingCarousel = function LandingCarousel(_ref) {
5900
6278
  })));
5901
6279
  })));
5902
6280
  };
5903
- var Image$1 = styled.img(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n width: 100%;\n transition: all 0.5s;\n height: 100%;\n object-fit: cover;\n object-position: center;\n &:hover {\n transform: scale(1.05);\n }\n"])));
6281
+ var Image$1 = styled.img(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose(["\n width: 100%;\n transition: all 0.5s;\n height: 100%;\n object-fit: cover;\n object-position: center;\n &:hover {\n transform: scale(1.05);\n }\n"])));
5904
6282
  var Video$1 = styled.video(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteralLoose(["\n width: 100%;\n transition: all 0.5s;\n height: 100%;\n object-fit: cover;\n object-position: center;\n &:hover {\n transform: scale(1.05);\n }\n"])));
5905
6283
  var Root$5 = styled.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n height: 100%;\n"])));
5906
6284
  var ReactSlick = styled(Slider)(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteralLoose(["\n height: 100%;\n .slick-track {\n height: 100%;\n }\n .slick-slide {\n height: 100%;\n div:first-child {\n height: 100%;\n }\n }\n .slick-list {\n height: 100%;\n margin: 0 -", "px;\n }\n .slideItem {\n height: 100%;\n padding: 0 ", "px;\n overflow: hidden;\n }\n line-height: 0;\n .slick-dots {\n bottom: 0;\n li {\n margin: 0;\n button:before {\n color: #ffffff !important;\n font-size: 10px;\n }\n }\n }\n .slick-prev,\n .slick-next {\n color: #464646 !important;\n z-index: 1;\n width: 26px;\n height: 26px;\n }\n .slick-prev {\n left: 12px;\n }\n .slick-next {\n right: 12px;\n }\n"])), function (props) {
@@ -5909,7 +6287,7 @@ var ReactSlick = styled(Slider)(_templateObject4$8 || (_templateObject4$8 = _tag
5909
6287
  return props === null || props === void 0 ? void 0 : props.spaceBetweenCol;
5910
6288
  });
5911
6289
 
5912
- var _templateObject$o, _templateObject2$g;
6290
+ var _templateObject$p, _templateObject2$g;
5913
6291
  var inDebounce;
5914
6292
  var JUSTIFY = {
5915
6293
  Left: {
@@ -6104,7 +6482,7 @@ var HomeBanner = function HomeBanner(_ref) {
6104
6482
  }, item === null || item === void 0 ? void 0 : item.component);
6105
6483
  }))))));
6106
6484
  };
6107
- var Root$6 = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose([""])));
6485
+ var Root$6 = styled.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose([""])));
6108
6486
  var MainContainer$1 = styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose([""])));
6109
6487
  var SingleBanner = function SingleBanner(_ref3) {
6110
6488
  var config = _ref3.config,
@@ -6138,7 +6516,7 @@ var adjustResponsiveSpace = function adjustResponsiveSpace(_ref4) {
6138
6516
  return spaceValue;
6139
6517
  };
6140
6518
 
6141
- var _templateObject$p, _templateObject2$h, _templateObject3$c, _templateObject4$9, _templateObject5$5;
6519
+ var _templateObject$q, _templateObject2$h, _templateObject3$c, _templateObject4$9, _templateObject5$5;
6142
6520
  var LandingCarousel$1 = function LandingCarousel(_ref) {
6143
6521
  var _brandData2;
6144
6522
  var brandList = _ref.brandList,
@@ -6264,7 +6642,7 @@ var LandingCarousel$1 = function LandingCarousel(_ref) {
6264
6642
  })));
6265
6643
  })));
6266
6644
  };
6267
- var Image$2 = styled.img(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n width: 100%;\n transition: all 0.5s;\n height: 100%;\n min-height: 100px;\n max-width: 150px;\n object-fit: contain;\n object-position: center;\n &:hover {\n transform: scale(1.05);\n }\n"])));
6645
+ var Image$2 = styled.img(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n width: 100%;\n transition: all 0.5s;\n height: 100%;\n min-height: 100px;\n max-width: 150px;\n object-fit: contain;\n object-position: center;\n &:hover {\n transform: scale(1.05);\n }\n"])));
6268
6646
  var Video$2 = styled.video(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n transition: all 0.5s;\n height: 100%;\n min-height: 100px;\n max-width: 150px;\n object-fit: cover;\n object-position: center;\n &:hover {\n transform: scale(1.05);\n }\n"])));
6269
6647
  var Root$7 = styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n height: 100%;\n"])));
6270
6648
  var ReactSlick$1 = styled(Slider)(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteralLoose(["\n height: 100%;\n .slick-track {\n height: 100%;\n }\n .slick-slide {\n height: 100%;\n div:first-child {\n height: 100%;\n }\n }\n .slick-list {\n height: 100%;\n margin: 0 -", "px;\n }\n\n line-height: 0;\n .slick-dots {\n bottom: 0;\n li {\n margin: 0;\n button:before {\n color: #ffffff !important;\n font-size: 10px;\n }\n }\n }\n .slick-prev,\n .slick-next {\n color: #464646 !important;\n z-index: 1;\n width: 26px;\n height: 26px;\n }\n .slick-prev {\n left: 12px;\n }\n .slick-next {\n right: 12px;\n }\n"])), function (props) {
@@ -6274,7 +6652,7 @@ var SliderItem = styled.div(_templateObject5$5 || (_templateObject5$5 = _taggedT
6274
6652
  return (props === null || props === void 0 ? void 0 : props.spaceBetweenCol) || 0;
6275
6653
  });
6276
6654
 
6277
- var _templateObject$q, _templateObject2$i;
6655
+ var _templateObject$r, _templateObject2$i;
6278
6656
  var BrandList = function BrandList(_ref) {
6279
6657
  var apiEndPoint = _ref.apiEndPoint,
6280
6658
  _ref$colors = _ref.colors,
@@ -6336,10 +6714,10 @@ var BrandList = function BrandList(_ref) {
6336
6714
  autoplaySpeed: autoplaySpeed
6337
6715
  }))));
6338
6716
  };
6339
- var Root$8 = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose([""])));
6717
+ var Root$8 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose([""])));
6340
6718
  var MainContainer$2 = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose([""])));
6341
6719
 
6342
- var _templateObject$r, _templateObject2$j, _templateObject3$d, _templateObject4$a, _templateObject5$6, _templateObject6$4, _templateObject7$3, _templateObject8$3, _templateObject9$3;
6720
+ var _templateObject$s, _templateObject2$j, _templateObject3$d, _templateObject4$a, _templateObject5$6, _templateObject6$4, _templateObject7$3, _templateObject8$3, _templateObject9$3;
6343
6721
  var BrandStock = function BrandStock(_ref) {
6344
6722
  var _Object$keys, _Object$keys2, _data$brands;
6345
6723
  var storeData = _ref.storeData,
@@ -6494,13 +6872,13 @@ var BrandStock = function BrandStock(_ref) {
6494
6872
  }));
6495
6873
  })), (data === null || data === void 0 ? void 0 : data.returnPolicy) && /*#__PURE__*/React__default.createElement(ReturnPolicyContainer, null, /*#__PURE__*/React__default.createElement("h2", null, (data === null || data === void 0 ? void 0 : data.returnPolicyTitle) || 'Return Policy'), data === null || data === void 0 ? void 0 : data.returnPolicy))));
6496
6874
  };
6497
- var Root$9 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n"])));
6875
+ var Root$9 = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n"])));
6498
6876
  var TitleContainer$1 = styled.div(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n padding: 0 1rem;\n display: flex;\n justify-content: space-between;\n"])));
6499
6877
  var MainContainer$3 = styled.div(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteralLoose(["\n max-width: 600px;\n margin: auto;\n .logo {\n display: flex;\n }\n .logoImage {\n max-width: min(400px, 100%);\n max-height: 200px;\n margin: auto;\n }\n"])));
6500
6878
  var DetailsContainer = styled.div(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteralLoose(["\n margin: 1.2rem 0;\n text-align: center;\n p {\n font-size: 16px;\n font-weight: 500;\n }\n span {\n font-size: 15px;\n }\n .lineContainer {\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0.5rem 0;\n span {\n margin-right: 6px;\n }\n }\n"])));
6501
6879
  var BrandContainer = styled.div(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n .brandImage {\n max-width: 100%;\n margin: 1rem auto;\n }\n"])));
6502
6880
  var ReturnPolicyContainer = styled.div(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n h2 {\n text-align: center;\n }\n margin: 1rem 0;\n p {\n font-size: 16px;\n }\n"])));
6503
- var TablePaperContainer = styled(TableContainer$4)(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n background-color: transparent;\n"])));
6881
+ var TablePaperContainer = styled(TableContainer$5)(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n background-color: transparent;\n"])));
6504
6882
  var TableRowContainer$1 = styled(TableRow$1)(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n && {\n background: ", ";\n &:last-child td,\n &:last-child th {\n border: 0;\n }\n }\n"])), function (props) {
6505
6883
  return !props.availableQuantity && '#cd2323';
6506
6884
  });
@@ -6508,8 +6886,8 @@ var TableCellContainer$1 = styled(TableCell$1)(_templateObject9$3 || (_templateO
6508
6886
  return props.availableQuantity ? props.stockCol && 'green' : '#ffffff';
6509
6887
  });
6510
6888
 
6511
- var _templateObject$s, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$5, _templateObject7$4;
6512
- var CartDrawerContainer = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n height: 100%;\n /* padding: 1em;\n padding-top: 0rem; */\n position: relative;\n /* min-width: 100%; */\n min-height: 100vh;\n max-height: 100vh;\n overflow: hidden;\n box-sizing: border-box;\n\n display: flex;\n flex-direction: column;\n /* border: 1px solid; */\n"])), function (props) {
6889
+ var _templateObject$t, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$5, _templateObject7$4;
6890
+ var CartDrawerContainer = styled.div(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n height: 100%;\n /* padding: 1em;\n padding-top: 0rem; */\n position: relative;\n /* min-width: 100%; */\n min-height: 100vh;\n max-height: 100vh;\n overflow: hidden;\n box-sizing: border-box;\n\n display: flex;\n flex-direction: column;\n /* border: 1px solid; */\n"])), function (props) {
6513
6891
  return props.maxWidth || '650px';
6514
6892
  });
6515
6893
  var CartDrawerBar = styled.div(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n position: sticky;\n box-sizing: border-box;\n top: 0;\n left: 0;\n padding: 1em;\n height: 4.6rem;\n font-size: 1.6rem;\n background-color: white;\n font-weight: bold;\n padding-left: 1rem;\n z-index: 2;\n h2 {\n font-size: 1.5em;\n }\n .icon {\n cursor: pointer;\n font-size: 1em;\n }\n @media only screen and (max-width: 600px) {\n font-size: 1rem;\n height: 4rem;\n }\n"])));
@@ -6617,8 +6995,8 @@ function useGridSize() {
6617
6995
  return layout;
6618
6996
  }
6619
6997
 
6620
- var _templateObject$t, _templateObject2$l, _templateObject3$f, _templateObject4$c, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$3;
6621
- var CartPageSection = styled.section(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n border-radius: 20px;\n max-width: 1600px;\n width: min(1600px, 100%);\n margin: auto;\n @media screen and (max-width: 1200px) {\n padding: 0 1em;\n }\n"])), function (props) {
6998
+ var _templateObject$u, _templateObject2$l, _templateObject3$f, _templateObject4$c, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$3;
6999
+ var CartPageSection = styled.section(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n border-radius: 20px;\n max-width: 1600px;\n width: min(1600px, 100%);\n margin: auto;\n @media screen and (max-width: 1200px) {\n padding: 0 1em;\n }\n"])), function (props) {
6622
7000
  return props.bg;
6623
7001
  }, function (props) {
6624
7002
  return props.bg || '#FAE8E5';
@@ -6652,7 +7030,7 @@ var CartTableCell = styled(TableCell)(_templateObject6$6 || (_templateObject6$6
6652
7030
  }, function (props) {
6653
7031
  return "" + props.color || 'inherit';
6654
7032
  });
6655
- var CartTableContainer = styled(TableContainer$3)(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteralLoose(["\n max-height: 580px;\n padding-right: 1rem;\n\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 16px;\n width: 100%;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n border-radius: 16px;\n margin: 5px 2px;\n background: ", ";\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n }\n"])), function (props) {
7033
+ var CartTableContainer = styled(TableContainer$4)(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteralLoose(["\n max-height: 580px;\n padding-right: 1rem;\n\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 16px;\n width: 100%;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n border-radius: 16px;\n margin: 5px 2px;\n background: ", ";\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n }\n"])), function (props) {
6656
7034
  return 'rgba(102, 112, 128, 0.5)';
6657
7035
  }, function (props) {
6658
7036
  return props.color;
@@ -7793,41 +8171,973 @@ var TotalAfterDiscount = function TotalAfterDiscount(_ref2) {
7793
8171
  }, renderMoney(totalAmount)) : /*#__PURE__*/createElement(Fragment$1, null), /*#__PURE__*/createElement("b", null, renderMoney(total))));
7794
8172
  };
7795
8173
 
7796
- var _templateObject$u, _templateObject2$m, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$7;
7797
- var ProductImage = styled.img(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n min-width: 60px;\n min-height: 60px;\n object-fit: contain;\n @media only screen and (max-width: 600px) {\n margin: 0.5em 0;\n padding-right: 0.5em;\n }\n"])));
7798
- var ProductName = styled.h6(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n padding: 0;\n line-height: 1.3em;\n overflow: hidden;\n text-overflow: ellipsis;\n height: fit-content;\n cursor: pointer;\n"])), function (props) {
8174
+ var _templateObject$v, _templateObject2$m, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$7, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59;
8175
+ var DEFAULT_PRIMARY_COLOR$1 = '#437C0F';
8176
+ var formatCurrency = function formatCurrency(amount) {
8177
+ return Number(amount).toLocaleString('en-US', {
8178
+ minimumFractionDigits: 0,
8179
+ maximumFractionDigits: 2
8180
+ });
8181
+ };
8182
+ var getUnitSaving = function getUnitSaving(coupon, productPrice) {
8183
+ if (coupon !== null && coupon !== void 0 && coupon.percentage && coupon !== null && coupon !== void 0 && coupon.offPercentage && productPrice > 0) {
8184
+ return productPrice * (coupon.offPercentage / 100);
8185
+ }
8186
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.offPercentageAmount) > 0) {
8187
+ return coupon.offPercentageAmount;
8188
+ }
8189
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.offAmount) > 0 && !(coupon !== null && coupon !== void 0 && coupon.percentage)) {
8190
+ return coupon.offAmount;
8191
+ }
8192
+ return null;
8193
+ };
8194
+ var formatCartCount = function formatCartCount(cartQuantity) {
8195
+ return cartQuantity + " " + (cartQuantity === 1 ? 'quantity' : 'quantities') + " added in the cart";
8196
+ };
8197
+ var formatRemainingQuantity = function formatRemainingQuantity(remaining) {
8198
+ return remaining + " more " + (remaining === 1 ? 'quantity' : 'quantities');
8199
+ };
8200
+ var isBuyXGetFreeProduct = function isBuyXGetFreeProduct(coupon) {
8201
+ var _coupon$freeProducts;
8202
+ return (coupon === null || coupon === void 0 ? void 0 : coupon.discountType) === 'BuyXGetFreeProduct' || (coupon === null || coupon === void 0 ? void 0 : (_coupon$freeProducts = coupon.freeProducts) === null || _coupon$freeProducts === void 0 ? void 0 : _coupon$freeProducts.length) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0;
8203
+ };
8204
+ var getBuyXGetFreeProductOffPercent = function getBuyXGetFreeProductOffPercent(coupon) {
8205
+ var pct = Number(coupon === null || coupon === void 0 ? void 0 : coupon.offPercentage);
8206
+ if (Number.isFinite(pct) && pct > 0) return pct;
8207
+ return 100;
8208
+ };
8209
+ var isFullyFreeBuyXOffer = function isFullyFreeBuyXOffer(coupon) {
8210
+ return getBuyXGetFreeProductOffPercent(coupon) >= 100;
8211
+ };
8212
+ var getBuyXGetFreeProductOfferLabel = function getBuyXGetFreeProductOfferLabel(coupon) {
8213
+ var offPercent = getBuyXGetFreeProductOffPercent(coupon);
8214
+ if (offPercent >= 100) return 'free';
8215
+ return offPercent + "% off on these products";
8216
+ };
8217
+ var getFreeProductHref = function getFreeProductHref(product) {
8218
+ return "/product-details/" + paramCase((product === null || product === void 0 ? void 0 : product.productAlias) || (product === null || product === void 0 ? void 0 : product.productName) || '') + "?id=" + (product === null || product === void 0 ? void 0 : product.productId);
8219
+ };
8220
+ var getBuyXGetFreeProductMessages = function getBuyXGetFreeProductMessages(quantityToBuy, quantityToGet, cartQuantity, offPercentage) {
8221
+ if (offPercentage === void 0) {
8222
+ offPercentage = 100;
8223
+ }
8224
+ var isFullyFree = offPercentage >= 100;
8225
+ var buyTimes = quantityToBuy + " " + (quantityToBuy === 1 ? 'time' : 'times');
8226
+ var benefitSummary = isFullyFree ? "Buy this product " + buyTimes + ", get " + quantityToGet + " " + (quantityToGet === 1 ? 'free product' : 'free products') : "Buy this product " + buyTimes + ", get " + offPercentage + "% off on these products";
8227
+ var lines = [benefitSummary];
8228
+ if (cartQuantity <= 0) {
8229
+ return lines;
8230
+ }
8231
+ if (cartQuantity < quantityToBuy) {
8232
+ var remaining = quantityToBuy - cartQuantity;
8233
+ lines.push(formatCartCount(cartQuantity));
8234
+ lines.push("Add " + formatRemainingQuantity(remaining) + " to qualify");
8235
+ } else {
8236
+ lines.push(isFullyFree ? formatCartCount(cartQuantity) + " \xB7 Apply this coupon to claim your free product" : formatCartCount(cartQuantity) + " \xB7 Apply this coupon to claim " + offPercentage + "% off on these products");
8237
+ }
8238
+ return lines;
8239
+ };
8240
+ var getBuyXGetYMessages = function getBuyXGetYMessages(quantityToBuy, quantityToGet, cartQuantity) {
8241
+ var totalNeeded = quantityToBuy + quantityToGet;
8242
+ var lines = ["Buy " + quantityToBuy + ", get " + quantityToGet + " for free"];
8243
+ if (cartQuantity <= 0) {
8244
+ return lines;
8245
+ }
8246
+ if (cartQuantity < quantityToBuy) {
8247
+ var remaining = quantityToBuy - cartQuantity;
8248
+ lines.push(formatCartCount(cartQuantity));
8249
+ lines.push("Add " + formatRemainingQuantity(remaining) + " to qualify");
8250
+ } else if (cartQuantity < totalNeeded) {
8251
+ var _remaining = totalNeeded - cartQuantity;
8252
+ lines.push(formatCartCount(cartQuantity));
8253
+ lines.push("Add " + formatRemainingQuantity(_remaining) + " to apply this coupon");
8254
+ } else {
8255
+ var freeLabel = quantityToGet === 1 ? 'item' : 'items';
8256
+ lines.push(formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get " + quantityToGet + " " + freeLabel + " for free");
8257
+ }
8258
+ return lines;
8259
+ };
8260
+ var getCouponTypeIcon = function getCouponTypeIcon(coupon) {
8261
+ if (isBuyXGetFreeProduct(coupon)) {
8262
+ return isFullyFreeBuyXOffer(coupon) ? FiGift : FiPercent;
8263
+ }
8264
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0) return FiLayers;
8265
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage) return FiPercent;
8266
+ return FiTag;
8267
+ };
8268
+ var getDetailMeta = function getDetailMeta(line) {
8269
+ if (line.includes('added in the cart') && line.includes('Apply')) {
8270
+ return {
8271
+ icon: HiSparkles,
8272
+ tone: 'success'
8273
+ };
8274
+ }
8275
+ if (line.includes('added in the cart')) {
8276
+ return {
8277
+ icon: FiShoppingCart,
8278
+ tone: 'info'
8279
+ };
8280
+ }
8281
+ if (line.startsWith('Add ')) {
8282
+ return {
8283
+ icon: FiPlusCircle,
8284
+ tone: 'warning'
8285
+ };
8286
+ }
8287
+ if (line.includes('Apply') || line.includes('claim')) {
8288
+ return {
8289
+ icon: HiSparkles,
8290
+ tone: 'success'
8291
+ };
8292
+ }
8293
+ return {
8294
+ icon: FiTag,
8295
+ tone: 'info'
8296
+ };
8297
+ };
8298
+ var getCouponBenefit = function getCouponBenefit(coupon, _temp) {
8299
+ var _ref = _temp === void 0 ? {} : _temp,
8300
+ _ref$productPrice = _ref.productPrice,
8301
+ productPrice = _ref$productPrice === void 0 ? 0 : _ref$productPrice,
8302
+ _ref$cartQuantity = _ref.cartQuantity,
8303
+ cartQuantity = _ref$cartQuantity === void 0 ? 0 : _ref$cartQuantity;
8304
+ if (isBuyXGetFreeProduct(coupon)) {
8305
+ return getBuyXGetFreeProductMessages(coupon.quantityToBuy, coupon.quantityToGet, cartQuantity, getBuyXGetFreeProductOffPercent(coupon));
8306
+ }
8307
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8308
+ if (hasBuyXGetY) {
8309
+ return getBuyXGetYMessages(coupon.quantityToBuy, coupon.quantityToGet, cartQuantity);
8310
+ }
8311
+ var unitSaving = getUnitSaving(coupon, productPrice);
8312
+ if (!unitSaving) return null;
8313
+ var lines = [];
8314
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage) {
8315
+ lines.push(coupon.offPercentage + "% off \xB7 Save $" + formatCurrency(unitSaving) + " per item");
8316
+ } else {
8317
+ lines.push("Save $" + formatCurrency(unitSaving) + " per item");
8318
+ }
8319
+ if (cartQuantity > 0) {
8320
+ var totalSaving = unitSaving * cartQuantity;
8321
+ lines.push(formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get $" + formatCurrency(totalSaving) + " off");
8322
+ }
8323
+ return lines;
8324
+ };
8325
+ var getSuggestionPreviewText = function getSuggestionPreviewText(coupon, _temp2) {
8326
+ var _ref2 = _temp2 === void 0 ? {} : _temp2,
8327
+ _ref2$productPrice = _ref2.productPrice,
8328
+ productPrice = _ref2$productPrice === void 0 ? 0 : _ref2$productPrice,
8329
+ _ref2$cartQuantity = _ref2.cartQuantity,
8330
+ cartQuantity = _ref2$cartQuantity === void 0 ? 0 : _ref2$cartQuantity;
8331
+ if (!coupon) return null;
8332
+ if (isBuyXGetFreeProduct(coupon)) {
8333
+ var _quantityToBuy = coupon.quantityToBuy || 1;
8334
+ var quantityToGet = coupon.quantityToGet || 1;
8335
+ var buyTimes = _quantityToBuy + " " + (_quantityToBuy === 1 ? 'time' : 'times');
8336
+ var offPercent = getBuyXGetFreeProductOffPercent(coupon);
8337
+ if (offPercent >= 100) {
8338
+ return "Buy this product " + buyTimes + ", get " + quantityToGet + " " + (quantityToGet === 1 ? 'free product' : 'free products') + ". Click View All offers to know more";
8339
+ }
8340
+ return "Buy this product " + buyTimes + ", get " + offPercent + "% off on some products. Click View All offers to know more";
8341
+ }
8342
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8343
+ if (hasBuyXGetY) {
8344
+ var _getCouponBenefit;
8345
+ return ((_getCouponBenefit = getCouponBenefit(coupon, {
8346
+ productPrice: productPrice,
8347
+ cartQuantity: cartQuantity
8348
+ })) === null || _getCouponBenefit === void 0 ? void 0 : _getCouponBenefit[0]) || null;
8349
+ }
8350
+ var unitSaving = getUnitSaving(coupon, productPrice);
8351
+ var quantityToBuy = coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy;
8352
+ var hasBuyQuantityRequirement = quantityToBuy > 0 && !((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0);
8353
+ if (hasBuyQuantityRequirement && coupon !== null && coupon !== void 0 && coupon.offPercentage && unitSaving) {
8354
+ var qtyLabel = quantityToBuy === 1 ? 'quantity' : 'quantities';
8355
+ return "Buy " + quantityToBuy + " " + qtyLabel + ", get " + coupon.offPercentage + "% off, save $" + formatCurrency(unitSaving) + " per item";
8356
+ }
8357
+ if (hasBuyQuantityRequirement && unitSaving) {
8358
+ var _qtyLabel = quantityToBuy === 1 ? 'quantity' : 'quantities';
8359
+ return "Buy " + quantityToBuy + " " + _qtyLabel + ", save $" + formatCurrency(unitSaving) + " per item";
8360
+ }
8361
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage && unitSaving) {
8362
+ return "get " + coupon.offPercentage + "% off, save $" + formatCurrency(unitSaving) + " per item";
8363
+ }
8364
+ if (unitSaving) {
8365
+ return "save $" + formatCurrency(unitSaving) + " per item";
8366
+ }
8367
+ return null;
8368
+ };
8369
+ var getSavingsBadge = function getSavingsBadge(coupon, productPrice) {
8370
+ if (isBuyXGetFreeProduct(coupon)) {
8371
+ if (!isFullyFreeBuyXOffer(coupon)) {
8372
+ return {
8373
+ variant: 'percent',
8374
+ top: getBuyXGetFreeProductOffPercent(coupon) + "%",
8375
+ bottom: 'OFF'
8376
+ };
8377
+ }
8378
+ var qty = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) || 1;
8379
+ return {
8380
+ variant: 'gift',
8381
+ top: qty > 1 ? qty + "\xD7" : 'FREE',
8382
+ bottom: 'GIFT'
8383
+ };
8384
+ }
8385
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0) {
8386
+ return {
8387
+ variant: 'bogo',
8388
+ top: "+" + coupon.quantityToGet,
8389
+ bottom: 'FREE'
8390
+ };
8391
+ }
8392
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage) {
8393
+ return {
8394
+ variant: 'percent',
8395
+ top: coupon.offPercentage + "%",
8396
+ bottom: 'OFF'
8397
+ };
8398
+ }
8399
+ var unitSaving = getUnitSaving(coupon, productPrice);
8400
+ if (unitSaving) {
8401
+ return {
8402
+ variant: 'amount',
8403
+ top: "$" + formatCurrency(unitSaving),
8404
+ bottom: 'SAVE'
8405
+ };
8406
+ }
8407
+ return {
8408
+ variant: 'deal',
8409
+ top: 'SAVE',
8410
+ bottom: 'NOW'
8411
+ };
8412
+ };
8413
+ var getProgressInfo = function getProgressInfo(coupon, cartQuantity) {
8414
+ if (isBuyXGetFreeProduct(coupon)) {
8415
+ var _target = coupon.quantityToBuy || 0;
8416
+ if (!_target) return null;
8417
+ var _current = Math.min(cartQuantity, _target);
8418
+ var _percent = Math.min(100, _current / _target * 100);
8419
+ var _remaining2 = Math.max(0, _target - cartQuantity);
8420
+ var qualified = cartQuantity >= _target;
8421
+ var offerLabel = getBuyXGetFreeProductOfferLabel(coupon);
8422
+ var unlockLabel = isFullyFreeBuyXOffer(coupon) ? 'your FREE gift' : offerLabel;
8423
+ return {
8424
+ type: 'quantity',
8425
+ current: _current,
8426
+ target: _target,
8427
+ percent: _percent,
8428
+ qualified: qualified,
8429
+ unitLabel: _target === 1 ? 'Item' : 'Items',
8430
+ message: qualified ? "You're eligible — apply your code at checkout!" : _remaining2 === 1 ? "Only 1 more item to unlock " + unlockLabel + "!" : "Only " + _remaining2 + " more items to unlock " + unlockLabel + "!"
8431
+ };
8432
+ }
8433
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8434
+ if (!hasBuyXGetY) return null;
8435
+ var quantityToBuy = coupon.quantityToBuy,
8436
+ quantityToGet = coupon.quantityToGet;
8437
+ var totalNeeded = quantityToBuy + quantityToGet;
8438
+ if (cartQuantity >= totalNeeded) {
8439
+ return {
8440
+ type: 'buyxgety',
8441
+ qualified: true,
8442
+ quantityToBuy: quantityToBuy,
8443
+ quantityToGet: quantityToGet,
8444
+ message: "You're eligible — apply your code at checkout!"
8445
+ };
8446
+ }
8447
+ if (cartQuantity >= quantityToBuy) {
8448
+ var _current2 = cartQuantity;
8449
+ var _target2 = totalNeeded;
8450
+ var _percent2 = Math.min(100, _current2 / _target2 * 100);
8451
+ var _remaining3 = totalNeeded - cartQuantity;
8452
+ return {
8453
+ type: 'quantity',
8454
+ current: _current2,
8455
+ target: _target2,
8456
+ percent: _percent2,
8457
+ qualified: false,
8458
+ unitLabel: _target2 === 1 ? 'Item' : 'Items',
8459
+ message: _remaining3 === 1 ? 'Only 1 more item to apply this coupon' : "Only " + _remaining3 + " more items to apply this coupon",
8460
+ showTimeline: true,
8461
+ quantityToBuy: quantityToBuy,
8462
+ quantityToGet: quantityToGet
8463
+ };
8464
+ }
8465
+ var current = Math.min(cartQuantity, quantityToBuy);
8466
+ var target = quantityToBuy;
8467
+ var percent = Math.min(100, current / target * 100);
8468
+ var remaining = quantityToBuy - cartQuantity;
8469
+ return {
8470
+ type: 'quantity',
8471
+ current: current,
8472
+ target: target,
8473
+ percent: percent,
8474
+ qualified: false,
8475
+ unitLabel: target === 1 ? 'Item' : 'Items',
8476
+ message: remaining === 1 ? 'Only 1 more item to qualify' : "Only " + remaining + " more items to qualify",
8477
+ showTimeline: true,
8478
+ quantityToBuy: quantityToBuy,
8479
+ quantityToGet: quantityToGet
8480
+ };
8481
+ };
8482
+ var isProgressDetailLine = function isProgressDetailLine(line) {
8483
+ return line === null || line === void 0 ? void 0 : line.startsWith('Add ');
8484
+ };
8485
+ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8486
+ var open = _ref3.open,
8487
+ onClose = _ref3.onClose,
8488
+ productName = _ref3.productName,
8489
+ _ref3$productDiscount = _ref3.productDiscounts,
8490
+ productDiscounts = _ref3$productDiscount === void 0 ? [] : _ref3$productDiscount,
8491
+ primaryColor = _ref3.primaryColor,
8492
+ _ref3$cartQuantity = _ref3.cartQuantity,
8493
+ cartQuantity = _ref3$cartQuantity === void 0 ? 0 : _ref3$cartQuantity,
8494
+ _ref3$productPrice = _ref3.productPrice,
8495
+ productPrice = _ref3$productPrice === void 0 ? 0 : _ref3$productPrice;
8496
+ var _useState = useState(null),
8497
+ copiedCode = _useState[0],
8498
+ setCopiedCode = _useState[1];
8499
+ var accentColor = primaryColor || DEFAULT_PRIMARY_COLOR$1;
8500
+ var copyCouponCode = useCallback(function (code) {
8501
+ try {
8502
+ if (!code) return Promise.resolve();
8503
+ var _temp3 = _catch(function () {
8504
+ var _navigator, _navigator$clipboard;
8505
+ return Promise.resolve((_navigator = navigator) === null || _navigator === void 0 ? void 0 : (_navigator$clipboard = _navigator.clipboard) === null || _navigator$clipboard === void 0 ? void 0 : _navigator$clipboard.writeText(code)).then(function () {
8506
+ var _window;
8507
+ setCopiedCode(code);
8508
+ (_window = window) === null || _window === void 0 ? void 0 : _window.setTimeout(function () {
8509
+ return setCopiedCode(null);
8510
+ }, 1800);
8511
+ });
8512
+ }, function (error) {
8513
+ console.error('Failed to copy coupon code', error);
8514
+ });
8515
+ return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
8516
+ } catch (e) {
8517
+ return Promise.reject(e);
8518
+ }
8519
+ }, []);
8520
+ useEffect(function () {
8521
+ if (!open) return;
8522
+ var scrollLocks = [];
8523
+ var lockElement = function lockElement(el) {
8524
+ if (!el) return;
8525
+ scrollLocks.push({
8526
+ el: el,
8527
+ overflow: el.style.overflow,
8528
+ overscrollBehavior: el.style.overscrollBehavior
8529
+ });
8530
+ el.style.overflow = 'hidden';
8531
+ el.style.overscrollBehavior = 'none';
8532
+ };
8533
+ lockElement(document.body);
8534
+ lockElement(document.documentElement);
8535
+ document.querySelectorAll('.scrollDiv, .MuiTableContainer-root').forEach(lockElement);
8536
+ var handleKeyDown = function handleKeyDown(event) {
8537
+ if (event.key === 'Escape') onClose();
8538
+ };
8539
+ document.addEventListener('keydown', handleKeyDown);
8540
+ return function () {
8541
+ scrollLocks.forEach(function (_ref4) {
8542
+ var el = _ref4.el,
8543
+ overflow = _ref4.overflow,
8544
+ overscrollBehavior = _ref4.overscrollBehavior;
8545
+ el.style.overflow = overflow;
8546
+ el.style.overscrollBehavior = overscrollBehavior;
8547
+ });
8548
+ document.removeEventListener('keydown', handleKeyDown);
8549
+ };
8550
+ }, [open, onClose]);
8551
+ if (!open) return null;
8552
+ return createPortal(/*#__PURE__*/React__default.createElement(Overlay, {
8553
+ onClick: onClose,
8554
+ role: "presentation"
8555
+ }, /*#__PURE__*/React__default.createElement(Panel, {
8556
+ role: "dialog",
8557
+ "aria-modal": "true",
8558
+ "aria-labelledby": "discount-suggestions-title",
8559
+ onClick: function onClick(event) {
8560
+ return event.stopPropagation();
8561
+ }
8562
+ }, /*#__PURE__*/React__default.createElement(DialogHeader, null, /*#__PURE__*/React__default.createElement(DialogTitle, {
8563
+ id: "discount-suggestions-title"
8564
+ }, "Available Offers"), /*#__PURE__*/React__default.createElement(CloseButton, {
8565
+ type: "button",
8566
+ "aria-label": "close",
8567
+ onClick: onClose
8568
+ }, /*#__PURE__*/React__default.createElement(MdClose, null))), /*#__PURE__*/React__default.createElement(ScrollableBody, null, !(productDiscounts !== null && productDiscounts !== void 0 && productDiscounts.length) ? /*#__PURE__*/React__default.createElement(EmptyState$1, null, "No product offers available.") : /*#__PURE__*/React__default.createElement(SavingsCenter, {
8569
+ $accentColor: accentColor,
8570
+ role: "region",
8571
+ "aria-label": "Available offers and savings"
8572
+ }, /*#__PURE__*/React__default.createElement(AmbientGlow, {
8573
+ $accentColor: accentColor,
8574
+ "aria-hidden": "true"
8575
+ }), /*#__PURE__*/React__default.createElement(Sparkle, {
8576
+ $accentColor: accentColor,
8577
+ $top: "12%",
8578
+ $left: "6%",
8579
+ $delay: "0s",
8580
+ "aria-hidden": "true"
8581
+ }), /*#__PURE__*/React__default.createElement(Sparkle, {
8582
+ $accentColor: accentColor,
8583
+ $top: "28%",
8584
+ $left: "88%",
8585
+ $delay: "1.2s",
8586
+ $size: "sm",
8587
+ "aria-hidden": "true"
8588
+ }), /*#__PURE__*/React__default.createElement(Sparkle, {
8589
+ $accentColor: accentColor,
8590
+ $top: "72%",
8591
+ $left: "4%",
8592
+ $delay: "2.1s",
8593
+ $size: "sm",
8594
+ "aria-hidden": "true"
8595
+ }), /*#__PURE__*/React__default.createElement(SectionHeader, {
8596
+ $accentColor: accentColor
8597
+ }, /*#__PURE__*/React__default.createElement(HeaderIconWrap, {
8598
+ $accentColor: accentColor
8599
+ }, /*#__PURE__*/React__default.createElement(MdLocalOffer, null)), /*#__PURE__*/React__default.createElement(HeaderCopy, null, /*#__PURE__*/React__default.createElement(Eyebrow, {
8600
+ $accentColor: accentColor
8601
+ }, /*#__PURE__*/React__default.createElement(FiZap, null), "Savings Center"), /*#__PURE__*/React__default.createElement(SectionHeading, null, productName || 'Available Offers')), /*#__PURE__*/React__default.createElement(OfferCountBadge, {
8602
+ $accentColor: accentColor
8603
+ }, /*#__PURE__*/React__default.createElement(HiSparkles, null), /*#__PURE__*/React__default.createElement("strong", null, productDiscounts.length), /*#__PURE__*/React__default.createElement("span", null, productDiscounts.length === 1 ? 'Offer' : 'Offers'))), /*#__PURE__*/React__default.createElement(OfferStack, null, productDiscounts.map(function (coupon, index) {
8604
+ var _coupon$discountId;
8605
+ var benefit = getCouponBenefit(coupon, {
8606
+ productPrice: productPrice,
8607
+ cartQuantity: cartQuantity
8608
+ });
8609
+ var benefitSummary = (benefit === null || benefit === void 0 ? void 0 : benefit[0]) || null;
8610
+ var benefitDetails = (benefit === null || benefit === void 0 ? void 0 : benefit.length) > 1 ? benefit.slice(1) : [];
8611
+ var statusDetails = benefitDetails.filter(function (line) {
8612
+ return !isProgressDetailLine(line);
8613
+ });
8614
+ var hasSuccessStatus = statusDetails.some(function (line) {
8615
+ var _getDetailMeta = getDetailMeta(line),
8616
+ tone = _getDetailMeta.tone;
8617
+ return tone === 'success';
8618
+ });
8619
+ var freeProducts = isBuyXGetFreeProduct(coupon) ? (coupon === null || coupon === void 0 ? void 0 : coupon.freeProducts) || [] : [];
8620
+ var isFullyFreeOffer = isBuyXGetFreeProduct(coupon) ? isFullyFreeBuyXOffer(coupon) : false;
8621
+ var TypeIcon = getCouponTypeIcon(coupon);
8622
+ var isCopied = copiedCode === (coupon === null || coupon === void 0 ? void 0 : coupon.couponCode);
8623
+ var savingsBadge = getSavingsBadge(coupon, productPrice);
8624
+ var progressInfo = getProgressInfo(coupon, cartQuantity);
8625
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8626
+ var showTimeline = hasBuyXGetY && ((progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.showTimeline) || (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'buyxgety');
8627
+ return /*#__PURE__*/React__default.createElement(OfferCard, {
8628
+ key: (_coupon$discountId = coupon === null || coupon === void 0 ? void 0 : coupon.discountId) != null ? _coupon$discountId : coupon === null || coupon === void 0 ? void 0 : coupon.couponCode,
8629
+ $accentColor: accentColor,
8630
+ $index: index
8631
+ }, /*#__PURE__*/React__default.createElement(CardBody, null, /*#__PURE__*/React__default.createElement(CardHeader, null, /*#__PURE__*/React__default.createElement(SavingsBadge, {
8632
+ $accentColor: accentColor,
8633
+ $variant: savingsBadge.variant
8634
+ }, /*#__PURE__*/React__default.createElement(BadgeTop, null, savingsBadge.top), /*#__PURE__*/React__default.createElement(BadgeBottom, null, savingsBadge.bottom)), /*#__PURE__*/React__default.createElement(CardHeaderCopy, null, /*#__PURE__*/React__default.createElement(CardMetaRow, null, /*#__PURE__*/React__default.createElement(TypePill, {
8635
+ $accentColor: accentColor
8636
+ }, /*#__PURE__*/React__default.createElement(TypeIcon, null), /*#__PURE__*/React__default.createElement("span", null, isBuyXGetFreeProduct(coupon) ? isFullyFreeOffer ? 'Free Gift' : getBuyXGetFreeProductOffPercent(coupon) + "% Off" : hasBuyXGetY ? 'Buy & Get' : coupon !== null && coupon !== void 0 && coupon.offPercentage ? 'Percent Off' : 'Instant Save')), (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.qualified) && /*#__PURE__*/React__default.createElement(QualifiedPill, {
8637
+ $accentColor: accentColor
8638
+ }, /*#__PURE__*/React__default.createElement(HiSparkles, null), "Ready")), /*#__PURE__*/React__default.createElement(TitleRow, null, /*#__PURE__*/React__default.createElement(OfferTitle, {
8639
+ title: coupon === null || coupon === void 0 ? void 0 : coupon.discountName
8640
+ }, coupon === null || coupon === void 0 ? void 0 : coupon.discountName), /*#__PURE__*/React__default.createElement(CodeRow, {
8641
+ $accentColor: accentColor
8642
+ }, /*#__PURE__*/React__default.createElement(CodeValue, {
8643
+ $accentColor: accentColor,
8644
+ "aria-label": "Coupon code " + (coupon === null || coupon === void 0 ? void 0 : coupon.couponCode)
8645
+ }, coupon === null || coupon === void 0 ? void 0 : coupon.couponCode), /*#__PURE__*/React__default.createElement(Tooltip, {
8646
+ title: isCopied ? 'Copied!' : 'Copy code',
8647
+ arrow: true,
8648
+ placement: "top"
8649
+ }, /*#__PURE__*/React__default.createElement(PrimaryCopyButton, {
8650
+ type: "button",
8651
+ $accentColor: accentColor,
8652
+ $copied: isCopied,
8653
+ "aria-label": "Copy coupon code " + (coupon === null || coupon === void 0 ? void 0 : coupon.couponCode),
8654
+ onClick: function onClick() {
8655
+ return copyCouponCode(coupon === null || coupon === void 0 ? void 0 : coupon.couponCode);
8656
+ }
8657
+ }, isCopied ? /*#__PURE__*/React__default.createElement("div", {
8658
+ style: {
8659
+ display: 'flex',
8660
+ alignItems: 'center',
8661
+ gap: '4px'
8662
+ }
8663
+ }, /*#__PURE__*/React__default.createElement(FiCheck, null), /*#__PURE__*/React__default.createElement("span", null, "Copied")) : /*#__PURE__*/React__default.createElement("div", {
8664
+ style: {
8665
+ display: 'flex',
8666
+ alignItems: 'center',
8667
+ gap: '4px'
8668
+ }
8669
+ }, /*#__PURE__*/React__default.createElement(FiCopy, null), /*#__PURE__*/React__default.createElement("span", null, "Copy")))))))), benefitSummary && /*#__PURE__*/React__default.createElement(OfferDescription, null, benefitSummary), showTimeline && /*#__PURE__*/React__default.createElement(BuyXTimeline, {
8670
+ $accentColor: accentColor
8671
+ }, /*#__PURE__*/React__default.createElement(TimelineStep, null, /*#__PURE__*/React__default.createElement(TimelineIcon, {
8672
+ $accentColor: accentColor
8673
+ }, /*#__PURE__*/React__default.createElement(FiShoppingCart, null)), /*#__PURE__*/React__default.createElement(TimelineLabel, null, "Buy ", coupon.quantityToBuy)), /*#__PURE__*/React__default.createElement(TimelineTrack, {
8674
+ $accentColor: accentColor
8675
+ }, /*#__PURE__*/React__default.createElement(TimelineArrow, {
8676
+ $accentColor: accentColor
8677
+ })), /*#__PURE__*/React__default.createElement(TimelineStep, null, /*#__PURE__*/React__default.createElement(TimelineIcon, {
8678
+ $accentColor: accentColor,
8679
+ $highlight: true
8680
+ }, /*#__PURE__*/React__default.createElement(FiGift, null)), /*#__PURE__*/React__default.createElement(TimelineLabel, null, "Get ", coupon.quantityToGet, " FREE"))), (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'quantity' && !progressInfo.qualified && /*#__PURE__*/React__default.createElement(ProgressBlock, null, /*#__PURE__*/React__default.createElement(ProgressTrack, {
8681
+ $accentColor: accentColor,
8682
+ role: "progressbar",
8683
+ "aria-valuenow": progressInfo.current,
8684
+ "aria-valuemin": 0,
8685
+ "aria-valuemax": progressInfo.target,
8686
+ "aria-label": progressInfo.current + " of " + progressInfo.target + " items toward eligibility"
8687
+ }, /*#__PURE__*/React__default.createElement(ProgressFill, {
8688
+ $accentColor: accentColor,
8689
+ $percent: progressInfo.percent
8690
+ })), /*#__PURE__*/React__default.createElement(ProgressMeta, null, /*#__PURE__*/React__default.createElement(ProgressCount, null, /*#__PURE__*/React__default.createElement("strong", null, progressInfo.current), /*#__PURE__*/React__default.createElement("span", null, "/ ", progressInfo.target, ' ', progressInfo.unitLabel)), /*#__PURE__*/React__default.createElement(ProgressHint, null, progressInfo.message))), (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.qualified) && (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.message) && !hasSuccessStatus && /*#__PURE__*/React__default.createElement(SuccessBanner, {
8691
+ $accentColor: accentColor
8692
+ }, /*#__PURE__*/React__default.createElement(HiSparkles, null), /*#__PURE__*/React__default.createElement("span", null, progressInfo.message)), statusDetails.length > 0 && /*#__PURE__*/React__default.createElement(StatusList, null, statusDetails.map(function (line, detailIndex) {
8693
+ var _getDetailMeta2 = getDetailMeta(line),
8694
+ DetailIcon = _getDetailMeta2.icon,
8695
+ tone = _getDetailMeta2.tone;
8696
+ return /*#__PURE__*/React__default.createElement(StatusItem, {
8697
+ key: (coupon === null || coupon === void 0 ? void 0 : coupon.discountId) + "-" + detailIndex,
8698
+ $accentColor: accentColor,
8699
+ $tone: tone,
8700
+ $chipIndex: detailIndex
8701
+ }, /*#__PURE__*/React__default.createElement(DetailIcon, null), /*#__PURE__*/React__default.createElement("span", null, line));
8702
+ })), freeProducts.length > 0 && /*#__PURE__*/React__default.createElement(GiftSection, null, isFullyFreeOffer && /*#__PURE__*/React__default.createElement(GiftSectionHeader, {
8703
+ $accentColor: accentColor
8704
+ }, /*#__PURE__*/React__default.createElement(FiGift, null), /*#__PURE__*/React__default.createElement("span", null, "Free gift options")), /*#__PURE__*/React__default.createElement(GiftList, null, freeProducts.map(function (product) {
8705
+ var _product$productName;
8706
+ return /*#__PURE__*/React__default.createElement(GiftLink, {
8707
+ key: product === null || product === void 0 ? void 0 : product.productId,
8708
+ href: getFreeProductHref(product),
8709
+ $accentColor: accentColor
8710
+ }, /*#__PURE__*/React__default.createElement("span", null, product === null || product === void 0 ? void 0 : (_product$productName = product.productName) === null || _product$productName === void 0 ? void 0 : _product$productName.trim()), /*#__PURE__*/React__default.createElement(FiArrowRight, null));
8711
+ })))));
8712
+ })))))), document.body);
8713
+ };
8714
+ var fadeSlideUp = keyframes(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose(["\n from {\n opacity: 0;\n transform: translateY(14px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n"])));
8715
+ var shimmer = keyframes(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n 0% {\n background-position: -120% 0;\n }\n 100% {\n background-position: 220% 0;\n }\n"])));
8716
+ var copyPop = keyframes(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n 0% {\n transform: scale(1);\n }\n 45% {\n transform: scale(1.06);\n }\n 100% {\n transform: scale(1);\n }\n"])));
8717
+ var chipIn = keyframes(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n from {\n opacity: 0;\n transform: translateY(6px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n"])));
8718
+ var progressGrow = keyframes(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n from {\n width: 0;\n }\n"])));
8719
+ var sparkleFloat = keyframes(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n 0%, 100% {\n opacity: 0.15;\n transform: translateY(0) scale(1);\n }\n 50% {\n opacity: 0.55;\n transform: translateY(-6px) scale(1.15);\n }\n"])));
8720
+ var reducedMotion = css(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n @media (prefers-reduced-motion: reduce) {\n animation: none !important;\n transition: none !important;\n }\n"])));
8721
+ var Overlay = styled.div(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n position: fixed;\n inset: 0;\n z-index: 1500;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 1rem;\n background-color: rgba(0, 0, 0, 0.1);\n"])));
8722
+ var Panel = styled.div(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 640px;\n max-height: 85vh;\n background: #fff;\n border-radius: 0.75rem;\n box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2),\n 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);\n overflow: hidden;\n"])));
8723
+ var DialogHeader = styled.div(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n position: relative;\n flex: 0 0 auto;\n padding: 1rem 3rem 1rem 1rem;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n"])));
8724
+ var DialogTitle = styled.h2(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-size: 1.15rem;\n font-weight: 800;\n color: #12180d;\n line-height: 1.3;\n letter-spacing: -0.02em;\n"])));
8725
+ var CloseButton = styled.button(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n padding: 0;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: rgba(0, 0, 0, 0.54);\n cursor: pointer;\n transition: background-color 0.2s ease;\n\n svg {\n font-size: 1.25rem;\n }\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.04);\n }\n\n &:focus-visible {\n outline: 2px solid #437c0f;\n outline-offset: 1px;\n }\n"])));
8726
+ var ScrollableBody = styled.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n padding: 0.85rem;\n"])));
8727
+ var EmptyState$1 = styled.p(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 1.5rem 0.5rem;\n text-align: center;\n font-size: 0.9rem;\n font-weight: 600;\n color: #5a6354;\n"])));
8728
+ var SavingsCenter = styled.section(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n --accent: ", ";\n position: relative;\n width: 100%;\n border-radius: 0.85rem;\n border: 1px solid ", ";\n background: linear-gradient(165deg, #ffffff 0%, #fafcf7 45%, #f6f9f2 100%);\n overflow: hidden;\n box-shadow: 0 1px 2px rgba(16, 22, 10, 0.04),\n 0 8px 24px ", ";\n animation: ", " 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;\n font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',\n 'Inter', Roboto, sans-serif;\n ", "\n"])), function (_ref5) {
8729
+ var $accentColor = _ref5.$accentColor;
8730
+ return $accentColor;
8731
+ }, function (_ref6) {
8732
+ var $accentColor = _ref6.$accentColor;
8733
+ return $accentColor + "20";
8734
+ }, function (_ref7) {
8735
+ var $accentColor = _ref7.$accentColor;
8736
+ return $accentColor + "10";
8737
+ }, fadeSlideUp, reducedMotion);
8738
+ var AmbientGlow = styled.div(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -40%;\n right: -15%;\n width: 55%;\n height: 80%;\n background: radial-gradient(\n circle,\n ", " 0%,\n transparent 70%\n );\n pointer-events: none;\n"])), function (_ref8) {
8739
+ var $accentColor = _ref8.$accentColor;
8740
+ return $accentColor + "18";
8741
+ });
8742
+ var Sparkle = styled.span(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: ", ";\n left: ", ";\n width: ", ";\n height: ", ";\n border-radius: 50%;\n background: ", ";\n box-shadow: 0 0 12px ", ";\n animation: ", " 4s ease-in-out infinite;\n animation-delay: ", ";\n pointer-events: none;\n opacity: 0.3;\n\n ", "\n"])), function (_ref9) {
8743
+ var $top = _ref9.$top;
8744
+ return $top;
8745
+ }, function (_ref10) {
8746
+ var $left = _ref10.$left;
8747
+ return $left;
8748
+ }, function (_ref11) {
8749
+ var $size = _ref11.$size;
8750
+ return $size === 'sm' ? '4px' : '6px';
8751
+ }, function (_ref12) {
8752
+ var $size = _ref12.$size;
8753
+ return $size === 'sm' ? '4px' : '6px';
8754
+ }, function (_ref13) {
8755
+ var $accentColor = _ref13.$accentColor;
8756
+ return $accentColor;
8757
+ }, function (_ref14) {
8758
+ var $accentColor = _ref14.$accentColor;
8759
+ return $accentColor + "80";
8760
+ }, sparkleFloat, function (_ref15) {
8761
+ var $delay = _ref15.$delay;
8762
+ return $delay;
8763
+ }, reducedMotion);
8764
+ var SectionHeader = styled.header(_templateObject18$2 || (_templateObject18$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.6rem;\n padding: 0.65rem 0.8rem;\n background: linear-gradient(\n 135deg,\n ", " 0%,\n ", " 55%,\n transparent 100%\n );\n border-bottom: 1px solid ", ";\n position: relative;\n overflow: hidden;\n\n &::after {\n content: '';\n position: absolute;\n inset: 0;\n background: linear-gradient(\n 105deg,\n transparent 38%,\n rgba(255, 255, 255, 0.45) 50%,\n transparent 62%\n );\n background-size: 200% 100%;\n animation: ", " 6s ease-in-out infinite;\n pointer-events: none;\n }\n\n ", "\n"])), function (_ref16) {
8765
+ var $accentColor = _ref16.$accentColor;
8766
+ return $accentColor + "16";
8767
+ }, function (_ref17) {
8768
+ var $accentColor = _ref17.$accentColor;
8769
+ return $accentColor + "05";
8770
+ }, function (_ref18) {
8771
+ var $accentColor = _ref18.$accentColor;
8772
+ return $accentColor + "12";
8773
+ }, shimmer, reducedMotion);
8774
+ var HeaderIconWrap = styled.div(_templateObject19$2 || (_templateObject19$2 = _taggedTemplateLiteralLoose(["\n --icon-shadow: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: 0.55rem;\n flex-shrink: 0;\n color: #fff;\n background: linear-gradient(\n 145deg,\n ", " 0%,\n ", " 100%\n );\n box-shadow: 0 4px 12px var(--icon-shadow);\n z-index: 1;\n\n svg {\n font-size: 1.05rem;\n }\n"])), function (_ref19) {
8775
+ var $accentColor = _ref19.$accentColor;
8776
+ return $accentColor + "40";
8777
+ }, function (_ref20) {
8778
+ var $accentColor = _ref20.$accentColor;
8779
+ return $accentColor;
8780
+ }, function (_ref21) {
8781
+ var $accentColor = _ref21.$accentColor;
8782
+ return $accentColor + "cc";
8783
+ });
8784
+ var HeaderCopy = styled.div(_templateObject20$2 || (_templateObject20$2 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n z-index: 1;\n"])));
8785
+ var Eyebrow = styled.span(_templateObject21$1 || (_templateObject21$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n font-size: 0.6rem;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.08em;\n color: ", ";\n\n svg {\n font-size: 0.65rem;\n }\n"])), function (_ref22) {
8786
+ var $accentColor = _ref22.$accentColor;
8787
+ return $accentColor;
8788
+ });
8789
+ var SectionHeading = styled.h3(_templateObject22$1 || (_templateObject22$1 = _taggedTemplateLiteralLoose(["\n margin: 0.1rem 0 0;\n font-size: 0.95rem;\n font-weight: 800;\n letter-spacing: -0.02em;\n color: #12180d;\n line-height: 1.2;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
8790
+ var OfferCountBadge = styled.div(_templateObject23$1 || (_templateObject23$1 = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n display: inline-flex;\n align-items: center;\n gap: 0.28rem;\n padding: 0.28rem 0.55rem;\n border-radius: 999px;\n background: rgba(18, 24, 13, 0.92);\n color: #f8fff0;\n font-size: 0.65rem;\n font-weight: 600;\n z-index: 1;\n\n strong {\n font-size: 0.82rem;\n font-weight: 800;\n line-height: 1;\n }\n\n svg {\n font-size: 0.72rem;\n color: ", ";\n }\n"])), function (_ref23) {
8791
+ var $accentColor = _ref23.$accentColor;
8792
+ return $accentColor;
8793
+ });
8794
+ var OfferStack = styled.div(_templateObject24$1 || (_templateObject24$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.55rem;\n"])));
8795
+ var OfferCard = styled.article(_templateObject25$1 || (_templateObject25$1 = _taggedTemplateLiteralLoose(["\n border-radius: 0.7rem;\n border: 1px solid ", ";\n background: #fff;\n box-shadow: 0 1px 4px rgba(16, 20, 12, 0.04);\n opacity: 0;\n animation: ", " 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;\n animation-delay: ", "s;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n overflow: hidden;\n\n &:hover {\n border-color: ", ";\n box-shadow: 0 4px 14px ", ";\n }\n\n &:focus-within {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n ", "\n"])), function (_ref24) {
8796
+ var $accentColor = _ref24.$accentColor;
8797
+ return $accentColor + "20";
8798
+ }, fadeSlideUp, function (_ref25) {
8799
+ var $index = _ref25.$index;
8800
+ return 0.06 + $index * 0.04;
8801
+ }, function (_ref26) {
8802
+ var $accentColor = _ref26.$accentColor;
8803
+ return $accentColor + "45";
8804
+ }, function (_ref27) {
8805
+ var $accentColor = _ref27.$accentColor;
8806
+ return $accentColor + "12";
8807
+ }, function (_ref28) {
8808
+ var $accentColor = _ref28.$accentColor;
8809
+ return $accentColor + "50";
8810
+ }, reducedMotion);
8811
+ var CardBody = styled.div(_templateObject26$1 || (_templateObject26$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.35rem;\n padding: 0.6rem 0.65rem;\n"])));
8812
+ var CardHeader = styled.div(_templateObject27$1 || (_templateObject27$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-start;\n gap: 0.55rem;\n"])));
8813
+ var CardHeaderCopy = styled.div(_templateObject28$1 || (_templateObject28$1 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 0.15rem;\n"])));
8814
+ var SavingsBadge = styled.div(_templateObject29$1 || (_templateObject29$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n min-width: 3.1rem;\n padding: 0.3rem 0.35rem;\n border-radius: 0.5rem;\n flex-shrink: 0;\n text-align: center;\n color: #fff;\n line-height: 1;\n background: ", ";\n box-shadow: 0 3px 10px ", ";\n"])), function (_ref29) {
8815
+ var $accentColor = _ref29.$accentColor,
8816
+ $variant = _ref29.$variant;
8817
+ if ($variant === 'gift') {
8818
+ return "linear-gradient(145deg, #e8a317 0%, #c47d0a 100%)";
8819
+ }
8820
+ if ($variant === 'bogo') {
8821
+ return "linear-gradient(145deg, " + $accentColor + " 0%, #2d5f0a 100%)";
8822
+ }
8823
+ return "linear-gradient(145deg, " + $accentColor + " 0%, " + $accentColor + "cc 100%)";
8824
+ }, function (_ref30) {
8825
+ var $accentColor = _ref30.$accentColor;
8826
+ return $accentColor + "28";
8827
+ });
8828
+ var BadgeTop = styled.span(_templateObject30$1 || (_templateObject30$1 = _taggedTemplateLiteralLoose(["\n font-size: 0.82rem;\n font-weight: 900;\n letter-spacing: -0.02em;\n"])));
8829
+ var BadgeBottom = styled.span(_templateObject31$1 || (_templateObject31$1 = _taggedTemplateLiteralLoose(["\n margin-top: 0.1rem;\n font-size: 0.52rem;\n font-weight: 800;\n letter-spacing: 0.08em;\n opacity: 0.92;\n"])));
8830
+ var CardMetaRow = styled.div(_templateObject32$1 || (_templateObject32$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.28rem;\n"])));
8831
+ var TypePill = styled.span(_templateObject33$1 || (_templateObject33$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.22rem;\n padding: 0.12rem 0.4rem;\n border-radius: 999px;\n font-size: 0.6rem;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n\n svg {\n font-size: 0.65rem;\n }\n"])), function (_ref31) {
8832
+ var $accentColor = _ref31.$accentColor;
8833
+ return $accentColor;
8834
+ }, function (_ref32) {
8835
+ var $accentColor = _ref32.$accentColor;
8836
+ return $accentColor + "10";
8837
+ }, function (_ref33) {
8838
+ var $accentColor = _ref33.$accentColor;
8839
+ return $accentColor + "22";
8840
+ });
8841
+ var QualifiedPill = styled.span(_templateObject34$1 || (_templateObject34$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.2rem;\n padding: 0.12rem 0.4rem;\n border-radius: 999px;\n font-size: 0.6rem;\n font-weight: 700;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n\n svg {\n font-size: 0.62rem;\n }\n"])), function (_ref34) {
8842
+ var $accentColor = _ref34.$accentColor;
8843
+ return $accentColor;
8844
+ }, function (_ref35) {
8845
+ var $accentColor = _ref35.$accentColor;
8846
+ return $accentColor + "12";
8847
+ }, function (_ref36) {
8848
+ var $accentColor = _ref36.$accentColor;
8849
+ return $accentColor + "30";
8850
+ });
8851
+ var TitleRow = styled.div(_templateObject35 || (_templateObject35 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.45rem;\n min-width: 0;\n flex-wrap: wrap;\n"])));
8852
+ var OfferTitle = styled.h4(_templateObject36 || (_templateObject36 = _taggedTemplateLiteralLoose(["\n margin: 0;\n flex: 1;\n min-width: 0;\n font-size: 0.88rem;\n font-weight: 800;\n letter-spacing: -0.015em;\n color: #141a10;\n line-height: 1.25;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
8853
+ var OfferDescription = styled.p(_templateObject37 || (_templateObject37 = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-size: 0.74rem;\n font-weight: 500;\n color: #4a5540;\n line-height: 1.35;\n"])));
8854
+ var BuyXTimeline = styled.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.35rem;\n padding: 0.4rem 0.55rem;\n border-radius: 0.5rem;\n background: ", ";\n border: 1px solid ", ";\n"])), function (_ref37) {
8855
+ var $accentColor = _ref37.$accentColor;
8856
+ return $accentColor + "07";
8857
+ }, function (_ref38) {
8858
+ var $accentColor = _ref38.$accentColor;
8859
+ return $accentColor + "14";
8860
+ });
8861
+ var TimelineStep = styled.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n"])));
8862
+ var TimelineIcon = styled.div(_templateObject40 || (_templateObject40 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 1.45rem;\n height: 1.45rem;\n border-radius: 0.35rem;\n color: ", ";\n background: ", ";\n\n svg {\n font-size: 0.72rem;\n }\n"])), function (_ref39) {
8863
+ var $accentColor = _ref39.$accentColor,
8864
+ $highlight = _ref39.$highlight;
8865
+ return $highlight ? '#fff' : $accentColor;
8866
+ }, function (_ref40) {
8867
+ var $accentColor = _ref40.$accentColor,
8868
+ $highlight = _ref40.$highlight;
8869
+ return $highlight ? $accentColor : $accentColor + "14";
8870
+ });
8871
+ var TimelineLabel = styled.span(_templateObject41 || (_templateObject41 = _taggedTemplateLiteralLoose(["\n font-size: 0.65rem;\n font-weight: 700;\n color: #3a4334;\n white-space: nowrap;\n"])));
8872
+ var TimelineTrack = styled.div(_templateObject42 || (_templateObject42 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n align-items: center;\n min-width: 2rem;\n padding: 0 0.15rem;\n"])));
8873
+ var TimelineArrow = styled.div(_templateObject43 || (_templateObject43 = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 2px;\n border-radius: 999px;\n background: linear-gradient(\n 90deg,\n ", ",\n ", "\n );\n position: relative;\n\n &::after {\n content: '';\n position: absolute;\n right: -1px;\n top: 50%;\n transform: translateY(-50%);\n border: 5px solid transparent;\n border-left-color: ", ";\n }\n"])), function (_ref41) {
8874
+ var $accentColor = _ref41.$accentColor;
8875
+ return $accentColor + "44";
8876
+ }, function (_ref42) {
8877
+ var $accentColor = _ref42.$accentColor;
8878
+ return $accentColor;
8879
+ }, function (_ref43) {
8880
+ var $accentColor = _ref43.$accentColor;
8881
+ return $accentColor;
8882
+ });
8883
+ var ProgressBlock = styled.div(_templateObject44 || (_templateObject44 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n"])));
8884
+ var ProgressTrack = styled.div(_templateObject45 || (_templateObject45 = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 0.35rem;\n border-radius: 999px;\n background: #e8ede3;\n overflow: hidden;\n"])));
8885
+ var ProgressFill = styled.div(_templateObject46 || (_templateObject46 = _taggedTemplateLiteralLoose(["\n height: 100%;\n width: ", "%;\n border-radius: 999px;\n background: linear-gradient(\n 90deg,\n ", " 0%,\n ", " 100%\n );\n animation: ", " 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;\n transition: width 0.4s ease;\n\n ", "\n"])), function (_ref44) {
8886
+ var $percent = _ref44.$percent;
8887
+ return $percent;
8888
+ }, function (_ref45) {
8889
+ var $accentColor = _ref45.$accentColor;
8890
+ return $accentColor + "cc";
8891
+ }, function (_ref46) {
8892
+ var $accentColor = _ref46.$accentColor;
8893
+ return $accentColor;
8894
+ }, progressGrow, reducedMotion);
8895
+ var ProgressMeta = styled.div(_templateObject47 || (_templateObject47 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: 0.2rem 0.5rem;\n"])));
8896
+ var ProgressCount = styled.div(_templateObject48 || (_templateObject48 = _taggedTemplateLiteralLoose(["\n font-size: 0.7rem;\n font-weight: 600;\n color: #2f3829;\n\n strong {\n font-size: 0.78rem;\n font-weight: 800;\n }\n\n span {\n color: #6a7364;\n }\n"])));
8897
+ var ProgressHint = styled.span(_templateObject49 || (_templateObject49 = _taggedTemplateLiteralLoose(["\n font-size: 0.68rem;\n font-weight: 600;\n color: #7a5e12;\n line-height: 1.3;\n"])));
8898
+ var SuccessBanner = styled.div(_templateObject50 || (_templateObject50 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.3rem;\n padding: 0.32rem 0.5rem;\n border-radius: 0.45rem;\n font-size: 0.7rem;\n font-weight: 600;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n\n svg {\n flex-shrink: 0;\n font-size: 0.75rem;\n }\n"])), function (_ref47) {
8899
+ var $accentColor = _ref47.$accentColor;
8900
+ return $accentColor;
8901
+ }, function (_ref48) {
8902
+ var $accentColor = _ref48.$accentColor;
8903
+ return $accentColor + "10";
8904
+ }, function (_ref49) {
8905
+ var $accentColor = _ref49.$accentColor;
8906
+ return $accentColor + "25";
8907
+ });
8908
+ var StatusList = styled.div(_templateObject51 || (_templateObject51 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n"])));
8909
+ var StatusItem = styled.div(_templateObject52 || (_templateObject52 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-start;\n gap: 0.3rem;\n padding: 0.28rem 0.45rem;\n border-radius: 0.45rem;\n font-size: 0.7rem;\n font-weight: 600;\n line-height: 1.35;\n opacity: 0;\n animation: ", " 0.28s ease forwards;\n animation-delay: ", "s;\n\n background-color: ", ";\n\n color: ", ";\n\n border: 1px solid\n ", ";\n\n svg {\n flex-shrink: 0;\n margin-top: 0.1rem;\n font-size: 0.82rem;\n }\n\n ", "\n"])), chipIn, function (_ref50) {
8910
+ var $chipIndex = _ref50.$chipIndex;
8911
+ return 0.1 + $chipIndex * 0.05;
8912
+ }, function (_ref51) {
8913
+ var $accentColor = _ref51.$accentColor,
8914
+ $tone = _ref51.$tone;
8915
+ if ($tone === 'warning') return '#fff8eb';
8916
+ if ($tone === 'success') return $accentColor + "10";
8917
+ return '#f4f6f1';
8918
+ }, function (_ref52) {
8919
+ var $accentColor = _ref52.$accentColor,
8920
+ $tone = _ref52.$tone;
8921
+ if ($tone === 'warning') return '#8a6400';
8922
+ if ($tone === 'success') return $accentColor;
8923
+ return '#45503c';
8924
+ }, function (_ref53) {
8925
+ var $accentColor = _ref53.$accentColor,
8926
+ $tone = _ref53.$tone;
8927
+ if ($tone === 'warning') return '#f0d48a';
8928
+ if ($tone === 'success') return $accentColor + "28";
8929
+ return '#e0e5da';
8930
+ }, reducedMotion);
8931
+ var GiftSection = styled.div(_templateObject53 || (_templateObject53 = _taggedTemplateLiteralLoose(["\n padding-top: 0.35rem;\n border-top: 1px solid #eef1e9;\n"])));
8932
+ var GiftSectionHeader = styled.div(_templateObject54 || (_templateObject54 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.28rem;\n margin-bottom: 0.3rem;\n font-size: 0.62rem;\n font-weight: 800;\n text-transform: uppercase;\n letter-spacing: 0.06em;\n color: ", ";\n\n svg {\n font-size: 0.72rem;\n }\n"])), function (_ref54) {
8933
+ var $accentColor = _ref54.$accentColor;
8934
+ return $accentColor;
8935
+ });
8936
+ var GiftList = styled.div(_templateObject55 || (_templateObject55 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.22rem;\n"])));
8937
+ var GiftLink = styled.a(_templateObject56 || (_templateObject56 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.35rem;\n padding: 0.32rem 0.45rem;\n border-radius: 0.4rem;\n border: 1px solid ", ";\n background: #fafcf8;\n color: #2a3325;\n font-size: 0.72rem;\n font-weight: 600;\n line-height: 1.3;\n text-decoration: none;\n cursor: pointer;\n transition: background-color 0.18s ease, border-color 0.18s ease;\n\n span {\n flex: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n svg {\n flex-shrink: 0;\n font-size: 0.72rem;\n color: ", ";\n transition: transform 0.18s ease;\n }\n\n &:hover {\n border-color: ", ";\n background: ", ";\n\n svg {\n transform: translateX(2px);\n }\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n\n ", "\n"])), function (_ref55) {
8938
+ var $accentColor = _ref55.$accentColor;
8939
+ return $accentColor + "1e";
8940
+ }, function (_ref56) {
8941
+ var $accentColor = _ref56.$accentColor;
8942
+ return $accentColor;
8943
+ }, function (_ref57) {
8944
+ var $accentColor = _ref57.$accentColor;
8945
+ return $accentColor;
8946
+ }, function (_ref58) {
8947
+ var $accentColor = _ref58.$accentColor;
8948
+ return $accentColor + "08";
8949
+ }, function (_ref59) {
8950
+ var $accentColor = _ref59.$accentColor;
8951
+ return $accentColor;
8952
+ }, reducedMotion);
8953
+ var CodeRow = styled.div(_templateObject57 || (_templateObject57 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.3rem;\n flex-shrink: 0;\n"])));
8954
+ var CodeValue = styled.code(_templateObject58 || (_templateObject58 = _taggedTemplateLiteralLoose(["\n min-width: 0;\n max-width: 8.5rem;\n padding: 0.28rem 0.45rem;\n border-radius: 0.4rem;\n border: 1.5px dashed ", ";\n background: #fff;\n font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;\n font-size: 0.68rem;\n font-weight: 800;\n letter-spacing: 0.04em;\n color: #141a10;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (_ref60) {
8955
+ var $accentColor = _ref60.$accentColor;
8956
+ return $accentColor;
8957
+ });
8958
+ var PrimaryCopyButton = styled.button(_templateObject59 || (_templateObject59 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.22rem;\n flex-shrink: 0;\n height: 1.7rem;\n padding: 0 0.55rem;\n border: none;\n border-radius: 0.4rem;\n font-size: 0.68rem;\n font-weight: 800;\n color: #fff;\n cursor: pointer;\n background: ", ";\n box-shadow: 0 2px 8px ", ";\n transition: transform 0.15s ease, background 0.2s ease;\n animation: ", " 0.35s ease;\n\n svg {\n font-size: 0.72rem;\n }\n\n &:hover {\n transform: translateY(-1px);\n }\n\n &:active {\n transform: scale(0.98);\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 2px;\n }\n\n ", "\n"])), function (_ref61) {
8959
+ var $accentColor = _ref61.$accentColor,
8960
+ $copied = _ref61.$copied;
8961
+ return $copied ? "linear-gradient(145deg, " + $accentColor + " 0%, " + $accentColor + "dd 100%)" : 'linear-gradient(145deg, #1a2114 0%, #0f140c 100%)';
8962
+ }, function (_ref62) {
8963
+ var $accentColor = _ref62.$accentColor;
8964
+ return $accentColor + "28";
8965
+ }, function (_ref63) {
8966
+ var $copied = _ref63.$copied;
8967
+ return $copied ? copyPop : 'none';
8968
+ }, function (_ref64) {
8969
+ var $accentColor = _ref64.$accentColor;
8970
+ return $accentColor;
8971
+ }, reducedMotion);
8972
+
8973
+ var _templateObject$w, _templateObject2$n, _templateObject3$h, _templateObject4$e, _templateObject5$a, _templateObject6$8;
8974
+ var DEFAULT_PRIMARY_COLOR$2 = '#437C0F';
8975
+ var DiscountSuggestionPreview = function DiscountSuggestionPreview(_ref) {
8976
+ var coupon = _ref.coupon,
8977
+ _ref$productPrice = _ref.productPrice,
8978
+ productPrice = _ref$productPrice === void 0 ? 0 : _ref$productPrice,
8979
+ _ref$cartQuantity = _ref.cartQuantity,
8980
+ cartQuantity = _ref$cartQuantity === void 0 ? 0 : _ref$cartQuantity,
8981
+ primaryColor = _ref.primaryColor,
8982
+ loading = _ref.loading,
8983
+ onViewOffers = _ref.onViewOffers,
8984
+ _ref$viewOffersLabel = _ref.viewOffersLabel,
8985
+ viewOffersLabel = _ref$viewOffersLabel === void 0 ? 'View All offers' : _ref$viewOffersLabel;
8986
+ var _useState = useState(false),
8987
+ copied = _useState[0],
8988
+ setCopied = _useState[1];
8989
+ var accentColor = primaryColor || DEFAULT_PRIMARY_COLOR$2;
8990
+ var previewText = getSuggestionPreviewText(coupon, {
8991
+ productPrice: productPrice,
8992
+ cartQuantity: cartQuantity
8993
+ });
8994
+ var code = coupon === null || coupon === void 0 ? void 0 : coupon.couponCode;
8995
+ var copyCouponCode = useCallback(function (event) {
8996
+ try {
8997
+ var _event$stopPropagatio;
8998
+ event === null || event === void 0 ? void 0 : (_event$stopPropagatio = event.stopPropagation) === null || _event$stopPropagatio === void 0 ? void 0 : _event$stopPropagatio.call(event);
8999
+ if (!code) return Promise.resolve();
9000
+ var _temp = _catch(function () {
9001
+ var _navigator, _navigator$clipboard;
9002
+ return Promise.resolve((_navigator = navigator) === null || _navigator === void 0 ? void 0 : (_navigator$clipboard = _navigator.clipboard) === null || _navigator$clipboard === void 0 ? void 0 : _navigator$clipboard.writeText(code)).then(function () {
9003
+ var _window;
9004
+ setCopied(true);
9005
+ (_window = window) === null || _window === void 0 ? void 0 : _window.setTimeout(function () {
9006
+ return setCopied(false);
9007
+ }, 1800);
9008
+ });
9009
+ }, function (error) {
9010
+ console.error('Failed to copy coupon code', error);
9011
+ });
9012
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
9013
+ } catch (e) {
9014
+ return Promise.reject(e);
9015
+ }
9016
+ }, [code]);
9017
+ if (!code) return null;
9018
+ var quotedCode = "\"" + code + "\"";
9019
+ var fullTitle = previewText ? quotedCode + " " + previewText : quotedCode;
9020
+ return /*#__PURE__*/React__default.createElement(SuggestionRow, {
9021
+ onClick: function onClick(event) {
9022
+ event.stopPropagation();
9023
+ }
9024
+ }, /*#__PURE__*/React__default.createElement(SuggestionText, {
9025
+ $accentColor: accentColor,
9026
+ title: fullTitle
9027
+ }, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(CodeWrap, null, /*#__PURE__*/React__default.createElement(CodeValue$1, {
9028
+ $accentColor: accentColor
9029
+ }, quotedCode), /*#__PURE__*/React__default.createElement(Tooltip, {
9030
+ title: copied ? 'Copied!' : 'Copy code',
9031
+ arrow: true
9032
+ }, /*#__PURE__*/React__default.createElement(CopyBtn, {
9033
+ type: "button",
9034
+ $accentColor: accentColor,
9035
+ $copied: copied,
9036
+ "aria-label": "Copy coupon code " + code,
9037
+ onClick: copyCouponCode
9038
+ }, copied ? /*#__PURE__*/React__default.createElement(FiCheck, null) : /*#__PURE__*/React__default.createElement(FiCopy, null)))), previewText ? " " + previewText : '')), /*#__PURE__*/React__default.createElement(ViewOffersBtn, {
9039
+ type: "button",
9040
+ $accentColor: accentColor,
9041
+ onClick: function onClick(e) {
9042
+ e.stopPropagation();
9043
+ if (loading) return;
9044
+ onViewOffers === null || onViewOffers === void 0 ? void 0 : onViewOffers();
9045
+ }
9046
+ }, viewOffersLabel));
9047
+ };
9048
+ var SuggestionRow = styled.div(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 0.5rem;\n margin-top: 0.35rem;\n margin-bottom: 0.35rem;\n max-width: 100%;\n"])));
9049
+ var SuggestionText = styled.p(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n margin: 0;\n flex: 1;\n min-width: 0;\n font-size: 0.75rem;\n font-weight: 600;\n line-height: 1.45;\n color: ", ";\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n"])), function (_ref2) {
9050
+ var $accentColor = _ref2.$accentColor;
9051
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9052
+ });
9053
+ var CodeWrap = styled.span(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.2rem;\n vertical-align: middle;\n margin-right: 0.25rem;\n"])));
9054
+ var CodeValue$1 = styled.span(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n font-weight: 800;\n letter-spacing: 0.02em;\n color: ", ";\n"])), function (_ref3) {
9055
+ var $accentColor = _ref3.$accentColor;
9056
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9057
+ });
9058
+ var CopyBtn = styled.button(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 1.15rem;\n height: 1.15rem;\n padding: 0;\n border: 1px solid\n ", ";\n border-radius: 0.25rem;\n background: ", ";\n color: ", ";\n cursor: pointer;\n flex-shrink: 0;\n vertical-align: middle;\n\n svg {\n font-size: 0.7rem;\n }\n\n &:hover {\n background: ", ";\n }\n\n &:focus-visible {\n outline: 2px solid ", ";\n outline-offset: 1px;\n }\n"])), function (_ref4) {
9059
+ var $accentColor = _ref4.$accentColor,
9060
+ $copied = _ref4.$copied;
9061
+ return $copied ? $accentColor || DEFAULT_PRIMARY_COLOR$2 : ($accentColor || DEFAULT_PRIMARY_COLOR$2) + "55";
9062
+ }, function (_ref5) {
9063
+ var $accentColor = _ref5.$accentColor,
9064
+ $copied = _ref5.$copied;
9065
+ return $copied ? ($accentColor || DEFAULT_PRIMARY_COLOR$2) + "18" : '#fff';
9066
+ }, function (_ref6) {
9067
+ var $accentColor = _ref6.$accentColor;
9068
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9069
+ }, function (_ref7) {
9070
+ var $accentColor = _ref7.$accentColor;
9071
+ return ($accentColor || DEFAULT_PRIMARY_COLOR$2) + "14";
9072
+ }, function (_ref8) {
9073
+ var $accentColor = _ref8.$accentColor;
9074
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9075
+ });
9076
+ var ViewOffersBtn = styled.button(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n flex-shrink: 0;\n margin: 0;\n padding: 0.15rem 0.45rem;\n border: 1px solid ", ";\n border-radius: 0.3rem;\n background: #fff;\n color: ", ";\n font-size: 0.68rem;\n font-weight: 700;\n line-height: 1.3;\n white-space: nowrap;\n cursor: pointer;\n\n &:hover {\n background: ", ";\n }\n"])), function (_ref9) {
9077
+ var $accentColor = _ref9.$accentColor;
9078
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9079
+ }, function (_ref10) {
9080
+ var $accentColor = _ref10.$accentColor;
9081
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9082
+ }, function (_ref11) {
9083
+ var $accentColor = _ref11.$accentColor;
9084
+ return $accentColor ? $accentColor + "12" : '#437C0F12';
9085
+ });
9086
+
9087
+ var _templateObject$x, _templateObject2$o, _templateObject3$i, _templateObject4$f, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$6;
9088
+ var ProductImage = styled.img(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["\n min-width: 60px;\n min-height: 60px;\n object-fit: contain;\n @media only screen and (max-width: 600px) {\n margin: 0.5em 0;\n padding-right: 0.5em;\n }\n"])));
9089
+ var ProductName = styled.h6(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n padding: 0;\n line-height: 1.3em;\n overflow: hidden;\n text-overflow: ellipsis;\n height: fit-content;\n cursor: pointer;\n"])), function (props) {
7799
9090
  return props.size || '1em';
7800
9091
  });
7801
- var CartTableRow = styled(TableRow)(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: 0.3s;\n background: white;\n /* &:hover {\n td:first-child,\n td:last-child {\n border-left-style: solid;\n border-top-style: solid;\n border-top-right-radius: 10px;\n }\n } */\n .outOfStock {\n font-size: 0.75em;\n color: red;\n text-transform: uppercase;\n font-weight: 500;\n }\n .price {\n font-size: ", ";\n font-weight: bold;\n color: #323232;\n /* font-size: 1.15em; */\n }\n .borderLeft {\n height: 100%;\n background: ", ";\n transition: 0.2s;\n width: 0px;\n position: absolute;\n left: 0;\n top: 0;\n border-top-left-radius: 10px;\n display: none;\n border-bottom-left-radius: 10px;\n }\n .cartCheckBox {\n &.Mui-checked {\n svg {\n color: ", ";\n }\n }\n }\n &:hover {\n background: white !important;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);\n border-radius: 10px;\n /* opacity: 1;\n box-shadow: 1px 2px 6px 2px rgba(0, 0, 0, 0.2); */\n z-index: 2;\n /* border-radius: 20px; */\n .borderLeft {\n width: 12px;\n display: inline-block;\n }\n }\n @media only screen and (max-width: 600px) {\n .CartnoPaddingSm {\n padding: 0 !important;\n }\n .price {\n font-size: 0.8em;\n }\n margin: 0.5em 0;\n .cartCheckBox {\n .css-i4bv87-MuiSvgIcon-root {\n font-size: 10px !important;\n }\n }\n }\n"])), function (props) {
9092
+ var CartTableRow = styled(TableRow)(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: 0.3s;\n background: white;\n /* &:hover {\n td:first-child,\n td:last-child {\n border-left-style: solid;\n border-top-style: solid;\n border-top-right-radius: 10px;\n }\n } */\n .outOfStock {\n font-size: 0.75em;\n color: red;\n text-transform: uppercase;\n font-weight: 500;\n }\n .price {\n font-size: ", ";\n font-weight: bold;\n color: #323232;\n /* font-size: 1.15em; */\n }\n .borderLeft {\n height: 100%;\n background: ", ";\n transition: 0.2s;\n width: 0px;\n position: absolute;\n left: 0;\n top: 0;\n border-top-left-radius: 10px;\n display: none;\n border-bottom-left-radius: 10px;\n }\n .cartCheckBox {\n &.Mui-checked {\n svg {\n color: ", ";\n }\n }\n }\n &:hover {\n background: white !important;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);\n border-radius: 10px;\n /* opacity: 1;\n box-shadow: 1px 2px 6px 2px rgba(0, 0, 0, 0.2); */\n z-index: 2;\n /* border-radius: 20px; */\n .borderLeft {\n width: 12px;\n display: inline-block;\n }\n }\n @media only screen and (max-width: 600px) {\n .CartnoPaddingSm {\n padding: 0 !important;\n }\n .price {\n font-size: 0.8em;\n }\n margin: 0.5em 0;\n .cartCheckBox {\n .css-i4bv87-MuiSvgIcon-root {\n font-size: 10px !important;\n }\n }\n }\n"])), function (props) {
7802
9093
  return props.size || '1.19em';
7803
9094
  }, function (prop) {
7804
9095
  return prop.bg;
7805
9096
  }, function (prop) {
7806
9097
  return prop.bg;
7807
9098
  });
7808
- var CartTableCell$1 = styled(TableCell)(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
7809
- var QuantityBox = styled.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n .icon {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n height: 100%;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n"])));
7810
- var DeleteBtn = styled.div(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background: #eef1f4;\n color: #393f48;\n font-size: 0.75em;\n transition: 0.4s;\n &:hover {\n background: red;\n color: white;\n }\n"])));
7811
- var CardRow = function CardRow(_ref) {
7812
- var _styles$price, _styles$Btn;
7813
- var row = _ref.row,
7814
- isItemSelected = _ref.isItemSelected,
7815
- handleClick = _ref.handleClick,
7816
- imgnotfoundUrl = _ref.imgnotfoundUrl,
7817
- handleIncrementDecrement = _ref.handleIncrementDecrement,
7818
- handleRemoveProduct = _ref.handleRemoveProduct,
7819
- loading = _ref.loading,
7820
- imgSize = _ref.imgSize,
7821
- styles = _ref.styles,
7822
- clickRedirect = _ref.clickRedirect,
7823
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
7824
- doNotShowPrice = _ref.doNotShowPrice;
9099
+ var CartTableCell$1 = styled(TableCell)(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
9100
+ var QuantityBox = styled.div(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n .icon {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n height: 100%;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n"])));
9101
+ var DeleteBtn = styled.div(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background: #eef1f4;\n color: #393f48;\n font-size: 0.75em;\n transition: 0.4s;\n &:hover {\n background: red;\n color: white;\n }\n"])));
9102
+ var DiscountBtn = styled.div(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background: #eef1f4;\n color: ", ";\n font-size: 0.85em;\n transition: 0.4s;\n\n &:hover {\n background: ", ";\n color: white;\n }\n"])), function (_ref) {
9103
+ var $accentColor = _ref.$accentColor;
9104
+ return $accentColor || '#437C0F';
9105
+ }, function (_ref2) {
9106
+ var $accentColor = _ref2.$accentColor;
9107
+ return $accentColor || '#437C0F';
9108
+ });
9109
+ var ActionCell = styled.div(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.4rem;\n"])));
9110
+ var CardRow = function CardRow(_ref3) {
9111
+ var _styles$Btn, _styles$price, _styles$Btn2;
9112
+ var row = _ref3.row,
9113
+ isItemSelected = _ref3.isItemSelected,
9114
+ handleClick = _ref3.handleClick,
9115
+ imgnotfoundUrl = _ref3.imgnotfoundUrl,
9116
+ handleIncrementDecrement = _ref3.handleIncrementDecrement,
9117
+ handleRemoveProduct = _ref3.handleRemoveProduct,
9118
+ loading = _ref3.loading,
9119
+ imgSize = _ref3.imgSize,
9120
+ styles = _ref3.styles,
9121
+ clickRedirect = _ref3.clickRedirect,
9122
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref3.allowToProcessInvoiceForOutOfStockProductsEcommerce,
9123
+ doNotShowPrice = _ref3.doNotShowPrice,
9124
+ discountSuggesstions = _ref3.discountSuggesstions,
9125
+ showDiscountSuggestions = _ref3.showDiscountSuggestions;
7825
9126
  var imgnotfoundUrlcommon = noImgAvailable$1;
7826
9127
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
7827
9128
  var timer = useRef();
7828
9129
  var _useState = useState(row === null || row === void 0 ? void 0 : row.quantity),
7829
9130
  quantity = _useState[0],
7830
9131
  setQuantity = _useState[1];
9132
+ var _useState2 = useState(false),
9133
+ discountModalOpen = _useState2[0],
9134
+ setDiscountModalOpen = _useState2[1];
9135
+ var accentColor = (styles === null || styles === void 0 ? void 0 : styles.borderLeft) || (styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background);
9136
+ var productDiscounts = (discountSuggesstions === null || discountSuggesstions === void 0 ? void 0 : discountSuggesstions.filter(function (discount) {
9137
+ return (discount === null || discount === void 0 ? void 0 : discount.productId) == (row === null || row === void 0 ? void 0 : row.productId);
9138
+ })) || [];
9139
+ var showDiscountButton = (productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts.length) > 0;
9140
+ var firstSuggestion = productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts[0];
7831
9141
  useEffect(function () {
7832
9142
  setQuantity(row === null || row === void 0 ? void 0 : row.quantity);
7833
9143
  }, [row]);
@@ -7866,7 +9176,7 @@ var CardRow = function CardRow(_ref) {
7866
9176
  tabIndex: -1,
7867
9177
  key: row.ProductId,
7868
9178
  size: styles === null || styles === void 0 ? void 0 : (_styles$price = styles.price) === null || _styles$price === void 0 ? void 0 : _styles$price.size,
7869
- bg: (styles === null || styles === void 0 ? void 0 : styles.borderLeft) || (styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background)
9179
+ bg: (styles === null || styles === void 0 ? void 0 : styles.borderLeft) || (styles === null || styles === void 0 ? void 0 : (_styles$Btn2 = styles.Btn) === null || _styles$Btn2 === void 0 ? void 0 : _styles$Btn2.background)
7870
9180
  }, /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7871
9181
  padding: "checkbox",
7872
9182
  style: {
@@ -7902,6 +9212,15 @@ var CardRow = function CardRow(_ref) {
7902
9212
  }, row.productName), /*#__PURE__*/React__default.createElement(CouponDiscountName, {
7903
9213
  discountAmount: row === null || row === void 0 ? void 0 : row.couponDiscount,
7904
9214
  discountName: row === null || row === void 0 ? void 0 : row.couponCode
9215
+ }), showDiscountSuggestions && showDiscountButton && firstSuggestion && /*#__PURE__*/React__default.createElement(DiscountSuggestionPreview, {
9216
+ coupon: firstSuggestion,
9217
+ productPrice: (row === null || row === void 0 ? void 0 : row.standardPrice) || 0,
9218
+ cartQuantity: (row === null || row === void 0 ? void 0 : row.quantity) || 0,
9219
+ primaryColor: accentColor,
9220
+ loading: loading,
9221
+ onViewOffers: function onViewOffers() {
9222
+ return setDiscountModalOpen(true);
9223
+ }
7905
9224
  }), !allowToProcessInvoiceForOutOfStockProductsEcommerce ? ((row === null || row === void 0 ? void 0 : row.quantity) > (row === null || row === void 0 ? void 0 : row.availableQuantity) || (row === null || row === void 0 ? void 0 : row.availableQuantity) <= 0) && /*#__PURE__*/React__default.createElement("p", {
7906
9225
  style: {
7907
9226
  color: 'red',
@@ -7978,7 +9297,7 @@ var CardRow = function CardRow(_ref) {
7978
9297
  discountAmount: row === null || row === void 0 ? void 0 : row.couponDiscount
7979
9298
  }))), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7980
9299
  alig: "center"
7981
- }, /*#__PURE__*/React__default.createElement(DeleteBtn, {
9300
+ }, /*#__PURE__*/React__default.createElement(ActionCell, null, /*#__PURE__*/React__default.createElement(DeleteBtn, {
7982
9301
  onClick: function onClick(e) {
7983
9302
  e.stopPropagation();
7984
9303
  if (loading) return;
@@ -7990,7 +9309,17 @@ var CardRow = function CardRow(_ref) {
7990
9309
  style: {
7991
9310
  fontSize: 'inherit'
7992
9311
  }
7993
- }))));
9312
+ }))), /*#__PURE__*/React__default.createElement(DiscountSuggestionsModal, {
9313
+ open: discountModalOpen,
9314
+ onClose: function onClose() {
9315
+ return setDiscountModalOpen(false);
9316
+ },
9317
+ productName: row === null || row === void 0 ? void 0 : row.productName,
9318
+ productDiscounts: productDiscounts,
9319
+ primaryColor: accentColor,
9320
+ cartQuantity: (row === null || row === void 0 ? void 0 : row.quantity) || 0,
9321
+ productPrice: (row === null || row === void 0 ? void 0 : row.standardPrice) || 0
9322
+ })));
7994
9323
  };
7995
9324
 
7996
9325
  var DEFAULT_PAGE_SIZE = 50;
@@ -8121,12 +9450,17 @@ function EnhancedTable(_ref2) {
8121
9450
  disabledSelectAllProductCheckbox = _ref2.disabledSelectAllProductCheckbox,
8122
9451
  clickRedirect = _ref2.clickRedirect,
8123
9452
  allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref2.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8124
- doNotShowPrice = _ref2.doNotShowPrice;
9453
+ doNotShowPrice = _ref2.doNotShowPrice,
9454
+ showDiscountSuggestions = _ref2.showDiscountSuggestions;
8125
9455
  var cartList = cartData === null || cartData === void 0 ? void 0 : (_cartData$cartLineIte = cartData.cartLineItemDtoList) === null || _cartData$cartLineIte === void 0 ? void 0 : _cartData$cartLineIte.map(function (li) {
8126
9456
  return _extends({}, li, {
8127
9457
  subtotal: li.standardPrice * li.quantity
8128
9458
  });
8129
9459
  });
9460
+ var discountSuggesstions = useMemo(function () {
9461
+ var _cartData$suggestions;
9462
+ return (_cartData$suggestions = cartData === null || cartData === void 0 ? void 0 : cartData.suggestions) != null ? _cartData$suggestions : [];
9463
+ }, [cartData === null || cartData === void 0 ? void 0 : cartData.suggestions]);
8130
9464
  var _React$useState = useState('asc'),
8131
9465
  order = _React$useState[0],
8132
9466
  setOrder = _React$useState[1];
@@ -8249,8 +9583,10 @@ function EnhancedTable(_ref2) {
8249
9583
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8250
9584
  doNotShowPrice: doNotShowPrice
8251
9585
  }), /*#__PURE__*/createElement(TableBody$1, null, paginatedCartArray.map(function (row, index) {
9586
+ var _row$productId;
8252
9587
  var isItemSelected = isSelected(row);
8253
9588
  return /*#__PURE__*/createElement(CardRow, {
9589
+ key: (_row$productId = row === null || row === void 0 ? void 0 : row.productId) != null ? _row$productId : index,
8254
9590
  row: row,
8255
9591
  isItemSelected: isItemSelected,
8256
9592
  handleClick: handleClick,
@@ -8261,7 +9597,9 @@ function EnhancedTable(_ref2) {
8261
9597
  handleRemoveProduct: handleRemoveProduct,
8262
9598
  clickRedirect: clickRedirect,
8263
9599
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8264
- doNotShowPrice: doNotShowPrice
9600
+ doNotShowPrice: doNotShowPrice,
9601
+ discountSuggesstions: discountSuggesstions,
9602
+ showDiscountSuggestions: showDiscountSuggestions
8265
9603
  });
8266
9604
  }))))), /*#__PURE__*/createElement("div", {
8267
9605
  style: {
@@ -8331,35 +9669,56 @@ function EnhancedTable(_ref2) {
8331
9669
  }))))));
8332
9670
  }
8333
9671
 
8334
- var _templateObject$v, _templateObject2$n, _templateObject3$h, _templateObject4$e, _templateObject5$a, _templateObject6$8, _templateObject7$6;
8335
- var CartPageCard = styled.div(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose(["\n // width: min(97%, 485px);\n width: 98%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 1em;\n background: #ffffff;\n box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.05);\n border-radius: 12px;\n position: relative;\n"])));
8336
- var CartPageImg = styled.img(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n max-width: 60px;\n max-height: 60px;\n position: relative;\n margin-right: 0.5em;\n"])), function (props) {
9672
+ var _templateObject$y, _templateObject2$p, _templateObject3$j, _templateObject4$g, _templateObject5$c, _templateObject6$a, _templateObject7$8;
9673
+ var CartPageCard = styled.div(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n // width: min(97%, 485px);\n width: 98%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 1em;\n background: #ffffff;\n box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.05);\n border-radius: 12px;\n position: relative;\n"])));
9674
+ var CartPageImg = styled.img(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n max-width: 60px;\n max-height: 60px;\n position: relative;\n margin-right: 0.5em;\n"])), function (props) {
8337
9675
  return props.width || 'auto';
8338
9676
  }, function (props) {
8339
9677
  return props.height || 'auto';
8340
9678
  });
8341
- var NameAndQtBox = styled.div(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n width: 90%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-between;\n position: relative;\n"])));
8342
- var CartPageCardName = styled.div(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 90%;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 0.6em;\n h6 {\n color: #323232;\n font-size: 0.9em;\n margin-bottom: 0.6em;\n line-height: 1.3em;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n p {\n font-size: 1.1em;\n font-weight: 600;\n color: #323232;\n }\n"])));
8343
- var QtAndPriceBox = styled.div(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n font-size: 1.1em;\n"])));
8344
- var CartPageQtBox = styled.div(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n .icon {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n height: 100%;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n"])));
8345
- var CloseBtn = styled.div(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n width: 25px;\n height: 25px;\n display: grid;\n place-items: center;\n position: absolute;\n top: 1em;\n right: 1em;\n cursor: pointer;\n border-radius: 50%;\n background: #eef1f4;\n font-size: 12px;\n &:hover {\n color: #ffffff;\n background: red;\n }\n"])));
9679
+ var NameAndQtBox = styled.div(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n width: 90%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-between;\n position: relative;\n"])));
9680
+ var CartPageCardName = styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 90%;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 0.6em;\n h6 {\n color: #323232;\n font-size: 0.9em;\n margin-bottom: 0.6em;\n line-height: 1.3em;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n p {\n font-size: 1.1em;\n font-weight: 600;\n color: #323232;\n }\n"])));
9681
+ var QtAndPriceBox = styled.div(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n font-size: 1.1em;\n"])));
9682
+ var CartPageQtBox = styled.div(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n .icon {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n height: 100%;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n"])));
9683
+ var CloseBtn = styled.div(_templateObject7$8 || (_templateObject7$8 = _taggedTemplateLiteralLoose(["\n width: 25px;\n height: 25px;\n display: grid;\n place-items: center;\n position: absolute;\n top: 1em;\n right: 1em;\n cursor: pointer;\n border-radius: 50%;\n background: #eef1f4;\n font-size: 12px;\n &:hover {\n color: #ffffff;\n background: red;\n }\n"])));
8346
9684
 
8347
- var CartPageProductCard = function CartPageProductCard(_ref) {
8348
- var item = _ref.item,
8349
- imgnotfoundUrl = _ref.imgnotfoundUrl,
8350
- handleIncrementDecrement = _ref.handleIncrementDecrement,
8351
- handleRemoveProduct = _ref.handleRemoveProduct,
8352
- loading = _ref.loading,
8353
- imgSize = _ref.imgSize,
8354
- clickRedirect = _ref.clickRedirect,
8355
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8356
- doNotShowPrice = _ref.doNotShowPrice;
9685
+ var _templateObject$z;
9686
+ var DiscountBtn$1 = styled.div(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 25px;\n height: 25px;\n background: #eef1f4;\n color: ", ";\n font-size: 12px;\n position: absolute;\n top: 1em;\n right: 3.2em;\n\n &:hover {\n background: ", ";\n color: white;\n }\n"])), function (_ref) {
9687
+ var $accentColor = _ref.$accentColor;
9688
+ return $accentColor || '#437C0F';
9689
+ }, function (_ref2) {
9690
+ var $accentColor = _ref2.$accentColor;
9691
+ return $accentColor || '#437C0F';
9692
+ });
9693
+ var CartPageProductCard = function CartPageProductCard(_ref3) {
9694
+ var _styles$Btn;
9695
+ var item = _ref3.item,
9696
+ imgnotfoundUrl = _ref3.imgnotfoundUrl,
9697
+ handleIncrementDecrement = _ref3.handleIncrementDecrement,
9698
+ handleRemoveProduct = _ref3.handleRemoveProduct,
9699
+ loading = _ref3.loading,
9700
+ imgSize = _ref3.imgSize,
9701
+ styles = _ref3.styles,
9702
+ clickRedirect = _ref3.clickRedirect,
9703
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref3.allowToProcessInvoiceForOutOfStockProductsEcommerce,
9704
+ doNotShowPrice = _ref3.doNotShowPrice,
9705
+ discountSuggesstions = _ref3.discountSuggesstions,
9706
+ showDiscountSuggestions = _ref3.showDiscountSuggestions;
8357
9707
  var imgnotfoundUrlcommon = noImgAvailable$1;
8358
9708
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
8359
9709
  var timer = useRef();
8360
9710
  var _useState = useState(item === null || item === void 0 ? void 0 : item.quantity),
8361
9711
  quantity = _useState[0],
8362
9712
  setQuantity = _useState[1];
9713
+ var _useState2 = useState(false),
9714
+ discountModalOpen = _useState2[0],
9715
+ setDiscountModalOpen = _useState2[1];
9716
+ var accentColor = (styles === null || styles === void 0 ? void 0 : styles.borderLeft) || (styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background);
9717
+ var productDiscounts = (discountSuggesstions === null || discountSuggesstions === void 0 ? void 0 : discountSuggesstions.filter(function (discount) {
9718
+ return (discount === null || discount === void 0 ? void 0 : discount.productId) == (item === null || item === void 0 ? void 0 : item.productId);
9719
+ })) || [];
9720
+ var showDiscountButton = (productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts.length) > 0;
9721
+ var firstSuggestion = productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts[0];
8363
9722
  useEffect(function () {
8364
9723
  setQuantity(item === null || item === void 0 ? void 0 : item.quantity);
8365
9724
  }, [item]);
@@ -8388,6 +9747,10 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8388
9747
  }
8389
9748
  }, 500);
8390
9749
  };
9750
+ var openDiscountModal = function openDiscountModal() {
9751
+ if (loading) return;
9752
+ setDiscountModalOpen(true);
9753
+ };
8391
9754
  return /*#__PURE__*/React__default.createElement(CartPageCard, null, /*#__PURE__*/React__default.createElement(CartPageImg, {
8392
9755
  src: item.imageUrl && item.imageUrl !== 'null' ? item.imageUrl : imgnotfoundUrlcommon,
8393
9756
  alt: 'img',
@@ -8407,7 +9770,14 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8407
9770
  })), !doNotShowPrice && /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
8408
9771
  totalAmount: item === null || item === void 0 ? void 0 : item.standardPrice,
8409
9772
  discountAmount: item === null || item === void 0 ? void 0 : item.discountAmount
8410
- }))), /*#__PURE__*/React__default.createElement(QtAndPriceBox, null, /*#__PURE__*/React__default.createElement(CartPageQtBox, null, /*#__PURE__*/React__default.createElement("span", {
9773
+ }))), showDiscountSuggestions && showDiscountButton && firstSuggestion && /*#__PURE__*/React__default.createElement(DiscountSuggestionPreview, {
9774
+ coupon: firstSuggestion,
9775
+ productPrice: (item === null || item === void 0 ? void 0 : item.standardPrice) || 0,
9776
+ cartQuantity: (item === null || item === void 0 ? void 0 : item.quantity) || 0,
9777
+ primaryColor: accentColor,
9778
+ loading: loading,
9779
+ onViewOffers: openDiscountModal
9780
+ }), /*#__PURE__*/React__default.createElement(QtAndPriceBox, null, /*#__PURE__*/React__default.createElement(CartPageQtBox, null, /*#__PURE__*/React__default.createElement("span", {
8411
9781
  className: "icon",
8412
9782
  onClick: function onClick() {
8413
9783
  if (loading) return;
@@ -8457,7 +9827,17 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8457
9827
  if (!sure) return;
8458
9828
  handleRemoveProduct(item);
8459
9829
  }
8460
- }, /*#__PURE__*/React__default.createElement(RiDeleteBin5Line, null)));
9830
+ }, /*#__PURE__*/React__default.createElement(RiDeleteBin5Line, null)), /*#__PURE__*/React__default.createElement(DiscountSuggestionsModal, {
9831
+ open: discountModalOpen,
9832
+ onClose: function onClose() {
9833
+ return setDiscountModalOpen(false);
9834
+ },
9835
+ productName: item === null || item === void 0 ? void 0 : item.productName,
9836
+ productDiscounts: productDiscounts,
9837
+ primaryColor: accentColor,
9838
+ cartQuantity: (item === null || item === void 0 ? void 0 : item.quantity) || 0,
9839
+ productPrice: (item === null || item === void 0 ? void 0 : item.standardPrice) || 0
9840
+ }));
8461
9841
  };
8462
9842
 
8463
9843
  var DEFAULT_PAGE_SIZE$1 = 50;
@@ -8473,7 +9853,8 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8473
9853
  styles = _ref.styles,
8474
9854
  clickRedirect = _ref.clickRedirect,
8475
9855
  allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8476
- doNotShowPrice = _ref.doNotShowPrice;
9856
+ doNotShowPrice = _ref.doNotShowPrice,
9857
+ showDiscountSuggestions = _ref.showDiscountSuggestions;
8477
9858
  var _useState = useState(1),
8478
9859
  page = _useState[0],
8479
9860
  setPage = _useState[1];
@@ -8501,6 +9882,7 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8501
9882
  color: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background,
8502
9883
  loading: true
8503
9884
  })), paginatedCartArray.map(function (item) {
9885
+ var _cartData$suggestions;
8504
9886
  return /*#__PURE__*/React__default.createElement(CartPageProductCard, {
8505
9887
  key: item === null || item === void 0 ? void 0 : item.productId,
8506
9888
  item: item,
@@ -8509,9 +9891,12 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8509
9891
  handleIncrementDecrement: handleIncrementDecrement,
8510
9892
  handleRemoveProduct: handleRemoveProduct,
8511
9893
  imgSize: styles === null || styles === void 0 ? void 0 : styles.imgSize,
9894
+ styles: styles,
8512
9895
  clickRedirect: clickRedirect,
8513
9896
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8514
- doNotShowPrice: doNotShowPrice
9897
+ doNotShowPrice: doNotShowPrice,
9898
+ discountSuggesstions: (_cartData$suggestions = cartData === null || cartData === void 0 ? void 0 : cartData.suggestions) != null ? _cartData$suggestions : [],
9899
+ showDiscountSuggestions: showDiscountSuggestions
8515
9900
  });
8516
9901
  }))), sortedCartArray.length > 0 && /*#__PURE__*/React__default.createElement(PaginationRow, null, totalPages > 1 && /*#__PURE__*/React__default.createElement(Pagination, {
8517
9902
  count: totalPages,
@@ -8560,23 +9945,23 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8560
9945
  })))));
8561
9946
  };
8562
9947
 
8563
- var _templateObject$w, _templateObject2$o, _templateObject3$i, _templateObject4$f, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$5;
8564
- var CartSummaryContainer = styled.div(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n width: 25rem;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n border-radius: 20px;\n padding: 2em;\n align-items: center;\n /* margin-top: 3em; */\n p {\n font-size: 1.189em;\n font-weight: 600;\n align-self: flex-start;\n color: inherit;\n margin: 0;\n padding: 0;\n }\n .continueShopping {\n font-size: 0.75em;\n color: inherit;\n text-transform: capitalize;\n height: 20px;\n border-bottom: 1px solid;\n border-color: ", ";\n cursor: pointer;\n }\n"])), function (props) {
9948
+ var _templateObject$A, _templateObject2$q, _templateObject3$k, _templateObject4$h, _templateObject5$d, _templateObject6$b, _templateObject7$9, _templateObject8$7;
9949
+ var CartSummaryContainer = styled.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose(["\n width: 25rem;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n border-radius: 20px;\n padding: 2em;\n align-items: center;\n /* margin-top: 3em; */\n p {\n font-size: 1.189em;\n font-weight: 600;\n align-self: flex-start;\n color: inherit;\n margin: 0;\n padding: 0;\n }\n .continueShopping {\n font-size: 0.75em;\n color: inherit;\n text-transform: capitalize;\n height: 20px;\n border-bottom: 1px solid;\n border-color: ", ";\n cursor: pointer;\n }\n"])), function (props) {
8565
9950
  return props.background || '#667080';
8566
9951
  }, function (props) {
8567
9952
  return props.color || 'white';
8568
9953
  }, function (props) {
8569
9954
  return props.color || 'white';
8570
9955
  });
8571
- var CartSummaryRow = styled.div(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n align-items: center;\n color: inherit;\n h6,\n h5 {\n margin: 0;\n font-size: 1em;\n font-weight: 700;\n color: inherit;\n text-transform: capitalize;\n }\n h5 {\n font-size: ", ";\n }\n"])), function (props) {
9956
+ var CartSummaryRow = styled.div(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n align-items: center;\n color: inherit;\n h6,\n h5 {\n margin: 0;\n font-size: 1em;\n font-weight: 700;\n color: inherit;\n text-transform: capitalize;\n }\n h5 {\n font-size: ", ";\n }\n"])), function (props) {
8572
9957
  return props.justify || 'space-between';
8573
9958
  }, function (props) {
8574
9959
  return props.h5 || '1.31em';
8575
9960
  });
8576
- var CartSummaryHr = styled.span(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n border: none;\n width: 100%;\n height: 1px;\n background-color: ", ";\n margin: 1em 0;\n"])), function (props) {
9961
+ var CartSummaryHr = styled.span(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n border: none;\n width: 100%;\n height: 1px;\n background-color: ", ";\n margin: 1em 0;\n"])), function (props) {
8577
9962
  return props.color || 'rgba(255, 255, 255, 0.5)';
8578
9963
  });
8579
- var CartSummaryInputBox = styled.form(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding-bottom: ", ";\n background-color: transparent;\n width: 100%;\n input {\n width: 65%;\n height: 2.5rem;\n padding: 0.2rem 0.8rem;\n font-size: 0.89rem;\n border: none;\n outline: none;\n background: ", ";\n color: ", ";\n &::placeholder {\n color: ", ";\n }\n }\n button {\n width: 35%;\n height: 2.5rem;\n line-height: 0.8rem;\n background: ", ";\n display: grid;\n color: ", ";\n place-items: center;\n border: none;\n border-radius: 0;\n outline: none;\n text-transform: uppercase;\n cursor: pointer;\n font-size: 0.75em;\n transition: 0.3s;\n &:hover {\n letter-spacing: 1px;\n background: ", ";\n }\n }\n"])), function (props) {
9964
+ var CartSummaryInputBox = styled.form(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding-bottom: ", ";\n background-color: transparent;\n width: 100%;\n input {\n width: 65%;\n height: 2.5rem;\n padding: 0.2rem 0.8rem;\n font-size: 0.89rem;\n border: none;\n outline: none;\n background: ", ";\n color: ", ";\n &::placeholder {\n color: ", ";\n }\n }\n button {\n width: 35%;\n height: 2.5rem;\n line-height: 0.8rem;\n background: ", ";\n display: grid;\n color: ", ";\n place-items: center;\n border: none;\n border-radius: 0;\n outline: none;\n text-transform: uppercase;\n cursor: pointer;\n font-size: 0.75em;\n transition: 0.3s;\n &:hover {\n letter-spacing: 1px;\n background: ", ";\n }\n }\n"])), function (props) {
8580
9965
  return props.paddingBottom ? '0' : '0';
8581
9966
  }, function (props) {
8582
9967
  return props.background || '#bfc3ca';
@@ -8591,16 +9976,16 @@ var CartSummaryInputBox = styled.form(_templateObject4$f || (_templateObject4$f
8591
9976
  }, function (props) {
8592
9977
  return props.btn || '#393f48';
8593
9978
  });
8594
- var DiscountCouponContainer = styled.div(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n padding-top: 0.5rem;\n width: 100%;\n max-height: 200px;\n overflow: auto;\n"])));
8595
- var DiscountCouponCard = styled.div(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0.3rem;\n button {\n color: ", ";\n font-size: 1rem;\n padding: 0;\n &:hover {\n color: red;\n }\n }\n"])), function (props) {
9979
+ var DiscountCouponContainer = styled.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n padding-top: 0.5rem;\n width: 100%;\n max-height: 200px;\n overflow: auto;\n"])));
9980
+ var DiscountCouponCard = styled.div(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0.3rem;\n button {\n color: ", ";\n font-size: 1rem;\n padding: 0;\n &:hover {\n color: red;\n }\n }\n"])), function (props) {
8596
9981
  return props.btn || '#393f48';
8597
9982
  });
8598
- var CartSummaryCheckoutBtn = styled.button(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteralLoose(["\n font-size: 0.95em;\n font-weight: 600;\n background: ", ";\n color: ", ";\n cursor: pointer;\n text-transform: uppercase;\n border: none;\n outline: none;\n width: 16.81em;\n height: 3.4em;\n display: grid;\n place-items: center;\n font-size: 0.75em;\n padding: 0;\n font-size: 0.94em;\n margin: 1em auto;\n transition: 0.3s;\n margin-top: 3em;\n &:hover {\n opacity: 0.8;\n }\n"])), function (props) {
9983
+ var CartSummaryCheckoutBtn = styled.button(_templateObject7$9 || (_templateObject7$9 = _taggedTemplateLiteralLoose(["\n font-size: 0.95em;\n font-weight: 600;\n background: ", ";\n color: ", ";\n cursor: pointer;\n text-transform: uppercase;\n border: none;\n outline: none;\n width: 16.81em;\n height: 3.4em;\n display: grid;\n place-items: center;\n font-size: 0.75em;\n padding: 0;\n font-size: 0.94em;\n margin: 1em auto;\n transition: 0.3s;\n margin-top: 3em;\n &:hover {\n opacity: 0.8;\n }\n"])), function (props) {
8599
9984
  return props.background || '#393f48';
8600
9985
  }, function (props) {
8601
9986
  return props.color || 'inherit';
8602
9987
  });
8603
- var CartSummaryCheckBoxRow = styled(CartSummaryRow)(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n justify-content: flex-start;\n margin-left: 1em;\n margin-top: 1em;\n cursor: pointer;\n .checkBox {\n width: 0.63em;\n height: 0.63em;\n border: 1px solid;\n border-color: ", ";\n background: transparent;\n margin-right: 0.5em;\n border-radius: 50%;\n background: ", ";\n }\n p {\n font-size: 1em;\n font-weight: 6 400;\n span {\n font-weight: 600;\n margin: 0 0.1em;\n }\n .underline {\n font-weight: 400;\n text-decoration: underline;\n }\n }\n"])), function (props) {
9988
+ var CartSummaryCheckBoxRow = styled(CartSummaryRow)(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n justify-content: flex-start;\n margin-left: 1em;\n margin-top: 1em;\n cursor: pointer;\n .checkBox {\n width: 0.63em;\n height: 0.63em;\n border: 1px solid;\n border-color: ", ";\n background: transparent;\n margin-right: 0.5em;\n border-radius: 50%;\n background: ", ";\n }\n p {\n font-size: 1em;\n font-weight: 6 400;\n span {\n font-weight: 600;\n margin: 0 0.1em;\n }\n .underline {\n font-weight: 400;\n text-decoration: underline;\n }\n }\n"])), function (props) {
8604
9989
  return props.background || 'white';
8605
9990
  }, function (props) {
8606
9991
  return props.selected ? props.background : 'transparent';
@@ -8829,7 +10214,9 @@ var CartPageComponent = function CartPageComponent(_ref) {
8829
10214
  styles = _ref.styles,
8830
10215
  onChangeDiscountCoupon = _ref.onChangeDiscountCoupon,
8831
10216
  _ref$doNotShowPrice = _ref.doNotShowPrice,
8832
- doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice;
10217
+ doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice,
10218
+ _ref$showDiscountSugg = _ref.showDiscountSuggestions,
10219
+ showDiscountSuggestions = _ref$showDiscountSugg === void 0 ? false : _ref$showDiscountSugg;
8833
10220
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
8834
10221
  apiEndPoint: apiEndPoint,
8835
10222
  token: token
@@ -8953,7 +10340,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
8953
10340
  handleRemoveProduct: handleRemoveProduct,
8954
10341
  clickRedirect: clickRedirect,
8955
10342
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8956
- doNotShowPrice: doNotShowPrice
10343
+ doNotShowPrice: doNotShowPrice,
10344
+ showDiscountSuggestions: showDiscountSuggestions
8957
10345
  }) : /*#__PURE__*/React__default.createElement(EnhancedTable, {
8958
10346
  retail: retail,
8959
10347
  clickRedirect: clickRedirect,
@@ -8966,7 +10354,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
8966
10354
  handleRemoveAll: handleRemoveAll,
8967
10355
  disabledSelectAllProductCheckbox: disabledSelectAllProductCheckbox,
8968
10356
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8969
- doNotShowPrice: doNotShowPrice
10357
+ doNotShowPrice: doNotShowPrice,
10358
+ showDiscountSuggestions: showDiscountSuggestions
8970
10359
  }), /*#__PURE__*/React__default.createElement(CartSummary, {
8971
10360
  apiEndPoint: apiEndPoint,
8972
10361
  token: token,
@@ -9007,12 +10396,12 @@ var checkMinMaxQty = function checkMinMaxQty(_ref2) {
9007
10396
  return quantityReturn;
9008
10397
  };
9009
10398
 
9010
- var _templateObject$x, _templateObject2$p, _templateObject3$j;
9011
- var CartDrawerProduct = styled.div(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 100%;\n display: flex;\n flex-direction: row;\n height: 100px;\n justify-content: space-around;\n align-items: center;\n overflow: hidden;\n margin-bottom: 1rem;\n user-select: none;\n background: #f2f2f290;\n border: 1px solid #f2f2f290;\n padding: 0.5rem;\n border-radius: 12px;\n box-sizing: border-box;\n\n img {\n width: 20%;\n max-height: 100%;\n /* aspect-ratio: 1; */\n object-fit: contain;\n }\n .middleSection {\n width: 60%;\n padding-left: 0.8rem;\n height: 100%;\n h6 {\n font-size: 1.1rem;\n font-weight: bold;\n margin: 0;\n }\n .name {\n font-size: 0.9rem;\n line-height: 1.2rem;\n width: 100%;\n word-wrap: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: 0.3s;\n cursor: pointer;\n &:hover {\n color: ", ";\n }\n }\n }\n .endSection {\n // width: 20%;\n height: 95%;\n .icon {\n cursor: pointer;\n transition: 0.4s;\n &:hover {\n color: red;\n }\n }\n }\n @media only screen and (max-width: 768px) {\n .closeIcon {\n font-size: 1rem;\n }\n }\n @media only screen and (max-width: 340px) {\n .middleSection {\n h6 {\n font-size: 0.9rem;\n }\n }\n }\n"])), function (props) {
10399
+ var _templateObject$B, _templateObject2$r, _templateObject3$l;
10400
+ var CartDrawerProduct = styled.div(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 100%;\n display: flex;\n flex-direction: row;\n height: 100px;\n justify-content: space-around;\n align-items: center;\n overflow: hidden;\n margin-bottom: 1rem;\n user-select: none;\n background: #f2f2f290;\n border: 1px solid #f2f2f290;\n padding: 0.5rem;\n border-radius: 12px;\n box-sizing: border-box;\n\n img {\n width: 20%;\n max-height: 100%;\n /* aspect-ratio: 1; */\n object-fit: contain;\n }\n .middleSection {\n width: 60%;\n padding-left: 0.8rem;\n height: 100%;\n h6 {\n font-size: 1.1rem;\n font-weight: bold;\n margin: 0;\n }\n .name {\n font-size: 0.9rem;\n line-height: 1.2rem;\n width: 100%;\n word-wrap: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: 0.3s;\n cursor: pointer;\n &:hover {\n color: ", ";\n }\n }\n }\n .endSection {\n // width: 20%;\n height: 95%;\n .icon {\n cursor: pointer;\n transition: 0.4s;\n &:hover {\n color: red;\n }\n }\n }\n @media only screen and (max-width: 768px) {\n .closeIcon {\n font-size: 1rem;\n }\n }\n @media only screen and (max-width: 340px) {\n .middleSection {\n h6 {\n font-size: 0.9rem;\n }\n }\n }\n"])), function (props) {
9012
10401
  return props.color || 'grey';
9013
10402
  });
9014
- var CartDrawerQtBox = styled.div(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n span {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n @media only screen and (max-width: 600px) {\n min-width: 55px;\n aspect-ratio: 1/2;\n font-size: 10px;\n }\n @media only screen and (max-width: 340px) {\n min-width: 50px;\n aspect-ratio: 1/2;\n height: 22px;\n font-size: 8px;\n }\n"])));
9015
- var CartDrawerLoader = styled.div(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 30%;\n width: 100px;\n height: 100px;\n display: grid;\n place-items: center;\n"])));
10403
+ var CartDrawerQtBox = styled.div(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n span {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n @media only screen and (max-width: 600px) {\n min-width: 55px;\n aspect-ratio: 1/2;\n font-size: 10px;\n }\n @media only screen and (max-width: 340px) {\n min-width: 50px;\n aspect-ratio: 1/2;\n height: 22px;\n font-size: 8px;\n }\n"])));
10404
+ var CartDrawerLoader = styled.div(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 30%;\n width: 100px;\n height: 100px;\n display: grid;\n place-items: center;\n"])));
9016
10405
 
9017
10406
  var CartDrawerProductCard = function CartDrawerProductCard(_ref) {
9018
10407
  var product = _ref.product,
@@ -9273,7 +10662,7 @@ var GTagManager = function GTagManager(_ref) {
9273
10662
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
9274
10663
  };
9275
10664
 
9276
- var _templateObject$y, _templateObject2$q, _templateObject3$k, _templateObject4$g, _templateObject5$c, _templateObject6$a;
10665
+ var _templateObject$C, _templateObject2$s, _templateObject3$m, _templateObject4$i, _templateObject5$e, _templateObject6$c;
9277
10666
  var OutOfStock = function OutOfStock(_ref) {
9278
10667
  var _product$body, _product$body$content, _product$body2, _product$body2$conten, _product$masterProduc, _product$header;
9279
10668
  var product = _ref.product,
@@ -9421,7 +10810,7 @@ var OutOfStock = function OutOfStock(_ref) {
9421
10810
  fontSize: '1.3rem',
9422
10811
  fontWeight: 600
9423
10812
  }
9424
- }, "Get notified when this item is in-stock"), (outofstockproducts === null || outofstockproducts === void 0 ? void 0 : outofstockproducts.length) > 0 && /*#__PURE__*/React__default.createElement(TableContainer$4, {
10813
+ }, "Get notified when this item is in-stock"), (outofstockproducts === null || outofstockproducts === void 0 ? void 0 : outofstockproducts.length) > 0 && /*#__PURE__*/React__default.createElement(TableContainer$5, {
9425
10814
  style: {
9426
10815
  maxHeight: 400
9427
10816
  },
@@ -9504,13 +10893,13 @@ var OutOfStock = function OutOfStock(_ref) {
9504
10893
  }
9505
10894
  }), /*#__PURE__*/React__default.createElement("span", null, subscribed ? 'Subscribed Successfully' : 'Subscribe')))))));
9506
10895
  };
9507
- var VariantsContainer = styled.div(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 5px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(178, 169, 169, 1);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n }\n"])));
9508
- var MainCheckbox = styled(Checkbox)(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n }\n"])), function (props) {
10896
+ var VariantsContainer = styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 5px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(178, 169, 169, 1);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n }\n"])));
10897
+ var MainCheckbox = styled(Checkbox)(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n }\n"])), function (props) {
9509
10898
  return props.theme.primaryColor;
9510
10899
  });
9511
- var EmailInput = styled(InputBase)(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n border: 1px solid #a9a9a9;\n padding: 3px 10px;\n fontsize: 12px;\n width: 100%;\n border-radius: 3px;\n"])));
9512
- var Root$a = styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 1px solid #d3d3d3;\n border-radius: 3px;\n box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.4);\n padding: 10px;\n"])));
9513
- var ContainerDiv = styled.div(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n display: flex;\n font-size: 14px;\n height: ", ";\n margin: ", ";\n width: 100%;\n flex-direction: ", ";\n align-items: ", ";\n justify-content: ", ";\n color: #000000de;\n"])), function (props) {
10900
+ var EmailInput = styled(InputBase)(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n border: 1px solid #a9a9a9;\n padding: 3px 10px;\n fontsize: 12px;\n width: 100%;\n border-radius: 3px;\n"])));
10901
+ var Root$a = styled.div(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 1px solid #d3d3d3;\n border-radius: 3px;\n box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.4);\n padding: 10px;\n"])));
10902
+ var ContainerDiv = styled.div(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n display: flex;\n font-size: 14px;\n height: ", ";\n margin: ", ";\n width: 100%;\n flex-direction: ", ";\n align-items: ", ";\n justify-content: ", ";\n color: #000000de;\n"])), function (props) {
9514
10903
  return props.height ? props.height : 'auto';
9515
10904
  }, function (props) {
9516
10905
  return props.margin ? props.margin : '0.3rem 0';
@@ -9521,7 +10910,7 @@ var ContainerDiv = styled.div(_templateObject5$c || (_templateObject5$c = _tagge
9521
10910
  }, function (props) {
9522
10911
  return props.justifyContent ? props.justifyContent : 'default';
9523
10912
  });
9524
- var StyledSubscribe = styled.button(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n align-items: center;\n background: ", ";\n border-radius: 3px;\n color: #fff;\n display: flex;\n justify-content: center;\n padding: ", ";\n border: none;\n outline: none;\n font-weight: 600;\n cursor: ", ";\n opacity: ", ";\n width: ", ";\n pointer-events: ", ";\n span {\n white-space: nowrap;\n font-size: ", ";\n margin-left: 10px;\n }\n &:hover {\n opacity: ", ";\n }\n margin: 0px;\n margin-left: 1%;\n text-transform: uppercase;\n pointer-events: ", ";\n span {\n margin: 0px 10px;\n }\n"])), function (props) {
10913
+ var StyledSubscribe = styled.button(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n align-items: center;\n background: ", ";\n border-radius: 3px;\n color: #fff;\n display: flex;\n justify-content: center;\n padding: ", ";\n border: none;\n outline: none;\n font-weight: 600;\n cursor: ", ";\n opacity: ", ";\n width: ", ";\n pointer-events: ", ";\n span {\n white-space: nowrap;\n font-size: ", ";\n margin-left: 10px;\n }\n &:hover {\n opacity: ", ";\n }\n margin: 0px;\n margin-left: 1%;\n text-transform: uppercase;\n pointer-events: ", ";\n span {\n margin: 0px 10px;\n }\n"])), function (props) {
9525
10914
  return props.theme.primaryColor;
9526
10915
  }, function (props) {
9527
10916
  return props.padding ? props.padding : '5px 15px';
@@ -9541,12 +10930,12 @@ var StyledSubscribe = styled.button(_templateObject6$a || (_templateObject6$a =
9541
10930
  return props.Loading || props.subscribed ? 'none' : 'auto';
9542
10931
  });
9543
10932
 
9544
- var _templateObject$z;
10933
+ var _templateObject$D;
9545
10934
  var NoData = function NoData(_ref) {
9546
10935
  _objectDestructuringEmpty(_ref);
9547
10936
  return /*#__PURE__*/React__default.createElement(CustomNoRowsOverlay, null);
9548
10937
  };
9549
- var Container$1 = styled.div(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n & .ant-empty-img-1 {\n fill: #aeb8c2;\n }\n & .ant-empty-img-2 {\n fill: #f5f5f7;\n }\n & .ant-empty-img-3 {\n fill: #dce0e6;\n }\n & .ant-empty-img-4 {\n fill: #fff;\n }\n & ant-empty-img-5 {\n fill-opacity: 0.8;\n fill: #f5f5f5;\n }\n"])));
10938
+ var Container$1 = styled.div(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n & .ant-empty-img-1 {\n fill: #aeb8c2;\n }\n & .ant-empty-img-2 {\n fill: #f5f5f7;\n }\n & .ant-empty-img-3 {\n fill: #dce0e6;\n }\n & .ant-empty-img-4 {\n fill: #fff;\n }\n & ant-empty-img-5 {\n fill-opacity: 0.8;\n fill: #f5f5f5;\n }\n"])));
9550
10939
  var CustomNoRowsOverlay = function CustomNoRowsOverlay(_ref2) {
9551
10940
  _objectDestructuringEmpty(_ref2);
9552
10941
  return /*#__PURE__*/React__default.createElement(Container$1, null, /*#__PURE__*/React__default.createElement("svg", {
@@ -9656,7 +11045,7 @@ var SelectStyle = function SelectStyle(hasError) {
9656
11045
  };
9657
11046
  };
9658
11047
 
9659
- var _excluded$5 = ["value", "onChange", "placeholder", "searchProductLable", "apiData", "selectedValueKey", "loadOptionsMethod", "onScanUpdate", "minSearchChar", "searchLabelRequired", "onUpdate", "autoFocus", "defaultOptions", "initialOptions", "addItemLabel", "onAddItem", "searchResultSize"];
11048
+ var _excluded$6 = ["value", "onChange", "placeholder", "searchProductLable", "apiData", "selectedValueKey", "loadOptionsMethod", "onScanUpdate", "minSearchChar", "searchLabelRequired", "onUpdate", "autoFocus", "defaultOptions", "initialOptions", "addItemLabel", "onAddItem", "searchResultSize"];
9660
11049
  var AsyncSelectField = function AsyncSelectField(_ref) {
9661
11050
  var value = _ref.value,
9662
11051
  onChange = _ref.onChange,
@@ -9677,7 +11066,7 @@ var AsyncSelectField = function AsyncSelectField(_ref) {
9677
11066
  addItemLabel = _ref.addItemLabel,
9678
11067
  onAddItem = _ref.onAddItem,
9679
11068
  searchResultSize = _ref.searchResultSize,
9680
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
11069
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
9681
11070
  var DEFAULT_SEARCH_RESULT_SIZE = searchResultSize || 20;
9682
11071
  var labelKey = apiData.labelKey || 'name';
9683
11072
  var queryParam = apiData.queryParam || 'name';
@@ -10013,28 +11402,28 @@ var AsyncSelect = function AsyncSelect(_ref3) {
10013
11402
  return /*#__PURE__*/React__default.createElement(AsyncSelectField, props);
10014
11403
  };
10015
11404
 
10016
- var _templateObject$A;
10017
- var Container$2 = styled.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose([""])));
11405
+ var _templateObject$E;
11406
+ var Container$2 = styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose([""])));
10018
11407
 
10019
- var _templateObject$B, _templateObject2$r, _templateObject3$l, _templateObject4$h, _templateObject5$d, _templateObject6$b;
10020
- var ProductImage$1 = styled.img(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n min-width: 50px;\n min-height: 50px;\n object-fit: contain;\n @media only screen and (max-width: 600px) {\n margin: 0.5em 0;\n padding-right: 0.5em;\n }\n"])));
10021
- var ProductName$1 = styled.h6(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n padding: 0;\n line-height: 1.3em;\n max-height: ", ";\n height: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n height: fit-content;\n"])), function (props) {
11408
+ var _templateObject$F, _templateObject2$t, _templateObject3$n, _templateObject4$j, _templateObject5$f, _templateObject6$d;
11409
+ var ProductImage$1 = styled.img(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n min-width: 50px;\n min-height: 50px;\n object-fit: contain;\n @media only screen and (max-width: 600px) {\n margin: 0.5em 0;\n padding-right: 0.5em;\n }\n"])));
11410
+ var ProductName$1 = styled.h6(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n padding: 0;\n line-height: 1.3em;\n max-height: ", ";\n height: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n height: fit-content;\n"])), function (props) {
10022
11411
  return props.size || '1em';
10023
11412
  }, function (props) {
10024
11413
  return props.maxHeight ? props.maxHeight + "em" : '2.75em';
10025
11414
  }, function (props) {
10026
11415
  return props.maxHeight ? props.maxHeight + "em" : '2.80em';
10027
11416
  });
10028
- var CartTableRow$1 = styled(TableRow)(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: 0.3s;\n background: white;\n /* &:hover {\n td:first-child,\n td:last-child {\n border-left-style: solid;\n border-top-style: solid;\n border-top-right-radius: 10px;\n }\n } */\n .outOfStock {\n font-size: 0.75em;\n color: red;\n text-transform: uppercase;\n font-weight: 500;\n }\n .price {\n font-size: ", ";\n font-weight: bold;\n color: #323232;\n /* font-size: 1.15em; */\n }\n .borderLeft {\n height: 100%;\n background: ", ";\n transition: 0.2s;\n width: 0px;\n position: absolute;\n left: 0;\n top: 0;\n border-top-left-radius: 10px;\n display: none;\n border-bottom-left-radius: 10px;\n }\n .cartCheckBox {\n &.Mui-checked {\n svg {\n color: ", ";\n }\n }\n }\n &:hover {\n background: white !important;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);\n border-radius: 10px;\n /* opacity: 1;\n box-shadow: 1px 2px 6px 2px rgba(0, 0, 0, 0.2); */\n z-index: 2;\n /* border-radius: 20px; */\n .borderLeft {\n width: 12px;\n display: inline-block;\n }\n }\n @media only screen and (max-width: 600px) {\n .CartnoPaddingSm {\n padding: 0 !important;\n }\n .price {\n font-size: 0.8em;\n }\n margin: 0.5em 0;\n .cartCheckBox {\n .css-i4bv87-MuiSvgIcon-root {\n font-size: 10px !important;\n }\n }\n }\n"])), function (props) {
11417
+ var CartTableRow$1 = styled(TableRow)(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: 0.3s;\n background: white;\n /* &:hover {\n td:first-child,\n td:last-child {\n border-left-style: solid;\n border-top-style: solid;\n border-top-right-radius: 10px;\n }\n } */\n .outOfStock {\n font-size: 0.75em;\n color: red;\n text-transform: uppercase;\n font-weight: 500;\n }\n .price {\n font-size: ", ";\n font-weight: bold;\n color: #323232;\n /* font-size: 1.15em; */\n }\n .borderLeft {\n height: 100%;\n background: ", ";\n transition: 0.2s;\n width: 0px;\n position: absolute;\n left: 0;\n top: 0;\n border-top-left-radius: 10px;\n display: none;\n border-bottom-left-radius: 10px;\n }\n .cartCheckBox {\n &.Mui-checked {\n svg {\n color: ", ";\n }\n }\n }\n &:hover {\n background: white !important;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);\n border-radius: 10px;\n /* opacity: 1;\n box-shadow: 1px 2px 6px 2px rgba(0, 0, 0, 0.2); */\n z-index: 2;\n /* border-radius: 20px; */\n .borderLeft {\n width: 12px;\n display: inline-block;\n }\n }\n @media only screen and (max-width: 600px) {\n .CartnoPaddingSm {\n padding: 0 !important;\n }\n .price {\n font-size: 0.8em;\n }\n margin: 0.5em 0;\n .cartCheckBox {\n .css-i4bv87-MuiSvgIcon-root {\n font-size: 10px !important;\n }\n }\n }\n"])), function (props) {
10029
11418
  return props.size || '1.19em';
10030
11419
  }, function (prop) {
10031
11420
  return prop.bg;
10032
11421
  }, function (prop) {
10033
11422
  return prop.bg;
10034
11423
  });
10035
- var CartTableCell$2 = styled(TableCell)(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
10036
- var QuantityBox$1 = styled.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n height: 1.7em;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n div {\n /* width:30px; */\n min-height: 100%;\n aspect-ratio: 1.15/1;\n display: grid;\n place-items: center;\n font-size: 0.65em;\n color: white;\n background-color: #323232;\n cursor: pointer;\n }\n .price {\n background: transparent;\n cursor: auto;\n background: #ffffff;\n border: 1px solid #ebebeb;\n p {\n color: #5e5c5c;\n font-size: 0.685em;\n font-weight: 500;\n }\n }\n .add {\n background-color: #ebebeb;\n color: #323232;\n }\n"])));
10037
- var DeleteBtn$1 = styled.div(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background: #eef1f4;\n color: #393f48;\n font-size: 0.75em;\n transition: 0.4s;\n &:hover {\n background: red;\n color: white;\n }\n"])));
11424
+ var CartTableCell$2 = styled(TableCell)(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
11425
+ var QuantityBox$1 = styled.div(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n height: 1.7em;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n div {\n /* width:30px; */\n min-height: 100%;\n aspect-ratio: 1.15/1;\n display: grid;\n place-items: center;\n font-size: 0.65em;\n color: white;\n background-color: #323232;\n cursor: pointer;\n }\n .price {\n background: transparent;\n cursor: auto;\n background: #ffffff;\n border: 1px solid #ebebeb;\n p {\n color: #5e5c5c;\n font-size: 0.685em;\n font-weight: 500;\n }\n }\n .add {\n background-color: #ebebeb;\n color: #323232;\n }\n"])));
11426
+ var DeleteBtn$1 = styled.div(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background: #eef1f4;\n color: #393f48;\n font-size: 0.75em;\n transition: 0.4s;\n &:hover {\n background: red;\n color: white;\n }\n"])));
10038
11427
  var CardRow$1 = function CardRow(_ref) {
10039
11428
  var _styles$price, _styles$Btn, _row$standardPrice, _row$subtotal;
10040
11429
  var row = _ref.row,
@@ -10152,13 +11541,13 @@ var CardRow$1 = function CardRow(_ref) {
10152
11541
  }))));
10153
11542
  };
10154
11543
 
10155
- var _templateObject$C, _templateObject2$s, _templateObject3$m, _templateObject4$i, _templateObject5$e, _templateObject6$c, _templateObject7$8, _templateObject8$6, _templateObject9$5;
10156
- var CartPageSection$1 = styled.section(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n border-radius: 28px;\n\n @media screen and (max-width: 1200px) {\n padding: 0 1em;\n }\n @media screen and (max-width: 600px) {\n padding: 0 1em;\n }\n"])), function (props) {
11544
+ var _templateObject$G, _templateObject2$u, _templateObject3$o, _templateObject4$k, _templateObject5$g, _templateObject6$e, _templateObject7$a, _templateObject8$8, _templateObject9$6;
11545
+ var CartPageSection$1 = styled.section(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n border-radius: 28px;\n\n @media screen and (max-width: 1200px) {\n padding: 0 1em;\n }\n @media screen and (max-width: 600px) {\n padding: 0 1em;\n }\n"])), function (props) {
10157
11546
  return props.bg;
10158
11547
  }, function (props) {
10159
11548
  return props.bg || '#FAE8E5';
10160
11549
  });
10161
- var CartPageContainer$1 = styled.div(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n max-width: ", ";\n width: ", ";\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n border-radius: 28px 28px 28px 14px;\n padding: 2em 2.5em;\n padding-bottom: 3em;\n border-radius: 28px;\n opacity: ", ";\n .scrollDiv {\n width: 68%;\n max-height: 630px;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n\n margin-right: 0.3em;\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n\n border-radius: 16px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 16px;\n border: 2px solid;\n }\n /* box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.05); */\n }\n table {\n border-collapse: separate;\n border-spacing: 0 4px;\n row-gap: 4px;\n }\n\n td {\n /* border: solid 1px #000; */\n border-style: none solid solid none;\n /* padding: 10px; */\n /* margin-bottom:5px; */\n }\n\n tr:first-child td:first-child {\n border-top-left-radius: 10px;\n }\n tr td:last-child {\n border-top-right-radius: 10px;\n border-bottom-right-radius: 10px;\n }\n\n tr td:first-child {\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px;\n }\n tr td:last-child {\n border-bottom-right-radius: 10px;\n }\n\n tr td {\n border-top-style: solid;\n }\n tr td:first-child {\n border-left-style: solid;\n }\n\n @media only screen and (max-width: 1200px) {\n flex-direction: column;\n align-items: center;\n padding: 0.5em;\n .scrollDiv {\n width: 100%;\n margin: 0;\n margin-bottom: 2em;\n padding: 0 0.4em;\n }\n }\n"])), function (props) {
11550
+ var CartPageContainer$1 = styled.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n max-width: ", ";\n width: ", ";\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n border-radius: 28px 28px 28px 14px;\n padding: 2em 2.5em;\n padding-bottom: 3em;\n border-radius: 28px;\n opacity: ", ";\n .scrollDiv {\n width: 68%;\n max-height: 630px;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n\n margin-right: 0.3em;\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n\n border-radius: 16px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 16px;\n border: 2px solid;\n }\n /* box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.05); */\n }\n table {\n border-collapse: separate;\n border-spacing: 0 4px;\n row-gap: 4px;\n }\n\n td {\n /* border: solid 1px #000; */\n border-style: none solid solid none;\n /* padding: 10px; */\n /* margin-bottom:5px; */\n }\n\n tr:first-child td:first-child {\n border-top-left-radius: 10px;\n }\n tr td:last-child {\n border-top-right-radius: 10px;\n border-bottom-right-radius: 10px;\n }\n\n tr td:first-child {\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px;\n }\n tr td:last-child {\n border-bottom-right-radius: 10px;\n }\n\n tr td {\n border-top-style: solid;\n }\n tr td:first-child {\n border-left-style: solid;\n }\n\n @media only screen and (max-width: 1200px) {\n flex-direction: column;\n align-items: center;\n padding: 0.5em;\n .scrollDiv {\n width: 100%;\n margin: 0;\n margin-bottom: 2em;\n padding: 0 0.4em;\n }\n }\n"])), function (props) {
10162
11551
  return props.maxWidth || '1600px';
10163
11552
  }, function (props) {
10164
11553
  return "min(" + (props.maxWidth || '1600px') + ",100%)";
@@ -10169,16 +11558,16 @@ var CartPageContainer$1 = styled.div(_templateObject2$s || (_templateObject2$s =
10169
11558
  }, function (props) {
10170
11559
  return props.color || '#BFC3CA';
10171
11560
  });
10172
- var CardsBox$1 = styled.div(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n width: 100%;\n /* min-height: 1000px; */\n position: relative;\n max-width: 860px;\n margin-right: auto;\n padding: 1em 2em;\n display: ", ";\n grid-template-columns: 1fr 1fr;\n flex-direction: column;\n align-items: flex-start;\n grid-gap: 1em;\n justify-content: flex-start;\n align-items: center;\n border-radius: 20px;\n @media only screen and (max-width: 900px) {\n display: flex;\n }\n @media only screen and (max-width: 600px) {\n padding: 1em 0.2em;\n }\n"])), function (props) {
11561
+ var CardsBox$1 = styled.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n width: 100%;\n /* min-height: 1000px; */\n position: relative;\n max-width: 860px;\n margin-right: auto;\n padding: 1em 2em;\n display: ", ";\n grid-template-columns: 1fr 1fr;\n flex-direction: column;\n align-items: flex-start;\n grid-gap: 1em;\n justify-content: flex-start;\n align-items: center;\n border-radius: 20px;\n @media only screen and (max-width: 900px) {\n display: flex;\n }\n @media only screen and (max-width: 600px) {\n padding: 1em 0.2em;\n }\n"])), function (props) {
10173
11562
  return props.retail ? 'grid' : 'flex';
10174
11563
  });
10175
- var CartHeading$1 = styled.div(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n /* margin-bottom: 2em; */\n margin-left: 2.3em;\n margin-top: 2em;\n\n color: ", ";\n h1 {\n font-weight: 600;\n font-size: 2.0375em;\n text-transform: capitalize;\n color: ", ";\n /* margin-bottom: 1em; */\n }\n p {\n font-size: 0.875em;\n color: inherit;\n margin-top: 0.5em;\n }\n"])), function (props) {
11564
+ var CartHeading$1 = styled.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n /* margin-bottom: 2em; */\n margin-left: 2.3em;\n margin-top: 2em;\n\n color: ", ";\n h1 {\n font-weight: 600;\n font-size: 2.0375em;\n text-transform: capitalize;\n color: ", ";\n /* margin-bottom: 1em; */\n }\n p {\n font-size: 0.875em;\n color: inherit;\n margin-top: 0.5em;\n }\n"])), function (props) {
10176
11565
  return props.color || 'black';
10177
11566
  }, function (props) {
10178
11567
  return props.h1 || 'inherit';
10179
11568
  });
10180
- var Loader$2 = styled.div(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 40%;\n left: 47%;\n display: grid;\n place-items: center;\n z-index: 3;\n"])));
10181
- var CartTableCell$3 = styled(TableCell)(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n && {\n padding-bottom: 1em !important;\n // border: none !important;\n /* font-size: 0.75em; */\n font-size: 1em;\n color: rgba(98, 95, 95, 1);\n // background: ", ";\n color: ", ";\n }\n &.bg-transparent {\n // background-color: transparent !important;\n text-transform: uppercase;\n span {\n font-size: 0.75em;\n font-weight: 600;\n }\n svg {\n color: ", ";\n }\n .MuiTableSortLabel-root {\n color: ", "!important;\n }\n }\n"])), function (props) {
11569
+ var Loader$2 = styled.div(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 40%;\n left: 47%;\n display: grid;\n place-items: center;\n z-index: 3;\n"])));
11570
+ var CartTableCell$3 = styled(TableCell)(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n && {\n padding-bottom: 1em !important;\n // border: none !important;\n /* font-size: 0.75em; */\n font-size: 1em;\n color: rgba(98, 95, 95, 1);\n // background: ", ";\n color: ", ";\n }\n &.bg-transparent {\n // background-color: transparent !important;\n text-transform: uppercase;\n span {\n font-size: 0.75em;\n font-weight: 600;\n }\n svg {\n color: ", ";\n }\n .MuiTableSortLabel-root {\n color: ", "!important;\n }\n }\n"])), function (props) {
10182
11571
  return "" + props.bg;
10183
11572
  }, function (props) {
10184
11573
  return "" + props.color || 'inherit';
@@ -10187,17 +11576,17 @@ var CartTableCell$3 = styled(TableCell)(_templateObject6$c || (_templateObject6$
10187
11576
  }, function (props) {
10188
11577
  return "" + props.color || 'inherit';
10189
11578
  });
10190
- var CartTableContainer$1 = styled(TableContainer$3)(_templateObject7$8 || (_templateObject7$8 = _taggedTemplateLiteralLoose(["\n max-height: 580px;\n padding-right: 1.5em;\n overflow: inherit !important;\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 16px;\n width: 100%;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n border-radius: 16px;\n margin: 5px 2px;\n background: ", ";\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n }\n"])), function (props) {
11579
+ var CartTableContainer$1 = styled(TableContainer$4)(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n max-height: 580px;\n padding-right: 1.5em;\n overflow: inherit !important;\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 16px;\n width: 100%;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n border-radius: 16px;\n margin: 5px 2px;\n background: ", ";\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n }\n"])), function (props) {
10191
11580
  return props.bg || '#fdccc480';
10192
11581
  }, function (props) {
10193
11582
  return props.color || 'red';
10194
11583
  });
10195
- var CartButtonsRow$1 = styled.div(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding-right: 1.85em;\n button {\n display: flex;\n align-items: center;\n background: ", ";\n color: ", ";\n padding: 0.5em 1em;\n margin-left: 1em;\n font-size: 0.85em;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n transition: 0.4s;\n font-size: 1rem;\n font-weight: 600;\n svg {\n margin-right: 0.4rem;\n }\n &:hover {\n transform: scale(0.95);\n }\n }\n"])), function (props) {
11584
+ var CartButtonsRow$1 = styled.div(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding-right: 1.85em;\n button {\n display: flex;\n align-items: center;\n background: ", ";\n color: ", ";\n padding: 0.5em 1em;\n margin-left: 1em;\n font-size: 0.85em;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n transition: 0.4s;\n font-size: 1rem;\n font-weight: 600;\n svg {\n margin-right: 0.4rem;\n }\n &:hover {\n transform: scale(0.95);\n }\n }\n"])), function (props) {
10196
11585
  return props.bg || 'rgba(107, 106, 106, 1)';
10197
11586
  }, function (props) {
10198
11587
  return props.color || 'white';
10199
11588
  });
10200
- var CartPageBox$1 = styled.div(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n @media only screen and (max-width: 768px) {\n margin-right: 0;\n .CartnoBelowSm {\n display: none;\n }\n }\n"])));
11589
+ var CartPageBox$1 = styled.div(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n @media only screen and (max-width: 768px) {\n margin-right: 0;\n .CartnoBelowSm {\n display: none;\n }\n }\n"])));
10201
11590
 
10202
11591
  var headCells$1 = [{
10203
11592
  id: 'image',
@@ -10602,7 +11991,7 @@ var SnowfallComponent = function SnowfallComponent(_ref) {
10602
11991
  }) : null;
10603
11992
  };
10604
11993
 
10605
- var _templateObject$D, _templateObject2$t;
11994
+ var _templateObject$H, _templateObject2$v;
10606
11995
  var ContactUsForm = function ContactUsForm(_ref) {
10607
11996
  var apiEndPoint = _ref.apiEndPoint,
10608
11997
  serviceApiEndPoint = _ref.serviceApiEndPoint,
@@ -10727,15 +12116,15 @@ var ContactUsForm = function ContactUsForm(_ref) {
10727
12116
  }
10728
12117
  }, "Submit"))));
10729
12118
  };
10730
- var TypographyContainer$8 = styled(Typography)(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n font-size: 1.2rem !important;\n align-items: center;\n"])), function (props) {
12119
+ var TypographyContainer$8 = styled(Typography)(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n font-size: 1.2rem !important;\n align-items: center;\n"])), function (props) {
10731
12120
  return props.fontColor;
10732
12121
  });
10733
- var RootContainer$3 = styled(Stack)(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n background-color: ", " !important;\n border-radius: 14px !important;\n padding: 1.3rem;\n margin-bottom: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n p {\n margin: 0 !important;\n }\n"])), function (props) {
12122
+ var RootContainer$3 = styled(Stack)(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n background-color: ", " !important;\n border-radius: 14px !important;\n padding: 1.3rem;\n margin-bottom: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n p {\n margin: 0 !important;\n }\n"])), function (props) {
10734
12123
  return props.secondaryColor;
10735
12124
  });
10736
12125
 
10737
- var _templateObject$E;
10738
- var StaticContainer = styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n width: 100%;\n color: ", ";\n .top-bar {\n background-color: #f5f5f5;\n padding: 1rem;\n text-align: center;\n font-size: 3.2rem;\n font-weight: bold;\n text-transform: uppercase;\n color: ", ";\n @media only screen and (max-width: 769px) {\n font-size: 1.5rem;\n }\n }\n .route-bar {\n text-transform: capitalize;\n p {\n padding: 0;\n word-spacing: 5px;\n display: flex;\n align-items: center;\n color: ", ";\n }\n }\n .data-container {\n margin: auto;\n }\n hr {\n border-bottom: 2px solid #eceff8;\n border-top: 0px;\n margin: 1rem 0;\n }\n li {\n margin-left: 1rem;\n }\n a {\n color: ", ";\n }\n p {\n font-size: 1.2rem;\n margin: 1rem 0;\n width: 100%;\n color: ", ";\n }\n"])), function (props) {
12126
+ var _templateObject$I;
12127
+ var StaticContainer = styled.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n width: 100%;\n color: ", ";\n .top-bar {\n background-color: #f5f5f5;\n padding: 1rem;\n text-align: center;\n font-size: 3.2rem;\n font-weight: bold;\n text-transform: uppercase;\n color: ", ";\n @media only screen and (max-width: 769px) {\n font-size: 1.5rem;\n }\n }\n .route-bar {\n text-transform: capitalize;\n p {\n padding: 0;\n word-spacing: 5px;\n display: flex;\n align-items: center;\n color: ", ";\n }\n }\n .data-container {\n margin: auto;\n }\n hr {\n border-bottom: 2px solid #eceff8;\n border-top: 0px;\n margin: 1rem 0;\n }\n li {\n margin-left: 1rem;\n }\n a {\n color: ", ";\n }\n p {\n font-size: 1.2rem;\n margin: 1rem 0;\n width: 100%;\n color: ", ";\n }\n"])), function (props) {
10739
12128
  return props.theme.fontColor || '#606060';
10740
12129
  }, function (props) {
10741
12130
  return props.theme.primaryColor;
@@ -10747,7 +12136,7 @@ var StaticContainer = styled.div(_templateObject$E || (_templateObject$E = _tagg
10747
12136
  return props.theme.fontColor || '#606060';
10748
12137
  });
10749
12138
 
10750
- var _templateObject$F;
12139
+ var _templateObject$J;
10751
12140
  var APIStaticPage = function APIStaticPage(_ref) {
10752
12141
  var _ref$colors = _ref.colors,
10753
12142
  colors = _ref$colors === void 0 ? {
@@ -10935,10 +12324,10 @@ var APIStaticPage = function APIStaticPage(_ref) {
10935
12324
  }
10936
12325
  }, "Not found"))));
10937
12326
  };
10938
- var Root$b = styled(Box)(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n img {\n max-width: 100%;\n }\n"])));
12327
+ var Root$b = styled(Box)(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n img {\n max-width: 100%;\n }\n"])));
10939
12328
 
10940
- var _templateObject$G;
10941
- var StaticContainer$1 = styled.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n width: 100%;\n color: ", ";\n .top-bar {\n background-color: #f5f5f5;\n padding: 1rem;\n text-align: center;\n font-size: 3.2rem;\n font-weight: bold;\n text-transform: uppercase;\n color: ", ";\n @media only screen and (max-width: 769px) {\n font-size: 1.5rem;\n }\n }\n .route-bar {\n text-transform: capitalize;\n p {\n padding: 0;\n word-spacing: 5px;\n display: flex;\n align-items: center;\n color: ", ";\n }\n }\n .data-container {\n margin: auto;\n }\n hr {\n border-bottom: 2px solid #eceff8;\n border-top: 0px;\n margin: 1rem 0;\n }\n li {\n margin-left: 1rem;\n }\n a {\n color: ", ";\n }\n p {\n margin: 1rem 0;\n width: 100%;\n color: ", ";\n }\n"])), function (props) {
12329
+ var _templateObject$K;
12330
+ var StaticContainer$1 = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n width: 100%;\n color: ", ";\n .top-bar {\n background-color: #f5f5f5;\n padding: 1rem;\n text-align: center;\n font-size: 3.2rem;\n font-weight: bold;\n text-transform: uppercase;\n color: ", ";\n @media only screen and (max-width: 769px) {\n font-size: 1.5rem;\n }\n }\n .route-bar {\n text-transform: capitalize;\n p {\n padding: 0;\n word-spacing: 5px;\n display: flex;\n align-items: center;\n color: ", ";\n }\n }\n .data-container {\n margin: auto;\n }\n hr {\n border-bottom: 2px solid #eceff8;\n border-top: 0px;\n margin: 1rem 0;\n }\n li {\n margin-left: 1rem;\n }\n a {\n color: ", ";\n }\n p {\n margin: 1rem 0;\n width: 100%;\n color: ", ";\n }\n"])), function (props) {
10942
12331
  return props.theme.fontColor || '#606060';
10943
12332
  }, function (props) {
10944
12333
  return props.theme.primaryColor;
@@ -10950,7 +12339,7 @@ var StaticContainer$1 = styled.div(_templateObject$G || (_templateObject$G = _ta
10950
12339
  return props.theme.fontColor || '#606060';
10951
12340
  });
10952
12341
 
10953
- var _templateObject$H;
12342
+ var _templateObject$L;
10954
12343
  var StaticPage = function StaticPage(_ref) {
10955
12344
  var _data$content;
10956
12345
  var _ref$colors = _ref.colors,
@@ -11018,9 +12407,9 @@ var StaticPage = function StaticPage(_ref) {
11018
12407
  referrerPolicy: "no-referrer-when-downgrade"
11019
12408
  })))));
11020
12409
  };
11021
- var Root$c = styled(Box)(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose([""])));
12410
+ var Root$c = styled(Box)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose([""])));
11022
12411
 
11023
- var _templateObject$I;
12412
+ var _templateObject$M;
11024
12413
  var StaticPageList = function StaticPageList(_ref) {
11025
12414
  var _sortBy;
11026
12415
  var apiEndPoint = _ref.apiEndPoint,
@@ -11128,9 +12517,9 @@ var StaticPageList = function StaticPageList(_ref) {
11128
12517
  }
11129
12518
  }, "Not found")))));
11130
12519
  };
11131
- var TitleContainer$2 = styled.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n padding: 1.2rem;\n cursor: pointer;\n color: #323232;\n img {\n max-width: 100%;\n }\n &:hover {\n img {\n transform: scale(1.01);\n }\n }\n"])));
12520
+ var TitleContainer$2 = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n padding: 1.2rem;\n cursor: pointer;\n color: #323232;\n img {\n max-width: 100%;\n }\n &:hover {\n img {\n transform: scale(1.01);\n }\n }\n"])));
11132
12521
 
11133
- var _excluded$6 = ["userName", "children", "style"];
12522
+ var _excluded$7 = ["userName", "children", "style"];
11134
12523
  var colors$1 = ['#FFB900', '#D83B01', '#B50E0E', '#E81123', '#B4009E', '#5C2D91', '#0078D7', '#00B4FF', '#008272', '#107C10'];
11135
12524
  var getRandomColor = function getRandomColor(userName) {
11136
12525
  return colors$1[(userName === null || userName === void 0 ? void 0 : userName.length) % (colors$1 === null || colors$1 === void 0 ? void 0 : colors$1.length)];
@@ -11149,7 +12538,7 @@ var Avatar = function Avatar(_ref) {
11149
12538
  var userName = _ref.userName,
11150
12539
  children = _ref.children,
11151
12540
  style = _ref.style,
11152
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
12541
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
11153
12542
  var backgroundColor = '#1f62ff';
11154
12543
  if (userName) {
11155
12544
  backgroundColor = getRandomColor(userName);
@@ -11164,7 +12553,7 @@ var Avatar = function Avatar(_ref) {
11164
12553
  }));
11165
12554
  };
11166
12555
 
11167
- var _templateObject$J, _templateObject2$u;
12556
+ var _templateObject$N, _templateObject2$w;
11168
12557
  var SwitchUser = function SwitchUser(_ref) {
11169
12558
  var _customerData$filter, _customerData$filter$;
11170
12559
  var apiEndPoint = _ref.apiEndPoint,
@@ -11251,14 +12640,14 @@ var SwitchUser = function SwitchUser(_ref) {
11251
12640
  }, /*#__PURE__*/React__default.createElement(AiOutlineShop, null), /*#__PURE__*/React__default.createElement("span", null, (item === null || item === void 0 ? void 0 : item.dbaName) || (item === null || item === void 0 ? void 0 : item.company)))));
11252
12641
  }))));
11253
12642
  };
11254
- var RootContainer$4 = styled.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n margin: auto;\n padding: 2.4rem;\n max-width: 1920px;\n"])));
11255
- var CustomerContainer = styled.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n transition: all 0.5s;\n padding: 1.1rem;\n border-radius: 1rem;\n box-shadow: 2px 2px 6px 0px #00000020;\n &:hover {\n transform: scale(1.05);\n }\n .name {\n color: ", ";\n font-size: 2.5rem;\n font-weight: 700;\n }\n .infoDetails {\n font-size: 1.1rem;\n color: #46464680;\n margin: 1rem 0;\n display: flex;\n align-items: center;\n svg {\n color: ", ";\n font-size: 1.5rem;\n margin-right: 0.5rem;\n }\n }\n"])), function (props) {
12643
+ var RootContainer$4 = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n margin: auto;\n padding: 2.4rem;\n max-width: 1920px;\n"])));
12644
+ var CustomerContainer = styled.div(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n transition: all 0.5s;\n padding: 1.1rem;\n border-radius: 1rem;\n box-shadow: 2px 2px 6px 0px #00000020;\n &:hover {\n transform: scale(1.05);\n }\n .name {\n color: ", ";\n font-size: 2.5rem;\n font-weight: 700;\n }\n .infoDetails {\n font-size: 1.1rem;\n color: #46464680;\n margin: 1rem 0;\n display: flex;\n align-items: center;\n svg {\n color: ", ";\n font-size: 1.5rem;\n margin-right: 0.5rem;\n }\n }\n"])), function (props) {
11256
12645
  return props.theme.primaryColor || '#000000d9';
11257
12646
  }, function (props) {
11258
12647
  return props.theme.primaryColor || '#000000d9';
11259
12648
  });
11260
12649
 
11261
- var _templateObject$K, _templateObject2$v;
12650
+ var _templateObject$O, _templateObject2$x;
11262
12651
  var ThankYou = function ThankYou(_ref) {
11263
12652
  var _ref$id = _ref.id,
11264
12653
  id = _ref$id === void 0 ? 0 : _ref$id,
@@ -11317,8 +12706,8 @@ var ThankYou = function ThankYou(_ref) {
11317
12706
  onClick: onContinue
11318
12707
  }, /*#__PURE__*/React__default.createElement("p", null, "Continue Shopping"))))))));
11319
12708
  };
11320
- var Root$d = styled(Box)(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose([""])));
11321
- var StyledButton = styled.button(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n outline: none;\n border: 1px solid;\n border-color: ", ";\n background: none;\n border-radius: 14px;\n padding: 10px 20px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background 0.5s ease;\n width: 200px;\n color: ", ";\n text-transform: uppercase;\n &:hover {\n cursor: pointer;\n background: ", ";\n color: #fff;\n }\n"])), function (props) {
12709
+ var Root$d = styled(Box)(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose([""])));
12710
+ var StyledButton = styled.button(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n outline: none;\n border: 1px solid;\n border-color: ", ";\n background: none;\n border-radius: 14px;\n padding: 10px 20px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background 0.5s ease;\n width: 200px;\n color: ", ";\n text-transform: uppercase;\n &:hover {\n cursor: pointer;\n background: ", ";\n color: #fff;\n }\n"])), function (props) {
11322
12711
  return props.theme.primaryColor;
11323
12712
  }, function (props) {
11324
12713
  return props.theme.primaryColor;
@@ -11342,7 +12731,7 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11342
12731
  backgroundColor: 'rgba(0, 0, 0, 0.1)'
11343
12732
  }
11344
12733
  }
11345
- }, /*#__PURE__*/React__default.createElement(DialogTitle, null, /*#__PURE__*/React__default.createElement(Typography, {
12734
+ }, /*#__PURE__*/React__default.createElement(DialogTitle$1, null, /*#__PURE__*/React__default.createElement(Typography, {
11346
12735
  variant: "h4",
11347
12736
  fontWeight: "bold",
11348
12737
  align: "center",
@@ -11354,7 +12743,7 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11354
12743
  sx: {
11355
12744
  padding: 2
11356
12745
  }
11357
- }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
12746
+ }, /*#__PURE__*/React__default.createElement(TableContainer$4, {
11358
12747
  component: Box,
11359
12748
  sx: {
11360
12749
  border: '1px solid #e0e0e0',
@@ -11409,7 +12798,7 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11409
12798
  sx: {
11410
12799
  marginY: 3
11411
12800
  }
11412
- }), /*#__PURE__*/React__default.createElement(TableContainer$3, {
12801
+ }), /*#__PURE__*/React__default.createElement(TableContainer$4, {
11413
12802
  component: Box,
11414
12803
  sx: {
11415
12804
  border: '1px solid #e0e0e0',
@@ -11472,38 +12861,38 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11472
12861
  }, "Okay"))));
11473
12862
  };
11474
12863
 
11475
- var _templateObject$L, _templateObject2$w, _templateObject3$n, _templateObject4$j, _templateObject5$f, _templateObject6$d, _templateObject7$9, _templateObject8$7;
11476
- var CheckoutRootContainer = styled.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 2rem;\n background-color: ", ";\n font-size: 16px;\n\n div,\n button,\n span {\n font-size: 16px;\n }\n @media only screen and (max-width: 1600px) {\n padding: 3em 0.5em;\n }\n @media screen and (max-width: 900px) {\n div,\n button,\n span {\n font-size: 12px;\n }\n padding: 2rem 0.5rem;\n }\n"])), function (props) {
12864
+ var _templateObject$P, _templateObject2$y, _templateObject3$p, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$b, _templateObject8$9;
12865
+ var CheckoutRootContainer = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 2rem;\n background-color: ", ";\n font-size: 16px;\n\n div,\n button,\n span {\n font-size: 16px;\n }\n @media only screen and (max-width: 1600px) {\n padding: 3em 0.5em;\n }\n @media screen and (max-width: 900px) {\n div,\n button,\n span {\n font-size: 12px;\n }\n padding: 2rem 0.5rem;\n }\n"])), function (props) {
11477
12866
  return props.bg;
11478
12867
  });
11479
- var CheckoutPageContainer = styled.div(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n background-color: ", ";\n margin: 0 auto;\n padding: 2em;\n padding-left: min(4.5em, 2.5vw);\n color: rgba(50, 50, 50, 1);\n /* max-height: 90vh; */\n overflow: hidden;\n /* background: gainsboro; */\n border-radius: 28px;\n /* background-color: #fff8f6; */\n @media only screen and (max-width: 1200px) {\n flex-direction: column;\n align-items: center;\n max-height: max-content;\n }\n @media only screen and (max-width: 768px) {\n padding: 1em 0.5em;\n }\n .icon {\n font-size: 12px;\n }\n ////////////checkout and cart fonts\n /////////////////\n /* /////remove arrows from number input */\n /* Chrome, Safari, Edge, Opera */\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n input[type='number'] {\n -moz-appearance: textfield;\n }\n\n /* //////mui inputs */\n\n .Mui-checked {\n color: ", ";\n }\n\n .MuiOutlinedInput-notchedOutline {\n border: none;\n outline: none;\n }\n\n .MuiInputBase-root .MuiOutlinedInput-root,\n .MuiInputBase-colorPrimary,\n .MuiInputBase-fullWidth,\n .MuiInputBase-formControl {\n border-radius: 10px;\n }\n // /* /////stepper length */\n .MuiStepConnector-line,\n .MuiStepConnector-lineVertical {\n min-height: 60px !important;\n }\n\n @media only screen and (max-width: 900px) {\n .MuiStepConnector-line,\n .MuiStepConnector-lineVertical {\n min-height: 40px !important;\n }\n }\n"])), function (props) {
12868
+ var CheckoutPageContainer = styled.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n background-color: ", ";\n margin: 0 auto;\n padding: 2em;\n padding-left: min(4.5em, 2.5vw);\n color: rgba(50, 50, 50, 1);\n /* max-height: 90vh; */\n overflow: hidden;\n /* background: gainsboro; */\n border-radius: 28px;\n /* background-color: #fff8f6; */\n @media only screen and (max-width: 1200px) {\n flex-direction: column;\n align-items: center;\n max-height: max-content;\n }\n @media only screen and (max-width: 768px) {\n padding: 1em 0.5em;\n }\n .icon {\n font-size: 12px;\n }\n ////////////checkout and cart fonts\n /////////////////\n /* /////remove arrows from number input */\n /* Chrome, Safari, Edge, Opera */\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n input[type='number'] {\n -moz-appearance: textfield;\n }\n\n /* //////mui inputs */\n\n .Mui-checked {\n color: ", ";\n }\n\n .MuiOutlinedInput-notchedOutline {\n border: none;\n outline: none;\n }\n\n .MuiInputBase-root .MuiOutlinedInput-root,\n .MuiInputBase-colorPrimary,\n .MuiInputBase-fullWidth,\n .MuiInputBase-formControl {\n border-radius: 10px;\n }\n // /* /////stepper length */\n .MuiStepConnector-line,\n .MuiStepConnector-lineVertical {\n min-height: 60px !important;\n }\n\n @media only screen and (max-width: 900px) {\n .MuiStepConnector-line,\n .MuiStepConnector-lineVertical {\n min-height: 40px !important;\n }\n }\n"])), function (props) {
11480
12869
  return props.maxWidth || '1605px';
11481
12870
  }, function (props) {
11482
12871
  return props.bg || '#fff8f6';
11483
12872
  }, function (props) {
11484
12873
  return props.primaryColor || 'rgba(50, 50, 50, 1)';
11485
12874
  });
11486
- var Row = styled.div(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n"])));
11487
- var CheckoutMainWithHeader = styled(Stack)(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
11488
- var CheckoutMain = styled.div(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 1008px;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n margin-right: 2em;\n max-height: 65vh;\n padding-right: 2em;\n overflow-y: auto;\n position: relative;\n padding-top: 2em;\n padding-bottom: 3em;\n /* width */\n ::-webkit-scrollbar {\n width: 10px;\n background: ", ";\n border-radius: 16px;\n }\n\n /* Track */\n ::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 16px;\n }\n\n /* Handle */\n ::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 16px;\n }\n @media only screen and (max-width: 1200px) {\n margin-bottom: 3em;\n min-height: max-content;\n max-height: max-content;\n margin-right: 0;\n overflow: visible;\n }\n @media only screen and (max-width: 768px) {\n // max-width: 100vw;\n padding-right: 0;\n // width: 98vw;\n // min-width: 90vw;\n padding-top: 1em;\n }\n /* overflow: hidden; */\n"])), function (props) {
12875
+ var Row = styled.div(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n"])));
12876
+ var CheckoutMainWithHeader = styled(Stack)(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
12877
+ var CheckoutMain = styled.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 1008px;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n margin-right: 2em;\n max-height: 65vh;\n padding-right: 2em;\n overflow-y: auto;\n position: relative;\n padding-top: 2em;\n padding-bottom: 3em;\n /* width */\n ::-webkit-scrollbar {\n width: 10px;\n background: ", ";\n border-radius: 16px;\n }\n\n /* Track */\n ::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 16px;\n }\n\n /* Handle */\n ::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 16px;\n }\n @media only screen and (max-width: 1200px) {\n margin-bottom: 3em;\n min-height: max-content;\n max-height: max-content;\n margin-right: 0;\n overflow: visible;\n }\n @media only screen and (max-width: 768px) {\n // max-width: 100vw;\n padding-right: 0;\n // width: 98vw;\n // min-width: 90vw;\n padding-top: 1em;\n }\n /* overflow: hidden; */\n"])), function (props) {
11489
12878
  return props.bg || 'rgba(102,112,128,0.5)';
11490
12879
  }, function (props) {
11491
12880
  return props.bg || 'rgba(102,112,128,0.5)';
11492
12881
  }, function (props) {
11493
12882
  return props.color;
11494
12883
  });
11495
- var CheckoutHeading = styled.div(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n margin-left: 2.5em;\n margin-bottom: 2em;\n h5 {\n font-size: 2.3em;\n font-weight: 600;\n text-transform: capitalize;\n }\n p {\n font-size: 0.875em;\n margin-top: 0.5em;\n }\n @media only screen and (max-width: 768px) {\n margin-left: 0;\n padding-left: 1em;\n }\n"])));
11496
- var CheckoutHeader = styled(Row)(_templateObject7$9 || (_templateObject7$9 = _taggedTemplateLiteralLoose(["\n width: 100%;\n overflow: auto;\n justify-content: space-around;\n display: flex;\n flex-direction: row;\n align-items: center;\n position: sticky;\n top: 0;\n background-color: white;\n z-index: 1;\n justify-content: flex-start;\n min-height: 4em;\n max-height: 4em;\n max-width: 60em;\n background: #ffffff;\n border-radius: 20px;\n color: #7d7b7b;\n padding: 0 2em;\n margin: 0 2em 1em 1em;\n .row {\n display: flex;\n color: inherit;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n text-transform: capitalize;\n margin-right: 2.4%;\n .icon {\n font-size: 14px;\n font-weight: 400;\n display: grid;\n place-items: center;\n margin-right: 6px;\n color: inherit;\n }\n p,\n span {\n font-size: 0.95em;\n color: inherit;\n }\n }\n .checked {\n p,\n span {\n color: #323232;\n }\n .icon {\n color: #249937;\n }\n }\n @media only screen and (max-width: 1200px) {\n margin-right: 0em;\n }\n @media only screen and (max-width: 768px) {\n width: 100%;\n padding: 2em 1em;\n margin: 1.4em 0;\n .row {\n margin-right: 4.5%;\n p {\n font-size: 12px;\n }\n span {\n display: none;\n }\n }\n }\n"])));
11497
- var CheckoutStepIcon = styled.div(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n font-size: 5px;\n display: grid;\n place-items: center;\n margin: auto;\n padding: 0;\n margin-left: 2px;\n .circle {\n width: 16px;\n height: 16px;\n border-radius: 50%;\n font-size: 5px;\n display: grid;\n place-items: center;\n margin: auto;\n padding: 0;\n }\n .ic {\n font-size: 8px;\n }\n"])));
12884
+ var CheckoutHeading = styled.div(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n margin-left: 2.5em;\n margin-bottom: 2em;\n h5 {\n font-size: 2.3em;\n font-weight: 600;\n text-transform: capitalize;\n }\n p {\n font-size: 0.875em;\n margin-top: 0.5em;\n }\n @media only screen and (max-width: 768px) {\n margin-left: 0;\n padding-left: 1em;\n }\n"])));
12885
+ var CheckoutHeader = styled(Row)(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n width: 100%;\n overflow: auto;\n justify-content: space-around;\n display: flex;\n flex-direction: row;\n align-items: center;\n position: sticky;\n top: 0;\n background-color: white;\n z-index: 1;\n justify-content: flex-start;\n min-height: 4em;\n max-height: 4em;\n max-width: 60em;\n background: #ffffff;\n border-radius: 20px;\n color: #7d7b7b;\n padding: 0 2em;\n margin: 0 2em 1em 1em;\n .row {\n display: flex;\n color: inherit;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n text-transform: capitalize;\n margin-right: 2.4%;\n .icon {\n font-size: 14px;\n font-weight: 400;\n display: grid;\n place-items: center;\n margin-right: 6px;\n color: inherit;\n }\n p,\n span {\n font-size: 0.95em;\n color: inherit;\n }\n }\n .checked {\n p,\n span {\n color: #323232;\n }\n .icon {\n color: #249937;\n }\n }\n @media only screen and (max-width: 1200px) {\n margin-right: 0em;\n }\n @media only screen and (max-width: 768px) {\n width: 100%;\n padding: 2em 1em;\n margin: 1.4em 0;\n .row {\n margin-right: 4.5%;\n p {\n font-size: 12px;\n }\n span {\n display: none;\n }\n }\n }\n"])));
12886
+ var CheckoutStepIcon = styled.div(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n font-size: 5px;\n display: grid;\n place-items: center;\n margin: auto;\n padding: 0;\n margin-left: 2px;\n .circle {\n width: 16px;\n height: 16px;\n border-radius: 50%;\n font-size: 5px;\n display: grid;\n place-items: center;\n margin: auto;\n padding: 0;\n }\n .ic {\n font-size: 8px;\n }\n"])));
11498
12887
 
11499
- var _templateObject$M, _templateObject2$x, _templateObject3$o;
11500
- var CheckoutSummaryContainer = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n border-radius: 20px;\n padding: max(1.5em, 30px);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n max-width: 25rem;\n min-width: min(25rem, 95%);\n font-size: 16px;\n margin-top: 6.15em;\n @media only screen and (max-width: 1200px) {\n margin-top: 0;\n }\n"])), function (props) {
12888
+ var _templateObject$Q, _templateObject2$z, _templateObject3$q;
12889
+ var CheckoutSummaryContainer = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n border-radius: 20px;\n padding: max(1.5em, 30px);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n max-width: 25rem;\n min-width: min(25rem, 95%);\n font-size: 16px;\n margin-top: 6.15em;\n @media only screen and (max-width: 1200px) {\n margin-top: 0;\n }\n"])), function (props) {
11501
12890
  return props.bg || 'rgba(255, 240, 236, 1)';
11502
12891
  }, function (props) {
11503
12892
  return props.color || ' rgba(50, 50, 50, 1)';
11504
12893
  });
11505
- var TextRow = styled.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n max-width: 90%;\n margin-bottom: 0.8rem;\n padding-bottom: 0.8rem;\n width: 90%;\n border-bottom: 1px solid #f7f7f7;\n .text {\n font-size: 1.1em;\n text-transform: capitalize;\n }\n .total {\n font-size: 1.65em;\n font-weight: 800;\n }\n"])));
11506
- var FilledInfo = styled.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n margin-bottom: 2em;\n .heading {\n font-size: 1.25em;\n font-weight: 800;\n margin-bottom: 0.8em;\n }\n\n p {\n font-size: 0.875em;\n text-transform: capitalize;\n max-width: 60%;\n }\n .bold {\n font-weight: 700;\n margin-bottom: 0.8em;\n max-width: 300px;\n width: fit-content;\n }\n .payment {\n width: 70px;\n height: 48px;\n background: #ffffff;\n border-radius: 15.875px;\n display: grid;\n place-items: center;\n overflow: hidden;\n }\n .blank {\n opacity: 0;\n }\n"])));
12894
+ var TextRow = styled.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n max-width: 90%;\n margin-bottom: 0.8rem;\n padding-bottom: 0.8rem;\n width: 90%;\n border-bottom: 1px solid #f7f7f7;\n .text {\n font-size: 1.1em;\n text-transform: capitalize;\n }\n .total {\n font-size: 1.65em;\n font-weight: 800;\n }\n"])));
12895
+ var FilledInfo = styled.div(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n margin-bottom: 2em;\n .heading {\n font-size: 1.25em;\n font-weight: 800;\n margin-bottom: 0.8em;\n }\n\n p {\n font-size: 0.875em;\n text-transform: capitalize;\n max-width: 60%;\n }\n .bold {\n font-weight: 700;\n margin-bottom: 0.8em;\n max-width: 300px;\n width: fit-content;\n }\n .payment {\n width: 70px;\n height: 48px;\n background: #ffffff;\n border-radius: 15.875px;\n display: grid;\n place-items: center;\n overflow: hidden;\n }\n .blank {\n opacity: 0;\n }\n"])));
11507
12896
 
11508
12897
  var CheckoutSummary = function CheckoutSummary(_ref) {
11509
12898
  var billingInformation = _ref.billingInformation,
@@ -11575,14 +12964,14 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
11575
12964
  }, renderMoney(orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.adjustmentValue))));
11576
12965
  };
11577
12966
 
11578
- var _templateObject$N, _templateObject2$y, _templateObject3$p, _templateObject4$k, _templateObject5$g, _templateObject6$e, _templateObject7$a, _templateObject8$8, _templateObject9$6, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2;
11579
- var StepContainer = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 60em;\n background: white;\n padding: 1em 2em;\n background: #ffffff;\n border-radius: 20px;\n margin-left: 2em;\n margin-top: -2em;\n margin-bottom: 1em;\n // @media screen and (max-width: 1200px) {\n // width: 80vw;\n // min-width: 0;\n // }\n @media screen and (max-width: 768px) {\n // width: 96%;\n margin-left: 1em;\n padding: 0.8em;\n }\n @media screen and (max-width: 600px) {\n // width: 94%;\n margin-left: 1.2em;\n }\n"])));
11580
- var StepsContent = styled.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n padding-left: 1.565em;\n min-height: max-content;\n .MuiOutlinedInput-root {\n background: ", ";\n }\n\n p {\n font-size: 0.75em;\n }\n .bold {\n text-transform: uppercase;\n word-spacing: 5px;\n margin-top: 0.95em;\n span {\n font-weight: 600;\n cursor: pointer;\n font-size: 0.94rem;\n }\n .red {\n color: ", ";\n }\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n width: 100%;\n }\n"])), function (props) {
12967
+ var _templateObject$R, _templateObject2$A, _templateObject3$r, _templateObject4$m, _templateObject5$i, _templateObject6$g, _templateObject7$c, _templateObject8$a, _templateObject9$7, _templateObject10$5, _templateObject11$4, _templateObject12$3, _templateObject13$3, _templateObject14$3, _templateObject15$3, _templateObject16$3, _templateObject17$3, _templateObject18$3;
12968
+ var StepContainer = styled.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 60em;\n background: white;\n padding: 1em 2em;\n background: #ffffff;\n border-radius: 20px;\n margin-left: 2em;\n margin-top: -2em;\n margin-bottom: 1em;\n // @media screen and (max-width: 1200px) {\n // width: 80vw;\n // min-width: 0;\n // }\n @media screen and (max-width: 768px) {\n // width: 96%;\n margin-left: 1em;\n padding: 0.8em;\n }\n @media screen and (max-width: 600px) {\n // width: 94%;\n margin-left: 1.2em;\n }\n"])));
12969
+ var StepsContent = styled.div(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n padding-left: 1.565em;\n min-height: max-content;\n .MuiOutlinedInput-root {\n background: ", ";\n }\n\n p {\n font-size: 0.75em;\n }\n .bold {\n text-transform: uppercase;\n word-spacing: 5px;\n margin-top: 0.95em;\n span {\n font-weight: 600;\n cursor: pointer;\n font-size: 0.94rem;\n }\n .red {\n color: ", ";\n }\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n width: 100%;\n }\n"])), function (props) {
11581
12970
  return 'transparent' + '!important';
11582
12971
  }, function (props) {
11583
12972
  return props.bg || 'red';
11584
12973
  });
11585
- var StepsHeaderContainer = styled.div(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n color: #323232;\n /* padding: ", "; */\n margin-bottom: ", ";\n margin-top: ", ";\n margin-left: ", ";\n /* color: grey; */\n border-bottom: 1px solid #f6f6f6;\n background: #ffffff;\n border-radius: 20px;\n // max-width: 900px;\n min-height: 4.35em;\n max-height: 4.35em;\n padding: ", ";\n h5 {\n font-size: 16px;\n font-weight: 600;\n text-transform: capitalize;\n margin-left: 0.6em;\n }\n .icon {\n font-size: 1.3em;\n margin-right: 8px;\n }\n .dropIcon {\n font-size: 1.4em;\n cursor: pointer;\n transform: rotate(-90deg);\n transition: 0.3s;\n color: rgba(50, 50, 50, 0.75);\n cursor: ", ";\n }\n .red {\n font-weight: 600;\n color: #fd0015;\n font-size: inherit;\n }\n @media screen and (max-width: 768px) {\n max-width: 97%;\n margin-left: 0.5em;\n padding-right: 1em;\n h5 {\n font-size: 12px;\n }\n }\n"])), function (props) {
12974
+ var StepsHeaderContainer = styled.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n color: #323232;\n /* padding: ", "; */\n margin-bottom: ", ";\n margin-top: ", ";\n margin-left: ", ";\n /* color: grey; */\n border-bottom: 1px solid #f6f6f6;\n background: #ffffff;\n border-radius: 20px;\n // max-width: 900px;\n min-height: 4.35em;\n max-height: 4.35em;\n padding: ", ";\n h5 {\n font-size: 16px;\n font-weight: 600;\n text-transform: capitalize;\n margin-left: 0.6em;\n }\n .icon {\n font-size: 1.3em;\n margin-right: 8px;\n }\n .dropIcon {\n font-size: 1.4em;\n cursor: pointer;\n transform: rotate(-90deg);\n transition: 0.3s;\n color: rgba(50, 50, 50, 0.75);\n cursor: ", ";\n }\n .red {\n font-weight: 600;\n color: #fd0015;\n font-size: inherit;\n }\n @media screen and (max-width: 768px) {\n max-width: 97%;\n margin-left: 0.5em;\n padding-right: 1em;\n h5 {\n font-size: 12px;\n }\n }\n"])), function (props) {
11586
12975
  return props.single ? '1.8em 2em' : '1em 0';
11587
12976
  }, function (props) {
11588
12977
  return props.single ? '-1.56em' : '1em';
@@ -11595,11 +12984,11 @@ var StepsHeaderContainer = styled.div(_templateObject3$p || (_templateObject3$p
11595
12984
  }, function (props) {
11596
12985
  return props.username ? 'not-allowed' : 'pointer';
11597
12986
  });
11598
- var TextFeildContainer = styled.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n label {\n color: rgba(107, 106, 106, 0.6) !important;\n }\n background: ", ";\n border-radius: 10px;\n && {\n input {\n font-size: 0.875em !important;\n color: black;\n &::placeholder {\n font-size: 0.975em !important;\n }\n }\n .icon {\n color: black;\n font-size: 1em;\n }\n }\n"])), function (props) {
12987
+ var TextFeildContainer = styled.div(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n label {\n color: rgba(107, 106, 106, 0.6) !important;\n }\n background: ", ";\n border-radius: 10px;\n && {\n input {\n font-size: 0.875em !important;\n color: black;\n &::placeholder {\n font-size: 0.975em !important;\n }\n }\n .icon {\n color: black;\n font-size: 1em;\n }\n }\n"])), function (props) {
11599
12988
  var _props$theme, _props$theme$input;
11600
12989
  return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : (_props$theme$input = _props$theme.input) === null || _props$theme$input === void 0 ? void 0 : _props$theme$input.bg) || 'transparent';
11601
12990
  });
11602
- var CommonCheckoutBtn = styled.button(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n border: none;\n outline: none;\n width: ", ";\n height: ", ";\n background: ", ";\n display: grid;\n place-items: center;\n color: white;\n margin: 0 1em;\n font-weight: 500;\n letter-spacing: 1px;\n text-transform: ", ";\n transition: 0.4s;\n cursor: ", ";\n &:hover,\n &:focus {\n opacity: 0.7;\n }\n"])), function (props) {
12991
+ var CommonCheckoutBtn = styled.button(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n border: none;\n outline: none;\n width: ", ";\n height: ", ";\n background: ", ";\n display: grid;\n place-items: center;\n color: white;\n margin: 0 1em;\n font-weight: 500;\n letter-spacing: 1px;\n text-transform: ", ";\n transition: 0.4s;\n cursor: ", ";\n &:hover,\n &:focus {\n opacity: 0.7;\n }\n"])), function (props) {
11603
12992
  return props.width || '8.05em';
11604
12993
  }, function (props) {
11605
12994
  return props.height || '2.25em';
@@ -11612,7 +13001,7 @@ var CommonCheckoutBtn = styled.button(_templateObject5$g || (_templateObject5$g
11612
13001
  });
11613
13002
  var Select = styled.div.attrs({
11614
13003
  className: 'checkout-input'
11615
- })(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 54px;\n border-radius: 10px;\n background: ", ";\n outline: none;\n border: none;\n padding: 0 1em;\n cursor: pointer;\n select {\n width: 100%;\n height: 100%;\n border: none;\n outline: none;\n padding: 0.5em 0;\n color: rgba(107, 106, 106, 0.6);\n background: ", ";\n }\n"])), function (props) {
13004
+ })(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 54px;\n border-radius: 10px;\n background: ", ";\n outline: none;\n border: none;\n padding: 0 1em;\n cursor: pointer;\n select {\n width: 100%;\n height: 100%;\n border: none;\n outline: none;\n padding: 0.5em 0;\n color: rgba(107, 106, 106, 0.6);\n background: ", ";\n }\n"])), function (props) {
11616
13005
  var _props$theme2, _props$theme2$input;
11617
13006
  return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : (_props$theme2$input = _props$theme2.input) === null || _props$theme2$input === void 0 ? void 0 : _props$theme2$input.bg) || 'transparent';
11618
13007
  }, function (props) {
@@ -11620,12 +13009,12 @@ var Select = styled.div.attrs({
11620
13009
  });
11621
13010
  var SaveButton = styled.button.attrs({
11622
13011
  className: 'checkout-btn'
11623
- })(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n border: none;\n outline: none;\n font-size: 0.8125em;\n text-transform: uppercase;\n font-weight: 600;\n border-radius: 7px;\n padding: 0.55em 1em;\n background: ", ";\n display: grid;\n place-items: center;\n color: white;\n margin: 1em 0;\n letter-spacing: 1px;\n transition: 0.4s;\n cursor: ", ";\n &:hover,\n &:focus {\n opacity: 0.7;\n }\n"])), function (props) {
13012
+ })(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n border: none;\n outline: none;\n font-size: 0.8125em;\n text-transform: uppercase;\n font-weight: 600;\n border-radius: 7px;\n padding: 0.55em 1em;\n background: ", ";\n display: grid;\n place-items: center;\n color: white;\n margin: 1em 0;\n letter-spacing: 1px;\n transition: 0.4s;\n cursor: ", ";\n &:hover,\n &:focus {\n opacity: 0.7;\n }\n"])), function (props) {
11624
13013
  return props.color || '#FD0015';
11625
13014
  }, function (props) {
11626
13015
  return props.disabled ? 'not-allowed' : 'pointer';
11627
13016
  });
11628
- var ButtonRowContainer = styled.div(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n button {\n width: 4.862em;\n height: 1.96em;\n border-radius: 0.43em;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n font-weight: 600;\n letter-spacing: 1px;\n color: white;\n opacity: ", ";\n background-color: ", ";\n border: 2px solid\n ", ";\n cursor: ", ";\n }\n .back {\n font-size: 0.875em;\n font-weight: 500;\n justify-content: flex-start;\n margin-right: 0.2em;\n color: #323232;\n background: transparent;\n border: none;\n cursor: ", ";\n font-size: 0.8em;\n transition: 0.4s;\n opacity: 1;\n .icon {\n font-size: 1.2em;\n margin-right: 2px;\n }\n &:hover,\n &:focus {\n letter-spacing: 1px;\n outline: none;\n }\n }\n"])), function (props) {
13017
+ var ButtonRowContainer = styled.div(_templateObject8$a || (_templateObject8$a = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n button {\n width: 4.862em;\n height: 1.96em;\n border-radius: 0.43em;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n font-weight: 600;\n letter-spacing: 1px;\n color: white;\n opacity: ", ";\n background-color: ", ";\n border: 2px solid\n ", ";\n cursor: ", ";\n }\n .back {\n font-size: 0.875em;\n font-weight: 500;\n justify-content: flex-start;\n margin-right: 0.2em;\n color: #323232;\n background: transparent;\n border: none;\n cursor: ", ";\n font-size: 0.8em;\n transition: 0.4s;\n opacity: 1;\n .icon {\n font-size: 1.2em;\n margin-right: 2px;\n }\n &:hover,\n &:focus {\n letter-spacing: 1px;\n outline: none;\n }\n }\n"])), function (props) {
11629
13018
  return props.disabledNext && '0.5';
11630
13019
  }, function (props) {
11631
13020
  return props.color || '#fd0015';
@@ -11636,7 +13025,7 @@ var ButtonRowContainer = styled.div(_templateObject8$8 || (_templateObject8$8 =
11636
13025
  }, function (props) {
11637
13026
  return props.disabledBack ? 'not-allowed' : 'pointer';
11638
13027
  });
11639
- var CheckBoxRow = styled.div(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n cursor: pointer;\n padding: ", ";\n margin-left: ", ";\n p {\n font-size: 0.85em;\n }\n\n button {\n border: none;\n border-radius: 4px;\n padding: 0.8rem 3rem;\n background: ", ";\n color: white;\n text-transform: uppercase;\n font-weight: 600;\n margin: 1em;\n margin-top: 2em;\n transition: 0.4s;\n cursor: pointer;\n min-width: max-content;\n &:hover {\n padding: 0.7em 2.7em;\n }\n }\n .back {\n background-color: ", ";\n padding: 0.8em 2em;\n &:hover {\n padding: 0.8em 2.4em;\n }\n }\n .bold,\n .red {\n font-weight: 600;\n font-size: 1.125em;\n }\n .red {\n margin-left: 0.5em;\n color: ", ";\n }\n .medium {\n font-weight: 600;\n font-size: 1em;\n }\n @media only screen and (max-width: 600px) {\n button {\n &:hover {\n padding: 0.8em 3em;\n }\n }\n\n .back {\n &:hover {\n padding: 0.8em 2em;\n }\n margin-left: 0;\n }\n }\n"])), function (props) {
13028
+ var CheckBoxRow = styled.div(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n cursor: pointer;\n padding: ", ";\n margin-left: ", ";\n p {\n font-size: 0.85em;\n }\n\n button {\n border: none;\n border-radius: 4px;\n padding: 0.8rem 3rem;\n background: ", ";\n color: white;\n text-transform: uppercase;\n font-weight: 600;\n margin: 1em;\n margin-top: 2em;\n transition: 0.4s;\n cursor: pointer;\n min-width: max-content;\n &:hover {\n padding: 0.7em 2.7em;\n }\n }\n .back {\n background-color: ", ";\n padding: 0.8em 2em;\n &:hover {\n padding: 0.8em 2.4em;\n }\n }\n .bold,\n .red {\n font-weight: 600;\n font-size: 1.125em;\n }\n .red {\n margin-left: 0.5em;\n color: ", ";\n }\n .medium {\n font-weight: 600;\n font-size: 1em;\n }\n @media only screen and (max-width: 600px) {\n button {\n &:hover {\n padding: 0.8em 3em;\n }\n }\n\n .back {\n &:hover {\n padding: 0.8em 2em;\n }\n margin-left: 0;\n }\n }\n"])), function (props) {
11640
13029
  return props.padding;
11641
13030
  }, function (props) {
11642
13031
  return props.marginLeft;
@@ -11647,14 +13036,14 @@ var CheckBoxRow = styled.div(_templateObject9$6 || (_templateObject9$6 = _tagged
11647
13036
  }, function (prop) {
11648
13037
  return prop.colorText || 'red';
11649
13038
  });
11650
- var CreditCardFextField = styled.div(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n label {\n color: rgba(107, 106, 106, 0.6) !important;\n }\n .MuiOutlinedInput-root {\n background: ", ";\n }\n .save-btn {\n background: ", ";\n }\n"])), function (prop) {
13039
+ var CreditCardFextField = styled.div(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n label {\n color: rgba(107, 106, 106, 0.6) !important;\n }\n .MuiOutlinedInput-root {\n background: ", ";\n }\n .save-btn {\n background: ", ";\n }\n"])), function (prop) {
11651
13040
  return prop.bgInput + '!important' || '';
11652
13041
  }, function (prop) {
11653
13042
  return prop.btnBg + '!important' || '';
11654
13043
  });
11655
- var CardHeading = styled.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n font-weight: 600;\n margin-bottom: 1rem;\n"])));
11656
- var DeliveryOptionContainer = styled.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
11657
- var DeliveryOption = styled.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n max-width: 691px;\n min-height: 40px;\n padding: 0 1em;\n border: 1px solid transparent;\n transition: 0.3s;\n cursor: pointer;\n background-color: ", ";\n border: ", ";\n border-bottom: ", ";\n border-radius: 5px;\n &:last-child {\n border-bottom: ", ";\n }\n &:hover {\n background-color: ", ";\n border: ", ";\n border-radius: 5px;\n }\n p {\n font-weight: 500;\n color: black;\n font-size: 0.95em;\n text-transform: capitalize;\n }\n .circle {\n border-radius: 50%;\n display: grid;\n place-items: center;\n background: linear-gradient(345.48deg, #3c332a -131.29%, #ffffff 124.82%);\n margin-right: 1em;\n width: 14px;\n height: 14px;\n min-width: 14px;\n min-height: 14px;\n cursor: pointer;\n .inner {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n display: grid;\n place-items: center;\n background: linear-gradient(\n 326.37deg,\n rgba(67, 58, 42, 0.9) -219.66%,\n rgba(255, 255, 255, 0.9) 90.45%\n );\n box-shadow: inset -1px -1px 1px rgba(255, 255, 255, 0.45),\n inset 0px 0px 10px rgba(0, 0, 0, 0.2);\n }\n .fill {\n width: 6px;\n height: 6px;\n background: radial-gradient(\n 15.79% 15.79% at 36.84% 31.58%,\n #ffffff 0%,\n rgba(255, 255, 255, 0) 100%\n )\n /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */,\n linear-gradient(\n 358.85deg,\n rgba(157, 18, 30, 0.2) -19.81%,\n rgba(12, 96, 157, 0) 64.74%\n ),\n radial-gradient(50% 50% at 50% 50%, #fab0b6 0%, #fd0015 100%), #fd0015;\n background-blend-mode: normal, multiply, normal, normal;\n box-shadow: 0px 0.5px 0px rgba(253, 0, 21, 0.25),\n 0px 1px 1px rgba(253, 0, 21, 0.2);\n border-radius: 50%;\n background: ", ";\n }\n }\n .amount {\n margin-left: auto;\n color: ", ";\n font-weight: ", ";\n font-size: 0.95em;\n }\n"])), function (props) {
13044
+ var CardHeading = styled.div(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n font-weight: 600;\n margin-bottom: 1rem;\n"])));
13045
+ var DeliveryOptionContainer = styled.div(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
13046
+ var DeliveryOption = styled.div(_templateObject13$3 || (_templateObject13$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n max-width: 691px;\n min-height: 40px;\n padding: 0 1em;\n border: 1px solid transparent;\n transition: 0.3s;\n cursor: pointer;\n background-color: ", ";\n border: ", ";\n border-bottom: ", ";\n border-radius: 5px;\n &:last-child {\n border-bottom: ", ";\n }\n &:hover {\n background-color: ", ";\n border: ", ";\n border-radius: 5px;\n }\n p {\n font-weight: 500;\n color: black;\n font-size: 0.95em;\n text-transform: capitalize;\n }\n .circle {\n border-radius: 50%;\n display: grid;\n place-items: center;\n background: linear-gradient(345.48deg, #3c332a -131.29%, #ffffff 124.82%);\n margin-right: 1em;\n width: 14px;\n height: 14px;\n min-width: 14px;\n min-height: 14px;\n cursor: pointer;\n .inner {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n display: grid;\n place-items: center;\n background: linear-gradient(\n 326.37deg,\n rgba(67, 58, 42, 0.9) -219.66%,\n rgba(255, 255, 255, 0.9) 90.45%\n );\n box-shadow: inset -1px -1px 1px rgba(255, 255, 255, 0.45),\n inset 0px 0px 10px rgba(0, 0, 0, 0.2);\n }\n .fill {\n width: 6px;\n height: 6px;\n background: radial-gradient(\n 15.79% 15.79% at 36.84% 31.58%,\n #ffffff 0%,\n rgba(255, 255, 255, 0) 100%\n )\n /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */,\n linear-gradient(\n 358.85deg,\n rgba(157, 18, 30, 0.2) -19.81%,\n rgba(12, 96, 157, 0) 64.74%\n ),\n radial-gradient(50% 50% at 50% 50%, #fab0b6 0%, #fd0015 100%), #fd0015;\n background-blend-mode: normal, multiply, normal, normal;\n box-shadow: 0px 0.5px 0px rgba(253, 0, 21, 0.25),\n 0px 1px 1px rgba(253, 0, 21, 0.2);\n border-radius: 50%;\n background: ", ";\n }\n }\n .amount {\n margin-left: auto;\n color: ", ";\n font-weight: ", ";\n font-size: 0.95em;\n }\n"])), function (props) {
11658
13047
  return props.hovered ? props.bg : '';
11659
13048
  }, function (props) {
11660
13049
  return props.hovered ? "1px solid " + props.border : "1px solid" + props.bg;
@@ -11673,19 +13062,19 @@ var DeliveryOption = styled.div(_templateObject13$2 || (_templateObject13$2 = _t
11673
13062
  }, function (props) {
11674
13063
  return props.hovered ? '800' : '700';
11675
13064
  });
11676
- var CreditCard = styled.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n width: 70px;\n min-height: 48px;\n max-height: 50px;\n background-color: white;\n border: 3px solid rgba(217, 217, 217, 0.1);\n display: grid;\n place-items: center;\n margin: auto;\n cursor: pointer;\n overflow: hidden;\n border-radius: 5px;\n transition: 0.1s;\n border: 1px solid transparent;\n text-align: center;\n p {\n font-size: 10px;\n }\n"])));
11677
- var PaymentLi = styled.div(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n margin-bottom: 1.5em;\n cursor: pointer;\n .circle {\n /* background: #323232; */\n width: 16px;\n height: 16px;\n display: grid;\n place-items: center;\n border-radius: 50%;\n border: 1px solid #323232;\n margin-right: 1em;\n }\n .innerCircle {\n background: #323232;\n border-radius: 50%;\n width: 6px;\n height: 6px;\n }\n p {\n font-size: 1em;\n color: black;\n text-transform: capitalize;\n font-weight: 500;\n }\n"])));
11678
- var StyledTableRow = styled(TableRow)(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n && {\n box-shadow: none;\n border: none;\n background-color: ", ";\n p {\n font-size: 0.9em;\n }\n .max {\n min-width: max-content;\n word-break: break-word;\n @media only screen and (max-width: 768px) {\n min-width: 5rem;\n }\n }\n .red {\n color: ", "\n font-weight: inherit;\n }\n .price {\n font-weight: 600;\n }\n .sm {\n font-weight: 500;\n }\n .bolder {\n font-weight: 700;\n font-size: 1em;\n }\n @media only screen and (max-width: 600px) {\n p {\n font-size: 12px;\n }\n .sm {\n font-size: 10px;\n }\n .price,\n .red {\n font-size: 10px;\n }\n .total {\n font-size: 14px;\n }\n .bolder {\n font-size: 12px;\n }\n }\n }\n"])), function (props) {
13065
+ var CreditCard = styled.div(_templateObject14$3 || (_templateObject14$3 = _taggedTemplateLiteralLoose(["\n width: 70px;\n min-height: 48px;\n max-height: 50px;\n background-color: white;\n border: 3px solid rgba(217, 217, 217, 0.1);\n display: grid;\n place-items: center;\n margin: auto;\n cursor: pointer;\n overflow: hidden;\n border-radius: 5px;\n transition: 0.1s;\n border: 1px solid transparent;\n text-align: center;\n p {\n font-size: 10px;\n }\n"])));
13066
+ var PaymentLi = styled.div(_templateObject15$3 || (_templateObject15$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n margin-bottom: 1.5em;\n cursor: pointer;\n .circle {\n /* background: #323232; */\n width: 16px;\n height: 16px;\n display: grid;\n place-items: center;\n border-radius: 50%;\n border: 1px solid #323232;\n margin-right: 1em;\n }\n .innerCircle {\n background: #323232;\n border-radius: 50%;\n width: 6px;\n height: 6px;\n }\n p {\n font-size: 1em;\n color: black;\n text-transform: capitalize;\n font-weight: 500;\n }\n"])));
13067
+ var StyledTableRow = styled(TableRow)(_templateObject16$3 || (_templateObject16$3 = _taggedTemplateLiteralLoose(["\n && {\n box-shadow: none;\n border: none;\n background-color: ", ";\n p {\n font-size: 0.9em;\n }\n .max {\n min-width: max-content;\n word-break: break-word;\n @media only screen and (max-width: 768px) {\n min-width: 5rem;\n }\n }\n .red {\n color: ", "\n font-weight: inherit;\n }\n .price {\n font-weight: 600;\n }\n .sm {\n font-weight: 500;\n }\n .bolder {\n font-weight: 700;\n font-size: 1em;\n }\n @media only screen and (max-width: 600px) {\n p {\n font-size: 12px;\n }\n .sm {\n font-size: 10px;\n }\n .price,\n .red {\n font-size: 10px;\n }\n .total {\n font-size: 14px;\n }\n .bolder {\n font-size: 12px;\n }\n }\n }\n"])), function (props) {
11679
13068
  return props.colored ? props.bg || "'rgba(255, 240, 236, 1)'" : 'white';
11680
13069
  }, function (props) {
11681
13070
  return props.bg || 'red';
11682
13071
  });
11683
- var StyledTableCell = styled(TableCell)(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n && {\n border: none;\n font-size: 1em;\n .noAboveSm {\n display: none;\n }\n @media only screen and (max-width: 768px) {\n display: ", ";\n padding: 0.5em 0.3em;\n .noAboveSm {\n display: inline-block;\n margin-right: 6px;\n }\n }\n @media only screen and (min-width: 768px) {\n display: ", ";\n }\n }\n"])), function (props) {
13072
+ var StyledTableCell = styled(TableCell)(_templateObject17$3 || (_templateObject17$3 = _taggedTemplateLiteralLoose(["\n && {\n border: none;\n font-size: 1em;\n .noAboveSm {\n display: none;\n }\n @media only screen and (max-width: 768px) {\n display: ", ";\n padding: 0.5em 0.3em;\n .noAboveSm {\n display: inline-block;\n margin-right: 6px;\n }\n }\n @media only screen and (min-width: 768px) {\n display: ", ";\n }\n }\n"])), function (props) {
11684
13073
  return props.noSmall ? 'none' : '';
11685
13074
  }, function (props) {
11686
13075
  return props.noAboveSmall ? 'none' : '';
11687
13076
  });
11688
- var BottomGrid = styled(Grid)(_templateObject18$2 || (_templateObject18$2 = _taggedTemplateLiteralLoose(["\n .bold {\n font-weight: 600;\n text-transform: capitalize;\n margin: 1em 0;\n font-size: 1em;\n }\n .icon {\n font-size: 1.6em;\n color: ", ";\n }\n textarea {\n width: 100%;\n resize: none;\n border: 1px solid\n ", ";\n border-radius: 4px;\n margin-bottom: 2em;\n padding: 1em;\n background: ", ";\n }\n p {\n font-size: 12px;\n .ul {\n text-decoration: underline;\n font-size: inherit;\n }\n }\n .bottom {\n margin-left: 3em;\n font-style: italic;\n span {\n font-weight: 600;\n color: ", ";\n\n cursor: pointer;\n &:hover {\n text-decoration: underline;\n }\n }\n }\n"])), function (prop) {
13077
+ var BottomGrid = styled(Grid)(_templateObject18$3 || (_templateObject18$3 = _taggedTemplateLiteralLoose(["\n .bold {\n font-weight: 600;\n text-transform: capitalize;\n margin: 1em 0;\n font-size: 1em;\n }\n .icon {\n font-size: 1.6em;\n color: ", ";\n }\n textarea {\n width: 100%;\n resize: none;\n border: 1px solid\n ", ";\n border-radius: 4px;\n margin-bottom: 2em;\n padding: 1em;\n background: ", ";\n }\n p {\n font-size: 12px;\n .ul {\n text-decoration: underline;\n font-size: inherit;\n }\n }\n .bottom {\n margin-left: 3em;\n font-style: italic;\n span {\n font-weight: 600;\n color: ", ";\n\n cursor: pointer;\n &:hover {\n text-decoration: underline;\n }\n }\n }\n"])), function (prop) {
11689
13078
  return prop.primaryColor || 'rgba(107, 106, 106, 1)';
11690
13079
  }, function (prop) {
11691
13080
  var _prop$bgTextArea;
@@ -13135,7 +14524,7 @@ var erSessionStorage = {
13135
14524
  }
13136
14525
  };
13137
14526
 
13138
- var _templateObject$O, _templateObject2$z;
14527
+ var _templateObject$S, _templateObject2$B;
13139
14528
  var ConsentForm = function ConsentForm(_ref) {
13140
14529
  var apiEndPoint = _ref.apiEndPoint,
13141
14530
  token = _ref.token,
@@ -13301,7 +14690,7 @@ var InfoComponent = function InfoComponent(_ref2) {
13301
14690
  });
13302
14691
  }))));
13303
14692
  };
13304
- var InfoContainer$1 = styled.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n h2 {\n border-bottom: 1px solid #00000040;\n margin-bottom: 0.8rem;\n }\n p {\n font-size: 1.2rem;\n }\n"])));
14693
+ var InfoContainer$1 = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n h2 {\n border-bottom: 1px solid #00000040;\n margin-bottom: 0.8rem;\n }\n p {\n font-size: 1.2rem;\n }\n"])));
13305
14694
  var InfoItem = function InfoItem(_ref3) {
13306
14695
  var name = _ref3.name,
13307
14696
  value = _ref3.value;
@@ -13314,7 +14703,7 @@ var InfoItem = function InfoItem(_ref3) {
13314
14703
  item: true
13315
14704
  }, /*#__PURE__*/React__default.createElement("p", null, value))));
13316
14705
  };
13317
- var InfoItemContainer = styled.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n background: #00000010;\n padding: 0.5rem;\n"])));
14706
+ var InfoItemContainer = styled.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n background: #00000010;\n padding: 0.5rem;\n"])));
13318
14707
 
13319
14708
  var PaypalComponent = function PaypalComponent(_ref) {
13320
14709
  var apiEndPoint = _ref.apiEndPoint,
@@ -13508,7 +14897,7 @@ var Step4 = function Step4(_ref) {
13508
14897
  icon: /*#__PURE__*/React__default.createElement(MdOutlineStickyNote2, {
13509
14898
  className: "icon"
13510
14899
  })
13511
- }), /*#__PURE__*/React__default.createElement(StepsContent, null, /*#__PURE__*/React__default.createElement(TableContainer$3, null, /*#__PURE__*/React__default.createElement(Table, {
14900
+ }), /*#__PURE__*/React__default.createElement(StepsContent, null, /*#__PURE__*/React__default.createElement(TableContainer$4, null, /*#__PURE__*/React__default.createElement(Table, {
13512
14901
  "aria-label": "customized table",
13513
14902
  sx: {
13514
14903
  maxHeight: '600px'
@@ -14689,8 +16078,8 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref9) {
14689
16078
  }, props)));
14690
16079
  };
14691
16080
 
14692
- var _templateObject$P, _templateObject2$A, _templateObject3$q;
14693
- var columns = [{
16081
+ var _templateObject$T, _templateObject2$C, _templateObject3$s;
16082
+ var columns$1 = [{
14694
16083
  id: 'id',
14695
16084
  label: 'Id',
14696
16085
  isSearchable: 'true'
@@ -14753,7 +16142,7 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
14753
16142
  };
14754
16143
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TitleContainer$3, {
14755
16144
  primaryColor: primaryColor
14756
- }, /*#__PURE__*/React__default.createElement("span", null, currentTimeText()), /*#__PURE__*/React__default.createElement("b", null, " ", name, "!")), /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
16145
+ }, /*#__PURE__*/React__default.createElement("span", null, currentTimeText()), /*#__PURE__*/React__default.createElement("b", null, " ", name, "!")), /*#__PURE__*/React__default.createElement(TableContainer$3, null, /*#__PURE__*/React__default.createElement(APITable, {
14757
16146
  cacheFilters: true,
14758
16147
  extraFilterParams: queryParams,
14759
16148
  listUpdate: triggerTableData,
@@ -14762,7 +16151,7 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
14762
16151
  x: 1000
14763
16152
  },
14764
16153
  tableId: "master-child-map",
14765
- columns: columns,
16154
+ columns: columns$1,
14766
16155
  apiData: {
14767
16156
  url: "/vendor/portal/purchaseOrder/list",
14768
16157
  apiEndPoint: API_BASE_URL,
@@ -14804,15 +16193,15 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
14804
16193
  setTriggerTableData: setTriggerTableData
14805
16194
  })));
14806
16195
  };
14807
- var TableContainer$2 = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n margin: 0.5rem;\n border-radius: 14px;\n"])));
14808
- var TypographyContainer$9 = styled(Typography)(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
16196
+ var TableContainer$3 = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n margin: 0.5rem;\n border-radius: 14px;\n"])));
16197
+ var TypographyContainer$9 = styled(Typography)(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
14809
16198
  return props.fontColor;
14810
16199
  });
14811
- var TitleContainer$3 = styled.h4(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n font-size: 2.7rem;\n span {\n color: '#000';\n font-weight: 500;\n }\n b {\n color: ", ";\n }\n @media only screen and (max-width: 608px) {\n font-size: 2.2rem;\n }\n"])), function (props) {
16200
+ var TitleContainer$3 = styled.h4(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n font-size: 2.7rem;\n span {\n color: '#000';\n font-weight: 500;\n }\n b {\n color: ", ";\n }\n @media only screen and (max-width: 608px) {\n font-size: 2.2rem;\n }\n"])), function (props) {
14812
16201
  return props.primaryColor;
14813
16202
  });
14814
16203
 
14815
- var columns$1 = [{
16204
+ var columns$2 = [{
14816
16205
  id: 'id',
14817
16206
  label: 'Id'
14818
16207
  }, {
@@ -15106,7 +16495,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15106
16495
  fontSize: '1.2rem'
15107
16496
  }
15108
16497
  }, item === null || item === void 0 ? void 0 : item.value)))));
15109
- }))))))), /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
16498
+ }))))))), /*#__PURE__*/React__default.createElement(TableContainer$3, null, /*#__PURE__*/React__default.createElement(APITable, {
15110
16499
  cacheFilters: true,
15111
16500
  extraFilterParams: queryParams,
15112
16501
  listUpdate: triggerTableData,
@@ -15115,7 +16504,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15115
16504
  x: 1000
15116
16505
  },
15117
16506
  tableId: "master-child-map",
15118
- columns: columns$1,
16507
+ columns: columns$2,
15119
16508
  apiData: {
15120
16509
  url: "/vendor/portal/purchaseOrder/" + (router === null || router === void 0 ? void 0 : (_router$query = router.query) === null || _router$query === void 0 ? void 0 : _router$query.id),
15121
16510
  apiEndPoint: API_BASE_URL,
@@ -15163,7 +16552,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15163
16552
  }, /*#__PURE__*/React__default.createElement(Grid, {
15164
16553
  item: true,
15165
16554
  xs: 6
15166
- }, /*#__PURE__*/React__default.createElement(TableContainer$2, {
16555
+ }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
15167
16556
  style: {
15168
16557
  boxShadow: 'rgba(0,0,0,0.2) 0px 0px 8px 0px'
15169
16558
  }
@@ -15189,7 +16578,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15189
16578
  }))))), /*#__PURE__*/React__default.createElement(Grid, {
15190
16579
  item: true,
15191
16580
  xs: 6
15192
- }, /*#__PURE__*/React__default.createElement(TableContainer$2, {
16581
+ }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
15193
16582
  style: {
15194
16583
  boxShadow: 'rgba(0,0,0,0.2) 0px 0px 8px 0px'
15195
16584
  }
@@ -15215,7 +16604,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15215
16604
  })))))));
15216
16605
  };
15217
16606
 
15218
- var columns$2 = [{
16607
+ var columns$3 = [{
15219
16608
  id: 'name',
15220
16609
  label: 'Name',
15221
16610
  isSearchable: true
@@ -15306,7 +16695,7 @@ var VendorInventory = function VendorInventory(_ref) {
15306
16695
  var onChangeQueryParams = function onChangeQueryParams(data) {
15307
16696
  setTableParams(data);
15308
16697
  };
15309
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
16698
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TableContainer$3, null, /*#__PURE__*/React__default.createElement(APITable, {
15310
16699
  cacheFilters: true,
15311
16700
  extraFilterParams: queryParams,
15312
16701
  listUpdate: triggerTableData,
@@ -15316,7 +16705,7 @@ var VendorInventory = function VendorInventory(_ref) {
15316
16705
  x: 1000
15317
16706
  },
15318
16707
  tableId: "master-child-map",
15319
- columns: columns$2,
16708
+ columns: columns$3,
15320
16709
  apiData: {
15321
16710
  apiEndPoint: API_BASE_URL,
15322
16711
  token: token,
@@ -15379,7 +16768,7 @@ var VendorInventory = function VendorInventory(_ref) {
15379
16768
  })));
15380
16769
  };
15381
16770
 
15382
- var _templateObject$Q, _templateObject2$B, _templateObject3$r, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$b, _templateObject8$9;
16771
+ var _templateObject$U, _templateObject2$D, _templateObject3$t, _templateObject4$n, _templateObject5$j, _templateObject6$h, _templateObject7$d, _templateObject8$b;
15383
16772
  var VendorLogin = function VendorLogin(_ref) {
15384
16773
  var primaryColor = _ref.primaryColor,
15385
16774
  API_BASE_URL = _ref.API_BASE_URL;
@@ -15485,16 +16874,16 @@ var VendorLogin = function VendorLogin(_ref) {
15485
16874
  color: "inherit"
15486
16875
  }) : 'sign in'))))));
15487
16876
  };
15488
- var Container$3 = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background: rgb(255, 255, 255);\n font-size: 16px !important;\n padding: 1rem;\n @media only screen and (max-width: 640px) {\n font-size: 14px !important;\n }\n"])));
15489
- var StyledLogin = styled.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n height: 70%;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 1em;\n align-items: center;\n"])));
15490
- var StyledCard = styled(Card$1)(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: min(100%, 489px);\n height: 100%;\n max-height: 450px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid #cac8c8;\n flex-direction: column;\n background: white;\n // min-height: 500px;\n h4 {\n font-size: 1.5em;\n margin-bottom: 1em;\n margin-top: -2em;\n text-transform: uppercase;\n font-weight: 500;\n }\n button {\n text-transform: capitalize;\n letter-spacing: 1px;\n font-size: 1em;\n font-weight: 500;\n }\n"])));
15491
- var H1 = styled(Typography)(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n margin-top: 1rem;\n"])));
15492
- var StyleInputBx = styled.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n border: 1px solid rgb(202, 200, 200);\n // padding:.5em;\n min-width: min(80vw, 360px);\n // border-radius: 20px;\n overflow: hidden;\n margin: 0.6em 0;\n // padding:.2em 0;\n .icon {\n border-right: 1px solid rgb(202, 200, 200);\n height: 100%;\n padding: 1em;\n display: grid;\n place-items: center;\n width: 15%;\n box-sizing: border-box;\n color: grey;\n }\n input {\n width: 85%;\n height: 100%;\n outline: none;\n padding: 0 1em;\n font-size: 1.1em;\n border: none;\n &:focus,\n &:hover {\n outline: none !important;\n }\n }\n"])));
15493
- var ShowPassBtn = styled.span(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n padding-right: 0.4em;\n display: grid;\n place-items: center;\n font-size: 25px;\n color: grey;\n cursor: pointer;\n"])));
15494
- var ButtonContianer = styled.span(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 360px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n // @include flexRow(space-between);\n margin-top: 1em;\n @media only screen and (max-width: 640px) {\n padding: 0 1em;\n }\n"])));
15495
- var StyledButton$1 = styled(Button)(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteralLoose(["\n width: 100px;\n height: 46px;\n box-sizing: border-box;\n\n span {\n padding: 0.5em;\n }\n @media only screen and (max-width: 640px) {\n height: 35px;\n }\n"])));
16877
+ var Container$3 = styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background: rgb(255, 255, 255);\n font-size: 16px !important;\n padding: 1rem;\n @media only screen and (max-width: 640px) {\n font-size: 14px !important;\n }\n"])));
16878
+ var StyledLogin = styled.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n height: 70%;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 1em;\n align-items: center;\n"])));
16879
+ var StyledCard = styled(Card$1)(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n width: min(100%, 489px);\n height: 100%;\n max-height: 450px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid #cac8c8;\n flex-direction: column;\n background: white;\n // min-height: 500px;\n h4 {\n font-size: 1.5em;\n margin-bottom: 1em;\n margin-top: -2em;\n text-transform: uppercase;\n font-weight: 500;\n }\n button {\n text-transform: capitalize;\n letter-spacing: 1px;\n font-size: 1em;\n font-weight: 500;\n }\n"])));
16880
+ var H1 = styled(Typography)(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n margin-top: 1rem;\n"])));
16881
+ var StyleInputBx = styled.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n border: 1px solid rgb(202, 200, 200);\n // padding:.5em;\n min-width: min(80vw, 360px);\n // border-radius: 20px;\n overflow: hidden;\n margin: 0.6em 0;\n // padding:.2em 0;\n .icon {\n border-right: 1px solid rgb(202, 200, 200);\n height: 100%;\n padding: 1em;\n display: grid;\n place-items: center;\n width: 15%;\n box-sizing: border-box;\n color: grey;\n }\n input {\n width: 85%;\n height: 100%;\n outline: none;\n padding: 0 1em;\n font-size: 1.1em;\n border: none;\n &:focus,\n &:hover {\n outline: none !important;\n }\n }\n"])));
16882
+ var ShowPassBtn = styled.span(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n padding-right: 0.4em;\n display: grid;\n place-items: center;\n font-size: 25px;\n color: grey;\n cursor: pointer;\n"])));
16883
+ var ButtonContianer = styled.span(_templateObject7$d || (_templateObject7$d = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 360px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n // @include flexRow(space-between);\n margin-top: 1em;\n @media only screen and (max-width: 640px) {\n padding: 0 1em;\n }\n"])));
16884
+ var StyledButton$1 = styled(Button)(_templateObject8$b || (_templateObject8$b = _taggedTemplateLiteralLoose(["\n width: 100px;\n height: 46px;\n box-sizing: border-box;\n\n span {\n padding: 0.5em;\n }\n @media only screen and (max-width: 640px) {\n height: 35px;\n }\n"])));
15496
16885
 
15497
- var _templateObject$R, _templateObject2$C, _templateObject3$s, _templateObject4$m;
16886
+ var _templateObject$V, _templateObject2$E, _templateObject3$u, _templateObject4$o;
15498
16887
  var menuItems = [{
15499
16888
  name: 'My Account',
15500
16889
  Icon: RiAccountBoxLine,
@@ -15702,8 +17091,8 @@ var VendorAccountDetails = function VendorAccountDetails(_ref) {
15702
17091
  height: 200
15703
17092
  }) : /*#__PURE__*/React__default.createElement(Fragment$1, null, API_BASE_URL && token && renderListItemComponent(tabValue)))))));
15704
17093
  };
15705
- var Root$e = styled(Box)(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n padding: 1.4rem;\n background-color: #fff;\n @media only screen and (max-width: 608px) {\n padding: 0.5rem;\n }\n"])));
15706
- var MainContainer$4 = styled.div(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n margin: auto;\n min-height: 100vh;\n background-color: #fff;\n max-width: ", ";\n padding: 2rem;\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n @media only screen and (max-width: 608px) {\n padding: 0.5rem;\n }\n"])), function (props) {
17094
+ var Root$e = styled(Box)(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n padding: 1.4rem;\n background-color: #fff;\n @media only screen and (max-width: 608px) {\n padding: 0.5rem;\n }\n"])));
17095
+ var MainContainer$4 = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n margin: auto;\n min-height: 100vh;\n background-color: #fff;\n max-width: ", ";\n padding: 2rem;\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n @media only screen and (max-width: 608px) {\n padding: 0.5rem;\n }\n"])), function (props) {
15707
17096
  return props.open ? '1800px' : '1600px';
15708
17097
  });
15709
17098
  var Main$1 = styled$1('main', {
@@ -15736,12 +17125,12 @@ var Main$1 = styled$1('main', {
15736
17125
  overflow: 'auto'
15737
17126
  });
15738
17127
  });
15739
- var ContainerDrawer$1 = styled(Drawer)(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n // height: 100%;\n margin-right: ", ";\n .MuiDrawer-paper {\n padding: 1rem;\n position: relative;\n z-index: 1;\n background: ", ";\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n }\n"])), function (props) {
17128
+ var ContainerDrawer$1 = styled(Drawer)(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n // height: 100%;\n margin-right: ", ";\n .MuiDrawer-paper {\n padding: 1rem;\n position: relative;\n z-index: 1;\n background: ", ";\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n }\n"])), function (props) {
15740
17129
  return props.open && '2rem';
15741
17130
  }, function (props) {
15742
17131
  return props.primaryColor || transparent;
15743
17132
  });
15744
- var TypographyContainer$a = styled(Typography)(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
17133
+ var TypographyContainer$a = styled(Typography)(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
15745
17134
  return props.fontColor;
15746
17135
  });
15747
17136
 
@@ -15846,7 +17235,7 @@ var getRestockedData = function getRestockedData(_ref3) {
15846
17235
  }
15847
17236
  };
15848
17237
 
15849
- var _templateObject$S;
17238
+ var _templateObject$W;
15850
17239
  var NewArrival = function NewArrival(_ref) {
15851
17240
  var _newArrivalItems$cont;
15852
17241
  var apiEndPoint = _ref.apiEndPoint,
@@ -15997,7 +17386,7 @@ var DateCard = function DateCard(_ref2) {
15997
17386
  }
15998
17387
  }, item === null || item === void 0 ? void 0 : item.count));
15999
17388
  };
16000
- var ProductsGrid = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: 1fr 1fr 1fr 1fr 1fr;\n grid-gap: 1.4rem;\n padding: 2rem 0;\n grid-row-gap: 22px;\n margin-bottom: 4em;\n @media only screen and (max-width: 1445px) {\n grid-template-columns: 1fr 1fr 1fr 1fr;\n }\n @media only screen and (max-width: 1200px) {\n grid-template-columns: 1fr 1fr 1fr;\n }\n @media only screen and (max-width: 580px) {\n grid-template-columns: 1fr 1fr;\n padding-top: 0rem;\n /* width: 100vw; */\n margin-top: 1em;\n grid-gap: 1rem;\n }\n"])));
17389
+ var ProductsGrid = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: 1fr 1fr 1fr 1fr 1fr;\n grid-gap: 1.4rem;\n padding: 2rem 0;\n grid-row-gap: 22px;\n margin-bottom: 4em;\n @media only screen and (max-width: 1445px) {\n grid-template-columns: 1fr 1fr 1fr 1fr;\n }\n @media only screen and (max-width: 1200px) {\n grid-template-columns: 1fr 1fr 1fr;\n }\n @media only screen and (max-width: 580px) {\n grid-template-columns: 1fr 1fr;\n padding-top: 0rem;\n /* width: 100vw; */\n margin-top: 1em;\n grid-gap: 1rem;\n }\n"])));
16001
17390
 
16002
17391
  var ReStockedItem = function ReStockedItem(_ref) {
16003
17392
  var _newArrivalItems$cont;
@@ -16107,7 +17496,7 @@ var ReStockedItem = function ReStockedItem(_ref) {
16107
17496
  })))))));
16108
17497
  };
16109
17498
 
16110
- var _excluded$7 = ["children", "value", "index"];
17499
+ var _excluded$8 = ["children", "value", "index"];
16111
17500
  var NewArrivalPage = function NewArrivalPage(_ref) {
16112
17501
  var apiEndPoint = _ref.apiEndPoint,
16113
17502
  token = _ref.token,
@@ -16215,7 +17604,7 @@ function CustomTabPanel(props) {
16215
17604
  var children = props.children,
16216
17605
  value = props.value,
16217
17606
  index = props.index,
16218
- other = _objectWithoutPropertiesLoose(props, _excluded$7);
17607
+ other = _objectWithoutPropertiesLoose(props, _excluded$8);
16219
17608
  return /*#__PURE__*/React__default.createElement("div", _extends({
16220
17609
  role: "tabpanel",
16221
17610
  hidden: value !== index,
@@ -16357,21 +17746,21 @@ var moveToCart = function moveToCart(_ref3) {
16357
17746
  }
16358
17747
  };
16359
17748
 
16360
- var _templateObject$T, _templateObject2$D, _templateObject3$t, _templateObject4$n, _templateObject5$i, _templateObject6$g, _templateObject7$c, _templateObject8$a, _templateObject9$7, _templateObject10$5, _templateObject11$4;
16361
- var EmptyStateText = styled.p(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n color: #4b4b4b;\n margin: 16px 0;\n"])));
16362
- var ProductCardWrapper = styled.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n position: relative;\n background-color: #ffffff;\n border: 1px solid #d3d3d3;\n border-radius: 10px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 10px;\n gap: 10px;\n cursor: pointer;\n"])));
16363
- var TopBar = styled.div(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n"])));
16364
- var SearchWrapper = styled(Box)(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n && {\n margin-bottom: 24px;\n max-width: 400px;\n width: 100%;\n }\n"])));
16365
- var TotalItemsText = styled.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 500;\n color: #4b4b4b;\n margin-bottom: 24px;\n white-space: nowrap;\n"])));
16366
- var DeleteButton = styled.button(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 8px;\n opacity: 1;\n pointer-events: auto;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 50%;\n background-color: #ffffff;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n color: #ff0000;\n"])));
16367
- var PriceContainer = styled.div(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
16368
- var DiscountPriceRow = styled.div(_templateObject8$a || (_templateObject8$a = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n"])));
16369
- var ProductName$2 = styled.div(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-weight: 500;\n color: #000000;\n text-align: center;\n height: 40px;\n overflow: hidden;\n width: 100%;\n text-overflow: ellipsis;\n white-space: pre-wrap;\n"])));
16370
- var ProductActionButton = styled(Button)(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n && {\n background-color: ", ";\n color: #ffffff;\n border-radius: 10px;\n font-weight: 500;\n }\n"])), function (_ref) {
17749
+ var _templateObject$X, _templateObject2$F, _templateObject3$v, _templateObject4$p, _templateObject5$k, _templateObject6$i, _templateObject7$e, _templateObject8$c, _templateObject9$8, _templateObject10$6, _templateObject11$5;
17750
+ var EmptyStateText = styled.p(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n color: #4b4b4b;\n margin: 16px 0;\n"])));
17751
+ var ProductCardWrapper = styled.div(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n position: relative;\n background-color: #ffffff;\n border: 1px solid #d3d3d3;\n border-radius: 10px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 10px;\n gap: 10px;\n cursor: pointer;\n"])));
17752
+ var TopBar = styled.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n"])));
17753
+ var SearchWrapper = styled(Box)(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n && {\n margin-bottom: 24px;\n max-width: 400px;\n width: 100%;\n }\n"])));
17754
+ var TotalItemsText = styled.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 500;\n color: #4b4b4b;\n margin-bottom: 24px;\n white-space: nowrap;\n"])));
17755
+ var DeleteButton = styled.button(_templateObject6$i || (_templateObject6$i = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 8px;\n opacity: 1;\n pointer-events: auto;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 50%;\n background-color: #ffffff;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n color: #ff0000;\n"])));
17756
+ var PriceContainer = styled.div(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
17757
+ var DiscountPriceRow = styled.div(_templateObject8$c || (_templateObject8$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n"])));
17758
+ var ProductName$2 = styled.div(_templateObject9$8 || (_templateObject9$8 = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-weight: 500;\n color: #000000;\n text-align: center;\n height: 40px;\n overflow: hidden;\n width: 100%;\n text-overflow: ellipsis;\n white-space: pre-wrap;\n"])));
17759
+ var ProductActionButton = styled(Button)(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose(["\n && {\n background-color: ", ";\n color: #ffffff;\n border-radius: 10px;\n font-weight: 500;\n }\n"])), function (_ref) {
16371
17760
  var primaryColor = _ref.primaryColor;
16372
17761
  return primaryColor != null ? primaryColor : '#000000';
16373
17762
  });
16374
- var OutOfStockButton = styled(Button)(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n && {\n color: #ffffff;\n border-radius: 10px;\n font-weight: 500;\n }\n"])));
17763
+ var OutOfStockButton = styled(Button)(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n && {\n color: #ffffff;\n border-radius: 10px;\n font-weight: 500;\n }\n"])));
16375
17764
 
16376
17765
  var getProductImage = function getProductImage(imageUrl, fallbackUrl) {
16377
17766
  var url = imageUrl || fallbackUrl;