@salesgenterp/ui-components 0.4.549 → 0.4.551

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, 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, Tooltip, 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, useRef, useCallback, createElement, memo, Fragment as Fragment$1, 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, 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, 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';
@@ -26,7 +26,6 @@ import { LocalizationProvider } from '@mui/x-date-pickers';
26
26
  import moment$1 from 'moment/moment';
27
27
  import { useRouter } from 'next/router';
28
28
  import Cards from 'react-credit-cards';
29
- import { PDFViewer } from '@embedpdf/react-pdf-viewer';
30
29
  import { HiOutlineLocationMarker, HiOutlineChevronDown } from 'react-icons/hi';
31
30
  import { BsFileEarmarkImage, BsFileEarmarkPdf, BsCartX } from 'react-icons/bs';
32
31
  import { TfiMenuAlt } from 'react-icons/tfi';
@@ -44,21 +43,22 @@ import Paper$1 from '@mui/material/Paper';
44
43
  import Table$1 from '@mui/material/Table';
45
44
  import TableBody$1 from '@mui/material/TableBody';
46
45
  import TableCell$1 from '@mui/material/TableCell';
47
- import TableContainer$4 from '@mui/material/TableContainer';
46
+ import TableContainer$5 from '@mui/material/TableContainer';
48
47
  import TableHead$1 from '@mui/material/TableHead';
49
48
  import TableRow$1 from '@mui/material/TableRow';
50
49
  import { Virtuoso } from 'react-virtuoso';
51
50
  import Box$1 from '@mui/material/Box';
52
51
  import TableSortLabel$1 from '@mui/material/TableSortLabel';
53
- 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';
54
56
  import InputBase from '@mui/material/InputBase';
55
57
  import { components } from 'react-select';
56
58
  import ReactAsyncSelect from 'react-select/async';
57
59
  import Snowfall from 'react-snowfall';
58
60
  import ReCAPTCHA from 'react-google-recaptcha';
59
- import { paramCase } from 'param-case';
60
61
  import { CgProfile } from 'react-icons/cg';
61
- import { FiTruck } from 'react-icons/fi';
62
62
  import { FaCheck, FaRegNoteSticky } from 'react-icons/fa6';
63
63
  import Image$3 from 'next/image';
64
64
  import debounce$1 from 'lodash/debounce';
@@ -2028,7 +2028,7 @@ var PaperContainer = styled(Paper)(_templateObject2$2 || (_templateObject2$2 = _
2028
2028
  return props.fontColor;
2029
2029
  });
2030
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"])));
2031
- 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"])));
2032
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"])));
2033
2033
  var TableBodyContainer = styled(TableBody)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose([""])));
2034
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"])));
@@ -2078,7 +2078,7 @@ function BootstrapDialogTitle(props) {
2078
2078
  onClose = props.onClose,
2079
2079
  fontColor = props.fontColor,
2080
2080
  other = _objectWithoutPropertiesLoose(props, _excluded$2);
2081
- return /*#__PURE__*/React__default.createElement(DialogTitle, _extends({
2081
+ return /*#__PURE__*/React__default.createElement(DialogTitle$1, _extends({
2082
2082
  sx: {
2083
2083
  m: 0,
2084
2084
  p: 2,
@@ -2831,285 +2831,6 @@ var InfoContainer = styled.div(_templateObject$9 || (_templateObject$9 = _tagged
2831
2831
  return props.fontColor;
2832
2832
  });
2833
2833
 
2834
- var DISABLED_CATEGORIES = ['annotation', 'annotation-shape', 'insert', 'form', 'redaction', 'panel-search', 'panel-comment', 'document-open', 'document-close', 'document-export', 'document-capture', 'document-protect'];
2835
- var EMPTY_UNSUBSCRIBERS = [];
2836
- var LOAD_TIMEOUT_MS = 20000;
2837
- var DEFAULT_ERROR_MESSAGE = 'Unable to load this PDF. Please try again later.';
2838
- var safeCall = function safeCall(fn) {
2839
- try {
2840
- return typeof fn === 'function' ? fn() : undefined;
2841
- } catch (error) {
2842
- console.error('[ViewPdf]', error);
2843
- return undefined;
2844
- }
2845
- };
2846
- var clearSubscriptions = function clearSubscriptions(unsubscribersRef) {
2847
- var list = unsubscribersRef === null || unsubscribersRef === void 0 ? void 0 : unsubscribersRef.current;
2848
- if (!Array.isArray(list)) return;
2849
- list.forEach(function (unsubscribe) {
2850
- safeCall(unsubscribe);
2851
- });
2852
- unsubscribersRef.current = [];
2853
- };
2854
- var hideEmptyStateOpenButton = function hideEmptyStateOpenButton(container) {
2855
- try {
2856
- var shadow = container === null || container === void 0 ? void 0 : container.shadowRoot;
2857
- if (!shadow || typeof CSSStyleSheet === 'undefined') return;
2858
- if (typeof shadow.adoptedStyleSheets === 'undefined') return;
2859
- var sheet = new CSSStyleSheet();
2860
- if (typeof (sheet === null || sheet === void 0 ? void 0 : sheet.replaceSync) !== 'function') return;
2861
- sheet.replaceSync("\n button[aria-label=\"Open File\"],\n button[aria-label=\"Open Document\"],\n button[aria-label*=\"Open Document\"],\n button.bg-accent.inline-flex {\n display: none !important;\n pointer-events: none !important;\n }\n p.text-fg-muted.mt-4.text-xs {\n display: none !important;\n }\n ");
2862
- var existingSheets = Array.isArray(shadow.adoptedStyleSheets) ? shadow.adoptedStyleSheets : [];
2863
- shadow.adoptedStyleSheets = [].concat(existingSheets, [sheet]);
2864
- } catch (error) {
2865
- console.error('[ViewPdf] Failed to hide open-document UI', error);
2866
- }
2867
- };
2868
- var viewerShellStyle = {
2869
- position: 'relative',
2870
- width: '100%',
2871
- minWidth: 900,
2872
- minHeight: 600,
2873
- height: '70vh',
2874
- boxSizing: 'border-box'
2875
- };
2876
- var overlayStyle = {
2877
- position: 'absolute',
2878
- inset: 0,
2879
- zIndex: 2,
2880
- display: 'flex',
2881
- flexDirection: 'column',
2882
- alignItems: 'center',
2883
- justifyContent: 'center',
2884
- gap: '0.75rem',
2885
- background: '#f4f5f7',
2886
- color: '#4b5563',
2887
- fontSize: '0.95rem',
2888
- fontWeight: 600,
2889
- padding: '1.5rem',
2890
- textAlign: 'center',
2891
- boxSizing: 'border-box'
2892
- };
2893
- var closeButtonStyle = {
2894
- marginTop: '0.5rem',
2895
- padding: '0.5rem 1rem',
2896
- border: '1px solid #d1d5db',
2897
- borderRadius: 6,
2898
- background: '#fff',
2899
- color: '#374151',
2900
- fontSize: '0.875rem',
2901
- fontWeight: 600,
2902
- cursor: 'pointer'
2903
- };
2904
- var getErrorMessage = function getErrorMessage(error) {
2905
- var _error$reason;
2906
- if (typeof error === 'string' && error.trim()) return error.trim();
2907
- if (error !== null && error !== void 0 && error.message && typeof error.message === 'string' && error.message.trim()) {
2908
- return error.message.trim();
2909
- }
2910
- if (error !== null && error !== void 0 && (_error$reason = error.reason) !== null && _error$reason !== void 0 && _error$reason.message && typeof error.reason.message === 'string' && error.reason.message.trim()) {
2911
- return error.reason.message.trim();
2912
- }
2913
- if (typeof (error === null || error === void 0 ? void 0 : error.reason) === 'string' && error.reason.trim()) {
2914
- return error.reason.trim();
2915
- }
2916
- return DEFAULT_ERROR_MESSAGE;
2917
- };
2918
- var syncDocumentStates = function syncDocumentStates(documentManager, onLoaded, onError) {
2919
- var documents = typeof (documentManager === null || documentManager === void 0 ? void 0 : documentManager.getOpenDocuments) === 'function' ? documentManager.getOpenDocuments() : [];
2920
- if (!Array.isArray(documents) || documents.length === 0) return false;
2921
- var errored = documents.find(function (doc) {
2922
- return (doc === null || doc === void 0 ? void 0 : doc.status) === 'error';
2923
- });
2924
- if (errored) {
2925
- onError((errored === null || errored === void 0 ? void 0 : errored.error) || DEFAULT_ERROR_MESSAGE);
2926
- return true;
2927
- }
2928
- var loaded = documents.find(function (doc) {
2929
- return (doc === null || doc === void 0 ? void 0 : doc.status) === 'loaded';
2930
- });
2931
- if (loaded) {
2932
- onLoaded();
2933
- return true;
2934
- }
2935
- return false;
2936
- };
2937
- var ViewPdf = function ViewPdf(_ref) {
2938
- var _ref$src = _ref.src,
2939
- src = _ref$src === void 0 ? '' : _ref$src,
2940
- onRequestClose = _ref.onRequestClose;
2941
- var _useState = useState(Boolean(src)),
2942
- isLoading = _useState[0],
2943
- setIsLoading = _useState[1];
2944
- var _useState2 = useState(''),
2945
- loadError = _useState2[0],
2946
- setLoadError = _useState2[1];
2947
- var hadLoadErrorRef = useRef(false);
2948
- var isMountedRef = useRef(true);
2949
- var loadFinishedRef = useRef(false);
2950
- var unsubscribersRef = useRef(EMPTY_UNSUBSCRIBERS);
2951
- var timeoutRef = useRef(null);
2952
- var pdfSrc = typeof src === 'string' ? src.trim() : '';
2953
- var clearLoadTimeout = useCallback(function () {
2954
- if (timeoutRef.current) {
2955
- clearTimeout(timeoutRef.current);
2956
- timeoutRef.current = null;
2957
- }
2958
- }, []);
2959
- useEffect(function () {
2960
- isMountedRef.current = true;
2961
- return function () {
2962
- isMountedRef.current = false;
2963
- clearLoadTimeout();
2964
- clearSubscriptions(unsubscribersRef);
2965
- };
2966
- }, [clearLoadTimeout]);
2967
- useEffect(function () {
2968
- hadLoadErrorRef.current = false;
2969
- loadFinishedRef.current = false;
2970
- clearLoadTimeout();
2971
- setLoadError('');
2972
- setIsLoading(Boolean(pdfSrc));
2973
- }, [pdfSrc, clearLoadTimeout]);
2974
- var finishWithError = useCallback(function (error) {
2975
- if (loadFinishedRef.current || !isMountedRef.current) return;
2976
- loadFinishedRef.current = true;
2977
- clearLoadTimeout();
2978
- hadLoadErrorRef.current = true;
2979
- setIsLoading(false);
2980
- setLoadError(getErrorMessage(error));
2981
- }, [clearLoadTimeout]);
2982
- var finishWithSuccess = useCallback(function () {
2983
- if (loadFinishedRef.current || !isMountedRef.current) return;
2984
- loadFinishedRef.current = true;
2985
- clearLoadTimeout();
2986
- hadLoadErrorRef.current = false;
2987
- setLoadError('');
2988
- setIsLoading(false);
2989
- }, [clearLoadTimeout]);
2990
- var handleInit = useCallback(function (container) {
2991
- hideEmptyStateOpenButton(container);
2992
- }, []);
2993
- var handleReady = useCallback(function (registry) {
2994
- try {
2995
- var _registry$getPlugin, _registry$getPlugin$c, _registry$getPlugin$c2;
2996
- clearSubscriptions(unsubscribersRef);
2997
- loadFinishedRef.current = false;
2998
- clearLoadTimeout();
2999
- var documentManager = registry === null || registry === void 0 ? void 0 : (_registry$getPlugin = registry.getPlugin) === null || _registry$getPlugin === void 0 ? void 0 : (_registry$getPlugin$c = _registry$getPlugin.call(registry, 'document-manager')) === null || _registry$getPlugin$c === void 0 ? void 0 : (_registry$getPlugin$c2 = _registry$getPlugin$c.provides) === null || _registry$getPlugin$c2 === void 0 ? void 0 : _registry$getPlugin$c2.call(_registry$getPlugin$c);
3000
- if (!documentManager) {
3001
- finishWithError('Unable to initialize the PDF viewer.');
3002
- return;
3003
- }
3004
- var trackUnsubscribe = function trackUnsubscribe(unsubscribe) {
3005
- if (typeof unsubscribe !== 'function') return;
3006
- if (!Array.isArray(unsubscribersRef === null || unsubscribersRef === void 0 ? void 0 : unsubscribersRef.current)) {
3007
- unsubscribersRef.current = [];
3008
- }
3009
- unsubscribersRef.current.push(unsubscribe);
3010
- };
3011
- if (typeof (documentManager === null || documentManager === void 0 ? void 0 : documentManager.onDocumentError) === 'function') {
3012
- trackUnsubscribe(documentManager.onDocumentError(function (error) {
3013
- finishWithError(error);
3014
- }));
3015
- }
3016
- if (typeof (documentManager === null || documentManager === void 0 ? void 0 : documentManager.onDocumentOpened) === 'function') {
3017
- trackUnsubscribe(documentManager.onDocumentOpened(function () {
3018
- finishWithSuccess();
3019
- }));
3020
- }
3021
- if (typeof (documentManager === null || documentManager === void 0 ? void 0 : documentManager.onDocumentClosed) === 'function') {
3022
- trackUnsubscribe(documentManager.onDocumentClosed(function () {
3023
- if (!(hadLoadErrorRef !== null && hadLoadErrorRef !== void 0 && hadLoadErrorRef.current)) return;
3024
- hadLoadErrorRef.current = false;
3025
- if (typeof onRequestClose === 'function') {
3026
- safeCall(onRequestClose);
3027
- }
3028
- }));
3029
- }
3030
- if (syncDocumentStates(documentManager, finishWithSuccess, finishWithError)) {
3031
- return;
3032
- }
3033
- if (!pdfSrc || typeof (documentManager === null || documentManager === void 0 ? void 0 : documentManager.openDocumentUrl) !== 'function') {
3034
- finishWithError('No PDF document provided.');
3035
- return;
3036
- }
3037
- timeoutRef.current = setTimeout(function () {
3038
- finishWithError('The PDF is taking too long to load. Please try again later.');
3039
- }, LOAD_TIMEOUT_MS);
3040
- var openTask = documentManager.openDocumentUrl({
3041
- url: pdfSrc,
3042
- autoActivate: true
3043
- });
3044
- if (!openTask || typeof openTask.wait !== 'function') {
3045
- finishWithError(DEFAULT_ERROR_MESSAGE);
3046
- return;
3047
- }
3048
- openTask.wait(function (response) {
3049
- var loadTask = response === null || response === void 0 ? void 0 : response.task;
3050
- if (!loadTask || typeof loadTask.wait !== 'function') {
3051
- syncDocumentStates(documentManager, finishWithSuccess, finishWithError);
3052
- return;
3053
- }
3054
- loadTask.wait(function () {
3055
- finishWithSuccess();
3056
- }, function (error) {
3057
- finishWithError(error);
3058
- });
3059
- }, function (error) {
3060
- finishWithError(error);
3061
- });
3062
- } catch (error) {
3063
- console.error('[ViewPdf] Failed during viewer ready setup', error);
3064
- finishWithError(error);
3065
- }
3066
- }, [clearLoadTimeout, finishWithError, finishWithSuccess, onRequestClose, pdfSrc]);
3067
- if (!pdfSrc) {
3068
- return /*#__PURE__*/React__default.createElement("div", {
3069
- style: _extends({}, viewerShellStyle, overlayStyle, {
3070
- position: 'relative'
3071
- })
3072
- }, /*#__PURE__*/React__default.createElement("span", null, "No PDF document provided."), typeof onRequestClose === 'function' ? /*#__PURE__*/React__default.createElement("button", {
3073
- type: "button",
3074
- style: closeButtonStyle,
3075
- onClick: onRequestClose
3076
- }, "Close") : null);
3077
- }
3078
- return /*#__PURE__*/React__default.createElement("div", {
3079
- style: viewerShellStyle
3080
- }, isLoading ? /*#__PURE__*/React__default.createElement("div", {
3081
- style: overlayStyle,
3082
- "aria-live": "polite",
3083
- "aria-busy": "true"
3084
- }, /*#__PURE__*/React__default.createElement(CircularProgress, {
3085
- size: 28
3086
- }), /*#__PURE__*/React__default.createElement("span", null, "Loading...")) : null, loadError ? /*#__PURE__*/React__default.createElement("div", {
3087
- style: overlayStyle,
3088
- role: "alert",
3089
- "aria-live": "assertive"
3090
- }, /*#__PURE__*/React__default.createElement("span", null, loadError), typeof onRequestClose === 'function' ? /*#__PURE__*/React__default.createElement("button", {
3091
- type: "button",
3092
- style: closeButtonStyle,
3093
- onClick: onRequestClose
3094
- }, "Close") : null) : null, /*#__PURE__*/React__default.createElement(PDFViewer, {
3095
- key: pdfSrc,
3096
- style: {
3097
- height: '100%',
3098
- width: '100%',
3099
- minHeight: 600
3100
- },
3101
- onInit: handleInit,
3102
- onReady: handleReady,
3103
- config: {
3104
- theme: {
3105
- preference: 'light'
3106
- },
3107
- tabBar: 'never',
3108
- disabledCategories: DISABLED_CATEGORIES
3109
- }
3110
- }));
3111
- };
3112
-
3113
2834
  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;
3114
2835
  var totalIcons = [{
3115
2836
  name: '',
@@ -3153,8 +2874,7 @@ var Dashboard = function Dashboard(_ref) {
3153
2874
  showOnlyRecentOrder = _ref$showOnlyRecentOr === void 0 ? false : _ref$showOnlyRecentOr,
3154
2875
  hidePayActionButton = _ref.hidePayActionButton,
3155
2876
  hideInvoiceTab = _ref.hideInvoiceTab,
3156
- hideSalesOrderTab = _ref.hideSalesOrderTab,
3157
- showPdfViewer = _ref.showPdfViewer;
2877
+ hideSalesOrderTab = _ref.hideSalesOrderTab;
3158
2878
  var _useState = useState({}),
3159
2879
  customerData = _useState[0],
3160
2880
  setCustomerData = _useState[1];
@@ -3605,15 +3325,8 @@ var Dashboard = function Dashboard(_ref) {
3605
3325
  maxWidth: "lg"
3606
3326
  }, /*#__PURE__*/React__default.createElement(DialogContent, {
3607
3327
  dividers: true
3608
- }, showPdfViewer ? /*#__PURE__*/React__default.createElement(ViewPdf, {
3609
- src: invoiceModal === null || invoiceModal === void 0 ? void 0 : invoiceModal.url,
3610
- onRequestClose: function onRequestClose() {
3611
- return setInvoiceModal({
3612
- open: false
3613
- });
3614
- }
3615
- }) : /*#__PURE__*/React__default.createElement("iframe", {
3616
- src: invoiceModal === null || invoiceModal === void 0 ? void 0 : invoiceModal.url
3328
+ }, /*#__PURE__*/React__default.createElement("iframe", {
3329
+ src: invoiceModal.url
3617
3330
  }))), /*#__PURE__*/React__default.createElement(APITable, {
3618
3331
  key: value,
3619
3332
  cacheFilters: true,
@@ -3880,7 +3593,7 @@ var StatusContainer = styled(Stack)(_templateObject16 || (_templateObject16 = _t
3880
3593
  return props.primaryColor;
3881
3594
  });
3882
3595
  var TableContainer = styled.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n margin-top: 2rem;\n border-radius: 14px;\n"])));
3883
- var InvoiceDialog = styled(Dialog)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n .MuiDialog-paper {\n width: 100%;\n max-width: 900px;\n }\n\n iframe {\n width: 900px;\n max-width: 100%;\n border: none;\n height: 600px;\n }\n"])));
3596
+ var InvoiceDialog = styled(Dialog)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n iframe {\n width: 900px;\n border: none;\n height: 600px;\n }\n"])));
3884
3597
  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) {
3885
3598
  return props.fontColor;
3886
3599
  }, function (props) {
@@ -4273,42 +3986,63 @@ var SideMenuItemComponentContainer = styled$1(SideMenuItemComponent)(function (_
4273
3986
  };
4274
3987
  });
4275
3988
 
4276
- var sideMenuItems = [{
4277
- name: 'My Account',
4278
- Icon: RiAccountBoxLine,
4279
- items: [{
4280
- name: 'Dashboard',
4281
- path: 'dashboard',
4282
- link: '/',
4283
- Icon: RiHome7Line
4284
- }, {
4285
- name: 'My Profile',
4286
- path: 'myProfile',
4287
- link: '/',
4288
- Icon: TbUserCircle
4289
- }, {
4290
- name: 'Address List',
4291
- path: 'addressList',
4292
- link: '/',
4293
- Icon: TbBuildingStore
4294
- }, {
4295
- name: 'Statement',
4296
- path: 'statement',
4297
- link: '/',
4298
- Icon: RiFileTextLine
4299
- }, {
4300
- name: 'Change Password',
4301
- path: 'changePassword',
4302
- link: '/',
4303
- Icon: BiLockOpen
4304
- }]
4305
- }];
3989
+ var sideMenuItems = function sideMenuItems(props) {
3990
+ return [{
3991
+ name: 'My Account',
3992
+ Icon: RiAccountBoxLine,
3993
+ items: [{
3994
+ name: 'Dashboard',
3995
+ path: 'dashboard',
3996
+ link: '/',
3997
+ Icon: RiHome7Line,
3998
+ hide: (props === null || props === void 0 ? void 0 : props.hideDashboard) || false
3999
+ }, {
4000
+ name: 'My Profile',
4001
+ path: 'myProfile',
4002
+ link: '/',
4003
+ Icon: TbUserCircle,
4004
+ hide: (props === null || props === void 0 ? void 0 : props.hideMyProfile) || false
4005
+ }, {
4006
+ name: 'Address List',
4007
+ path: 'addressList',
4008
+ link: '/',
4009
+ Icon: TbBuildingStore,
4010
+ hide: (props === null || props === void 0 ? void 0 : props.hideAddressList) || false
4011
+ }, {
4012
+ name: 'Statement',
4013
+ path: 'statement',
4014
+ link: '/',
4015
+ Icon: RiFileTextLine,
4016
+ hide: (props === null || props === void 0 ? void 0 : props.hideStatement) || false
4017
+ }, {
4018
+ name: 'Upcoming ACH Payments',
4019
+ path: 'upcomingACHPayments',
4020
+ link: '/',
4021
+ Icon: AiOutlineCreditCard,
4022
+ hide: (props === null || props === void 0 ? void 0 : props.hideUpcomingACHPayments) || false
4023
+ }, {
4024
+ name: 'Change Password',
4025
+ path: 'changePassword',
4026
+ link: '/',
4027
+ Icon: BiLockOpen,
4028
+ hide: (props === null || props === void 0 ? void 0 : props.hideChangePassword) || false
4029
+ }]
4030
+ }];
4031
+ };
4306
4032
  var SideMenu = function SideMenu(props) {
4307
4033
  var _props$menuItems;
4034
+ 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) {
4035
+ var _section$items;
4036
+ return _extends({}, section, {
4037
+ items: (_section$items = section.items) === null || _section$items === void 0 ? void 0 : _section$items.filter(function (item) {
4038
+ return !item.hide;
4039
+ })
4040
+ });
4041
+ });
4308
4042
  return /*#__PURE__*/React__default.createElement(List, {
4309
4043
  component: "nav",
4310
4044
  disablePadding: true
4311
- }, ((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) {
4045
+ }, menuItems.map(function (item, index) {
4312
4046
  return /*#__PURE__*/React__default.createElement(_SideMenuItem, _extends({}, item, {
4313
4047
  key: index,
4314
4048
  primaryColor: props.primaryColor,
@@ -4967,7 +4701,7 @@ var StoreDetails = function StoreDetails(_ref) {
4967
4701
  secondaryColor: secondaryColor,
4968
4702
  backgroundColor: backgroundColor,
4969
4703
  fontColor: fontColor
4970
- }, /*#__PURE__*/React__default.createElement(CardHeader, {
4704
+ }, /*#__PURE__*/React__default.createElement(CardHeader$1, {
4971
4705
  title: /*#__PURE__*/React__default.createElement(Grid, {
4972
4706
  container: true,
4973
4707
  justifyContent: "space-between",
@@ -5551,7 +5285,84 @@ var getDocumentTypes = function getDocumentTypes(_ref3) {
5551
5285
  }
5552
5286
  };
5553
5287
 
5554
- var _templateObject$l, _templateObject2$d, _templateObject3$9, _templateObject4$7;
5288
+ var getUpcomingAchPayments = function getUpcomingAchPayments(_ref) {
5289
+ var apiEndPoint = _ref.apiEndPoint,
5290
+ token = _ref.token;
5291
+ try {
5292
+ return Promise.resolve(API({
5293
+ url: '/ecommerce/order/payment/upcoming-auto-ach',
5294
+ apiEndPoint: apiEndPoint,
5295
+ token: token
5296
+ }));
5297
+ } catch (e) {
5298
+ return Promise.reject(e);
5299
+ }
5300
+ };
5301
+
5302
+ var _templateObject$l;
5303
+ var columns = [{
5304
+ id: 'orderId',
5305
+ label: 'Order Id',
5306
+ minWidth: 120
5307
+ }, {
5308
+ id: 'amount',
5309
+ label: 'Amount',
5310
+ minWidth: 120,
5311
+ format: function format(value) {
5312
+ return renderMoney(value);
5313
+ }
5314
+ }, {
5315
+ id: 'scheduleDate',
5316
+ label: 'Schedule Date',
5317
+ minWidth: 160,
5318
+ format: function format(value) {
5319
+ return getLocalTime({
5320
+ time: value
5321
+ });
5322
+ }
5323
+ }, {
5324
+ id: 'notes',
5325
+ label: 'Notes',
5326
+ minWidth: 180
5327
+ }, {
5328
+ id: 'achAccountUUID',
5329
+ label: 'ACH Account',
5330
+ minWidth: 280
5331
+ }];
5332
+ var UpcomingACHPayments = function UpcomingACHPayments(_ref) {
5333
+ var apiEndPoint = _ref.apiEndPoint,
5334
+ token = _ref.token,
5335
+ primaryColor = _ref.primaryColor,
5336
+ secondaryColor = _ref.secondaryColor,
5337
+ backgroundColor = _ref.backgroundColor,
5338
+ fontColor = _ref.fontColor;
5339
+ return /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
5340
+ pagination: false,
5341
+ scroll: {
5342
+ x: 1000
5343
+ },
5344
+ tableId: "upcoming-ach-payments",
5345
+ columns: columns,
5346
+ asyncService: function asyncService() {
5347
+ try {
5348
+ return Promise.resolve(getUpcomingAchPayments({
5349
+ apiEndPoint: apiEndPoint,
5350
+ token: token
5351
+ }));
5352
+ } catch (e) {
5353
+ return Promise.reject(e);
5354
+ }
5355
+ },
5356
+ primaryColor: primaryColor,
5357
+ secondaryColor: secondaryColor,
5358
+ backgroundColor: backgroundColor,
5359
+ fontColor: fontColor
5360
+ }));
5361
+ };
5362
+ var TableContainer$2 = styled.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n margin: 1.2rem 0;\n border-radius: 14px;\n"])));
5363
+
5364
+ var _templateObject$m, _templateObject2$d, _templateObject3$9, _templateObject4$7;
5365
+ 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"];
5555
5366
  var AccountDetails = function AccountDetails(_ref) {
5556
5367
  var _storeData$map, _storeData$find, _storeData$;
5557
5368
  var apiEndPoint = _ref.apiEndPoint,
@@ -5585,8 +5396,7 @@ var AccountDetails = function AccountDetails(_ref) {
5585
5396
  hideSalesOrderTab = _ref$hideSalesOrderTa === void 0 ? false : _ref$hideSalesOrderTa,
5586
5397
  _ref$hideInvoiceTab = _ref.hideInvoiceTab,
5587
5398
  hideInvoiceTab = _ref$hideInvoiceTab === void 0 ? false : _ref$hideInvoiceTab,
5588
- _ref$showPdfViewer = _ref.showPdfViewer,
5589
- showPdfViewer = _ref$showPdfViewer === void 0 ? false : _ref$showPdfViewer;
5399
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
5590
5400
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
5591
5401
  apiEndPoint: apiEndPoint,
5592
5402
  token: token
@@ -5759,8 +5569,7 @@ var AccountDetails = function AccountDetails(_ref) {
5759
5569
  showOnlyRecentOrder: showOnlyRecentOrder,
5760
5570
  hidePayActionButton: hidePayActionButton,
5761
5571
  hideSalesOrderTab: hideSalesOrderTab,
5762
- hideInvoiceTab: hideInvoiceTab,
5763
- showPdfViewer: showPdfViewer
5572
+ hideInvoiceTab: hideInvoiceTab
5764
5573
  });
5765
5574
  case 'myProfile':
5766
5575
  return /*#__PURE__*/React__default.createElement(MyProfile, {
@@ -5800,6 +5609,20 @@ var AccountDetails = function AccountDetails(_ref) {
5800
5609
  storeIdList: storeIdList,
5801
5610
  defaultStoreId: defaultStoreId
5802
5611
  });
5612
+ case 'upcomingACHPayments':
5613
+ if (props !== null && props !== void 0 && props.hideUpcomingAchPayments) {
5614
+ return /*#__PURE__*/React__default.createElement(TypographyContainer$7, {
5615
+ fontColor: colors.fontColor
5616
+ }, "Empty");
5617
+ }
5618
+ return /*#__PURE__*/React__default.createElement(UpcomingACHPayments, {
5619
+ apiEndPoint: apiEndPoint,
5620
+ token: token,
5621
+ primaryColor: colors.primaryColor,
5622
+ secondaryColor: colors.secondaryColor,
5623
+ backgroundColor: colors.backgroundColor,
5624
+ fontColor: colors.fontColor
5625
+ });
5803
5626
  case 'changePassword':
5804
5627
  return /*#__PURE__*/React__default.createElement(ChangePassword, {
5805
5628
  apiEndPoint: apiEndPoint,
@@ -5850,12 +5673,12 @@ var AccountDetails = function AccountDetails(_ref) {
5850
5673
  style: {
5851
5674
  padding: '0 3rem 1rem'
5852
5675
  }
5853
- }), /*#__PURE__*/React__default.createElement(SideMenu, {
5676
+ }), /*#__PURE__*/React__default.createElement(SideMenu, _extends({
5854
5677
  primaryColor: colors.primaryColor,
5855
5678
  fontColor: colors.fontColor,
5856
5679
  tabValue: tabValue,
5857
5680
  onTabChange: onTabChange
5858
- })), /*#__PURE__*/React__default.createElement(Main, {
5681
+ }, props))), /*#__PURE__*/React__default.createElement(Main, {
5859
5682
  open: open,
5860
5683
  backgroundColor: colors.backgroundColor,
5861
5684
  style: {
@@ -5912,7 +5735,7 @@ var AccountDetails = function AccountDetails(_ref) {
5912
5735
  skeleton: true
5913
5736
  }, apiEndPoint && token && renderListItemComponent(tabValue))))))));
5914
5737
  };
5915
- 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) {
5738
+ 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) {
5916
5739
  var _props$theme;
5917
5740
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.backgroundImage;
5918
5741
  }, function (props) {
@@ -6040,7 +5863,7 @@ var AsyncDataLoad = function AsyncDataLoad(_ref) {
6040
5863
  };
6041
5864
  var AsyncDataLoadComponent = memo(AsyncDataLoad);
6042
5865
 
6043
- var _templateObject$m, _templateObject2$e, _templateObject3$a;
5866
+ var _templateObject$n, _templateObject2$e, _templateObject3$a;
6044
5867
  var BannerImages = function BannerImages(_ref) {
6045
5868
  var config = _ref.config,
6046
5869
  sliderImages = _ref.sliderImages,
@@ -6105,11 +5928,11 @@ var BannerImages = function BannerImages(_ref) {
6105
5928
  }))));
6106
5929
  })));
6107
5930
  };
6108
- 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"])));
5931
+ 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"])));
6109
5932
  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"])));
6110
5933
  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"])));
6111
5934
 
6112
- var _templateObject$n, _templateObject2$f, _templateObject3$b, _templateObject4$8;
5935
+ var _templateObject$o, _templateObject2$f, _templateObject3$b, _templateObject4$8;
6113
5936
  var LandingCarousel = function LandingCarousel(_ref) {
6114
5937
  var _config$spaceBetweenC, _config$colLg, _ref2, _ref3, _config$colSm, _ref4, _config$colMd, _config$colLg2;
6115
5938
  var config = _ref.config,
@@ -6191,7 +6014,7 @@ var LandingCarousel = function LandingCarousel(_ref) {
6191
6014
  })));
6192
6015
  })));
6193
6016
  };
6194
- 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"])));
6017
+ 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"])));
6195
6018
  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"])));
6196
6019
  var Root$5 = styled.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n height: 100%;\n"])));
6197
6020
  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) {
@@ -6200,7 +6023,7 @@ var ReactSlick = styled(Slider)(_templateObject4$8 || (_templateObject4$8 = _tag
6200
6023
  return props === null || props === void 0 ? void 0 : props.spaceBetweenCol;
6201
6024
  });
6202
6025
 
6203
- var _templateObject$o, _templateObject2$g;
6026
+ var _templateObject$p, _templateObject2$g;
6204
6027
  var inDebounce;
6205
6028
  var JUSTIFY = {
6206
6029
  Left: {
@@ -6395,7 +6218,7 @@ var HomeBanner = function HomeBanner(_ref) {
6395
6218
  }, item === null || item === void 0 ? void 0 : item.component);
6396
6219
  }))))));
6397
6220
  };
6398
- var Root$6 = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose([""])));
6221
+ var Root$6 = styled.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose([""])));
6399
6222
  var MainContainer$1 = styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose([""])));
6400
6223
  var SingleBanner = function SingleBanner(_ref3) {
6401
6224
  var config = _ref3.config,
@@ -6429,7 +6252,7 @@ var adjustResponsiveSpace = function adjustResponsiveSpace(_ref4) {
6429
6252
  return spaceValue;
6430
6253
  };
6431
6254
 
6432
- var _templateObject$p, _templateObject2$h, _templateObject3$c, _templateObject4$9, _templateObject5$5;
6255
+ var _templateObject$q, _templateObject2$h, _templateObject3$c, _templateObject4$9, _templateObject5$5;
6433
6256
  var LandingCarousel$1 = function LandingCarousel(_ref) {
6434
6257
  var _brandData2;
6435
6258
  var brandList = _ref.brandList,
@@ -6555,7 +6378,7 @@ var LandingCarousel$1 = function LandingCarousel(_ref) {
6555
6378
  })));
6556
6379
  })));
6557
6380
  };
6558
- 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"])));
6381
+ 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"])));
6559
6382
  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"])));
6560
6383
  var Root$7 = styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n height: 100%;\n"])));
6561
6384
  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) {
@@ -6565,7 +6388,7 @@ var SliderItem = styled.div(_templateObject5$5 || (_templateObject5$5 = _taggedT
6565
6388
  return (props === null || props === void 0 ? void 0 : props.spaceBetweenCol) || 0;
6566
6389
  });
6567
6390
 
6568
- var _templateObject$q, _templateObject2$i;
6391
+ var _templateObject$r, _templateObject2$i;
6569
6392
  var BrandList = function BrandList(_ref) {
6570
6393
  var apiEndPoint = _ref.apiEndPoint,
6571
6394
  _ref$colors = _ref.colors,
@@ -6627,10 +6450,10 @@ var BrandList = function BrandList(_ref) {
6627
6450
  autoplaySpeed: autoplaySpeed
6628
6451
  }))));
6629
6452
  };
6630
- var Root$8 = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose([""])));
6453
+ var Root$8 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose([""])));
6631
6454
  var MainContainer$2 = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose([""])));
6632
6455
 
6633
- var _templateObject$r, _templateObject2$j, _templateObject3$d, _templateObject4$a, _templateObject5$6, _templateObject6$4, _templateObject7$3, _templateObject8$3, _templateObject9$3;
6456
+ var _templateObject$s, _templateObject2$j, _templateObject3$d, _templateObject4$a, _templateObject5$6, _templateObject6$4, _templateObject7$3, _templateObject8$3, _templateObject9$3;
6634
6457
  var BrandStock = function BrandStock(_ref) {
6635
6458
  var _Object$keys, _Object$keys2, _data$brands;
6636
6459
  var storeData = _ref.storeData,
@@ -6785,13 +6608,13 @@ var BrandStock = function BrandStock(_ref) {
6785
6608
  }));
6786
6609
  })), (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))));
6787
6610
  };
6788
- var Root$9 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n"])));
6611
+ var Root$9 = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n"])));
6789
6612
  var TitleContainer$1 = styled.div(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n padding: 0 1rem;\n display: flex;\n justify-content: space-between;\n"])));
6790
6613
  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"])));
6791
6614
  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"])));
6792
6615
  var BrandContainer = styled.div(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n .brandImage {\n max-width: 100%;\n margin: 1rem auto;\n }\n"])));
6793
6616
  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"])));
6794
- var TablePaperContainer = styled(TableContainer$4)(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n background-color: transparent;\n"])));
6617
+ var TablePaperContainer = styled(TableContainer$5)(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n background-color: transparent;\n"])));
6795
6618
  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) {
6796
6619
  return !props.availableQuantity && '#cd2323';
6797
6620
  });
@@ -6799,8 +6622,8 @@ var TableCellContainer$1 = styled(TableCell$1)(_templateObject9$3 || (_templateO
6799
6622
  return props.availableQuantity ? props.stockCol && 'green' : '#ffffff';
6800
6623
  });
6801
6624
 
6802
- var _templateObject$s, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$5, _templateObject7$4;
6803
- 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) {
6625
+ var _templateObject$t, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$5, _templateObject7$4;
6626
+ 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) {
6804
6627
  return props.maxWidth || '650px';
6805
6628
  });
6806
6629
  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"])));
@@ -6908,8 +6731,8 @@ function useGridSize() {
6908
6731
  return layout;
6909
6732
  }
6910
6733
 
6911
- var _templateObject$t, _templateObject2$l, _templateObject3$f, _templateObject4$c, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$3;
6912
- 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) {
6734
+ var _templateObject$u, _templateObject2$l, _templateObject3$f, _templateObject4$c, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$3;
6735
+ 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) {
6913
6736
  return props.bg;
6914
6737
  }, function (props) {
6915
6738
  return props.bg || '#FAE8E5';
@@ -6943,7 +6766,7 @@ var CartTableCell = styled(TableCell)(_templateObject6$6 || (_templateObject6$6
6943
6766
  }, function (props) {
6944
6767
  return "" + props.color || 'inherit';
6945
6768
  });
6946
- 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) {
6769
+ 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) {
6947
6770
  return 'rgba(102, 112, 128, 0.5)';
6948
6771
  }, function (props) {
6949
6772
  return props.color;
@@ -8084,41 +7907,973 @@ var TotalAfterDiscount = function TotalAfterDiscount(_ref2) {
8084
7907
  }, renderMoney(totalAmount)) : /*#__PURE__*/createElement(Fragment$1, null), /*#__PURE__*/createElement("b", null, renderMoney(total))));
8085
7908
  };
8086
7909
 
8087
- var _templateObject$u, _templateObject2$m, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$7;
8088
- 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"])));
8089
- 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) {
7910
+ 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$1, _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;
7911
+ var DEFAULT_PRIMARY_COLOR$1 = '#437C0F';
7912
+ var formatCurrency = function formatCurrency(amount) {
7913
+ return Number(amount).toLocaleString('en-US', {
7914
+ minimumFractionDigits: 0,
7915
+ maximumFractionDigits: 2
7916
+ });
7917
+ };
7918
+ var getUnitSaving = function getUnitSaving(coupon, productPrice) {
7919
+ if (coupon !== null && coupon !== void 0 && coupon.percentage && coupon !== null && coupon !== void 0 && coupon.offPercentage && productPrice > 0) {
7920
+ return productPrice * (coupon.offPercentage / 100);
7921
+ }
7922
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.offPercentageAmount) > 0) {
7923
+ return coupon.offPercentageAmount;
7924
+ }
7925
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.offAmount) > 0 && !(coupon !== null && coupon !== void 0 && coupon.percentage)) {
7926
+ return coupon.offAmount;
7927
+ }
7928
+ return null;
7929
+ };
7930
+ var formatCartCount = function formatCartCount(cartQuantity) {
7931
+ return cartQuantity + " " + (cartQuantity === 1 ? 'quantity' : 'quantities') + " added in the cart";
7932
+ };
7933
+ var formatRemainingQuantity = function formatRemainingQuantity(remaining) {
7934
+ return remaining + " more " + (remaining === 1 ? 'quantity' : 'quantities');
7935
+ };
7936
+ var isBuyXGetFreeProduct = function isBuyXGetFreeProduct(coupon) {
7937
+ var _coupon$freeProducts;
7938
+ 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;
7939
+ };
7940
+ var getBuyXGetFreeProductOffPercent = function getBuyXGetFreeProductOffPercent(coupon) {
7941
+ var pct = Number(coupon === null || coupon === void 0 ? void 0 : coupon.offPercentage);
7942
+ if (Number.isFinite(pct) && pct > 0) return pct;
7943
+ return 100;
7944
+ };
7945
+ var isFullyFreeBuyXOffer = function isFullyFreeBuyXOffer(coupon) {
7946
+ return getBuyXGetFreeProductOffPercent(coupon) >= 100;
7947
+ };
7948
+ var getBuyXGetFreeProductOfferLabel = function getBuyXGetFreeProductOfferLabel(coupon) {
7949
+ var offPercent = getBuyXGetFreeProductOffPercent(coupon);
7950
+ if (offPercent >= 100) return 'free';
7951
+ return offPercent + "% off on these products";
7952
+ };
7953
+ var getFreeProductHref = function getFreeProductHref(product) {
7954
+ 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);
7955
+ };
7956
+ var getBuyXGetFreeProductMessages = function getBuyXGetFreeProductMessages(quantityToBuy, quantityToGet, cartQuantity, offPercentage) {
7957
+ if (offPercentage === void 0) {
7958
+ offPercentage = 100;
7959
+ }
7960
+ var isFullyFree = offPercentage >= 100;
7961
+ var buyTimes = quantityToBuy + " " + (quantityToBuy === 1 ? 'time' : 'times');
7962
+ 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";
7963
+ var lines = [benefitSummary];
7964
+ if (cartQuantity <= 0) {
7965
+ return lines;
7966
+ }
7967
+ if (cartQuantity < quantityToBuy) {
7968
+ var remaining = quantityToBuy - cartQuantity;
7969
+ lines.push(formatCartCount(cartQuantity));
7970
+ lines.push("Add " + formatRemainingQuantity(remaining) + " to qualify");
7971
+ } else {
7972
+ 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");
7973
+ }
7974
+ return lines;
7975
+ };
7976
+ var getBuyXGetYMessages = function getBuyXGetYMessages(quantityToBuy, quantityToGet, cartQuantity) {
7977
+ var totalNeeded = quantityToBuy + quantityToGet;
7978
+ var lines = ["Buy " + quantityToBuy + ", get " + quantityToGet + " for free"];
7979
+ if (cartQuantity <= 0) {
7980
+ return lines;
7981
+ }
7982
+ if (cartQuantity < quantityToBuy) {
7983
+ var remaining = quantityToBuy - cartQuantity;
7984
+ lines.push(formatCartCount(cartQuantity));
7985
+ lines.push("Add " + formatRemainingQuantity(remaining) + " to qualify");
7986
+ } else if (cartQuantity < totalNeeded) {
7987
+ var _remaining = totalNeeded - cartQuantity;
7988
+ lines.push(formatCartCount(cartQuantity));
7989
+ lines.push("Add " + formatRemainingQuantity(_remaining) + " to apply this coupon");
7990
+ } else {
7991
+ var freeLabel = quantityToGet === 1 ? 'item' : 'items';
7992
+ lines.push(formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get " + quantityToGet + " " + freeLabel + " for free");
7993
+ }
7994
+ return lines;
7995
+ };
7996
+ var getCouponTypeIcon = function getCouponTypeIcon(coupon) {
7997
+ if (isBuyXGetFreeProduct(coupon)) {
7998
+ return isFullyFreeBuyXOffer(coupon) ? FiGift : FiPercent;
7999
+ }
8000
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0) return FiLayers;
8001
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage) return FiPercent;
8002
+ return FiTag;
8003
+ };
8004
+ var getDetailMeta = function getDetailMeta(line) {
8005
+ if (line.includes('added in the cart') && line.includes('Apply')) {
8006
+ return {
8007
+ icon: HiSparkles,
8008
+ tone: 'success'
8009
+ };
8010
+ }
8011
+ if (line.includes('added in the cart')) {
8012
+ return {
8013
+ icon: FiShoppingCart,
8014
+ tone: 'info'
8015
+ };
8016
+ }
8017
+ if (line.startsWith('Add ')) {
8018
+ return {
8019
+ icon: FiPlusCircle,
8020
+ tone: 'warning'
8021
+ };
8022
+ }
8023
+ if (line.includes('Apply') || line.includes('claim')) {
8024
+ return {
8025
+ icon: HiSparkles,
8026
+ tone: 'success'
8027
+ };
8028
+ }
8029
+ return {
8030
+ icon: FiTag,
8031
+ tone: 'info'
8032
+ };
8033
+ };
8034
+ var getCouponBenefit = function getCouponBenefit(coupon, _temp) {
8035
+ var _ref = _temp === void 0 ? {} : _temp,
8036
+ _ref$productPrice = _ref.productPrice,
8037
+ productPrice = _ref$productPrice === void 0 ? 0 : _ref$productPrice,
8038
+ _ref$cartQuantity = _ref.cartQuantity,
8039
+ cartQuantity = _ref$cartQuantity === void 0 ? 0 : _ref$cartQuantity;
8040
+ if (isBuyXGetFreeProduct(coupon)) {
8041
+ return getBuyXGetFreeProductMessages(coupon.quantityToBuy, coupon.quantityToGet, cartQuantity, getBuyXGetFreeProductOffPercent(coupon));
8042
+ }
8043
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8044
+ if (hasBuyXGetY) {
8045
+ return getBuyXGetYMessages(coupon.quantityToBuy, coupon.quantityToGet, cartQuantity);
8046
+ }
8047
+ var unitSaving = getUnitSaving(coupon, productPrice);
8048
+ if (!unitSaving) return null;
8049
+ var lines = [];
8050
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage) {
8051
+ lines.push(coupon.offPercentage + "% off \xB7 Save $" + formatCurrency(unitSaving) + " per item");
8052
+ } else {
8053
+ lines.push("Save $" + formatCurrency(unitSaving) + " per item");
8054
+ }
8055
+ if (cartQuantity > 0) {
8056
+ var totalSaving = unitSaving * cartQuantity;
8057
+ lines.push(formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get $" + formatCurrency(totalSaving) + " off");
8058
+ }
8059
+ return lines;
8060
+ };
8061
+ var getSuggestionPreviewText = function getSuggestionPreviewText(coupon, _temp2) {
8062
+ var _ref2 = _temp2 === void 0 ? {} : _temp2,
8063
+ _ref2$productPrice = _ref2.productPrice,
8064
+ productPrice = _ref2$productPrice === void 0 ? 0 : _ref2$productPrice,
8065
+ _ref2$cartQuantity = _ref2.cartQuantity,
8066
+ cartQuantity = _ref2$cartQuantity === void 0 ? 0 : _ref2$cartQuantity;
8067
+ if (!coupon) return null;
8068
+ if (isBuyXGetFreeProduct(coupon)) {
8069
+ var _quantityToBuy = coupon.quantityToBuy || 1;
8070
+ var quantityToGet = coupon.quantityToGet || 1;
8071
+ var buyTimes = _quantityToBuy + " " + (_quantityToBuy === 1 ? 'time' : 'times');
8072
+ var offPercent = getBuyXGetFreeProductOffPercent(coupon);
8073
+ if (offPercent >= 100) {
8074
+ return "Buy this product " + buyTimes + ", get " + quantityToGet + " " + (quantityToGet === 1 ? 'free product' : 'free products') + ". Click View All offers to know more";
8075
+ }
8076
+ return "Buy this product " + buyTimes + ", get " + offPercent + "% off on some products. Click View All offers to know more";
8077
+ }
8078
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8079
+ if (hasBuyXGetY) {
8080
+ var _getCouponBenefit;
8081
+ return ((_getCouponBenefit = getCouponBenefit(coupon, {
8082
+ productPrice: productPrice,
8083
+ cartQuantity: cartQuantity
8084
+ })) === null || _getCouponBenefit === void 0 ? void 0 : _getCouponBenefit[0]) || null;
8085
+ }
8086
+ var unitSaving = getUnitSaving(coupon, productPrice);
8087
+ var quantityToBuy = coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy;
8088
+ var hasBuyQuantityRequirement = quantityToBuy > 0 && !((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0);
8089
+ if (hasBuyQuantityRequirement && coupon !== null && coupon !== void 0 && coupon.offPercentage && unitSaving) {
8090
+ var qtyLabel = quantityToBuy === 1 ? 'quantity' : 'quantities';
8091
+ return "Buy " + quantityToBuy + " " + qtyLabel + ", get " + coupon.offPercentage + "% off, save $" + formatCurrency(unitSaving) + " per item";
8092
+ }
8093
+ if (hasBuyQuantityRequirement && unitSaving) {
8094
+ var _qtyLabel = quantityToBuy === 1 ? 'quantity' : 'quantities';
8095
+ return "Buy " + quantityToBuy + " " + _qtyLabel + ", save $" + formatCurrency(unitSaving) + " per item";
8096
+ }
8097
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage && unitSaving) {
8098
+ return "get " + coupon.offPercentage + "% off, save $" + formatCurrency(unitSaving) + " per item";
8099
+ }
8100
+ if (unitSaving) {
8101
+ return "save $" + formatCurrency(unitSaving) + " per item";
8102
+ }
8103
+ return null;
8104
+ };
8105
+ var getSavingsBadge = function getSavingsBadge(coupon, productPrice) {
8106
+ if (isBuyXGetFreeProduct(coupon)) {
8107
+ if (!isFullyFreeBuyXOffer(coupon)) {
8108
+ return {
8109
+ variant: 'percent',
8110
+ top: getBuyXGetFreeProductOffPercent(coupon) + "%",
8111
+ bottom: 'OFF'
8112
+ };
8113
+ }
8114
+ var qty = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) || 1;
8115
+ return {
8116
+ variant: 'gift',
8117
+ top: qty > 1 ? qty + "\xD7" : 'FREE',
8118
+ bottom: 'GIFT'
8119
+ };
8120
+ }
8121
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0) {
8122
+ return {
8123
+ variant: 'bogo',
8124
+ top: "+" + coupon.quantityToGet,
8125
+ bottom: 'FREE'
8126
+ };
8127
+ }
8128
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage) {
8129
+ return {
8130
+ variant: 'percent',
8131
+ top: coupon.offPercentage + "%",
8132
+ bottom: 'OFF'
8133
+ };
8134
+ }
8135
+ var unitSaving = getUnitSaving(coupon, productPrice);
8136
+ if (unitSaving) {
8137
+ return {
8138
+ variant: 'amount',
8139
+ top: "$" + formatCurrency(unitSaving),
8140
+ bottom: 'SAVE'
8141
+ };
8142
+ }
8143
+ return {
8144
+ variant: 'deal',
8145
+ top: 'SAVE',
8146
+ bottom: 'NOW'
8147
+ };
8148
+ };
8149
+ var getProgressInfo = function getProgressInfo(coupon, cartQuantity) {
8150
+ if (isBuyXGetFreeProduct(coupon)) {
8151
+ var _target = coupon.quantityToBuy || 0;
8152
+ if (!_target) return null;
8153
+ var _current = Math.min(cartQuantity, _target);
8154
+ var _percent = Math.min(100, _current / _target * 100);
8155
+ var _remaining2 = Math.max(0, _target - cartQuantity);
8156
+ var qualified = cartQuantity >= _target;
8157
+ var offerLabel = getBuyXGetFreeProductOfferLabel(coupon);
8158
+ var unlockLabel = isFullyFreeBuyXOffer(coupon) ? 'your FREE gift' : offerLabel;
8159
+ return {
8160
+ type: 'quantity',
8161
+ current: _current,
8162
+ target: _target,
8163
+ percent: _percent,
8164
+ qualified: qualified,
8165
+ unitLabel: _target === 1 ? 'Item' : 'Items',
8166
+ 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 + "!"
8167
+ };
8168
+ }
8169
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8170
+ if (!hasBuyXGetY) return null;
8171
+ var quantityToBuy = coupon.quantityToBuy,
8172
+ quantityToGet = coupon.quantityToGet;
8173
+ var totalNeeded = quantityToBuy + quantityToGet;
8174
+ if (cartQuantity >= totalNeeded) {
8175
+ return {
8176
+ type: 'buyxgety',
8177
+ qualified: true,
8178
+ quantityToBuy: quantityToBuy,
8179
+ quantityToGet: quantityToGet,
8180
+ message: "You're eligible — apply your code at checkout!"
8181
+ };
8182
+ }
8183
+ if (cartQuantity >= quantityToBuy) {
8184
+ var _current2 = cartQuantity;
8185
+ var _target2 = totalNeeded;
8186
+ var _percent2 = Math.min(100, _current2 / _target2 * 100);
8187
+ var _remaining3 = totalNeeded - cartQuantity;
8188
+ return {
8189
+ type: 'quantity',
8190
+ current: _current2,
8191
+ target: _target2,
8192
+ percent: _percent2,
8193
+ qualified: false,
8194
+ unitLabel: _target2 === 1 ? 'Item' : 'Items',
8195
+ message: _remaining3 === 1 ? 'Only 1 more item to apply this coupon' : "Only " + _remaining3 + " more items to apply this coupon",
8196
+ showTimeline: true,
8197
+ quantityToBuy: quantityToBuy,
8198
+ quantityToGet: quantityToGet
8199
+ };
8200
+ }
8201
+ var current = Math.min(cartQuantity, quantityToBuy);
8202
+ var target = quantityToBuy;
8203
+ var percent = Math.min(100, current / target * 100);
8204
+ var remaining = quantityToBuy - cartQuantity;
8205
+ return {
8206
+ type: 'quantity',
8207
+ current: current,
8208
+ target: target,
8209
+ percent: percent,
8210
+ qualified: false,
8211
+ unitLabel: target === 1 ? 'Item' : 'Items',
8212
+ message: remaining === 1 ? 'Only 1 more item to qualify' : "Only " + remaining + " more items to qualify",
8213
+ showTimeline: true,
8214
+ quantityToBuy: quantityToBuy,
8215
+ quantityToGet: quantityToGet
8216
+ };
8217
+ };
8218
+ var isProgressDetailLine = function isProgressDetailLine(line) {
8219
+ return line === null || line === void 0 ? void 0 : line.startsWith('Add ');
8220
+ };
8221
+ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8222
+ var open = _ref3.open,
8223
+ onClose = _ref3.onClose,
8224
+ productName = _ref3.productName,
8225
+ _ref3$productDiscount = _ref3.productDiscounts,
8226
+ productDiscounts = _ref3$productDiscount === void 0 ? [] : _ref3$productDiscount,
8227
+ primaryColor = _ref3.primaryColor,
8228
+ _ref3$cartQuantity = _ref3.cartQuantity,
8229
+ cartQuantity = _ref3$cartQuantity === void 0 ? 0 : _ref3$cartQuantity,
8230
+ _ref3$productPrice = _ref3.productPrice,
8231
+ productPrice = _ref3$productPrice === void 0 ? 0 : _ref3$productPrice;
8232
+ var _useState = useState(null),
8233
+ copiedCode = _useState[0],
8234
+ setCopiedCode = _useState[1];
8235
+ var accentColor = primaryColor || DEFAULT_PRIMARY_COLOR$1;
8236
+ var copyCouponCode = useCallback(function (code) {
8237
+ try {
8238
+ if (!code) return Promise.resolve();
8239
+ var _temp3 = _catch(function () {
8240
+ var _navigator, _navigator$clipboard;
8241
+ 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 () {
8242
+ var _window;
8243
+ setCopiedCode(code);
8244
+ (_window = window) === null || _window === void 0 ? void 0 : _window.setTimeout(function () {
8245
+ return setCopiedCode(null);
8246
+ }, 1800);
8247
+ });
8248
+ }, function (error) {
8249
+ console.error('Failed to copy coupon code', error);
8250
+ });
8251
+ return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
8252
+ } catch (e) {
8253
+ return Promise.reject(e);
8254
+ }
8255
+ }, []);
8256
+ useEffect(function () {
8257
+ if (!open) return;
8258
+ var scrollLocks = [];
8259
+ var lockElement = function lockElement(el) {
8260
+ if (!el) return;
8261
+ scrollLocks.push({
8262
+ el: el,
8263
+ overflow: el.style.overflow,
8264
+ overscrollBehavior: el.style.overscrollBehavior
8265
+ });
8266
+ el.style.overflow = 'hidden';
8267
+ el.style.overscrollBehavior = 'none';
8268
+ };
8269
+ lockElement(document.body);
8270
+ lockElement(document.documentElement);
8271
+ document.querySelectorAll('.scrollDiv, .MuiTableContainer-root').forEach(lockElement);
8272
+ var handleKeyDown = function handleKeyDown(event) {
8273
+ if (event.key === 'Escape') onClose();
8274
+ };
8275
+ document.addEventListener('keydown', handleKeyDown);
8276
+ return function () {
8277
+ scrollLocks.forEach(function (_ref4) {
8278
+ var el = _ref4.el,
8279
+ overflow = _ref4.overflow,
8280
+ overscrollBehavior = _ref4.overscrollBehavior;
8281
+ el.style.overflow = overflow;
8282
+ el.style.overscrollBehavior = overscrollBehavior;
8283
+ });
8284
+ document.removeEventListener('keydown', handleKeyDown);
8285
+ };
8286
+ }, [open, onClose]);
8287
+ if (!open) return null;
8288
+ return createPortal(/*#__PURE__*/React__default.createElement(Overlay, {
8289
+ onClick: onClose,
8290
+ role: "presentation"
8291
+ }, /*#__PURE__*/React__default.createElement(Panel, {
8292
+ role: "dialog",
8293
+ "aria-modal": "true",
8294
+ "aria-labelledby": "discount-suggestions-title",
8295
+ onClick: function onClick(event) {
8296
+ return event.stopPropagation();
8297
+ }
8298
+ }, /*#__PURE__*/React__default.createElement(DialogHeader, null, /*#__PURE__*/React__default.createElement(DialogTitle, {
8299
+ id: "discount-suggestions-title"
8300
+ }, "Available Offers"), /*#__PURE__*/React__default.createElement(CloseButton, {
8301
+ type: "button",
8302
+ "aria-label": "close",
8303
+ onClick: onClose
8304
+ }, /*#__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, {
8305
+ $accentColor: accentColor,
8306
+ role: "region",
8307
+ "aria-label": "Available offers and savings"
8308
+ }, /*#__PURE__*/React__default.createElement(AmbientGlow, {
8309
+ $accentColor: accentColor,
8310
+ "aria-hidden": "true"
8311
+ }), /*#__PURE__*/React__default.createElement(Sparkle, {
8312
+ $accentColor: accentColor,
8313
+ $top: "12%",
8314
+ $left: "6%",
8315
+ $delay: "0s",
8316
+ "aria-hidden": "true"
8317
+ }), /*#__PURE__*/React__default.createElement(Sparkle, {
8318
+ $accentColor: accentColor,
8319
+ $top: "28%",
8320
+ $left: "88%",
8321
+ $delay: "1.2s",
8322
+ $size: "sm",
8323
+ "aria-hidden": "true"
8324
+ }), /*#__PURE__*/React__default.createElement(Sparkle, {
8325
+ $accentColor: accentColor,
8326
+ $top: "72%",
8327
+ $left: "4%",
8328
+ $delay: "2.1s",
8329
+ $size: "sm",
8330
+ "aria-hidden": "true"
8331
+ }), /*#__PURE__*/React__default.createElement(SectionHeader, {
8332
+ $accentColor: accentColor
8333
+ }, /*#__PURE__*/React__default.createElement(HeaderIconWrap, {
8334
+ $accentColor: accentColor
8335
+ }, /*#__PURE__*/React__default.createElement(MdLocalOffer, null)), /*#__PURE__*/React__default.createElement(HeaderCopy, null, /*#__PURE__*/React__default.createElement(Eyebrow, {
8336
+ $accentColor: accentColor
8337
+ }, /*#__PURE__*/React__default.createElement(FiZap, null), "Savings Center"), /*#__PURE__*/React__default.createElement(SectionHeading, null, productName || 'Available Offers')), /*#__PURE__*/React__default.createElement(OfferCountBadge, {
8338
+ $accentColor: accentColor
8339
+ }, /*#__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) {
8340
+ var _coupon$discountId;
8341
+ var benefit = getCouponBenefit(coupon, {
8342
+ productPrice: productPrice,
8343
+ cartQuantity: cartQuantity
8344
+ });
8345
+ var benefitSummary = (benefit === null || benefit === void 0 ? void 0 : benefit[0]) || null;
8346
+ var benefitDetails = (benefit === null || benefit === void 0 ? void 0 : benefit.length) > 1 ? benefit.slice(1) : [];
8347
+ var statusDetails = benefitDetails.filter(function (line) {
8348
+ return !isProgressDetailLine(line);
8349
+ });
8350
+ var hasSuccessStatus = statusDetails.some(function (line) {
8351
+ var _getDetailMeta = getDetailMeta(line),
8352
+ tone = _getDetailMeta.tone;
8353
+ return tone === 'success';
8354
+ });
8355
+ var freeProducts = isBuyXGetFreeProduct(coupon) ? (coupon === null || coupon === void 0 ? void 0 : coupon.freeProducts) || [] : [];
8356
+ var isFullyFreeOffer = isBuyXGetFreeProduct(coupon) ? isFullyFreeBuyXOffer(coupon) : false;
8357
+ var TypeIcon = getCouponTypeIcon(coupon);
8358
+ var isCopied = copiedCode === (coupon === null || coupon === void 0 ? void 0 : coupon.couponCode);
8359
+ var savingsBadge = getSavingsBadge(coupon, productPrice);
8360
+ var progressInfo = getProgressInfo(coupon, cartQuantity);
8361
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8362
+ var showTimeline = hasBuyXGetY && ((progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.showTimeline) || (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'buyxgety');
8363
+ return /*#__PURE__*/React__default.createElement(OfferCard, {
8364
+ key: (_coupon$discountId = coupon === null || coupon === void 0 ? void 0 : coupon.discountId) != null ? _coupon$discountId : coupon === null || coupon === void 0 ? void 0 : coupon.couponCode,
8365
+ $accentColor: accentColor,
8366
+ $index: index
8367
+ }, /*#__PURE__*/React__default.createElement(CardBody, null, /*#__PURE__*/React__default.createElement(CardHeader, null, /*#__PURE__*/React__default.createElement(SavingsBadge, {
8368
+ $accentColor: accentColor,
8369
+ $variant: savingsBadge.variant
8370
+ }, /*#__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, {
8371
+ $accentColor: accentColor
8372
+ }, /*#__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, {
8373
+ $accentColor: accentColor
8374
+ }, /*#__PURE__*/React__default.createElement(HiSparkles, null), "Ready")), /*#__PURE__*/React__default.createElement(TitleRow, null, /*#__PURE__*/React__default.createElement(OfferTitle, {
8375
+ title: coupon === null || coupon === void 0 ? void 0 : coupon.discountName
8376
+ }, coupon === null || coupon === void 0 ? void 0 : coupon.discountName), /*#__PURE__*/React__default.createElement(CodeRow, {
8377
+ $accentColor: accentColor
8378
+ }, /*#__PURE__*/React__default.createElement(CodeValue, {
8379
+ $accentColor: accentColor,
8380
+ "aria-label": "Coupon code " + (coupon === null || coupon === void 0 ? void 0 : coupon.couponCode)
8381
+ }, coupon === null || coupon === void 0 ? void 0 : coupon.couponCode), /*#__PURE__*/React__default.createElement(Tooltip, {
8382
+ title: isCopied ? 'Copied!' : 'Copy code',
8383
+ arrow: true,
8384
+ placement: "top"
8385
+ }, /*#__PURE__*/React__default.createElement(PrimaryCopyButton, {
8386
+ type: "button",
8387
+ $accentColor: accentColor,
8388
+ $copied: isCopied,
8389
+ "aria-label": "Copy coupon code " + (coupon === null || coupon === void 0 ? void 0 : coupon.couponCode),
8390
+ onClick: function onClick() {
8391
+ return copyCouponCode(coupon === null || coupon === void 0 ? void 0 : coupon.couponCode);
8392
+ }
8393
+ }, isCopied ? /*#__PURE__*/React__default.createElement("div", {
8394
+ style: {
8395
+ display: 'flex',
8396
+ alignItems: 'center',
8397
+ gap: '4px'
8398
+ }
8399
+ }, /*#__PURE__*/React__default.createElement(FiCheck, null), /*#__PURE__*/React__default.createElement("span", null, "Copied")) : /*#__PURE__*/React__default.createElement("div", {
8400
+ style: {
8401
+ display: 'flex',
8402
+ alignItems: 'center',
8403
+ gap: '4px'
8404
+ }
8405
+ }, /*#__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, {
8406
+ $accentColor: accentColor
8407
+ }, /*#__PURE__*/React__default.createElement(TimelineStep, null, /*#__PURE__*/React__default.createElement(TimelineIcon, {
8408
+ $accentColor: accentColor
8409
+ }, /*#__PURE__*/React__default.createElement(FiShoppingCart, null)), /*#__PURE__*/React__default.createElement(TimelineLabel, null, "Buy ", coupon.quantityToBuy)), /*#__PURE__*/React__default.createElement(TimelineTrack, {
8410
+ $accentColor: accentColor
8411
+ }, /*#__PURE__*/React__default.createElement(TimelineArrow, {
8412
+ $accentColor: accentColor
8413
+ })), /*#__PURE__*/React__default.createElement(TimelineStep, null, /*#__PURE__*/React__default.createElement(TimelineIcon, {
8414
+ $accentColor: accentColor,
8415
+ $highlight: true
8416
+ }, /*#__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, {
8417
+ $accentColor: accentColor,
8418
+ role: "progressbar",
8419
+ "aria-valuenow": progressInfo.current,
8420
+ "aria-valuemin": 0,
8421
+ "aria-valuemax": progressInfo.target,
8422
+ "aria-label": progressInfo.current + " of " + progressInfo.target + " items toward eligibility"
8423
+ }, /*#__PURE__*/React__default.createElement(ProgressFill, {
8424
+ $accentColor: accentColor,
8425
+ $percent: progressInfo.percent
8426
+ })), /*#__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, {
8427
+ $accentColor: accentColor
8428
+ }, /*#__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) {
8429
+ var _getDetailMeta2 = getDetailMeta(line),
8430
+ DetailIcon = _getDetailMeta2.icon,
8431
+ tone = _getDetailMeta2.tone;
8432
+ return /*#__PURE__*/React__default.createElement(StatusItem, {
8433
+ key: (coupon === null || coupon === void 0 ? void 0 : coupon.discountId) + "-" + detailIndex,
8434
+ $accentColor: accentColor,
8435
+ $tone: tone,
8436
+ $chipIndex: detailIndex
8437
+ }, /*#__PURE__*/React__default.createElement(DetailIcon, null), /*#__PURE__*/React__default.createElement("span", null, line));
8438
+ })), freeProducts.length > 0 && /*#__PURE__*/React__default.createElement(GiftSection, null, isFullyFreeOffer && /*#__PURE__*/React__default.createElement(GiftSectionHeader, {
8439
+ $accentColor: accentColor
8440
+ }, /*#__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) {
8441
+ var _product$productName;
8442
+ return /*#__PURE__*/React__default.createElement(GiftLink, {
8443
+ key: product === null || product === void 0 ? void 0 : product.productId,
8444
+ href: getFreeProductHref(product),
8445
+ $accentColor: accentColor
8446
+ }, /*#__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));
8447
+ })))));
8448
+ })))))), document.body);
8449
+ };
8450
+ 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"])));
8451
+ 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"])));
8452
+ 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"])));
8453
+ 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"])));
8454
+ var progressGrow = keyframes(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n from {\n width: 0;\n }\n"])));
8455
+ 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"])));
8456
+ var reducedMotion = css(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n @media (prefers-reduced-motion: reduce) {\n animation: none !important;\n transition: none !important;\n }\n"])));
8457
+ 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"])));
8458
+ 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"])));
8459
+ 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"])));
8460
+ 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"])));
8461
+ 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"])));
8462
+ 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"])));
8463
+ 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"])));
8464
+ 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) {
8465
+ var $accentColor = _ref5.$accentColor;
8466
+ return $accentColor;
8467
+ }, function (_ref6) {
8468
+ var $accentColor = _ref6.$accentColor;
8469
+ return $accentColor + "20";
8470
+ }, function (_ref7) {
8471
+ var $accentColor = _ref7.$accentColor;
8472
+ return $accentColor + "10";
8473
+ }, fadeSlideUp, reducedMotion);
8474
+ 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) {
8475
+ var $accentColor = _ref8.$accentColor;
8476
+ return $accentColor + "18";
8477
+ });
8478
+ 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) {
8479
+ var $top = _ref9.$top;
8480
+ return $top;
8481
+ }, function (_ref10) {
8482
+ var $left = _ref10.$left;
8483
+ return $left;
8484
+ }, function (_ref11) {
8485
+ var $size = _ref11.$size;
8486
+ return $size === 'sm' ? '4px' : '6px';
8487
+ }, function (_ref12) {
8488
+ var $size = _ref12.$size;
8489
+ return $size === 'sm' ? '4px' : '6px';
8490
+ }, function (_ref13) {
8491
+ var $accentColor = _ref13.$accentColor;
8492
+ return $accentColor;
8493
+ }, function (_ref14) {
8494
+ var $accentColor = _ref14.$accentColor;
8495
+ return $accentColor + "80";
8496
+ }, sparkleFloat, function (_ref15) {
8497
+ var $delay = _ref15.$delay;
8498
+ return $delay;
8499
+ }, reducedMotion);
8500
+ 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) {
8501
+ var $accentColor = _ref16.$accentColor;
8502
+ return $accentColor + "16";
8503
+ }, function (_ref17) {
8504
+ var $accentColor = _ref17.$accentColor;
8505
+ return $accentColor + "05";
8506
+ }, function (_ref18) {
8507
+ var $accentColor = _ref18.$accentColor;
8508
+ return $accentColor + "12";
8509
+ }, shimmer, reducedMotion);
8510
+ 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) {
8511
+ var $accentColor = _ref19.$accentColor;
8512
+ return $accentColor + "40";
8513
+ }, function (_ref20) {
8514
+ var $accentColor = _ref20.$accentColor;
8515
+ return $accentColor;
8516
+ }, function (_ref21) {
8517
+ var $accentColor = _ref21.$accentColor;
8518
+ return $accentColor + "cc";
8519
+ });
8520
+ var HeaderCopy = styled.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n z-index: 1;\n"])));
8521
+ 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) {
8522
+ var $accentColor = _ref22.$accentColor;
8523
+ return $accentColor;
8524
+ });
8525
+ 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"])));
8526
+ 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) {
8527
+ var $accentColor = _ref23.$accentColor;
8528
+ return $accentColor;
8529
+ });
8530
+ 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"])));
8531
+ 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) {
8532
+ var $accentColor = _ref24.$accentColor;
8533
+ return $accentColor + "20";
8534
+ }, fadeSlideUp, function (_ref25) {
8535
+ var $index = _ref25.$index;
8536
+ return 0.06 + $index * 0.04;
8537
+ }, function (_ref26) {
8538
+ var $accentColor = _ref26.$accentColor;
8539
+ return $accentColor + "45";
8540
+ }, function (_ref27) {
8541
+ var $accentColor = _ref27.$accentColor;
8542
+ return $accentColor + "12";
8543
+ }, function (_ref28) {
8544
+ var $accentColor = _ref28.$accentColor;
8545
+ return $accentColor + "50";
8546
+ }, reducedMotion);
8547
+ 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"])));
8548
+ var CardHeader = styled.div(_templateObject27$1 || (_templateObject27$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-start;\n gap: 0.55rem;\n"])));
8549
+ 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"])));
8550
+ 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) {
8551
+ var $accentColor = _ref29.$accentColor,
8552
+ $variant = _ref29.$variant;
8553
+ if ($variant === 'gift') {
8554
+ return "linear-gradient(145deg, #e8a317 0%, #c47d0a 100%)";
8555
+ }
8556
+ if ($variant === 'bogo') {
8557
+ return "linear-gradient(145deg, " + $accentColor + " 0%, #2d5f0a 100%)";
8558
+ }
8559
+ return "linear-gradient(145deg, " + $accentColor + " 0%, " + $accentColor + "cc 100%)";
8560
+ }, function (_ref30) {
8561
+ var $accentColor = _ref30.$accentColor;
8562
+ return $accentColor + "28";
8563
+ });
8564
+ var BadgeTop = styled.span(_templateObject30$1 || (_templateObject30$1 = _taggedTemplateLiteralLoose(["\n font-size: 0.82rem;\n font-weight: 900;\n letter-spacing: -0.02em;\n"])));
8565
+ 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"])));
8566
+ 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"])));
8567
+ 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) {
8568
+ var $accentColor = _ref31.$accentColor;
8569
+ return $accentColor;
8570
+ }, function (_ref32) {
8571
+ var $accentColor = _ref32.$accentColor;
8572
+ return $accentColor + "10";
8573
+ }, function (_ref33) {
8574
+ var $accentColor = _ref33.$accentColor;
8575
+ return $accentColor + "22";
8576
+ });
8577
+ 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) {
8578
+ var $accentColor = _ref34.$accentColor;
8579
+ return $accentColor;
8580
+ }, function (_ref35) {
8581
+ var $accentColor = _ref35.$accentColor;
8582
+ return $accentColor + "12";
8583
+ }, function (_ref36) {
8584
+ var $accentColor = _ref36.$accentColor;
8585
+ return $accentColor + "30";
8586
+ });
8587
+ 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"])));
8588
+ 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"])));
8589
+ 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"])));
8590
+ 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) {
8591
+ var $accentColor = _ref37.$accentColor;
8592
+ return $accentColor + "07";
8593
+ }, function (_ref38) {
8594
+ var $accentColor = _ref38.$accentColor;
8595
+ return $accentColor + "14";
8596
+ });
8597
+ var TimelineStep = styled.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n"])));
8598
+ 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) {
8599
+ var $accentColor = _ref39.$accentColor,
8600
+ $highlight = _ref39.$highlight;
8601
+ return $highlight ? '#fff' : $accentColor;
8602
+ }, function (_ref40) {
8603
+ var $accentColor = _ref40.$accentColor,
8604
+ $highlight = _ref40.$highlight;
8605
+ return $highlight ? $accentColor : $accentColor + "14";
8606
+ });
8607
+ var TimelineLabel = styled.span(_templateObject41 || (_templateObject41 = _taggedTemplateLiteralLoose(["\n font-size: 0.65rem;\n font-weight: 700;\n color: #3a4334;\n white-space: nowrap;\n"])));
8608
+ 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"])));
8609
+ 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) {
8610
+ var $accentColor = _ref41.$accentColor;
8611
+ return $accentColor + "44";
8612
+ }, function (_ref42) {
8613
+ var $accentColor = _ref42.$accentColor;
8614
+ return $accentColor;
8615
+ }, function (_ref43) {
8616
+ var $accentColor = _ref43.$accentColor;
8617
+ return $accentColor;
8618
+ });
8619
+ var ProgressBlock = styled.div(_templateObject44 || (_templateObject44 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n"])));
8620
+ 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"])));
8621
+ 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) {
8622
+ var $percent = _ref44.$percent;
8623
+ return $percent;
8624
+ }, function (_ref45) {
8625
+ var $accentColor = _ref45.$accentColor;
8626
+ return $accentColor + "cc";
8627
+ }, function (_ref46) {
8628
+ var $accentColor = _ref46.$accentColor;
8629
+ return $accentColor;
8630
+ }, progressGrow, reducedMotion);
8631
+ 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"])));
8632
+ 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"])));
8633
+ 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"])));
8634
+ 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) {
8635
+ var $accentColor = _ref47.$accentColor;
8636
+ return $accentColor;
8637
+ }, function (_ref48) {
8638
+ var $accentColor = _ref48.$accentColor;
8639
+ return $accentColor + "10";
8640
+ }, function (_ref49) {
8641
+ var $accentColor = _ref49.$accentColor;
8642
+ return $accentColor + "25";
8643
+ });
8644
+ var StatusList = styled.div(_templateObject51 || (_templateObject51 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n"])));
8645
+ 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) {
8646
+ var $chipIndex = _ref50.$chipIndex;
8647
+ return 0.1 + $chipIndex * 0.05;
8648
+ }, function (_ref51) {
8649
+ var $accentColor = _ref51.$accentColor,
8650
+ $tone = _ref51.$tone;
8651
+ if ($tone === 'warning') return '#fff8eb';
8652
+ if ($tone === 'success') return $accentColor + "10";
8653
+ return '#f4f6f1';
8654
+ }, function (_ref52) {
8655
+ var $accentColor = _ref52.$accentColor,
8656
+ $tone = _ref52.$tone;
8657
+ if ($tone === 'warning') return '#8a6400';
8658
+ if ($tone === 'success') return $accentColor;
8659
+ return '#45503c';
8660
+ }, function (_ref53) {
8661
+ var $accentColor = _ref53.$accentColor,
8662
+ $tone = _ref53.$tone;
8663
+ if ($tone === 'warning') return '#f0d48a';
8664
+ if ($tone === 'success') return $accentColor + "28";
8665
+ return '#e0e5da';
8666
+ }, reducedMotion);
8667
+ var GiftSection = styled.div(_templateObject53 || (_templateObject53 = _taggedTemplateLiteralLoose(["\n padding-top: 0.35rem;\n border-top: 1px solid #eef1e9;\n"])));
8668
+ 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) {
8669
+ var $accentColor = _ref54.$accentColor;
8670
+ return $accentColor;
8671
+ });
8672
+ var GiftList = styled.div(_templateObject55 || (_templateObject55 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.22rem;\n"])));
8673
+ 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) {
8674
+ var $accentColor = _ref55.$accentColor;
8675
+ return $accentColor + "1e";
8676
+ }, function (_ref56) {
8677
+ var $accentColor = _ref56.$accentColor;
8678
+ return $accentColor;
8679
+ }, function (_ref57) {
8680
+ var $accentColor = _ref57.$accentColor;
8681
+ return $accentColor;
8682
+ }, function (_ref58) {
8683
+ var $accentColor = _ref58.$accentColor;
8684
+ return $accentColor + "08";
8685
+ }, function (_ref59) {
8686
+ var $accentColor = _ref59.$accentColor;
8687
+ return $accentColor;
8688
+ }, reducedMotion);
8689
+ var CodeRow = styled.div(_templateObject57 || (_templateObject57 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.3rem;\n flex-shrink: 0;\n"])));
8690
+ 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) {
8691
+ var $accentColor = _ref60.$accentColor;
8692
+ return $accentColor;
8693
+ });
8694
+ 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) {
8695
+ var $accentColor = _ref61.$accentColor,
8696
+ $copied = _ref61.$copied;
8697
+ return $copied ? "linear-gradient(145deg, " + $accentColor + " 0%, " + $accentColor + "dd 100%)" : 'linear-gradient(145deg, #1a2114 0%, #0f140c 100%)';
8698
+ }, function (_ref62) {
8699
+ var $accentColor = _ref62.$accentColor;
8700
+ return $accentColor + "28";
8701
+ }, function (_ref63) {
8702
+ var $copied = _ref63.$copied;
8703
+ return $copied ? copyPop : 'none';
8704
+ }, function (_ref64) {
8705
+ var $accentColor = _ref64.$accentColor;
8706
+ return $accentColor;
8707
+ }, reducedMotion);
8708
+
8709
+ var _templateObject$w, _templateObject2$n, _templateObject3$h, _templateObject4$e, _templateObject5$a, _templateObject6$8;
8710
+ var DEFAULT_PRIMARY_COLOR$2 = '#437C0F';
8711
+ var DiscountSuggestionPreview = function DiscountSuggestionPreview(_ref) {
8712
+ var coupon = _ref.coupon,
8713
+ _ref$productPrice = _ref.productPrice,
8714
+ productPrice = _ref$productPrice === void 0 ? 0 : _ref$productPrice,
8715
+ _ref$cartQuantity = _ref.cartQuantity,
8716
+ cartQuantity = _ref$cartQuantity === void 0 ? 0 : _ref$cartQuantity,
8717
+ primaryColor = _ref.primaryColor,
8718
+ loading = _ref.loading,
8719
+ onViewOffers = _ref.onViewOffers,
8720
+ _ref$viewOffersLabel = _ref.viewOffersLabel,
8721
+ viewOffersLabel = _ref$viewOffersLabel === void 0 ? 'View All offers' : _ref$viewOffersLabel;
8722
+ var _useState = useState(false),
8723
+ copied = _useState[0],
8724
+ setCopied = _useState[1];
8725
+ var accentColor = primaryColor || DEFAULT_PRIMARY_COLOR$2;
8726
+ var previewText = getSuggestionPreviewText(coupon, {
8727
+ productPrice: productPrice,
8728
+ cartQuantity: cartQuantity
8729
+ });
8730
+ var code = coupon === null || coupon === void 0 ? void 0 : coupon.couponCode;
8731
+ var copyCouponCode = useCallback(function (event) {
8732
+ try {
8733
+ var _event$stopPropagatio;
8734
+ event === null || event === void 0 ? void 0 : (_event$stopPropagatio = event.stopPropagation) === null || _event$stopPropagatio === void 0 ? void 0 : _event$stopPropagatio.call(event);
8735
+ if (!code) return Promise.resolve();
8736
+ var _temp = _catch(function () {
8737
+ var _navigator, _navigator$clipboard;
8738
+ 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 () {
8739
+ var _window;
8740
+ setCopied(true);
8741
+ (_window = window) === null || _window === void 0 ? void 0 : _window.setTimeout(function () {
8742
+ return setCopied(false);
8743
+ }, 1800);
8744
+ });
8745
+ }, function (error) {
8746
+ console.error('Failed to copy coupon code', error);
8747
+ });
8748
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
8749
+ } catch (e) {
8750
+ return Promise.reject(e);
8751
+ }
8752
+ }, [code]);
8753
+ if (!code) return null;
8754
+ var quotedCode = "\"" + code + "\"";
8755
+ var fullTitle = previewText ? quotedCode + " " + previewText : quotedCode;
8756
+ return /*#__PURE__*/React__default.createElement(SuggestionRow, {
8757
+ onClick: function onClick(event) {
8758
+ event.stopPropagation();
8759
+ }
8760
+ }, /*#__PURE__*/React__default.createElement(SuggestionText, {
8761
+ $accentColor: accentColor,
8762
+ title: fullTitle
8763
+ }, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(CodeWrap, null, /*#__PURE__*/React__default.createElement(CodeValue$1, {
8764
+ $accentColor: accentColor
8765
+ }, quotedCode), /*#__PURE__*/React__default.createElement(Tooltip, {
8766
+ title: copied ? 'Copied!' : 'Copy code',
8767
+ arrow: true
8768
+ }, /*#__PURE__*/React__default.createElement(CopyBtn, {
8769
+ type: "button",
8770
+ $accentColor: accentColor,
8771
+ $copied: copied,
8772
+ "aria-label": "Copy coupon code " + code,
8773
+ onClick: copyCouponCode
8774
+ }, copied ? /*#__PURE__*/React__default.createElement(FiCheck, null) : /*#__PURE__*/React__default.createElement(FiCopy, null)))), previewText ? " " + previewText : '')), /*#__PURE__*/React__default.createElement(ViewOffersBtn, {
8775
+ type: "button",
8776
+ $accentColor: accentColor,
8777
+ onClick: function onClick(e) {
8778
+ e.stopPropagation();
8779
+ if (loading) return;
8780
+ onViewOffers === null || onViewOffers === void 0 ? void 0 : onViewOffers();
8781
+ }
8782
+ }, viewOffersLabel));
8783
+ };
8784
+ 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"])));
8785
+ 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) {
8786
+ var $accentColor = _ref2.$accentColor;
8787
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
8788
+ });
8789
+ 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"])));
8790
+ var CodeValue$1 = styled.span(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n font-weight: 800;\n letter-spacing: 0.02em;\n color: ", ";\n"])), function (_ref3) {
8791
+ var $accentColor = _ref3.$accentColor;
8792
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
8793
+ });
8794
+ 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) {
8795
+ var $accentColor = _ref4.$accentColor,
8796
+ $copied = _ref4.$copied;
8797
+ return $copied ? $accentColor || DEFAULT_PRIMARY_COLOR$2 : ($accentColor || DEFAULT_PRIMARY_COLOR$2) + "55";
8798
+ }, function (_ref5) {
8799
+ var $accentColor = _ref5.$accentColor,
8800
+ $copied = _ref5.$copied;
8801
+ return $copied ? ($accentColor || DEFAULT_PRIMARY_COLOR$2) + "18" : '#fff';
8802
+ }, function (_ref6) {
8803
+ var $accentColor = _ref6.$accentColor;
8804
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
8805
+ }, function (_ref7) {
8806
+ var $accentColor = _ref7.$accentColor;
8807
+ return ($accentColor || DEFAULT_PRIMARY_COLOR$2) + "14";
8808
+ }, function (_ref8) {
8809
+ var $accentColor = _ref8.$accentColor;
8810
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
8811
+ });
8812
+ 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) {
8813
+ var $accentColor = _ref9.$accentColor;
8814
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
8815
+ }, function (_ref10) {
8816
+ var $accentColor = _ref10.$accentColor;
8817
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
8818
+ }, function (_ref11) {
8819
+ var $accentColor = _ref11.$accentColor;
8820
+ return $accentColor ? $accentColor + "12" : '#437C0F12';
8821
+ });
8822
+
8823
+ var _templateObject$x, _templateObject2$o, _templateObject3$i, _templateObject4$f, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$6;
8824
+ 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"])));
8825
+ 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) {
8090
8826
  return props.size || '1em';
8091
8827
  });
8092
- 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) {
8828
+ 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) {
8093
8829
  return props.size || '1.19em';
8094
8830
  }, function (prop) {
8095
8831
  return prop.bg;
8096
8832
  }, function (prop) {
8097
8833
  return prop.bg;
8098
8834
  });
8099
- var CartTableCell$1 = styled(TableCell)(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
8100
- 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"])));
8101
- 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"])));
8102
- var CardRow = function CardRow(_ref) {
8103
- var _styles$price, _styles$Btn;
8104
- var row = _ref.row,
8105
- isItemSelected = _ref.isItemSelected,
8106
- handleClick = _ref.handleClick,
8107
- imgnotfoundUrl = _ref.imgnotfoundUrl,
8108
- handleIncrementDecrement = _ref.handleIncrementDecrement,
8109
- handleRemoveProduct = _ref.handleRemoveProduct,
8110
- loading = _ref.loading,
8111
- imgSize = _ref.imgSize,
8112
- styles = _ref.styles,
8113
- clickRedirect = _ref.clickRedirect,
8114
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8115
- doNotShowPrice = _ref.doNotShowPrice;
8835
+ var CartTableCell$1 = styled(TableCell)(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
8836
+ 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"])));
8837
+ 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"])));
8838
+ 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) {
8839
+ var $accentColor = _ref.$accentColor;
8840
+ return $accentColor || '#437C0F';
8841
+ }, function (_ref2) {
8842
+ var $accentColor = _ref2.$accentColor;
8843
+ return $accentColor || '#437C0F';
8844
+ });
8845
+ 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"])));
8846
+ var CardRow = function CardRow(_ref3) {
8847
+ var _styles$Btn, _styles$price, _styles$Btn2;
8848
+ var row = _ref3.row,
8849
+ isItemSelected = _ref3.isItemSelected,
8850
+ handleClick = _ref3.handleClick,
8851
+ imgnotfoundUrl = _ref3.imgnotfoundUrl,
8852
+ handleIncrementDecrement = _ref3.handleIncrementDecrement,
8853
+ handleRemoveProduct = _ref3.handleRemoveProduct,
8854
+ loading = _ref3.loading,
8855
+ imgSize = _ref3.imgSize,
8856
+ styles = _ref3.styles,
8857
+ clickRedirect = _ref3.clickRedirect,
8858
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref3.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8859
+ doNotShowPrice = _ref3.doNotShowPrice,
8860
+ discountSuggesstions = _ref3.discountSuggesstions,
8861
+ showDiscountSuggestions = _ref3.showDiscountSuggestions;
8116
8862
  var imgnotfoundUrlcommon = noImgAvailable$1;
8117
8863
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
8118
8864
  var timer = useRef();
8119
8865
  var _useState = useState(row === null || row === void 0 ? void 0 : row.quantity),
8120
8866
  quantity = _useState[0],
8121
8867
  setQuantity = _useState[1];
8868
+ var _useState2 = useState(false),
8869
+ discountModalOpen = _useState2[0],
8870
+ setDiscountModalOpen = _useState2[1];
8871
+ 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);
8872
+ var productDiscounts = (discountSuggesstions === null || discountSuggesstions === void 0 ? void 0 : discountSuggesstions.filter(function (discount) {
8873
+ return (discount === null || discount === void 0 ? void 0 : discount.productId) == (row === null || row === void 0 ? void 0 : row.productId);
8874
+ })) || [];
8875
+ var showDiscountButton = (productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts.length) > 0;
8876
+ var firstSuggestion = productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts[0];
8122
8877
  useEffect(function () {
8123
8878
  setQuantity(row === null || row === void 0 ? void 0 : row.quantity);
8124
8879
  }, [row]);
@@ -8157,7 +8912,7 @@ var CardRow = function CardRow(_ref) {
8157
8912
  tabIndex: -1,
8158
8913
  key: row.ProductId,
8159
8914
  size: styles === null || styles === void 0 ? void 0 : (_styles$price = styles.price) === null || _styles$price === void 0 ? void 0 : _styles$price.size,
8160
- 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)
8915
+ 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)
8161
8916
  }, /*#__PURE__*/React__default.createElement(CartTableCell$1, {
8162
8917
  padding: "checkbox",
8163
8918
  style: {
@@ -8193,6 +8948,15 @@ var CardRow = function CardRow(_ref) {
8193
8948
  }, row.productName), /*#__PURE__*/React__default.createElement(CouponDiscountName, {
8194
8949
  discountAmount: row === null || row === void 0 ? void 0 : row.couponDiscount,
8195
8950
  discountName: row === null || row === void 0 ? void 0 : row.couponCode
8951
+ }), showDiscountSuggestions && showDiscountButton && firstSuggestion && /*#__PURE__*/React__default.createElement(DiscountSuggestionPreview, {
8952
+ coupon: firstSuggestion,
8953
+ productPrice: (row === null || row === void 0 ? void 0 : row.standardPrice) || 0,
8954
+ cartQuantity: (row === null || row === void 0 ? void 0 : row.quantity) || 0,
8955
+ primaryColor: accentColor,
8956
+ loading: loading,
8957
+ onViewOffers: function onViewOffers() {
8958
+ return setDiscountModalOpen(true);
8959
+ }
8196
8960
  }), !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", {
8197
8961
  style: {
8198
8962
  color: 'red',
@@ -8269,7 +9033,7 @@ var CardRow = function CardRow(_ref) {
8269
9033
  discountAmount: row === null || row === void 0 ? void 0 : row.couponDiscount
8270
9034
  }))), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
8271
9035
  alig: "center"
8272
- }, /*#__PURE__*/React__default.createElement(DeleteBtn, {
9036
+ }, /*#__PURE__*/React__default.createElement(ActionCell, null, /*#__PURE__*/React__default.createElement(DeleteBtn, {
8273
9037
  onClick: function onClick(e) {
8274
9038
  e.stopPropagation();
8275
9039
  if (loading) return;
@@ -8281,7 +9045,17 @@ var CardRow = function CardRow(_ref) {
8281
9045
  style: {
8282
9046
  fontSize: 'inherit'
8283
9047
  }
8284
- }))));
9048
+ }))), /*#__PURE__*/React__default.createElement(DiscountSuggestionsModal, {
9049
+ open: discountModalOpen,
9050
+ onClose: function onClose() {
9051
+ return setDiscountModalOpen(false);
9052
+ },
9053
+ productName: row === null || row === void 0 ? void 0 : row.productName,
9054
+ productDiscounts: productDiscounts,
9055
+ primaryColor: accentColor,
9056
+ cartQuantity: (row === null || row === void 0 ? void 0 : row.quantity) || 0,
9057
+ productPrice: (row === null || row === void 0 ? void 0 : row.standardPrice) || 0
9058
+ })));
8285
9059
  };
8286
9060
 
8287
9061
  var DEFAULT_PAGE_SIZE = 50;
@@ -8412,12 +9186,17 @@ function EnhancedTable(_ref2) {
8412
9186
  disabledSelectAllProductCheckbox = _ref2.disabledSelectAllProductCheckbox,
8413
9187
  clickRedirect = _ref2.clickRedirect,
8414
9188
  allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref2.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8415
- doNotShowPrice = _ref2.doNotShowPrice;
9189
+ doNotShowPrice = _ref2.doNotShowPrice,
9190
+ showDiscountSuggestions = _ref2.showDiscountSuggestions;
8416
9191
  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) {
8417
9192
  return _extends({}, li, {
8418
9193
  subtotal: li.standardPrice * li.quantity
8419
9194
  });
8420
9195
  });
9196
+ var discountSuggesstions = useMemo(function () {
9197
+ var _cartData$suggestions;
9198
+ return (_cartData$suggestions = cartData === null || cartData === void 0 ? void 0 : cartData.suggestions) != null ? _cartData$suggestions : [];
9199
+ }, [cartData === null || cartData === void 0 ? void 0 : cartData.suggestions]);
8421
9200
  var _React$useState = useState('asc'),
8422
9201
  order = _React$useState[0],
8423
9202
  setOrder = _React$useState[1];
@@ -8540,8 +9319,10 @@ function EnhancedTable(_ref2) {
8540
9319
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8541
9320
  doNotShowPrice: doNotShowPrice
8542
9321
  }), /*#__PURE__*/createElement(TableBody$1, null, paginatedCartArray.map(function (row, index) {
9322
+ var _row$productId;
8543
9323
  var isItemSelected = isSelected(row);
8544
9324
  return /*#__PURE__*/createElement(CardRow, {
9325
+ key: (_row$productId = row === null || row === void 0 ? void 0 : row.productId) != null ? _row$productId : index,
8545
9326
  row: row,
8546
9327
  isItemSelected: isItemSelected,
8547
9328
  handleClick: handleClick,
@@ -8552,7 +9333,9 @@ function EnhancedTable(_ref2) {
8552
9333
  handleRemoveProduct: handleRemoveProduct,
8553
9334
  clickRedirect: clickRedirect,
8554
9335
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8555
- doNotShowPrice: doNotShowPrice
9336
+ doNotShowPrice: doNotShowPrice,
9337
+ discountSuggesstions: discountSuggesstions,
9338
+ showDiscountSuggestions: showDiscountSuggestions
8556
9339
  });
8557
9340
  }))))), /*#__PURE__*/createElement("div", {
8558
9341
  style: {
@@ -8622,35 +9405,56 @@ function EnhancedTable(_ref2) {
8622
9405
  }))))));
8623
9406
  }
8624
9407
 
8625
- var _templateObject$v, _templateObject2$n, _templateObject3$h, _templateObject4$e, _templateObject5$a, _templateObject6$8, _templateObject7$6;
8626
- 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"])));
8627
- 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) {
9408
+ var _templateObject$y, _templateObject2$p, _templateObject3$j, _templateObject4$g, _templateObject5$c, _templateObject6$a, _templateObject7$8;
9409
+ 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"])));
9410
+ 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) {
8628
9411
  return props.width || 'auto';
8629
9412
  }, function (props) {
8630
9413
  return props.height || 'auto';
8631
9414
  });
8632
- 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"])));
8633
- 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"])));
8634
- 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"])));
8635
- 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"])));
8636
- 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"])));
9415
+ 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"])));
9416
+ 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"])));
9417
+ 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"])));
9418
+ 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"])));
9419
+ 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"])));
8637
9420
 
8638
- var CartPageProductCard = function CartPageProductCard(_ref) {
8639
- var item = _ref.item,
8640
- imgnotfoundUrl = _ref.imgnotfoundUrl,
8641
- handleIncrementDecrement = _ref.handleIncrementDecrement,
8642
- handleRemoveProduct = _ref.handleRemoveProduct,
8643
- loading = _ref.loading,
8644
- imgSize = _ref.imgSize,
8645
- clickRedirect = _ref.clickRedirect,
8646
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8647
- doNotShowPrice = _ref.doNotShowPrice;
9421
+ var _templateObject$z;
9422
+ 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) {
9423
+ var $accentColor = _ref.$accentColor;
9424
+ return $accentColor || '#437C0F';
9425
+ }, function (_ref2) {
9426
+ var $accentColor = _ref2.$accentColor;
9427
+ return $accentColor || '#437C0F';
9428
+ });
9429
+ var CartPageProductCard = function CartPageProductCard(_ref3) {
9430
+ var _styles$Btn;
9431
+ var item = _ref3.item,
9432
+ imgnotfoundUrl = _ref3.imgnotfoundUrl,
9433
+ handleIncrementDecrement = _ref3.handleIncrementDecrement,
9434
+ handleRemoveProduct = _ref3.handleRemoveProduct,
9435
+ loading = _ref3.loading,
9436
+ imgSize = _ref3.imgSize,
9437
+ styles = _ref3.styles,
9438
+ clickRedirect = _ref3.clickRedirect,
9439
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref3.allowToProcessInvoiceForOutOfStockProductsEcommerce,
9440
+ doNotShowPrice = _ref3.doNotShowPrice,
9441
+ discountSuggesstions = _ref3.discountSuggesstions,
9442
+ showDiscountSuggestions = _ref3.showDiscountSuggestions;
8648
9443
  var imgnotfoundUrlcommon = noImgAvailable$1;
8649
9444
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
8650
9445
  var timer = useRef();
8651
9446
  var _useState = useState(item === null || item === void 0 ? void 0 : item.quantity),
8652
9447
  quantity = _useState[0],
8653
9448
  setQuantity = _useState[1];
9449
+ var _useState2 = useState(false),
9450
+ discountModalOpen = _useState2[0],
9451
+ setDiscountModalOpen = _useState2[1];
9452
+ 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);
9453
+ var productDiscounts = (discountSuggesstions === null || discountSuggesstions === void 0 ? void 0 : discountSuggesstions.filter(function (discount) {
9454
+ return (discount === null || discount === void 0 ? void 0 : discount.productId) == (item === null || item === void 0 ? void 0 : item.productId);
9455
+ })) || [];
9456
+ var showDiscountButton = (productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts.length) > 0;
9457
+ var firstSuggestion = productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts[0];
8654
9458
  useEffect(function () {
8655
9459
  setQuantity(item === null || item === void 0 ? void 0 : item.quantity);
8656
9460
  }, [item]);
@@ -8679,6 +9483,10 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8679
9483
  }
8680
9484
  }, 500);
8681
9485
  };
9486
+ var openDiscountModal = function openDiscountModal() {
9487
+ if (loading) return;
9488
+ setDiscountModalOpen(true);
9489
+ };
8682
9490
  return /*#__PURE__*/React__default.createElement(CartPageCard, null, /*#__PURE__*/React__default.createElement(CartPageImg, {
8683
9491
  src: item.imageUrl && item.imageUrl !== 'null' ? item.imageUrl : imgnotfoundUrlcommon,
8684
9492
  alt: 'img',
@@ -8698,7 +9506,14 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8698
9506
  })), !doNotShowPrice && /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
8699
9507
  totalAmount: item === null || item === void 0 ? void 0 : item.standardPrice,
8700
9508
  discountAmount: item === null || item === void 0 ? void 0 : item.discountAmount
8701
- }))), /*#__PURE__*/React__default.createElement(QtAndPriceBox, null, /*#__PURE__*/React__default.createElement(CartPageQtBox, null, /*#__PURE__*/React__default.createElement("span", {
9509
+ }))), showDiscountSuggestions && showDiscountButton && firstSuggestion && /*#__PURE__*/React__default.createElement(DiscountSuggestionPreview, {
9510
+ coupon: firstSuggestion,
9511
+ productPrice: (item === null || item === void 0 ? void 0 : item.standardPrice) || 0,
9512
+ cartQuantity: (item === null || item === void 0 ? void 0 : item.quantity) || 0,
9513
+ primaryColor: accentColor,
9514
+ loading: loading,
9515
+ onViewOffers: openDiscountModal
9516
+ }), /*#__PURE__*/React__default.createElement(QtAndPriceBox, null, /*#__PURE__*/React__default.createElement(CartPageQtBox, null, /*#__PURE__*/React__default.createElement("span", {
8702
9517
  className: "icon",
8703
9518
  onClick: function onClick() {
8704
9519
  if (loading) return;
@@ -8748,7 +9563,17 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8748
9563
  if (!sure) return;
8749
9564
  handleRemoveProduct(item);
8750
9565
  }
8751
- }, /*#__PURE__*/React__default.createElement(RiDeleteBin5Line, null)));
9566
+ }, /*#__PURE__*/React__default.createElement(RiDeleteBin5Line, null)), /*#__PURE__*/React__default.createElement(DiscountSuggestionsModal, {
9567
+ open: discountModalOpen,
9568
+ onClose: function onClose() {
9569
+ return setDiscountModalOpen(false);
9570
+ },
9571
+ productName: item === null || item === void 0 ? void 0 : item.productName,
9572
+ productDiscounts: productDiscounts,
9573
+ primaryColor: accentColor,
9574
+ cartQuantity: (item === null || item === void 0 ? void 0 : item.quantity) || 0,
9575
+ productPrice: (item === null || item === void 0 ? void 0 : item.standardPrice) || 0
9576
+ }));
8752
9577
  };
8753
9578
 
8754
9579
  var DEFAULT_PAGE_SIZE$1 = 50;
@@ -8764,7 +9589,8 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8764
9589
  styles = _ref.styles,
8765
9590
  clickRedirect = _ref.clickRedirect,
8766
9591
  allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8767
- doNotShowPrice = _ref.doNotShowPrice;
9592
+ doNotShowPrice = _ref.doNotShowPrice,
9593
+ showDiscountSuggestions = _ref.showDiscountSuggestions;
8768
9594
  var _useState = useState(1),
8769
9595
  page = _useState[0],
8770
9596
  setPage = _useState[1];
@@ -8792,6 +9618,7 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8792
9618
  color: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background,
8793
9619
  loading: true
8794
9620
  })), paginatedCartArray.map(function (item) {
9621
+ var _cartData$suggestions;
8795
9622
  return /*#__PURE__*/React__default.createElement(CartPageProductCard, {
8796
9623
  key: item === null || item === void 0 ? void 0 : item.productId,
8797
9624
  item: item,
@@ -8800,9 +9627,12 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8800
9627
  handleIncrementDecrement: handleIncrementDecrement,
8801
9628
  handleRemoveProduct: handleRemoveProduct,
8802
9629
  imgSize: styles === null || styles === void 0 ? void 0 : styles.imgSize,
9630
+ styles: styles,
8803
9631
  clickRedirect: clickRedirect,
8804
9632
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8805
- doNotShowPrice: doNotShowPrice
9633
+ doNotShowPrice: doNotShowPrice,
9634
+ discountSuggesstions: (_cartData$suggestions = cartData === null || cartData === void 0 ? void 0 : cartData.suggestions) != null ? _cartData$suggestions : [],
9635
+ showDiscountSuggestions: showDiscountSuggestions
8806
9636
  });
8807
9637
  }))), sortedCartArray.length > 0 && /*#__PURE__*/React__default.createElement(PaginationRow, null, totalPages > 1 && /*#__PURE__*/React__default.createElement(Pagination, {
8808
9638
  count: totalPages,
@@ -8851,23 +9681,23 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8851
9681
  })))));
8852
9682
  };
8853
9683
 
8854
- var _templateObject$w, _templateObject2$o, _templateObject3$i, _templateObject4$f, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$5;
8855
- 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) {
9684
+ var _templateObject$A, _templateObject2$q, _templateObject3$k, _templateObject4$h, _templateObject5$d, _templateObject6$b, _templateObject7$9, _templateObject8$7;
9685
+ 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) {
8856
9686
  return props.background || '#667080';
8857
9687
  }, function (props) {
8858
9688
  return props.color || 'white';
8859
9689
  }, function (props) {
8860
9690
  return props.color || 'white';
8861
9691
  });
8862
- 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) {
9692
+ 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) {
8863
9693
  return props.justify || 'space-between';
8864
9694
  }, function (props) {
8865
9695
  return props.h5 || '1.31em';
8866
9696
  });
8867
- 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) {
9697
+ 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) {
8868
9698
  return props.color || 'rgba(255, 255, 255, 0.5)';
8869
9699
  });
8870
- 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) {
9700
+ 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) {
8871
9701
  return props.paddingBottom ? '0' : '0';
8872
9702
  }, function (props) {
8873
9703
  return props.background || '#bfc3ca';
@@ -8882,16 +9712,16 @@ var CartSummaryInputBox = styled.form(_templateObject4$f || (_templateObject4$f
8882
9712
  }, function (props) {
8883
9713
  return props.btn || '#393f48';
8884
9714
  });
8885
- 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"])));
8886
- 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) {
9715
+ 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"])));
9716
+ 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) {
8887
9717
  return props.btn || '#393f48';
8888
9718
  });
8889
- 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) {
9719
+ 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) {
8890
9720
  return props.background || '#393f48';
8891
9721
  }, function (props) {
8892
9722
  return props.color || 'inherit';
8893
9723
  });
8894
- 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) {
9724
+ 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) {
8895
9725
  return props.background || 'white';
8896
9726
  }, function (props) {
8897
9727
  return props.selected ? props.background : 'transparent';
@@ -9120,7 +9950,9 @@ var CartPageComponent = function CartPageComponent(_ref) {
9120
9950
  styles = _ref.styles,
9121
9951
  onChangeDiscountCoupon = _ref.onChangeDiscountCoupon,
9122
9952
  _ref$doNotShowPrice = _ref.doNotShowPrice,
9123
- doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice;
9953
+ doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice,
9954
+ _ref$showDiscountSugg = _ref.showDiscountSuggestions,
9955
+ showDiscountSuggestions = _ref$showDiscountSugg === void 0 ? false : _ref$showDiscountSugg;
9124
9956
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
9125
9957
  apiEndPoint: apiEndPoint,
9126
9958
  token: token
@@ -9244,7 +10076,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
9244
10076
  handleRemoveProduct: handleRemoveProduct,
9245
10077
  clickRedirect: clickRedirect,
9246
10078
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
9247
- doNotShowPrice: doNotShowPrice
10079
+ doNotShowPrice: doNotShowPrice,
10080
+ showDiscountSuggestions: showDiscountSuggestions
9248
10081
  }) : /*#__PURE__*/React__default.createElement(EnhancedTable, {
9249
10082
  retail: retail,
9250
10083
  clickRedirect: clickRedirect,
@@ -9257,7 +10090,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
9257
10090
  handleRemoveAll: handleRemoveAll,
9258
10091
  disabledSelectAllProductCheckbox: disabledSelectAllProductCheckbox,
9259
10092
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
9260
- doNotShowPrice: doNotShowPrice
10093
+ doNotShowPrice: doNotShowPrice,
10094
+ showDiscountSuggestions: showDiscountSuggestions
9261
10095
  }), /*#__PURE__*/React__default.createElement(CartSummary, {
9262
10096
  apiEndPoint: apiEndPoint,
9263
10097
  token: token,
@@ -9298,12 +10132,12 @@ var checkMinMaxQty = function checkMinMaxQty(_ref2) {
9298
10132
  return quantityReturn;
9299
10133
  };
9300
10134
 
9301
- var _templateObject$x, _templateObject2$p, _templateObject3$j;
9302
- 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) {
10135
+ var _templateObject$B, _templateObject2$r, _templateObject3$l;
10136
+ 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) {
9303
10137
  return props.color || 'grey';
9304
10138
  });
9305
- 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"])));
9306
- 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"])));
10139
+ 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"])));
10140
+ 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"])));
9307
10141
 
9308
10142
  var CartDrawerProductCard = function CartDrawerProductCard(_ref) {
9309
10143
  var product = _ref.product,
@@ -9564,7 +10398,7 @@ var GTagManager = function GTagManager(_ref) {
9564
10398
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
9565
10399
  };
9566
10400
 
9567
- var _templateObject$y, _templateObject2$q, _templateObject3$k, _templateObject4$g, _templateObject5$c, _templateObject6$a;
10401
+ var _templateObject$C, _templateObject2$s, _templateObject3$m, _templateObject4$i, _templateObject5$e, _templateObject6$c;
9568
10402
  var OutOfStock = function OutOfStock(_ref) {
9569
10403
  var _product$body, _product$body$content, _product$body2, _product$body2$conten, _product$masterProduc, _product$header;
9570
10404
  var product = _ref.product,
@@ -9712,7 +10546,7 @@ var OutOfStock = function OutOfStock(_ref) {
9712
10546
  fontSize: '1.3rem',
9713
10547
  fontWeight: 600
9714
10548
  }
9715
- }, "Get notified when this item is in-stock"), (outofstockproducts === null || outofstockproducts === void 0 ? void 0 : outofstockproducts.length) > 0 && /*#__PURE__*/React__default.createElement(TableContainer$4, {
10549
+ }, "Get notified when this item is in-stock"), (outofstockproducts === null || outofstockproducts === void 0 ? void 0 : outofstockproducts.length) > 0 && /*#__PURE__*/React__default.createElement(TableContainer$5, {
9716
10550
  style: {
9717
10551
  maxHeight: 400
9718
10552
  },
@@ -9795,13 +10629,13 @@ var OutOfStock = function OutOfStock(_ref) {
9795
10629
  }
9796
10630
  }), /*#__PURE__*/React__default.createElement("span", null, subscribed ? 'Subscribed Successfully' : 'Subscribe')))))));
9797
10631
  };
9798
- 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"])));
9799
- var MainCheckbox = styled(Checkbox)(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n }\n"])), function (props) {
10632
+ 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"])));
10633
+ var MainCheckbox = styled(Checkbox)(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n }\n"])), function (props) {
9800
10634
  return props.theme.primaryColor;
9801
10635
  });
9802
- 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"])));
9803
- 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"])));
9804
- 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) {
10636
+ 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"])));
10637
+ 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"])));
10638
+ 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) {
9805
10639
  return props.height ? props.height : 'auto';
9806
10640
  }, function (props) {
9807
10641
  return props.margin ? props.margin : '0.3rem 0';
@@ -9812,7 +10646,7 @@ var ContainerDiv = styled.div(_templateObject5$c || (_templateObject5$c = _tagge
9812
10646
  }, function (props) {
9813
10647
  return props.justifyContent ? props.justifyContent : 'default';
9814
10648
  });
9815
- 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) {
10649
+ 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) {
9816
10650
  return props.theme.primaryColor;
9817
10651
  }, function (props) {
9818
10652
  return props.padding ? props.padding : '5px 15px';
@@ -9832,12 +10666,12 @@ var StyledSubscribe = styled.button(_templateObject6$a || (_templateObject6$a =
9832
10666
  return props.Loading || props.subscribed ? 'none' : 'auto';
9833
10667
  });
9834
10668
 
9835
- var _templateObject$z;
10669
+ var _templateObject$D;
9836
10670
  var NoData = function NoData(_ref) {
9837
10671
  _objectDestructuringEmpty(_ref);
9838
10672
  return /*#__PURE__*/React__default.createElement(CustomNoRowsOverlay, null);
9839
10673
  };
9840
- 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"])));
10674
+ 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"])));
9841
10675
  var CustomNoRowsOverlay = function CustomNoRowsOverlay(_ref2) {
9842
10676
  _objectDestructuringEmpty(_ref2);
9843
10677
  return /*#__PURE__*/React__default.createElement(Container$1, null, /*#__PURE__*/React__default.createElement("svg", {
@@ -9947,7 +10781,7 @@ var SelectStyle = function SelectStyle(hasError) {
9947
10781
  };
9948
10782
  };
9949
10783
 
9950
- var _excluded$5 = ["value", "onChange", "placeholder", "searchProductLable", "apiData", "selectedValueKey", "loadOptionsMethod", "onScanUpdate", "minSearchChar", "searchLabelRequired", "onUpdate", "autoFocus", "defaultOptions", "initialOptions", "addItemLabel", "onAddItem", "searchResultSize"];
10784
+ var _excluded$6 = ["value", "onChange", "placeholder", "searchProductLable", "apiData", "selectedValueKey", "loadOptionsMethod", "onScanUpdate", "minSearchChar", "searchLabelRequired", "onUpdate", "autoFocus", "defaultOptions", "initialOptions", "addItemLabel", "onAddItem", "searchResultSize"];
9951
10785
  var AsyncSelectField = function AsyncSelectField(_ref) {
9952
10786
  var value = _ref.value,
9953
10787
  onChange = _ref.onChange,
@@ -9968,7 +10802,7 @@ var AsyncSelectField = function AsyncSelectField(_ref) {
9968
10802
  addItemLabel = _ref.addItemLabel,
9969
10803
  onAddItem = _ref.onAddItem,
9970
10804
  searchResultSize = _ref.searchResultSize,
9971
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
10805
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
9972
10806
  var DEFAULT_SEARCH_RESULT_SIZE = searchResultSize || 20;
9973
10807
  var labelKey = apiData.labelKey || 'name';
9974
10808
  var queryParam = apiData.queryParam || 'name';
@@ -10304,28 +11138,28 @@ var AsyncSelect = function AsyncSelect(_ref3) {
10304
11138
  return /*#__PURE__*/React__default.createElement(AsyncSelectField, props);
10305
11139
  };
10306
11140
 
10307
- var _templateObject$A;
10308
- var Container$2 = styled.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose([""])));
11141
+ var _templateObject$E;
11142
+ var Container$2 = styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose([""])));
10309
11143
 
10310
- var _templateObject$B, _templateObject2$r, _templateObject3$l, _templateObject4$h, _templateObject5$d, _templateObject6$b;
10311
- 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"])));
10312
- 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) {
11144
+ var _templateObject$F, _templateObject2$t, _templateObject3$n, _templateObject4$j, _templateObject5$f, _templateObject6$d;
11145
+ 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"])));
11146
+ 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) {
10313
11147
  return props.size || '1em';
10314
11148
  }, function (props) {
10315
11149
  return props.maxHeight ? props.maxHeight + "em" : '2.75em';
10316
11150
  }, function (props) {
10317
11151
  return props.maxHeight ? props.maxHeight + "em" : '2.80em';
10318
11152
  });
10319
- 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) {
11153
+ 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) {
10320
11154
  return props.size || '1.19em';
10321
11155
  }, function (prop) {
10322
11156
  return prop.bg;
10323
11157
  }, function (prop) {
10324
11158
  return prop.bg;
10325
11159
  });
10326
- var CartTableCell$2 = styled(TableCell)(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
10327
- 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"])));
10328
- 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"])));
11160
+ var CartTableCell$2 = styled(TableCell)(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
11161
+ 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"])));
11162
+ 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"])));
10329
11163
  var CardRow$1 = function CardRow(_ref) {
10330
11164
  var _styles$price, _styles$Btn, _row$standardPrice, _row$subtotal;
10331
11165
  var row = _ref.row,
@@ -10443,13 +11277,13 @@ var CardRow$1 = function CardRow(_ref) {
10443
11277
  }))));
10444
11278
  };
10445
11279
 
10446
- var _templateObject$C, _templateObject2$s, _templateObject3$m, _templateObject4$i, _templateObject5$e, _templateObject6$c, _templateObject7$8, _templateObject8$6, _templateObject9$5;
10447
- 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) {
11280
+ var _templateObject$G, _templateObject2$u, _templateObject3$o, _templateObject4$k, _templateObject5$g, _templateObject6$e, _templateObject7$a, _templateObject8$8, _templateObject9$6;
11281
+ 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) {
10448
11282
  return props.bg;
10449
11283
  }, function (props) {
10450
11284
  return props.bg || '#FAE8E5';
10451
11285
  });
10452
- 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) {
11286
+ 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) {
10453
11287
  return props.maxWidth || '1600px';
10454
11288
  }, function (props) {
10455
11289
  return "min(" + (props.maxWidth || '1600px') + ",100%)";
@@ -10460,16 +11294,16 @@ var CartPageContainer$1 = styled.div(_templateObject2$s || (_templateObject2$s =
10460
11294
  }, function (props) {
10461
11295
  return props.color || '#BFC3CA';
10462
11296
  });
10463
- 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) {
11297
+ 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) {
10464
11298
  return props.retail ? 'grid' : 'flex';
10465
11299
  });
10466
- 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) {
11300
+ 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) {
10467
11301
  return props.color || 'black';
10468
11302
  }, function (props) {
10469
11303
  return props.h1 || 'inherit';
10470
11304
  });
10471
- 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"])));
10472
- 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) {
11305
+ 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"])));
11306
+ 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) {
10473
11307
  return "" + props.bg;
10474
11308
  }, function (props) {
10475
11309
  return "" + props.color || 'inherit';
@@ -10478,17 +11312,17 @@ var CartTableCell$3 = styled(TableCell)(_templateObject6$c || (_templateObject6$
10478
11312
  }, function (props) {
10479
11313
  return "" + props.color || 'inherit';
10480
11314
  });
10481
- 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) {
11315
+ 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) {
10482
11316
  return props.bg || '#fdccc480';
10483
11317
  }, function (props) {
10484
11318
  return props.color || 'red';
10485
11319
  });
10486
- 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) {
11320
+ 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) {
10487
11321
  return props.bg || 'rgba(107, 106, 106, 1)';
10488
11322
  }, function (props) {
10489
11323
  return props.color || 'white';
10490
11324
  });
10491
- 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"])));
11325
+ 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"])));
10492
11326
 
10493
11327
  var headCells$1 = [{
10494
11328
  id: 'image',
@@ -10893,7 +11727,7 @@ var SnowfallComponent = function SnowfallComponent(_ref) {
10893
11727
  }) : null;
10894
11728
  };
10895
11729
 
10896
- var _templateObject$D, _templateObject2$t;
11730
+ var _templateObject$H, _templateObject2$v;
10897
11731
  var ContactUsForm = function ContactUsForm(_ref) {
10898
11732
  var apiEndPoint = _ref.apiEndPoint,
10899
11733
  serviceApiEndPoint = _ref.serviceApiEndPoint,
@@ -11018,15 +11852,15 @@ var ContactUsForm = function ContactUsForm(_ref) {
11018
11852
  }
11019
11853
  }, "Submit"))));
11020
11854
  };
11021
- 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) {
11855
+ 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) {
11022
11856
  return props.fontColor;
11023
11857
  });
11024
- 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) {
11858
+ 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) {
11025
11859
  return props.secondaryColor;
11026
11860
  });
11027
11861
 
11028
- var _templateObject$E;
11029
- 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) {
11862
+ var _templateObject$I;
11863
+ 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) {
11030
11864
  return props.theme.fontColor || '#606060';
11031
11865
  }, function (props) {
11032
11866
  return props.theme.primaryColor;
@@ -11038,7 +11872,7 @@ var StaticContainer = styled.div(_templateObject$E || (_templateObject$E = _tagg
11038
11872
  return props.theme.fontColor || '#606060';
11039
11873
  });
11040
11874
 
11041
- var _templateObject$F;
11875
+ var _templateObject$J;
11042
11876
  var APIStaticPage = function APIStaticPage(_ref) {
11043
11877
  var _ref$colors = _ref.colors,
11044
11878
  colors = _ref$colors === void 0 ? {
@@ -11226,10 +12060,10 @@ var APIStaticPage = function APIStaticPage(_ref) {
11226
12060
  }
11227
12061
  }, "Not found"))));
11228
12062
  };
11229
- var Root$b = styled(Box)(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n img {\n max-width: 100%;\n }\n"])));
12063
+ var Root$b = styled(Box)(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n img {\n max-width: 100%;\n }\n"])));
11230
12064
 
11231
- var _templateObject$G;
11232
- 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) {
12065
+ var _templateObject$K;
12066
+ 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) {
11233
12067
  return props.theme.fontColor || '#606060';
11234
12068
  }, function (props) {
11235
12069
  return props.theme.primaryColor;
@@ -11241,7 +12075,7 @@ var StaticContainer$1 = styled.div(_templateObject$G || (_templateObject$G = _ta
11241
12075
  return props.theme.fontColor || '#606060';
11242
12076
  });
11243
12077
 
11244
- var _templateObject$H;
12078
+ var _templateObject$L;
11245
12079
  var StaticPage = function StaticPage(_ref) {
11246
12080
  var _data$content;
11247
12081
  var _ref$colors = _ref.colors,
@@ -11309,9 +12143,9 @@ var StaticPage = function StaticPage(_ref) {
11309
12143
  referrerPolicy: "no-referrer-when-downgrade"
11310
12144
  })))));
11311
12145
  };
11312
- var Root$c = styled(Box)(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose([""])));
12146
+ var Root$c = styled(Box)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose([""])));
11313
12147
 
11314
- var _templateObject$I;
12148
+ var _templateObject$M;
11315
12149
  var StaticPageList = function StaticPageList(_ref) {
11316
12150
  var _sortBy;
11317
12151
  var apiEndPoint = _ref.apiEndPoint,
@@ -11419,9 +12253,9 @@ var StaticPageList = function StaticPageList(_ref) {
11419
12253
  }
11420
12254
  }, "Not found")))));
11421
12255
  };
11422
- 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"])));
12256
+ 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"])));
11423
12257
 
11424
- var _excluded$6 = ["userName", "children", "style"];
12258
+ var _excluded$7 = ["userName", "children", "style"];
11425
12259
  var colors$1 = ['#FFB900', '#D83B01', '#B50E0E', '#E81123', '#B4009E', '#5C2D91', '#0078D7', '#00B4FF', '#008272', '#107C10'];
11426
12260
  var getRandomColor = function getRandomColor(userName) {
11427
12261
  return colors$1[(userName === null || userName === void 0 ? void 0 : userName.length) % (colors$1 === null || colors$1 === void 0 ? void 0 : colors$1.length)];
@@ -11440,7 +12274,7 @@ var Avatar = function Avatar(_ref) {
11440
12274
  var userName = _ref.userName,
11441
12275
  children = _ref.children,
11442
12276
  style = _ref.style,
11443
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
12277
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
11444
12278
  var backgroundColor = '#1f62ff';
11445
12279
  if (userName) {
11446
12280
  backgroundColor = getRandomColor(userName);
@@ -11455,7 +12289,7 @@ var Avatar = function Avatar(_ref) {
11455
12289
  }));
11456
12290
  };
11457
12291
 
11458
- var _templateObject$J, _templateObject2$u;
12292
+ var _templateObject$N, _templateObject2$w;
11459
12293
  var SwitchUser = function SwitchUser(_ref) {
11460
12294
  var _customerData$filter, _customerData$filter$;
11461
12295
  var apiEndPoint = _ref.apiEndPoint,
@@ -11542,14 +12376,14 @@ var SwitchUser = function SwitchUser(_ref) {
11542
12376
  }, /*#__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)))));
11543
12377
  }))));
11544
12378
  };
11545
- var RootContainer$4 = styled.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n margin: auto;\n padding: 2.4rem;\n max-width: 1920px;\n"])));
11546
- 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) {
12379
+ var RootContainer$4 = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n margin: auto;\n padding: 2.4rem;\n max-width: 1920px;\n"])));
12380
+ 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) {
11547
12381
  return props.theme.primaryColor || '#000000d9';
11548
12382
  }, function (props) {
11549
12383
  return props.theme.primaryColor || '#000000d9';
11550
12384
  });
11551
12385
 
11552
- var _templateObject$K, _templateObject2$v;
12386
+ var _templateObject$O, _templateObject2$x;
11553
12387
  var ThankYou = function ThankYou(_ref) {
11554
12388
  var _ref$id = _ref.id,
11555
12389
  id = _ref$id === void 0 ? 0 : _ref$id,
@@ -11608,8 +12442,8 @@ var ThankYou = function ThankYou(_ref) {
11608
12442
  onClick: onContinue
11609
12443
  }, /*#__PURE__*/React__default.createElement("p", null, "Continue Shopping"))))))));
11610
12444
  };
11611
- var Root$d = styled(Box)(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose([""])));
11612
- 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) {
12445
+ var Root$d = styled(Box)(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose([""])));
12446
+ 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) {
11613
12447
  return props.theme.primaryColor;
11614
12448
  }, function (props) {
11615
12449
  return props.theme.primaryColor;
@@ -11633,7 +12467,7 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11633
12467
  backgroundColor: 'rgba(0, 0, 0, 0.1)'
11634
12468
  }
11635
12469
  }
11636
- }, /*#__PURE__*/React__default.createElement(DialogTitle, null, /*#__PURE__*/React__default.createElement(Typography, {
12470
+ }, /*#__PURE__*/React__default.createElement(DialogTitle$1, null, /*#__PURE__*/React__default.createElement(Typography, {
11637
12471
  variant: "h4",
11638
12472
  fontWeight: "bold",
11639
12473
  align: "center",
@@ -11645,7 +12479,7 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11645
12479
  sx: {
11646
12480
  padding: 2
11647
12481
  }
11648
- }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
12482
+ }, /*#__PURE__*/React__default.createElement(TableContainer$4, {
11649
12483
  component: Box,
11650
12484
  sx: {
11651
12485
  border: '1px solid #e0e0e0',
@@ -11700,7 +12534,7 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11700
12534
  sx: {
11701
12535
  marginY: 3
11702
12536
  }
11703
- }), /*#__PURE__*/React__default.createElement(TableContainer$3, {
12537
+ }), /*#__PURE__*/React__default.createElement(TableContainer$4, {
11704
12538
  component: Box,
11705
12539
  sx: {
11706
12540
  border: '1px solid #e0e0e0',
@@ -11763,38 +12597,38 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11763
12597
  }, "Okay"))));
11764
12598
  };
11765
12599
 
11766
- var _templateObject$L, _templateObject2$w, _templateObject3$n, _templateObject4$j, _templateObject5$f, _templateObject6$d, _templateObject7$9, _templateObject8$7;
11767
- 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) {
12600
+ var _templateObject$P, _templateObject2$y, _templateObject3$p, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$b, _templateObject8$9;
12601
+ 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) {
11768
12602
  return props.bg;
11769
12603
  });
11770
- 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) {
12604
+ 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) {
11771
12605
  return props.maxWidth || '1605px';
11772
12606
  }, function (props) {
11773
12607
  return props.bg || '#fff8f6';
11774
12608
  }, function (props) {
11775
12609
  return props.primaryColor || 'rgba(50, 50, 50, 1)';
11776
12610
  });
11777
- 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"])));
11778
- var CheckoutMainWithHeader = styled(Stack)(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
11779
- 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) {
12611
+ 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"])));
12612
+ var CheckoutMainWithHeader = styled(Stack)(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
12613
+ 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) {
11780
12614
  return props.bg || 'rgba(102,112,128,0.5)';
11781
12615
  }, function (props) {
11782
12616
  return props.bg || 'rgba(102,112,128,0.5)';
11783
12617
  }, function (props) {
11784
12618
  return props.color;
11785
12619
  });
11786
- 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"])));
11787
- 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"])));
11788
- 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"])));
12620
+ 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"])));
12621
+ 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"])));
12622
+ 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"])));
11789
12623
 
11790
- var _templateObject$M, _templateObject2$x, _templateObject3$o;
11791
- 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) {
12624
+ var _templateObject$Q, _templateObject2$z, _templateObject3$q;
12625
+ 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) {
11792
12626
  return props.bg || 'rgba(255, 240, 236, 1)';
11793
12627
  }, function (props) {
11794
12628
  return props.color || ' rgba(50, 50, 50, 1)';
11795
12629
  });
11796
- 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"])));
11797
- 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"])));
12630
+ 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"])));
12631
+ 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"])));
11798
12632
 
11799
12633
  var CheckoutSummary = function CheckoutSummary(_ref) {
11800
12634
  var billingInformation = _ref.billingInformation,
@@ -11866,14 +12700,14 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
11866
12700
  }, renderMoney(orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.adjustmentValue))));
11867
12701
  };
11868
12702
 
11869
- 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;
11870
- 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"])));
11871
- 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) {
12703
+ 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;
12704
+ 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"])));
12705
+ 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) {
11872
12706
  return 'transparent' + '!important';
11873
12707
  }, function (props) {
11874
12708
  return props.bg || 'red';
11875
12709
  });
11876
- 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) {
12710
+ 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) {
11877
12711
  return props.single ? '1.8em 2em' : '1em 0';
11878
12712
  }, function (props) {
11879
12713
  return props.single ? '-1.56em' : '1em';
@@ -11886,11 +12720,11 @@ var StepsHeaderContainer = styled.div(_templateObject3$p || (_templateObject3$p
11886
12720
  }, function (props) {
11887
12721
  return props.username ? 'not-allowed' : 'pointer';
11888
12722
  });
11889
- 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) {
12723
+ 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) {
11890
12724
  var _props$theme, _props$theme$input;
11891
12725
  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';
11892
12726
  });
11893
- 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) {
12727
+ 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) {
11894
12728
  return props.width || '8.05em';
11895
12729
  }, function (props) {
11896
12730
  return props.height || '2.25em';
@@ -11903,7 +12737,7 @@ var CommonCheckoutBtn = styled.button(_templateObject5$g || (_templateObject5$g
11903
12737
  });
11904
12738
  var Select = styled.div.attrs({
11905
12739
  className: 'checkout-input'
11906
- })(_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) {
12740
+ })(_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) {
11907
12741
  var _props$theme2, _props$theme2$input;
11908
12742
  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';
11909
12743
  }, function (props) {
@@ -11911,12 +12745,12 @@ var Select = styled.div.attrs({
11911
12745
  });
11912
12746
  var SaveButton = styled.button.attrs({
11913
12747
  className: 'checkout-btn'
11914
- })(_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) {
12748
+ })(_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) {
11915
12749
  return props.color || '#FD0015';
11916
12750
  }, function (props) {
11917
12751
  return props.disabled ? 'not-allowed' : 'pointer';
11918
12752
  });
11919
- 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) {
12753
+ 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) {
11920
12754
  return props.disabledNext && '0.5';
11921
12755
  }, function (props) {
11922
12756
  return props.color || '#fd0015';
@@ -11927,7 +12761,7 @@ var ButtonRowContainer = styled.div(_templateObject8$8 || (_templateObject8$8 =
11927
12761
  }, function (props) {
11928
12762
  return props.disabledBack ? 'not-allowed' : 'pointer';
11929
12763
  });
11930
- 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) {
12764
+ 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) {
11931
12765
  return props.padding;
11932
12766
  }, function (props) {
11933
12767
  return props.marginLeft;
@@ -11938,14 +12772,14 @@ var CheckBoxRow = styled.div(_templateObject9$6 || (_templateObject9$6 = _tagged
11938
12772
  }, function (prop) {
11939
12773
  return prop.colorText || 'red';
11940
12774
  });
11941
- 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) {
12775
+ 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) {
11942
12776
  return prop.bgInput + '!important' || '';
11943
12777
  }, function (prop) {
11944
12778
  return prop.btnBg + '!important' || '';
11945
12779
  });
11946
- var CardHeading = styled.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n font-weight: 600;\n margin-bottom: 1rem;\n"])));
11947
- var DeliveryOptionContainer = styled.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
11948
- 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) {
12780
+ var CardHeading = styled.div(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n font-weight: 600;\n margin-bottom: 1rem;\n"])));
12781
+ var DeliveryOptionContainer = styled.div(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
12782
+ 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) {
11949
12783
  return props.hovered ? props.bg : '';
11950
12784
  }, function (props) {
11951
12785
  return props.hovered ? "1px solid " + props.border : "1px solid" + props.bg;
@@ -11964,19 +12798,19 @@ var DeliveryOption = styled.div(_templateObject13$2 || (_templateObject13$2 = _t
11964
12798
  }, function (props) {
11965
12799
  return props.hovered ? '800' : '700';
11966
12800
  });
11967
- 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"])));
11968
- 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"])));
11969
- 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) {
12801
+ 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"])));
12802
+ 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"])));
12803
+ 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) {
11970
12804
  return props.colored ? props.bg || "'rgba(255, 240, 236, 1)'" : 'white';
11971
12805
  }, function (props) {
11972
12806
  return props.bg || 'red';
11973
12807
  });
11974
- 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) {
12808
+ 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) {
11975
12809
  return props.noSmall ? 'none' : '';
11976
12810
  }, function (props) {
11977
12811
  return props.noAboveSmall ? 'none' : '';
11978
12812
  });
11979
- 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) {
12813
+ 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) {
11980
12814
  return prop.primaryColor || 'rgba(107, 106, 106, 1)';
11981
12815
  }, function (prop) {
11982
12816
  var _prop$bgTextArea;
@@ -13426,7 +14260,7 @@ var erSessionStorage = {
13426
14260
  }
13427
14261
  };
13428
14262
 
13429
- var _templateObject$O, _templateObject2$z;
14263
+ var _templateObject$S, _templateObject2$B;
13430
14264
  var ConsentForm = function ConsentForm(_ref) {
13431
14265
  var apiEndPoint = _ref.apiEndPoint,
13432
14266
  token = _ref.token,
@@ -13592,7 +14426,7 @@ var InfoComponent = function InfoComponent(_ref2) {
13592
14426
  });
13593
14427
  }))));
13594
14428
  };
13595
- 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"])));
14429
+ 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"])));
13596
14430
  var InfoItem = function InfoItem(_ref3) {
13597
14431
  var name = _ref3.name,
13598
14432
  value = _ref3.value;
@@ -13605,7 +14439,7 @@ var InfoItem = function InfoItem(_ref3) {
13605
14439
  item: true
13606
14440
  }, /*#__PURE__*/React__default.createElement("p", null, value))));
13607
14441
  };
13608
- var InfoItemContainer = styled.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n background: #00000010;\n padding: 0.5rem;\n"])));
14442
+ var InfoItemContainer = styled.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n background: #00000010;\n padding: 0.5rem;\n"])));
13609
14443
 
13610
14444
  var PaypalComponent = function PaypalComponent(_ref) {
13611
14445
  var apiEndPoint = _ref.apiEndPoint,
@@ -13799,7 +14633,7 @@ var Step4 = function Step4(_ref) {
13799
14633
  icon: /*#__PURE__*/React__default.createElement(MdOutlineStickyNote2, {
13800
14634
  className: "icon"
13801
14635
  })
13802
- }), /*#__PURE__*/React__default.createElement(StepsContent, null, /*#__PURE__*/React__default.createElement(TableContainer$3, null, /*#__PURE__*/React__default.createElement(Table, {
14636
+ }), /*#__PURE__*/React__default.createElement(StepsContent, null, /*#__PURE__*/React__default.createElement(TableContainer$4, null, /*#__PURE__*/React__default.createElement(Table, {
13803
14637
  "aria-label": "customized table",
13804
14638
  sx: {
13805
14639
  maxHeight: '600px'
@@ -14980,8 +15814,8 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref9) {
14980
15814
  }, props)));
14981
15815
  };
14982
15816
 
14983
- var _templateObject$P, _templateObject2$A, _templateObject3$q;
14984
- var columns = [{
15817
+ var _templateObject$T, _templateObject2$C, _templateObject3$s;
15818
+ var columns$1 = [{
14985
15819
  id: 'id',
14986
15820
  label: 'Id',
14987
15821
  isSearchable: 'true'
@@ -15044,7 +15878,7 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
15044
15878
  };
15045
15879
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TitleContainer$3, {
15046
15880
  primaryColor: primaryColor
15047
- }, /*#__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, {
15881
+ }, /*#__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, {
15048
15882
  cacheFilters: true,
15049
15883
  extraFilterParams: queryParams,
15050
15884
  listUpdate: triggerTableData,
@@ -15053,7 +15887,7 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
15053
15887
  x: 1000
15054
15888
  },
15055
15889
  tableId: "master-child-map",
15056
- columns: columns,
15890
+ columns: columns$1,
15057
15891
  apiData: {
15058
15892
  url: "/vendor/portal/purchaseOrder/list",
15059
15893
  apiEndPoint: API_BASE_URL,
@@ -15095,15 +15929,15 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
15095
15929
  setTriggerTableData: setTriggerTableData
15096
15930
  })));
15097
15931
  };
15098
- var TableContainer$2 = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n margin: 0.5rem;\n border-radius: 14px;\n"])));
15099
- var TypographyContainer$9 = styled(Typography)(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
15932
+ var TableContainer$3 = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n margin: 0.5rem;\n border-radius: 14px;\n"])));
15933
+ var TypographyContainer$9 = styled(Typography)(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
15100
15934
  return props.fontColor;
15101
15935
  });
15102
- 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) {
15936
+ 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) {
15103
15937
  return props.primaryColor;
15104
15938
  });
15105
15939
 
15106
- var columns$1 = [{
15940
+ var columns$2 = [{
15107
15941
  id: 'id',
15108
15942
  label: 'Id'
15109
15943
  }, {
@@ -15397,7 +16231,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15397
16231
  fontSize: '1.2rem'
15398
16232
  }
15399
16233
  }, item === null || item === void 0 ? void 0 : item.value)))));
15400
- }))))))), /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
16234
+ }))))))), /*#__PURE__*/React__default.createElement(TableContainer$3, null, /*#__PURE__*/React__default.createElement(APITable, {
15401
16235
  cacheFilters: true,
15402
16236
  extraFilterParams: queryParams,
15403
16237
  listUpdate: triggerTableData,
@@ -15406,7 +16240,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15406
16240
  x: 1000
15407
16241
  },
15408
16242
  tableId: "master-child-map",
15409
- columns: columns$1,
16243
+ columns: columns$2,
15410
16244
  apiData: {
15411
16245
  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),
15412
16246
  apiEndPoint: API_BASE_URL,
@@ -15454,7 +16288,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15454
16288
  }, /*#__PURE__*/React__default.createElement(Grid, {
15455
16289
  item: true,
15456
16290
  xs: 6
15457
- }, /*#__PURE__*/React__default.createElement(TableContainer$2, {
16291
+ }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
15458
16292
  style: {
15459
16293
  boxShadow: 'rgba(0,0,0,0.2) 0px 0px 8px 0px'
15460
16294
  }
@@ -15480,7 +16314,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15480
16314
  }))))), /*#__PURE__*/React__default.createElement(Grid, {
15481
16315
  item: true,
15482
16316
  xs: 6
15483
- }, /*#__PURE__*/React__default.createElement(TableContainer$2, {
16317
+ }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
15484
16318
  style: {
15485
16319
  boxShadow: 'rgba(0,0,0,0.2) 0px 0px 8px 0px'
15486
16320
  }
@@ -15506,7 +16340,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15506
16340
  })))))));
15507
16341
  };
15508
16342
 
15509
- var columns$2 = [{
16343
+ var columns$3 = [{
15510
16344
  id: 'name',
15511
16345
  label: 'Name',
15512
16346
  isSearchable: true
@@ -15597,7 +16431,7 @@ var VendorInventory = function VendorInventory(_ref) {
15597
16431
  var onChangeQueryParams = function onChangeQueryParams(data) {
15598
16432
  setTableParams(data);
15599
16433
  };
15600
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
16434
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TableContainer$3, null, /*#__PURE__*/React__default.createElement(APITable, {
15601
16435
  cacheFilters: true,
15602
16436
  extraFilterParams: queryParams,
15603
16437
  listUpdate: triggerTableData,
@@ -15607,7 +16441,7 @@ var VendorInventory = function VendorInventory(_ref) {
15607
16441
  x: 1000
15608
16442
  },
15609
16443
  tableId: "master-child-map",
15610
- columns: columns$2,
16444
+ columns: columns$3,
15611
16445
  apiData: {
15612
16446
  apiEndPoint: API_BASE_URL,
15613
16447
  token: token,
@@ -15670,7 +16504,7 @@ var VendorInventory = function VendorInventory(_ref) {
15670
16504
  })));
15671
16505
  };
15672
16506
 
15673
- var _templateObject$Q, _templateObject2$B, _templateObject3$r, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$b, _templateObject8$9;
16507
+ var _templateObject$U, _templateObject2$D, _templateObject3$t, _templateObject4$n, _templateObject5$j, _templateObject6$h, _templateObject7$d, _templateObject8$b;
15674
16508
  var VendorLogin = function VendorLogin(_ref) {
15675
16509
  var primaryColor = _ref.primaryColor,
15676
16510
  API_BASE_URL = _ref.API_BASE_URL;
@@ -15776,16 +16610,16 @@ var VendorLogin = function VendorLogin(_ref) {
15776
16610
  color: "inherit"
15777
16611
  }) : 'sign in'))))));
15778
16612
  };
15779
- 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"])));
15780
- 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"])));
15781
- 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"])));
15782
- var H1 = styled(Typography)(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n margin-top: 1rem;\n"])));
15783
- 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"])));
15784
- 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"])));
15785
- 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"])));
15786
- 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"])));
16613
+ 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"])));
16614
+ 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"])));
16615
+ 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"])));
16616
+ var H1 = styled(Typography)(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n margin-top: 1rem;\n"])));
16617
+ 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"])));
16618
+ 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"])));
16619
+ 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"])));
16620
+ 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"])));
15787
16621
 
15788
- var _templateObject$R, _templateObject2$C, _templateObject3$s, _templateObject4$m;
16622
+ var _templateObject$V, _templateObject2$E, _templateObject3$u, _templateObject4$o;
15789
16623
  var menuItems = [{
15790
16624
  name: 'My Account',
15791
16625
  Icon: RiAccountBoxLine,
@@ -15993,8 +16827,8 @@ var VendorAccountDetails = function VendorAccountDetails(_ref) {
15993
16827
  height: 200
15994
16828
  }) : /*#__PURE__*/React__default.createElement(Fragment$1, null, API_BASE_URL && token && renderListItemComponent(tabValue)))))));
15995
16829
  };
15996
- 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"])));
15997
- 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) {
16830
+ 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"])));
16831
+ 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) {
15998
16832
  return props.open ? '1800px' : '1600px';
15999
16833
  });
16000
16834
  var Main$1 = styled$1('main', {
@@ -16027,12 +16861,12 @@ var Main$1 = styled$1('main', {
16027
16861
  overflow: 'auto'
16028
16862
  });
16029
16863
  });
16030
- 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) {
16864
+ 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) {
16031
16865
  return props.open && '2rem';
16032
16866
  }, function (props) {
16033
16867
  return props.primaryColor || transparent;
16034
16868
  });
16035
- var TypographyContainer$a = styled(Typography)(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
16869
+ var TypographyContainer$a = styled(Typography)(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
16036
16870
  return props.fontColor;
16037
16871
  });
16038
16872
 
@@ -16137,7 +16971,7 @@ var getRestockedData = function getRestockedData(_ref3) {
16137
16971
  }
16138
16972
  };
16139
16973
 
16140
- var _templateObject$S;
16974
+ var _templateObject$W;
16141
16975
  var NewArrival = function NewArrival(_ref) {
16142
16976
  var _newArrivalItems$cont;
16143
16977
  var apiEndPoint = _ref.apiEndPoint,
@@ -16288,7 +17122,7 @@ var DateCard = function DateCard(_ref2) {
16288
17122
  }
16289
17123
  }, item === null || item === void 0 ? void 0 : item.count));
16290
17124
  };
16291
- 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"])));
17125
+ 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"])));
16292
17126
 
16293
17127
  var ReStockedItem = function ReStockedItem(_ref) {
16294
17128
  var _newArrivalItems$cont;
@@ -16398,7 +17232,7 @@ var ReStockedItem = function ReStockedItem(_ref) {
16398
17232
  })))))));
16399
17233
  };
16400
17234
 
16401
- var _excluded$7 = ["children", "value", "index"];
17235
+ var _excluded$8 = ["children", "value", "index"];
16402
17236
  var NewArrivalPage = function NewArrivalPage(_ref) {
16403
17237
  var apiEndPoint = _ref.apiEndPoint,
16404
17238
  token = _ref.token,
@@ -16506,7 +17340,7 @@ function CustomTabPanel(props) {
16506
17340
  var children = props.children,
16507
17341
  value = props.value,
16508
17342
  index = props.index,
16509
- other = _objectWithoutPropertiesLoose(props, _excluded$7);
17343
+ other = _objectWithoutPropertiesLoose(props, _excluded$8);
16510
17344
  return /*#__PURE__*/React__default.createElement("div", _extends({
16511
17345
  role: "tabpanel",
16512
17346
  hidden: value !== index,
@@ -16648,21 +17482,21 @@ var moveToCart = function moveToCart(_ref3) {
16648
17482
  }
16649
17483
  };
16650
17484
 
16651
- var _templateObject$T, _templateObject2$D, _templateObject3$t, _templateObject4$n, _templateObject5$i, _templateObject6$g, _templateObject7$c, _templateObject8$a, _templateObject9$7, _templateObject10$5, _templateObject11$4;
16652
- var EmptyStateText = styled.p(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n color: #4b4b4b;\n margin: 16px 0;\n"])));
16653
- 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"])));
16654
- 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"])));
16655
- var SearchWrapper = styled(Box)(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n && {\n margin-bottom: 24px;\n max-width: 400px;\n width: 100%;\n }\n"])));
16656
- 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"])));
16657
- 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"])));
16658
- 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"])));
16659
- 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"])));
16660
- 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"])));
16661
- 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) {
17485
+ var _templateObject$X, _templateObject2$F, _templateObject3$v, _templateObject4$p, _templateObject5$k, _templateObject6$i, _templateObject7$e, _templateObject8$c, _templateObject9$8, _templateObject10$6, _templateObject11$5;
17486
+ var EmptyStateText = styled.p(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n color: #4b4b4b;\n margin: 16px 0;\n"])));
17487
+ 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"])));
17488
+ 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"])));
17489
+ var SearchWrapper = styled(Box)(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n && {\n margin-bottom: 24px;\n max-width: 400px;\n width: 100%;\n }\n"])));
17490
+ 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"])));
17491
+ 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"])));
17492
+ 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"])));
17493
+ 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"])));
17494
+ 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"])));
17495
+ 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) {
16662
17496
  var primaryColor = _ref.primaryColor;
16663
17497
  return primaryColor != null ? primaryColor : '#000000';
16664
17498
  });
16665
- var OutOfStockButton = styled(Button)(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n && {\n color: #ffffff;\n border-radius: 10px;\n font-weight: 500;\n }\n"])));
17499
+ var OutOfStockButton = styled(Button)(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n && {\n color: #ffffff;\n border-radius: 10px;\n font-weight: 500;\n }\n"])));
16666
17500
 
16667
17501
  var getProductImage = function getProductImage(imageUrl, fallbackUrl) {
16668
17502
  var url = imageUrl || fallbackUrl;