@salesgenterp/ui-components 0.4.550 → 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
4
  import React__default, { useState, useEffect, forwardRef, createElement, useCallback, memo, Fragment as Fragment$1, useRef, useMemo } from 'react';
5
- import { MdVisibilityOff, MdVisibility, MdClose, MdMonetizationOn, MdOutlineStorefront, MdRemoveRedEye, MdOutlineFileDownload, MdPersonOutline, MdOutlineCall, MdMailOutline, MdExpandMore, MdExpandLess, MdStore, MdOutlineMenuOpen, MdMenu, MdDarkMode, MdOutlineDarkMode, MdDelete, MdCheckCircle, MdArrowBack, MdOutlineCircle, MdOutlineStickyNote2, MdOutlineNumbers, MdDateRange, MdOutlineWarehouse } from 'react-icons/md';
6
- import styled, { css, ThemeProvider } from 'styled-components';
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';
@@ -43,21 +43,22 @@ import Paper$1 from '@mui/material/Paper';
43
43
  import Table$1 from '@mui/material/Table';
44
44
  import TableBody$1 from '@mui/material/TableBody';
45
45
  import TableCell$1 from '@mui/material/TableCell';
46
- import TableContainer$4 from '@mui/material/TableContainer';
46
+ import TableContainer$5 from '@mui/material/TableContainer';
47
47
  import TableHead$1 from '@mui/material/TableHead';
48
48
  import TableRow$1 from '@mui/material/TableRow';
49
49
  import { Virtuoso } from 'react-virtuoso';
50
50
  import Box$1 from '@mui/material/Box';
51
51
  import TableSortLabel$1 from '@mui/material/TableSortLabel';
52
- import { HiChevronUpDown } from 'react-icons/hi2';
52
+ import { FiZap, FiCheck, FiCopy, FiShoppingCart, FiGift, FiArrowRight, FiPlusCircle, FiTag, FiPercent, FiLayers, FiTruck } from 'react-icons/fi';
53
+ import { createPortal } from 'react-dom';
54
+ import { HiSparkles, HiChevronUpDown } from 'react-icons/hi2';
55
+ import { paramCase } from 'param-case';
53
56
  import InputBase from '@mui/material/InputBase';
54
57
  import { components } from 'react-select';
55
58
  import ReactAsyncSelect from 'react-select/async';
56
59
  import Snowfall from 'react-snowfall';
57
60
  import ReCAPTCHA from 'react-google-recaptcha';
58
- import { paramCase } from 'param-case';
59
61
  import { CgProfile } from 'react-icons/cg';
60
- import { FiTruck } from 'react-icons/fi';
61
62
  import { FaCheck, FaRegNoteSticky } from 'react-icons/fa6';
62
63
  import Image$3 from 'next/image';
63
64
  import debounce$1 from 'lodash/debounce';
@@ -2027,7 +2028,7 @@ var PaperContainer = styled(Paper)(_templateObject2$2 || (_templateObject2$2 = _
2027
2028
  return props.fontColor;
2028
2029
  });
2029
2030
  var HeaderContent = styled.div(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteralLoose(["\n padding: 0 1rem;\n @media only screen and (max-width: 608px) {\n padding: 0 0.5rem;\n }\n"])));
2030
- var TableStyledContainer = styled(TableContainer$3)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n border-radius: 14px 12px 0 0 !important;\n"])));
2031
+ var TableStyledContainer = styled(TableContainer$4)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n border-radius: 14px 12px 0 0 !important;\n"])));
2031
2032
  var TableStyled = styled(Table)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 0 1rem;\n @media only screen and (max-width: 608px) {\n padding: 0 0.5rem;\n }\n"])));
2032
2033
  var TableBodyContainer = styled(TableBody)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose([""])));
2033
2034
  var TableRowContainer = styled(TableRow)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n &:hover {\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n td {\n // border: none !important;\n }\n }\n"])));
@@ -2077,7 +2078,7 @@ function BootstrapDialogTitle(props) {
2077
2078
  onClose = props.onClose,
2078
2079
  fontColor = props.fontColor,
2079
2080
  other = _objectWithoutPropertiesLoose(props, _excluded$2);
2080
- return /*#__PURE__*/React__default.createElement(DialogTitle, _extends({
2081
+ return /*#__PURE__*/React__default.createElement(DialogTitle$1, _extends({
2081
2082
  sx: {
2082
2083
  m: 0,
2083
2084
  p: 2,
@@ -3985,42 +3986,63 @@ var SideMenuItemComponentContainer = styled$1(SideMenuItemComponent)(function (_
3985
3986
  };
3986
3987
  });
3987
3988
 
3988
- var sideMenuItems = [{
3989
- name: 'My Account',
3990
- Icon: RiAccountBoxLine,
3991
- items: [{
3992
- name: 'Dashboard',
3993
- path: 'dashboard',
3994
- link: '/',
3995
- Icon: RiHome7Line
3996
- }, {
3997
- name: 'My Profile',
3998
- path: 'myProfile',
3999
- link: '/',
4000
- Icon: TbUserCircle
4001
- }, {
4002
- name: 'Address List',
4003
- path: 'addressList',
4004
- link: '/',
4005
- Icon: TbBuildingStore
4006
- }, {
4007
- name: 'Statement',
4008
- path: 'statement',
4009
- link: '/',
4010
- Icon: RiFileTextLine
4011
- }, {
4012
- name: 'Change Password',
4013
- path: 'changePassword',
4014
- link: '/',
4015
- Icon: BiLockOpen
4016
- }]
4017
- }];
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
+ };
4018
4032
  var SideMenu = function SideMenu(props) {
4019
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
+ });
4020
4042
  return /*#__PURE__*/React__default.createElement(List, {
4021
4043
  component: "nav",
4022
4044
  disablePadding: true
4023
- }, ((props === null || props === void 0 ? void 0 : (_props$menuItems = props.menuItems) === null || _props$menuItems === void 0 ? void 0 : _props$menuItems.length) > 0 ? props === null || props === void 0 ? void 0 : props.menuItems : sideMenuItems).map(function (item, index) {
4045
+ }, menuItems.map(function (item, index) {
4024
4046
  return /*#__PURE__*/React__default.createElement(_SideMenuItem, _extends({}, item, {
4025
4047
  key: index,
4026
4048
  primaryColor: props.primaryColor,
@@ -4679,7 +4701,7 @@ var StoreDetails = function StoreDetails(_ref) {
4679
4701
  secondaryColor: secondaryColor,
4680
4702
  backgroundColor: backgroundColor,
4681
4703
  fontColor: fontColor
4682
- }, /*#__PURE__*/React__default.createElement(CardHeader, {
4704
+ }, /*#__PURE__*/React__default.createElement(CardHeader$1, {
4683
4705
  title: /*#__PURE__*/React__default.createElement(Grid, {
4684
4706
  container: true,
4685
4707
  justifyContent: "space-between",
@@ -5263,7 +5285,84 @@ var getDocumentTypes = function getDocumentTypes(_ref3) {
5263
5285
  }
5264
5286
  };
5265
5287
 
5266
- 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"];
5267
5366
  var AccountDetails = function AccountDetails(_ref) {
5268
5367
  var _storeData$map, _storeData$find, _storeData$;
5269
5368
  var apiEndPoint = _ref.apiEndPoint,
@@ -5296,7 +5395,8 @@ var AccountDetails = function AccountDetails(_ref) {
5296
5395
  _ref$hideSalesOrderTa = _ref.hideSalesOrderTab,
5297
5396
  hideSalesOrderTab = _ref$hideSalesOrderTa === void 0 ? false : _ref$hideSalesOrderTa,
5298
5397
  _ref$hideInvoiceTab = _ref.hideInvoiceTab,
5299
- hideInvoiceTab = _ref$hideInvoiceTab === void 0 ? false : _ref$hideInvoiceTab;
5398
+ hideInvoiceTab = _ref$hideInvoiceTab === void 0 ? false : _ref$hideInvoiceTab,
5399
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
5300
5400
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
5301
5401
  apiEndPoint: apiEndPoint,
5302
5402
  token: token
@@ -5509,6 +5609,20 @@ var AccountDetails = function AccountDetails(_ref) {
5509
5609
  storeIdList: storeIdList,
5510
5610
  defaultStoreId: defaultStoreId
5511
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
+ });
5512
5626
  case 'changePassword':
5513
5627
  return /*#__PURE__*/React__default.createElement(ChangePassword, {
5514
5628
  apiEndPoint: apiEndPoint,
@@ -5559,12 +5673,12 @@ var AccountDetails = function AccountDetails(_ref) {
5559
5673
  style: {
5560
5674
  padding: '0 3rem 1rem'
5561
5675
  }
5562
- }), /*#__PURE__*/React__default.createElement(SideMenu, {
5676
+ }), /*#__PURE__*/React__default.createElement(SideMenu, _extends({
5563
5677
  primaryColor: colors.primaryColor,
5564
5678
  fontColor: colors.fontColor,
5565
5679
  tabValue: tabValue,
5566
5680
  onTabChange: onTabChange
5567
- })), /*#__PURE__*/React__default.createElement(Main, {
5681
+ }, props))), /*#__PURE__*/React__default.createElement(Main, {
5568
5682
  open: open,
5569
5683
  backgroundColor: colors.backgroundColor,
5570
5684
  style: {
@@ -5621,7 +5735,7 @@ var AccountDetails = function AccountDetails(_ref) {
5621
5735
  skeleton: true
5622
5736
  }, apiEndPoint && token && renderListItemComponent(tabValue))))))));
5623
5737
  };
5624
- var Root$4 = styled(Box)(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n // background-image: url(", ");\n // background-position: center;\n // background-repeat: no-repeat;\n // background-size: cover;\n padding: 1.4rem;\n background-color: ", ";\n"])), function (props) {
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) {
5625
5739
  var _props$theme;
5626
5740
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.backgroundImage;
5627
5741
  }, function (props) {
@@ -5749,7 +5863,7 @@ var AsyncDataLoad = function AsyncDataLoad(_ref) {
5749
5863
  };
5750
5864
  var AsyncDataLoadComponent = memo(AsyncDataLoad);
5751
5865
 
5752
- var _templateObject$m, _templateObject2$e, _templateObject3$a;
5866
+ var _templateObject$n, _templateObject2$e, _templateObject3$a;
5753
5867
  var BannerImages = function BannerImages(_ref) {
5754
5868
  var config = _ref.config,
5755
5869
  sliderImages = _ref.sliderImages,
@@ -5814,11 +5928,11 @@ var BannerImages = function BannerImages(_ref) {
5814
5928
  }))));
5815
5929
  })));
5816
5930
  };
5817
- var Video = styled.video(_templateObject$m || (_templateObject$m = _taggedTemplateLiteralLoose(["\n width: 100%;\n cursor: pointer;\n transition: all 0.5s;\n height: 100%;\n object-fit: cover;\n object-position: center;\n &:hover {\n transform: scale(1.02);\n }\n"])));
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"])));
5818
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"])));
5819
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"])));
5820
5934
 
5821
- var _templateObject$n, _templateObject2$f, _templateObject3$b, _templateObject4$8;
5935
+ var _templateObject$o, _templateObject2$f, _templateObject3$b, _templateObject4$8;
5822
5936
  var LandingCarousel = function LandingCarousel(_ref) {
5823
5937
  var _config$spaceBetweenC, _config$colLg, _ref2, _ref3, _config$colSm, _ref4, _config$colMd, _config$colLg2;
5824
5938
  var config = _ref.config,
@@ -5900,7 +6014,7 @@ var LandingCarousel = function LandingCarousel(_ref) {
5900
6014
  })));
5901
6015
  })));
5902
6016
  };
5903
- var Image$1 = styled.img(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n width: 100%;\n transition: all 0.5s;\n height: 100%;\n object-fit: cover;\n object-position: center;\n &:hover {\n transform: scale(1.05);\n }\n"])));
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"])));
5904
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"])));
5905
6019
  var Root$5 = styled.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n height: 100%;\n"])));
5906
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) {
@@ -5909,7 +6023,7 @@ var ReactSlick = styled(Slider)(_templateObject4$8 || (_templateObject4$8 = _tag
5909
6023
  return props === null || props === void 0 ? void 0 : props.spaceBetweenCol;
5910
6024
  });
5911
6025
 
5912
- var _templateObject$o, _templateObject2$g;
6026
+ var _templateObject$p, _templateObject2$g;
5913
6027
  var inDebounce;
5914
6028
  var JUSTIFY = {
5915
6029
  Left: {
@@ -6104,7 +6218,7 @@ var HomeBanner = function HomeBanner(_ref) {
6104
6218
  }, item === null || item === void 0 ? void 0 : item.component);
6105
6219
  }))))));
6106
6220
  };
6107
- var Root$6 = styled.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose([""])));
6221
+ var Root$6 = styled.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose([""])));
6108
6222
  var MainContainer$1 = styled.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose([""])));
6109
6223
  var SingleBanner = function SingleBanner(_ref3) {
6110
6224
  var config = _ref3.config,
@@ -6138,7 +6252,7 @@ var adjustResponsiveSpace = function adjustResponsiveSpace(_ref4) {
6138
6252
  return spaceValue;
6139
6253
  };
6140
6254
 
6141
- var _templateObject$p, _templateObject2$h, _templateObject3$c, _templateObject4$9, _templateObject5$5;
6255
+ var _templateObject$q, _templateObject2$h, _templateObject3$c, _templateObject4$9, _templateObject5$5;
6142
6256
  var LandingCarousel$1 = function LandingCarousel(_ref) {
6143
6257
  var _brandData2;
6144
6258
  var brandList = _ref.brandList,
@@ -6264,7 +6378,7 @@ var LandingCarousel$1 = function LandingCarousel(_ref) {
6264
6378
  })));
6265
6379
  })));
6266
6380
  };
6267
- var Image$2 = styled.img(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose(["\n width: 100%;\n transition: all 0.5s;\n height: 100%;\n min-height: 100px;\n max-width: 150px;\n object-fit: contain;\n object-position: center;\n &:hover {\n transform: scale(1.05);\n }\n"])));
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"])));
6268
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"])));
6269
6383
  var Root$7 = styled.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n height: 100%;\n"])));
6270
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) {
@@ -6274,7 +6388,7 @@ var SliderItem = styled.div(_templateObject5$5 || (_templateObject5$5 = _taggedT
6274
6388
  return (props === null || props === void 0 ? void 0 : props.spaceBetweenCol) || 0;
6275
6389
  });
6276
6390
 
6277
- var _templateObject$q, _templateObject2$i;
6391
+ var _templateObject$r, _templateObject2$i;
6278
6392
  var BrandList = function BrandList(_ref) {
6279
6393
  var apiEndPoint = _ref.apiEndPoint,
6280
6394
  _ref$colors = _ref.colors,
@@ -6336,10 +6450,10 @@ var BrandList = function BrandList(_ref) {
6336
6450
  autoplaySpeed: autoplaySpeed
6337
6451
  }))));
6338
6452
  };
6339
- var Root$8 = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose([""])));
6453
+ var Root$8 = styled.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose([""])));
6340
6454
  var MainContainer$2 = styled.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose([""])));
6341
6455
 
6342
- 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;
6343
6457
  var BrandStock = function BrandStock(_ref) {
6344
6458
  var _Object$keys, _Object$keys2, _data$brands;
6345
6459
  var storeData = _ref.storeData,
@@ -6494,13 +6608,13 @@ var BrandStock = function BrandStock(_ref) {
6494
6608
  }));
6495
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))));
6496
6610
  };
6497
- 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"])));
6498
6612
  var TitleContainer$1 = styled.div(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n padding: 0 1rem;\n display: flex;\n justify-content: space-between;\n"])));
6499
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"])));
6500
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"])));
6501
6615
  var BrandContainer = styled.div(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n .brandImage {\n max-width: 100%;\n margin: 1rem auto;\n }\n"])));
6502
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"])));
6503
- 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"])));
6504
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) {
6505
6619
  return !props.availableQuantity && '#cd2323';
6506
6620
  });
@@ -6508,8 +6622,8 @@ var TableCellContainer$1 = styled(TableCell$1)(_templateObject9$3 || (_templateO
6508
6622
  return props.availableQuantity ? props.stockCol && 'green' : '#ffffff';
6509
6623
  });
6510
6624
 
6511
- var _templateObject$s, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$5, _templateObject7$4;
6512
- var CartDrawerContainer = styled.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n height: 100%;\n /* padding: 1em;\n padding-top: 0rem; */\n position: relative;\n /* min-width: 100%; */\n min-height: 100vh;\n max-height: 100vh;\n overflow: hidden;\n box-sizing: border-box;\n\n display: flex;\n flex-direction: column;\n /* border: 1px solid; */\n"])), function (props) {
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) {
6513
6627
  return props.maxWidth || '650px';
6514
6628
  });
6515
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"])));
@@ -6617,8 +6731,8 @@ function useGridSize() {
6617
6731
  return layout;
6618
6732
  }
6619
6733
 
6620
- var _templateObject$t, _templateObject2$l, _templateObject3$f, _templateObject4$c, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$3;
6621
- var CartPageSection = styled.section(_templateObject$t || (_templateObject$t = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n border-radius: 20px;\n max-width: 1600px;\n width: min(1600px, 100%);\n margin: auto;\n @media screen and (max-width: 1200px) {\n padding: 0 1em;\n }\n"])), function (props) {
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) {
6622
6736
  return props.bg;
6623
6737
  }, function (props) {
6624
6738
  return props.bg || '#FAE8E5';
@@ -6652,7 +6766,7 @@ var CartTableCell = styled(TableCell)(_templateObject6$6 || (_templateObject6$6
6652
6766
  }, function (props) {
6653
6767
  return "" + props.color || 'inherit';
6654
6768
  });
6655
- var CartTableContainer = styled(TableContainer$3)(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteralLoose(["\n max-height: 580px;\n padding-right: 1rem;\n\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 16px;\n width: 100%;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n border-radius: 16px;\n margin: 5px 2px;\n background: ", ";\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n }\n"])), function (props) {
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) {
6656
6770
  return 'rgba(102, 112, 128, 0.5)';
6657
6771
  }, function (props) {
6658
6772
  return props.color;
@@ -7793,41 +7907,973 @@ var TotalAfterDiscount = function TotalAfterDiscount(_ref2) {
7793
7907
  }, renderMoney(totalAmount)) : /*#__PURE__*/createElement(Fragment$1, null), /*#__PURE__*/createElement("b", null, renderMoney(total))));
7794
7908
  };
7795
7909
 
7796
- var _templateObject$u, _templateObject2$m, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$7;
7797
- var ProductImage = styled.img(_templateObject$u || (_templateObject$u = _taggedTemplateLiteralLoose(["\n min-width: 60px;\n min-height: 60px;\n object-fit: contain;\n @media only screen and (max-width: 600px) {\n margin: 0.5em 0;\n padding-right: 0.5em;\n }\n"])));
7798
- var ProductName = styled.h6(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n padding: 0;\n line-height: 1.3em;\n overflow: hidden;\n text-overflow: ellipsis;\n height: fit-content;\n cursor: pointer;\n"])), function (props) {
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) {
7799
8826
  return props.size || '1em';
7800
8827
  });
7801
- var CartTableRow = styled(TableRow)(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: 0.3s;\n background: white;\n /* &:hover {\n td:first-child,\n td:last-child {\n border-left-style: solid;\n border-top-style: solid;\n border-top-right-radius: 10px;\n }\n } */\n .outOfStock {\n font-size: 0.75em;\n color: red;\n text-transform: uppercase;\n font-weight: 500;\n }\n .price {\n font-size: ", ";\n font-weight: bold;\n color: #323232;\n /* font-size: 1.15em; */\n }\n .borderLeft {\n height: 100%;\n background: ", ";\n transition: 0.2s;\n width: 0px;\n position: absolute;\n left: 0;\n top: 0;\n border-top-left-radius: 10px;\n display: none;\n border-bottom-left-radius: 10px;\n }\n .cartCheckBox {\n &.Mui-checked {\n svg {\n color: ", ";\n }\n }\n }\n &:hover {\n background: white !important;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);\n border-radius: 10px;\n /* opacity: 1;\n box-shadow: 1px 2px 6px 2px rgba(0, 0, 0, 0.2); */\n z-index: 2;\n /* border-radius: 20px; */\n .borderLeft {\n width: 12px;\n display: inline-block;\n }\n }\n @media only screen and (max-width: 600px) {\n .CartnoPaddingSm {\n padding: 0 !important;\n }\n .price {\n font-size: 0.8em;\n }\n margin: 0.5em 0;\n .cartCheckBox {\n .css-i4bv87-MuiSvgIcon-root {\n font-size: 10px !important;\n }\n }\n }\n"])), function (props) {
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) {
7802
8829
  return props.size || '1.19em';
7803
8830
  }, function (prop) {
7804
8831
  return prop.bg;
7805
8832
  }, function (prop) {
7806
8833
  return prop.bg;
7807
8834
  });
7808
- var CartTableCell$1 = styled(TableCell)(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
7809
- var QuantityBox = styled.div(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n .icon {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n height: 100%;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n"])));
7810
- var DeleteBtn = styled.div(_templateObject6$7 || (_templateObject6$7 = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background: #eef1f4;\n color: #393f48;\n font-size: 0.75em;\n transition: 0.4s;\n &:hover {\n background: red;\n color: white;\n }\n"])));
7811
- var CardRow = function CardRow(_ref) {
7812
- var _styles$price, _styles$Btn;
7813
- var row = _ref.row,
7814
- isItemSelected = _ref.isItemSelected,
7815
- handleClick = _ref.handleClick,
7816
- imgnotfoundUrl = _ref.imgnotfoundUrl,
7817
- handleIncrementDecrement = _ref.handleIncrementDecrement,
7818
- handleRemoveProduct = _ref.handleRemoveProduct,
7819
- loading = _ref.loading,
7820
- imgSize = _ref.imgSize,
7821
- styles = _ref.styles,
7822
- clickRedirect = _ref.clickRedirect,
7823
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
7824
- doNotShowPrice = _ref.doNotShowPrice;
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;
7825
8862
  var imgnotfoundUrlcommon = noImgAvailable$1;
7826
8863
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
7827
8864
  var timer = useRef();
7828
8865
  var _useState = useState(row === null || row === void 0 ? void 0 : row.quantity),
7829
8866
  quantity = _useState[0],
7830
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];
7831
8877
  useEffect(function () {
7832
8878
  setQuantity(row === null || row === void 0 ? void 0 : row.quantity);
7833
8879
  }, [row]);
@@ -7866,7 +8912,7 @@ var CardRow = function CardRow(_ref) {
7866
8912
  tabIndex: -1,
7867
8913
  key: row.ProductId,
7868
8914
  size: styles === null || styles === void 0 ? void 0 : (_styles$price = styles.price) === null || _styles$price === void 0 ? void 0 : _styles$price.size,
7869
- bg: (styles === null || styles === void 0 ? void 0 : styles.borderLeft) || (styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background)
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)
7870
8916
  }, /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7871
8917
  padding: "checkbox",
7872
8918
  style: {
@@ -7902,6 +8948,15 @@ var CardRow = function CardRow(_ref) {
7902
8948
  }, row.productName), /*#__PURE__*/React__default.createElement(CouponDiscountName, {
7903
8949
  discountAmount: row === null || row === void 0 ? void 0 : row.couponDiscount,
7904
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
+ }
7905
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", {
7906
8961
  style: {
7907
8962
  color: 'red',
@@ -7978,7 +9033,7 @@ var CardRow = function CardRow(_ref) {
7978
9033
  discountAmount: row === null || row === void 0 ? void 0 : row.couponDiscount
7979
9034
  }))), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7980
9035
  alig: "center"
7981
- }, /*#__PURE__*/React__default.createElement(DeleteBtn, {
9036
+ }, /*#__PURE__*/React__default.createElement(ActionCell, null, /*#__PURE__*/React__default.createElement(DeleteBtn, {
7982
9037
  onClick: function onClick(e) {
7983
9038
  e.stopPropagation();
7984
9039
  if (loading) return;
@@ -7990,7 +9045,17 @@ var CardRow = function CardRow(_ref) {
7990
9045
  style: {
7991
9046
  fontSize: 'inherit'
7992
9047
  }
7993
- }))));
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
+ })));
7994
9059
  };
7995
9060
 
7996
9061
  var DEFAULT_PAGE_SIZE = 50;
@@ -8121,12 +9186,17 @@ function EnhancedTable(_ref2) {
8121
9186
  disabledSelectAllProductCheckbox = _ref2.disabledSelectAllProductCheckbox,
8122
9187
  clickRedirect = _ref2.clickRedirect,
8123
9188
  allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref2.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8124
- doNotShowPrice = _ref2.doNotShowPrice;
9189
+ doNotShowPrice = _ref2.doNotShowPrice,
9190
+ showDiscountSuggestions = _ref2.showDiscountSuggestions;
8125
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) {
8126
9192
  return _extends({}, li, {
8127
9193
  subtotal: li.standardPrice * li.quantity
8128
9194
  });
8129
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]);
8130
9200
  var _React$useState = useState('asc'),
8131
9201
  order = _React$useState[0],
8132
9202
  setOrder = _React$useState[1];
@@ -8249,8 +9319,10 @@ function EnhancedTable(_ref2) {
8249
9319
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8250
9320
  doNotShowPrice: doNotShowPrice
8251
9321
  }), /*#__PURE__*/createElement(TableBody$1, null, paginatedCartArray.map(function (row, index) {
9322
+ var _row$productId;
8252
9323
  var isItemSelected = isSelected(row);
8253
9324
  return /*#__PURE__*/createElement(CardRow, {
9325
+ key: (_row$productId = row === null || row === void 0 ? void 0 : row.productId) != null ? _row$productId : index,
8254
9326
  row: row,
8255
9327
  isItemSelected: isItemSelected,
8256
9328
  handleClick: handleClick,
@@ -8261,7 +9333,9 @@ function EnhancedTable(_ref2) {
8261
9333
  handleRemoveProduct: handleRemoveProduct,
8262
9334
  clickRedirect: clickRedirect,
8263
9335
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8264
- doNotShowPrice: doNotShowPrice
9336
+ doNotShowPrice: doNotShowPrice,
9337
+ discountSuggesstions: discountSuggesstions,
9338
+ showDiscountSuggestions: showDiscountSuggestions
8265
9339
  });
8266
9340
  }))))), /*#__PURE__*/createElement("div", {
8267
9341
  style: {
@@ -8331,35 +9405,56 @@ function EnhancedTable(_ref2) {
8331
9405
  }))))));
8332
9406
  }
8333
9407
 
8334
- var _templateObject$v, _templateObject2$n, _templateObject3$h, _templateObject4$e, _templateObject5$a, _templateObject6$8, _templateObject7$6;
8335
- var CartPageCard = styled.div(_templateObject$v || (_templateObject$v = _taggedTemplateLiteralLoose(["\n // width: min(97%, 485px);\n width: 98%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: 1em;\n background: #ffffff;\n box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.05);\n border-radius: 12px;\n position: relative;\n"])));
8336
- var CartPageImg = styled.img(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n max-width: 60px;\n max-height: 60px;\n position: relative;\n margin-right: 0.5em;\n"])), function (props) {
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) {
8337
9411
  return props.width || 'auto';
8338
9412
  }, function (props) {
8339
9413
  return props.height || 'auto';
8340
9414
  });
8341
- var NameAndQtBox = styled.div(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteralLoose(["\n width: 90%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-between;\n position: relative;\n"])));
8342
- var CartPageCardName = styled.div(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 90%;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 0.6em;\n h6 {\n color: #323232;\n font-size: 0.9em;\n margin-bottom: 0.6em;\n line-height: 1.3em;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n p {\n font-size: 1.1em;\n font-weight: 600;\n color: #323232;\n }\n"])));
8343
- var QtAndPriceBox = styled.div(_templateObject5$a || (_templateObject5$a = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n width: 100%;\n font-size: 1.1em;\n"])));
8344
- var CartPageQtBox = styled.div(_templateObject6$8 || (_templateObject6$8 = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n .icon {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n height: 100%;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n"])));
8345
- var CloseBtn = styled.div(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n width: 25px;\n height: 25px;\n display: grid;\n place-items: center;\n position: absolute;\n top: 1em;\n right: 1em;\n cursor: pointer;\n border-radius: 50%;\n background: #eef1f4;\n font-size: 12px;\n &:hover {\n color: #ffffff;\n background: red;\n }\n"])));
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"])));
8346
9420
 
8347
- var CartPageProductCard = function CartPageProductCard(_ref) {
8348
- var item = _ref.item,
8349
- imgnotfoundUrl = _ref.imgnotfoundUrl,
8350
- handleIncrementDecrement = _ref.handleIncrementDecrement,
8351
- handleRemoveProduct = _ref.handleRemoveProduct,
8352
- loading = _ref.loading,
8353
- imgSize = _ref.imgSize,
8354
- clickRedirect = _ref.clickRedirect,
8355
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8356
- doNotShowPrice = _ref.doNotShowPrice;
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;
8357
9443
  var imgnotfoundUrlcommon = noImgAvailable$1;
8358
9444
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
8359
9445
  var timer = useRef();
8360
9446
  var _useState = useState(item === null || item === void 0 ? void 0 : item.quantity),
8361
9447
  quantity = _useState[0],
8362
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];
8363
9458
  useEffect(function () {
8364
9459
  setQuantity(item === null || item === void 0 ? void 0 : item.quantity);
8365
9460
  }, [item]);
@@ -8388,6 +9483,10 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8388
9483
  }
8389
9484
  }, 500);
8390
9485
  };
9486
+ var openDiscountModal = function openDiscountModal() {
9487
+ if (loading) return;
9488
+ setDiscountModalOpen(true);
9489
+ };
8391
9490
  return /*#__PURE__*/React__default.createElement(CartPageCard, null, /*#__PURE__*/React__default.createElement(CartPageImg, {
8392
9491
  src: item.imageUrl && item.imageUrl !== 'null' ? item.imageUrl : imgnotfoundUrlcommon,
8393
9492
  alt: 'img',
@@ -8407,7 +9506,14 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8407
9506
  })), !doNotShowPrice && /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
8408
9507
  totalAmount: item === null || item === void 0 ? void 0 : item.standardPrice,
8409
9508
  discountAmount: item === null || item === void 0 ? void 0 : item.discountAmount
8410
- }))), /*#__PURE__*/React__default.createElement(QtAndPriceBox, null, /*#__PURE__*/React__default.createElement(CartPageQtBox, null, /*#__PURE__*/React__default.createElement("span", {
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", {
8411
9517
  className: "icon",
8412
9518
  onClick: function onClick() {
8413
9519
  if (loading) return;
@@ -8457,7 +9563,17 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8457
9563
  if (!sure) return;
8458
9564
  handleRemoveProduct(item);
8459
9565
  }
8460
- }, /*#__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
+ }));
8461
9577
  };
8462
9578
 
8463
9579
  var DEFAULT_PAGE_SIZE$1 = 50;
@@ -8473,7 +9589,8 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8473
9589
  styles = _ref.styles,
8474
9590
  clickRedirect = _ref.clickRedirect,
8475
9591
  allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8476
- doNotShowPrice = _ref.doNotShowPrice;
9592
+ doNotShowPrice = _ref.doNotShowPrice,
9593
+ showDiscountSuggestions = _ref.showDiscountSuggestions;
8477
9594
  var _useState = useState(1),
8478
9595
  page = _useState[0],
8479
9596
  setPage = _useState[1];
@@ -8501,6 +9618,7 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8501
9618
  color: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background,
8502
9619
  loading: true
8503
9620
  })), paginatedCartArray.map(function (item) {
9621
+ var _cartData$suggestions;
8504
9622
  return /*#__PURE__*/React__default.createElement(CartPageProductCard, {
8505
9623
  key: item === null || item === void 0 ? void 0 : item.productId,
8506
9624
  item: item,
@@ -8509,9 +9627,12 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8509
9627
  handleIncrementDecrement: handleIncrementDecrement,
8510
9628
  handleRemoveProduct: handleRemoveProduct,
8511
9629
  imgSize: styles === null || styles === void 0 ? void 0 : styles.imgSize,
9630
+ styles: styles,
8512
9631
  clickRedirect: clickRedirect,
8513
9632
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8514
- doNotShowPrice: doNotShowPrice
9633
+ doNotShowPrice: doNotShowPrice,
9634
+ discountSuggesstions: (_cartData$suggestions = cartData === null || cartData === void 0 ? void 0 : cartData.suggestions) != null ? _cartData$suggestions : [],
9635
+ showDiscountSuggestions: showDiscountSuggestions
8515
9636
  });
8516
9637
  }))), sortedCartArray.length > 0 && /*#__PURE__*/React__default.createElement(PaginationRow, null, totalPages > 1 && /*#__PURE__*/React__default.createElement(Pagination, {
8517
9638
  count: totalPages,
@@ -8560,23 +9681,23 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8560
9681
  })))));
8561
9682
  };
8562
9683
 
8563
- var _templateObject$w, _templateObject2$o, _templateObject3$i, _templateObject4$f, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$5;
8564
- var CartSummaryContainer = styled.div(_templateObject$w || (_templateObject$w = _taggedTemplateLiteralLoose(["\n width: 25rem;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n background: ", ";\n color: ", ";\n border-radius: 20px;\n padding: 2em;\n align-items: center;\n /* margin-top: 3em; */\n p {\n font-size: 1.189em;\n font-weight: 600;\n align-self: flex-start;\n color: inherit;\n margin: 0;\n padding: 0;\n }\n .continueShopping {\n font-size: 0.75em;\n color: inherit;\n text-transform: capitalize;\n height: 20px;\n border-bottom: 1px solid;\n border-color: ", ";\n cursor: pointer;\n }\n"])), function (props) {
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) {
8565
9686
  return props.background || '#667080';
8566
9687
  }, function (props) {
8567
9688
  return props.color || 'white';
8568
9689
  }, function (props) {
8569
9690
  return props.color || 'white';
8570
9691
  });
8571
- var CartSummaryRow = styled.div(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: ", ";\n align-items: center;\n color: inherit;\n h6,\n h5 {\n margin: 0;\n font-size: 1em;\n font-weight: 700;\n color: inherit;\n text-transform: capitalize;\n }\n h5 {\n font-size: ", ";\n }\n"])), function (props) {
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) {
8572
9693
  return props.justify || 'space-between';
8573
9694
  }, function (props) {
8574
9695
  return props.h5 || '1.31em';
8575
9696
  });
8576
- var CartSummaryHr = styled.span(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteralLoose(["\n border: none;\n width: 100%;\n height: 1px;\n background-color: ", ";\n margin: 1em 0;\n"])), function (props) {
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) {
8577
9698
  return props.color || 'rgba(255, 255, 255, 0.5)';
8578
9699
  });
8579
- var CartSummaryInputBox = styled.form(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n padding-bottom: ", ";\n background-color: transparent;\n width: 100%;\n input {\n width: 65%;\n height: 2.5rem;\n padding: 0.2rem 0.8rem;\n font-size: 0.89rem;\n border: none;\n outline: none;\n background: ", ";\n color: ", ";\n &::placeholder {\n color: ", ";\n }\n }\n button {\n width: 35%;\n height: 2.5rem;\n line-height: 0.8rem;\n background: ", ";\n display: grid;\n color: ", ";\n place-items: center;\n border: none;\n border-radius: 0;\n outline: none;\n text-transform: uppercase;\n cursor: pointer;\n font-size: 0.75em;\n transition: 0.3s;\n &:hover {\n letter-spacing: 1px;\n background: ", ";\n }\n }\n"])), function (props) {
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) {
8580
9701
  return props.paddingBottom ? '0' : '0';
8581
9702
  }, function (props) {
8582
9703
  return props.background || '#bfc3ca';
@@ -8591,16 +9712,16 @@ var CartSummaryInputBox = styled.form(_templateObject4$f || (_templateObject4$f
8591
9712
  }, function (props) {
8592
9713
  return props.btn || '#393f48';
8593
9714
  });
8594
- var DiscountCouponContainer = styled.div(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n padding-top: 0.5rem;\n width: 100%;\n max-height: 200px;\n overflow: auto;\n"])));
8595
- var DiscountCouponCard = styled.div(_templateObject6$9 || (_templateObject6$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0.3rem;\n button {\n color: ", ";\n font-size: 1rem;\n padding: 0;\n &:hover {\n color: red;\n }\n }\n"])), function (props) {
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) {
8596
9717
  return props.btn || '#393f48';
8597
9718
  });
8598
- var CartSummaryCheckoutBtn = styled.button(_templateObject7$7 || (_templateObject7$7 = _taggedTemplateLiteralLoose(["\n font-size: 0.95em;\n font-weight: 600;\n background: ", ";\n color: ", ";\n cursor: pointer;\n text-transform: uppercase;\n border: none;\n outline: none;\n width: 16.81em;\n height: 3.4em;\n display: grid;\n place-items: center;\n font-size: 0.75em;\n padding: 0;\n font-size: 0.94em;\n margin: 1em auto;\n transition: 0.3s;\n margin-top: 3em;\n &:hover {\n opacity: 0.8;\n }\n"])), function (props) {
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) {
8599
9720
  return props.background || '#393f48';
8600
9721
  }, function (props) {
8601
9722
  return props.color || 'inherit';
8602
9723
  });
8603
- var CartSummaryCheckBoxRow = styled(CartSummaryRow)(_templateObject8$5 || (_templateObject8$5 = _taggedTemplateLiteralLoose(["\n justify-content: flex-start;\n margin-left: 1em;\n margin-top: 1em;\n cursor: pointer;\n .checkBox {\n width: 0.63em;\n height: 0.63em;\n border: 1px solid;\n border-color: ", ";\n background: transparent;\n margin-right: 0.5em;\n border-radius: 50%;\n background: ", ";\n }\n p {\n font-size: 1em;\n font-weight: 6 400;\n span {\n font-weight: 600;\n margin: 0 0.1em;\n }\n .underline {\n font-weight: 400;\n text-decoration: underline;\n }\n }\n"])), function (props) {
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) {
8604
9725
  return props.background || 'white';
8605
9726
  }, function (props) {
8606
9727
  return props.selected ? props.background : 'transparent';
@@ -8829,7 +9950,9 @@ var CartPageComponent = function CartPageComponent(_ref) {
8829
9950
  styles = _ref.styles,
8830
9951
  onChangeDiscountCoupon = _ref.onChangeDiscountCoupon,
8831
9952
  _ref$doNotShowPrice = _ref.doNotShowPrice,
8832
- 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;
8833
9956
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
8834
9957
  apiEndPoint: apiEndPoint,
8835
9958
  token: token
@@ -8953,7 +10076,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
8953
10076
  handleRemoveProduct: handleRemoveProduct,
8954
10077
  clickRedirect: clickRedirect,
8955
10078
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8956
- doNotShowPrice: doNotShowPrice
10079
+ doNotShowPrice: doNotShowPrice,
10080
+ showDiscountSuggestions: showDiscountSuggestions
8957
10081
  }) : /*#__PURE__*/React__default.createElement(EnhancedTable, {
8958
10082
  retail: retail,
8959
10083
  clickRedirect: clickRedirect,
@@ -8966,7 +10090,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
8966
10090
  handleRemoveAll: handleRemoveAll,
8967
10091
  disabledSelectAllProductCheckbox: disabledSelectAllProductCheckbox,
8968
10092
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8969
- doNotShowPrice: doNotShowPrice
10093
+ doNotShowPrice: doNotShowPrice,
10094
+ showDiscountSuggestions: showDiscountSuggestions
8970
10095
  }), /*#__PURE__*/React__default.createElement(CartSummary, {
8971
10096
  apiEndPoint: apiEndPoint,
8972
10097
  token: token,
@@ -9007,12 +10132,12 @@ var checkMinMaxQty = function checkMinMaxQty(_ref2) {
9007
10132
  return quantityReturn;
9008
10133
  };
9009
10134
 
9010
- var _templateObject$x, _templateObject2$p, _templateObject3$j;
9011
- var CartDrawerProduct = styled.div(_templateObject$x || (_templateObject$x = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 100%;\n display: flex;\n flex-direction: row;\n height: 100px;\n justify-content: space-around;\n align-items: center;\n overflow: hidden;\n margin-bottom: 1rem;\n user-select: none;\n background: #f2f2f290;\n border: 1px solid #f2f2f290;\n padding: 0.5rem;\n border-radius: 12px;\n box-sizing: border-box;\n\n img {\n width: 20%;\n max-height: 100%;\n /* aspect-ratio: 1; */\n object-fit: contain;\n }\n .middleSection {\n width: 60%;\n padding-left: 0.8rem;\n height: 100%;\n h6 {\n font-size: 1.1rem;\n font-weight: bold;\n margin: 0;\n }\n .name {\n font-size: 0.9rem;\n line-height: 1.2rem;\n width: 100%;\n word-wrap: break-word;\n overflow: hidden;\n text-overflow: ellipsis;\n transition: 0.3s;\n cursor: pointer;\n &:hover {\n color: ", ";\n }\n }\n }\n .endSection {\n // width: 20%;\n height: 95%;\n .icon {\n cursor: pointer;\n transition: 0.4s;\n &:hover {\n color: red;\n }\n }\n }\n @media only screen and (max-width: 768px) {\n .closeIcon {\n font-size: 1rem;\n }\n }\n @media only screen and (max-width: 340px) {\n .middleSection {\n h6 {\n font-size: 0.9rem;\n }\n }\n }\n"])), function (props) {
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) {
9012
10137
  return props.color || 'grey';
9013
10138
  });
9014
- var CartDrawerQtBox = styled.div(_templateObject2$p || (_templateObject2$p = _taggedTemplateLiteralLoose(["\n height: 30px;\n width: 86px;\n border: 1px solid rgb(211, 210, 210);\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-size: 13.5px;\n color: #323232;\n padding: 0 0.5rem;\n border-radius: 5px;\n max-width: 100%;\n span {\n cursor: pointer;\n height: 100%;\n display: grid;\n place-items: center;\n }\n .qt {\n font-size: 12px;\n color: black;\n font-weight: 500;\n cursor: auto;\n input {\n width: 40px;\n height: 100%;\n text-align: center;\n border: none;\n }\n }\n @media only screen and (max-width: 600px) {\n min-width: 55px;\n aspect-ratio: 1/2;\n font-size: 10px;\n }\n @media only screen and (max-width: 340px) {\n min-width: 50px;\n aspect-ratio: 1/2;\n height: 22px;\n font-size: 8px;\n }\n"])));
9015
- var CartDrawerLoader = styled.div(_templateObject3$j || (_templateObject3$j = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 30%;\n width: 100px;\n height: 100px;\n display: grid;\n place-items: center;\n"])));
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"])));
9016
10141
 
9017
10142
  var CartDrawerProductCard = function CartDrawerProductCard(_ref) {
9018
10143
  var product = _ref.product,
@@ -9273,7 +10398,7 @@ var GTagManager = function GTagManager(_ref) {
9273
10398
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
9274
10399
  };
9275
10400
 
9276
- 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;
9277
10402
  var OutOfStock = function OutOfStock(_ref) {
9278
10403
  var _product$body, _product$body$content, _product$body2, _product$body2$conten, _product$masterProduc, _product$header;
9279
10404
  var product = _ref.product,
@@ -9421,7 +10546,7 @@ var OutOfStock = function OutOfStock(_ref) {
9421
10546
  fontSize: '1.3rem',
9422
10547
  fontWeight: 600
9423
10548
  }
9424
- }, "Get notified when this item is in-stock"), (outofstockproducts === null || outofstockproducts === void 0 ? void 0 : outofstockproducts.length) > 0 && /*#__PURE__*/React__default.createElement(TableContainer$4, {
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, {
9425
10550
  style: {
9426
10551
  maxHeight: 400
9427
10552
  },
@@ -9504,13 +10629,13 @@ var OutOfStock = function OutOfStock(_ref) {
9504
10629
  }
9505
10630
  }), /*#__PURE__*/React__default.createElement("span", null, subscribed ? 'Subscribed Successfully' : 'Subscribe')))))));
9506
10631
  };
9507
- var VariantsContainer = styled.div(_templateObject$y || (_templateObject$y = _taggedTemplateLiteralLoose(["\n ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 5px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(178, 169, 169, 1);\n box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);\n }\n"])));
9508
- var MainCheckbox = styled(Checkbox)(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n }\n"])), function (props) {
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) {
9509
10634
  return props.theme.primaryColor;
9510
10635
  });
9511
- var EmailInput = styled(InputBase)(_templateObject3$k || (_templateObject3$k = _taggedTemplateLiteralLoose(["\n border: 1px solid #a9a9a9;\n padding: 3px 10px;\n fontsize: 12px;\n width: 100%;\n border-radius: 3px;\n"])));
9512
- var Root$a = styled.div(_templateObject4$g || (_templateObject4$g = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 1px solid #d3d3d3;\n border-radius: 3px;\n box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.4);\n padding: 10px;\n"])));
9513
- var ContainerDiv = styled.div(_templateObject5$c || (_templateObject5$c = _taggedTemplateLiteralLoose(["\n display: flex;\n font-size: 14px;\n height: ", ";\n margin: ", ";\n width: 100%;\n flex-direction: ", ";\n align-items: ", ";\n justify-content: ", ";\n color: #000000de;\n"])), function (props) {
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) {
9514
10639
  return props.height ? props.height : 'auto';
9515
10640
  }, function (props) {
9516
10641
  return props.margin ? props.margin : '0.3rem 0';
@@ -9521,7 +10646,7 @@ var ContainerDiv = styled.div(_templateObject5$c || (_templateObject5$c = _tagge
9521
10646
  }, function (props) {
9522
10647
  return props.justifyContent ? props.justifyContent : 'default';
9523
10648
  });
9524
- var StyledSubscribe = styled.button(_templateObject6$a || (_templateObject6$a = _taggedTemplateLiteralLoose(["\n align-items: center;\n background: ", ";\n border-radius: 3px;\n color: #fff;\n display: flex;\n justify-content: center;\n padding: ", ";\n border: none;\n outline: none;\n font-weight: 600;\n cursor: ", ";\n opacity: ", ";\n width: ", ";\n pointer-events: ", ";\n span {\n white-space: nowrap;\n font-size: ", ";\n margin-left: 10px;\n }\n &:hover {\n opacity: ", ";\n }\n margin: 0px;\n margin-left: 1%;\n text-transform: uppercase;\n pointer-events: ", ";\n span {\n margin: 0px 10px;\n }\n"])), function (props) {
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) {
9525
10650
  return props.theme.primaryColor;
9526
10651
  }, function (props) {
9527
10652
  return props.padding ? props.padding : '5px 15px';
@@ -9541,12 +10666,12 @@ var StyledSubscribe = styled.button(_templateObject6$a || (_templateObject6$a =
9541
10666
  return props.Loading || props.subscribed ? 'none' : 'auto';
9542
10667
  });
9543
10668
 
9544
- var _templateObject$z;
10669
+ var _templateObject$D;
9545
10670
  var NoData = function NoData(_ref) {
9546
10671
  _objectDestructuringEmpty(_ref);
9547
10672
  return /*#__PURE__*/React__default.createElement(CustomNoRowsOverlay, null);
9548
10673
  };
9549
- var Container$1 = styled.div(_templateObject$z || (_templateObject$z = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n & .ant-empty-img-1 {\n fill: #aeb8c2;\n }\n & .ant-empty-img-2 {\n fill: #f5f5f7;\n }\n & .ant-empty-img-3 {\n fill: #dce0e6;\n }\n & .ant-empty-img-4 {\n fill: #fff;\n }\n & ant-empty-img-5 {\n fill-opacity: 0.8;\n fill: #f5f5f5;\n }\n"])));
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"])));
9550
10675
  var CustomNoRowsOverlay = function CustomNoRowsOverlay(_ref2) {
9551
10676
  _objectDestructuringEmpty(_ref2);
9552
10677
  return /*#__PURE__*/React__default.createElement(Container$1, null, /*#__PURE__*/React__default.createElement("svg", {
@@ -9656,7 +10781,7 @@ var SelectStyle = function SelectStyle(hasError) {
9656
10781
  };
9657
10782
  };
9658
10783
 
9659
- 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"];
9660
10785
  var AsyncSelectField = function AsyncSelectField(_ref) {
9661
10786
  var value = _ref.value,
9662
10787
  onChange = _ref.onChange,
@@ -9677,7 +10802,7 @@ var AsyncSelectField = function AsyncSelectField(_ref) {
9677
10802
  addItemLabel = _ref.addItemLabel,
9678
10803
  onAddItem = _ref.onAddItem,
9679
10804
  searchResultSize = _ref.searchResultSize,
9680
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
10805
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
9681
10806
  var DEFAULT_SEARCH_RESULT_SIZE = searchResultSize || 20;
9682
10807
  var labelKey = apiData.labelKey || 'name';
9683
10808
  var queryParam = apiData.queryParam || 'name';
@@ -10013,28 +11138,28 @@ var AsyncSelect = function AsyncSelect(_ref3) {
10013
11138
  return /*#__PURE__*/React__default.createElement(AsyncSelectField, props);
10014
11139
  };
10015
11140
 
10016
- var _templateObject$A;
10017
- 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([""])));
10018
11143
 
10019
- var _templateObject$B, _templateObject2$r, _templateObject3$l, _templateObject4$h, _templateObject5$d, _templateObject6$b;
10020
- var ProductImage$1 = styled.img(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["\n min-width: 50px;\n min-height: 50px;\n object-fit: contain;\n @media only screen and (max-width: 600px) {\n margin: 0.5em 0;\n padding-right: 0.5em;\n }\n"])));
10021
- var ProductName$1 = styled.h6(_templateObject2$r || (_templateObject2$r = _taggedTemplateLiteralLoose(["\n font-size: ", ";\n padding: 0;\n line-height: 1.3em;\n max-height: ", ";\n height: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n height: fit-content;\n"])), function (props) {
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) {
10022
11147
  return props.size || '1em';
10023
11148
  }, function (props) {
10024
11149
  return props.maxHeight ? props.maxHeight + "em" : '2.75em';
10025
11150
  }, function (props) {
10026
11151
  return props.maxHeight ? props.maxHeight + "em" : '2.80em';
10027
11152
  });
10028
- var CartTableRow$1 = styled(TableRow)(_templateObject3$l || (_templateObject3$l = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: 0.3s;\n background: white;\n /* &:hover {\n td:first-child,\n td:last-child {\n border-left-style: solid;\n border-top-style: solid;\n border-top-right-radius: 10px;\n }\n } */\n .outOfStock {\n font-size: 0.75em;\n color: red;\n text-transform: uppercase;\n font-weight: 500;\n }\n .price {\n font-size: ", ";\n font-weight: bold;\n color: #323232;\n /* font-size: 1.15em; */\n }\n .borderLeft {\n height: 100%;\n background: ", ";\n transition: 0.2s;\n width: 0px;\n position: absolute;\n left: 0;\n top: 0;\n border-top-left-radius: 10px;\n display: none;\n border-bottom-left-radius: 10px;\n }\n .cartCheckBox {\n &.Mui-checked {\n svg {\n color: ", ";\n }\n }\n }\n &:hover {\n background: white !important;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);\n border-radius: 10px;\n /* opacity: 1;\n box-shadow: 1px 2px 6px 2px rgba(0, 0, 0, 0.2); */\n z-index: 2;\n /* border-radius: 20px; */\n .borderLeft {\n width: 12px;\n display: inline-block;\n }\n }\n @media only screen and (max-width: 600px) {\n .CartnoPaddingSm {\n padding: 0 !important;\n }\n .price {\n font-size: 0.8em;\n }\n margin: 0.5em 0;\n .cartCheckBox {\n .css-i4bv87-MuiSvgIcon-root {\n font-size: 10px !important;\n }\n }\n }\n"])), function (props) {
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) {
10029
11154
  return props.size || '1.19em';
10030
11155
  }, function (prop) {
10031
11156
  return prop.bg;
10032
11157
  }, function (prop) {
10033
11158
  return prop.bg;
10034
11159
  });
10035
- var CartTableCell$2 = styled(TableCell)(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
10036
- var QuantityBox$1 = styled.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n height: 1.7em;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n div {\n /* width:30px; */\n min-height: 100%;\n aspect-ratio: 1.15/1;\n display: grid;\n place-items: center;\n font-size: 0.65em;\n color: white;\n background-color: #323232;\n cursor: pointer;\n }\n .price {\n background: transparent;\n cursor: auto;\n background: #ffffff;\n border: 1px solid #ebebeb;\n p {\n color: #5e5c5c;\n font-size: 0.685em;\n font-weight: 500;\n }\n }\n .add {\n background-color: #ebebeb;\n color: #323232;\n }\n"])));
10037
- var DeleteBtn$1 = styled.div(_templateObject6$b || (_templateObject6$b = _taggedTemplateLiteralLoose(["\n display: grid;\n place-items: center;\n cursor: pointer;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background: #eef1f4;\n color: #393f48;\n font-size: 0.75em;\n transition: 0.4s;\n &:hover {\n background: red;\n color: white;\n }\n"])));
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"])));
10038
11163
  var CardRow$1 = function CardRow(_ref) {
10039
11164
  var _styles$price, _styles$Btn, _row$standardPrice, _row$subtotal;
10040
11165
  var row = _ref.row,
@@ -10152,13 +11277,13 @@ var CardRow$1 = function CardRow(_ref) {
10152
11277
  }))));
10153
11278
  };
10154
11279
 
10155
- var _templateObject$C, _templateObject2$s, _templateObject3$m, _templateObject4$i, _templateObject5$e, _templateObject6$c, _templateObject7$8, _templateObject8$6, _templateObject9$5;
10156
- var CartPageSection$1 = styled.section(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n background: ", ";\n max-width: 100%;\n width: fit-content;\n background: ", ";\n overflow: hidden;\n border-radius: 28px;\n\n @media screen and (max-width: 1200px) {\n padding: 0 1em;\n }\n @media screen and (max-width: 600px) {\n padding: 0 1em;\n }\n"])), function (props) {
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) {
10157
11282
  return props.bg;
10158
11283
  }, function (props) {
10159
11284
  return props.bg || '#FAE8E5';
10160
11285
  });
10161
- var CartPageContainer$1 = styled.div(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n max-width: ", ";\n width: ", ";\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n border-radius: 28px 28px 28px 14px;\n padding: 2em 2.5em;\n padding-bottom: 3em;\n border-radius: 28px;\n opacity: ", ";\n .scrollDiv {\n width: 68%;\n max-height: 630px;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n\n margin-right: 0.3em;\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n\n border-radius: 16px;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 16px;\n border: 2px solid;\n }\n /* box-shadow: 0px 20px 35px rgba(0, 0, 0, 0.05); */\n }\n table {\n border-collapse: separate;\n border-spacing: 0 4px;\n row-gap: 4px;\n }\n\n td {\n /* border: solid 1px #000; */\n border-style: none solid solid none;\n /* padding: 10px; */\n /* margin-bottom:5px; */\n }\n\n tr:first-child td:first-child {\n border-top-left-radius: 10px;\n }\n tr td:last-child {\n border-top-right-radius: 10px;\n border-bottom-right-radius: 10px;\n }\n\n tr td:first-child {\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px;\n }\n tr td:last-child {\n border-bottom-right-radius: 10px;\n }\n\n tr td {\n border-top-style: solid;\n }\n tr td:first-child {\n border-left-style: solid;\n }\n\n @media only screen and (max-width: 1200px) {\n flex-direction: column;\n align-items: center;\n padding: 0.5em;\n .scrollDiv {\n width: 100%;\n margin: 0;\n margin-bottom: 2em;\n padding: 0 0.4em;\n }\n }\n"])), function (props) {
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) {
10162
11287
  return props.maxWidth || '1600px';
10163
11288
  }, function (props) {
10164
11289
  return "min(" + (props.maxWidth || '1600px') + ",100%)";
@@ -10169,16 +11294,16 @@ var CartPageContainer$1 = styled.div(_templateObject2$s || (_templateObject2$s =
10169
11294
  }, function (props) {
10170
11295
  return props.color || '#BFC3CA';
10171
11296
  });
10172
- var CardsBox$1 = styled.div(_templateObject3$m || (_templateObject3$m = _taggedTemplateLiteralLoose(["\n width: 100%;\n /* min-height: 1000px; */\n position: relative;\n max-width: 860px;\n margin-right: auto;\n padding: 1em 2em;\n display: ", ";\n grid-template-columns: 1fr 1fr;\n flex-direction: column;\n align-items: flex-start;\n grid-gap: 1em;\n justify-content: flex-start;\n align-items: center;\n border-radius: 20px;\n @media only screen and (max-width: 900px) {\n display: flex;\n }\n @media only screen and (max-width: 600px) {\n padding: 1em 0.2em;\n }\n"])), function (props) {
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) {
10173
11298
  return props.retail ? 'grid' : 'flex';
10174
11299
  });
10175
- var CartHeading$1 = styled.div(_templateObject4$i || (_templateObject4$i = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n /* margin-bottom: 2em; */\n margin-left: 2.3em;\n margin-top: 2em;\n\n color: ", ";\n h1 {\n font-weight: 600;\n font-size: 2.0375em;\n text-transform: capitalize;\n color: ", ";\n /* margin-bottom: 1em; */\n }\n p {\n font-size: 0.875em;\n color: inherit;\n margin-top: 0.5em;\n }\n"])), function (props) {
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) {
10176
11301
  return props.color || 'black';
10177
11302
  }, function (props) {
10178
11303
  return props.h1 || 'inherit';
10179
11304
  });
10180
- var Loader$2 = styled.div(_templateObject5$e || (_templateObject5$e = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 40%;\n left: 47%;\n display: grid;\n place-items: center;\n z-index: 3;\n"])));
10181
- var CartTableCell$3 = styled(TableCell)(_templateObject6$c || (_templateObject6$c = _taggedTemplateLiteralLoose(["\n && {\n padding-bottom: 1em !important;\n // border: none !important;\n /* font-size: 0.75em; */\n font-size: 1em;\n color: rgba(98, 95, 95, 1);\n // background: ", ";\n color: ", ";\n }\n &.bg-transparent {\n // background-color: transparent !important;\n text-transform: uppercase;\n span {\n font-size: 0.75em;\n font-weight: 600;\n }\n svg {\n color: ", ";\n }\n .MuiTableSortLabel-root {\n color: ", "!important;\n }\n }\n"])), function (props) {
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) {
10182
11307
  return "" + props.bg;
10183
11308
  }, function (props) {
10184
11309
  return "" + props.color || 'inherit';
@@ -10187,17 +11312,17 @@ var CartTableCell$3 = styled(TableCell)(_templateObject6$c || (_templateObject6$
10187
11312
  }, function (props) {
10188
11313
  return "" + props.color || 'inherit';
10189
11314
  });
10190
- var CartTableContainer$1 = styled(TableContainer$3)(_templateObject7$8 || (_templateObject7$8 = _taggedTemplateLiteralLoose(["\n max-height: 580px;\n padding-right: 1.5em;\n overflow: inherit !important;\n &::-webkit-scrollbar {\n width: 10px;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 16px;\n width: 100%;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n border-radius: 16px;\n margin: 5px 2px;\n background: ", ";\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n }\n"])), function (props) {
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) {
10191
11316
  return props.bg || '#fdccc480';
10192
11317
  }, function (props) {
10193
11318
  return props.color || 'red';
10194
11319
  });
10195
- var CartButtonsRow$1 = styled.div(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding-right: 1.85em;\n button {\n display: flex;\n align-items: center;\n background: ", ";\n color: ", ";\n padding: 0.5em 1em;\n margin-left: 1em;\n font-size: 0.85em;\n text-transform: uppercase;\n border: none;\n cursor: pointer;\n transition: 0.4s;\n font-size: 1rem;\n font-weight: 600;\n svg {\n margin-right: 0.4rem;\n }\n &:hover {\n transform: scale(0.95);\n }\n }\n"])), function (props) {
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) {
10196
11321
  return props.bg || 'rgba(107, 106, 106, 1)';
10197
11322
  }, function (props) {
10198
11323
  return props.color || 'white';
10199
11324
  });
10200
- var CartPageBox$1 = styled.div(_templateObject9$5 || (_templateObject9$5 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n @media only screen and (max-width: 768px) {\n margin-right: 0;\n .CartnoBelowSm {\n display: none;\n }\n }\n"])));
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"])));
10201
11326
 
10202
11327
  var headCells$1 = [{
10203
11328
  id: 'image',
@@ -10602,7 +11727,7 @@ var SnowfallComponent = function SnowfallComponent(_ref) {
10602
11727
  }) : null;
10603
11728
  };
10604
11729
 
10605
- var _templateObject$D, _templateObject2$t;
11730
+ var _templateObject$H, _templateObject2$v;
10606
11731
  var ContactUsForm = function ContactUsForm(_ref) {
10607
11732
  var apiEndPoint = _ref.apiEndPoint,
10608
11733
  serviceApiEndPoint = _ref.serviceApiEndPoint,
@@ -10727,15 +11852,15 @@ var ContactUsForm = function ContactUsForm(_ref) {
10727
11852
  }
10728
11853
  }, "Submit"))));
10729
11854
  };
10730
- var TypographyContainer$8 = styled(Typography)(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n font-size: 1.2rem !important;\n align-items: center;\n"])), function (props) {
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) {
10731
11856
  return props.fontColor;
10732
11857
  });
10733
- var RootContainer$3 = styled(Stack)(_templateObject2$t || (_templateObject2$t = _taggedTemplateLiteralLoose(["\n background-color: ", " !important;\n border-radius: 14px !important;\n padding: 1.3rem;\n margin-bottom: 1rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n p {\n margin: 0 !important;\n }\n"])), function (props) {
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) {
10734
11859
  return props.secondaryColor;
10735
11860
  });
10736
11861
 
10737
- var _templateObject$E;
10738
- var StaticContainer = styled.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n width: 100%;\n color: ", ";\n .top-bar {\n background-color: #f5f5f5;\n padding: 1rem;\n text-align: center;\n font-size: 3.2rem;\n font-weight: bold;\n text-transform: uppercase;\n color: ", ";\n @media only screen and (max-width: 769px) {\n font-size: 1.5rem;\n }\n }\n .route-bar {\n text-transform: capitalize;\n p {\n padding: 0;\n word-spacing: 5px;\n display: flex;\n align-items: center;\n color: ", ";\n }\n }\n .data-container {\n margin: auto;\n }\n hr {\n border-bottom: 2px solid #eceff8;\n border-top: 0px;\n margin: 1rem 0;\n }\n li {\n margin-left: 1rem;\n }\n a {\n color: ", ";\n }\n p {\n font-size: 1.2rem;\n margin: 1rem 0;\n width: 100%;\n color: ", ";\n }\n"])), function (props) {
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) {
10739
11864
  return props.theme.fontColor || '#606060';
10740
11865
  }, function (props) {
10741
11866
  return props.theme.primaryColor;
@@ -10747,7 +11872,7 @@ var StaticContainer = styled.div(_templateObject$E || (_templateObject$E = _tagg
10747
11872
  return props.theme.fontColor || '#606060';
10748
11873
  });
10749
11874
 
10750
- var _templateObject$F;
11875
+ var _templateObject$J;
10751
11876
  var APIStaticPage = function APIStaticPage(_ref) {
10752
11877
  var _ref$colors = _ref.colors,
10753
11878
  colors = _ref$colors === void 0 ? {
@@ -10935,10 +12060,10 @@ var APIStaticPage = function APIStaticPage(_ref) {
10935
12060
  }
10936
12061
  }, "Not found"))));
10937
12062
  };
10938
- 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"])));
10939
12064
 
10940
- var _templateObject$G;
10941
- var StaticContainer$1 = styled.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n width: 100%;\n color: ", ";\n .top-bar {\n background-color: #f5f5f5;\n padding: 1rem;\n text-align: center;\n font-size: 3.2rem;\n font-weight: bold;\n text-transform: uppercase;\n color: ", ";\n @media only screen and (max-width: 769px) {\n font-size: 1.5rem;\n }\n }\n .route-bar {\n text-transform: capitalize;\n p {\n padding: 0;\n word-spacing: 5px;\n display: flex;\n align-items: center;\n color: ", ";\n }\n }\n .data-container {\n margin: auto;\n }\n hr {\n border-bottom: 2px solid #eceff8;\n border-top: 0px;\n margin: 1rem 0;\n }\n li {\n margin-left: 1rem;\n }\n a {\n color: ", ";\n }\n p {\n margin: 1rem 0;\n width: 100%;\n color: ", ";\n }\n"])), function (props) {
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) {
10942
12067
  return props.theme.fontColor || '#606060';
10943
12068
  }, function (props) {
10944
12069
  return props.theme.primaryColor;
@@ -10950,7 +12075,7 @@ var StaticContainer$1 = styled.div(_templateObject$G || (_templateObject$G = _ta
10950
12075
  return props.theme.fontColor || '#606060';
10951
12076
  });
10952
12077
 
10953
- var _templateObject$H;
12078
+ var _templateObject$L;
10954
12079
  var StaticPage = function StaticPage(_ref) {
10955
12080
  var _data$content;
10956
12081
  var _ref$colors = _ref.colors,
@@ -11018,9 +12143,9 @@ var StaticPage = function StaticPage(_ref) {
11018
12143
  referrerPolicy: "no-referrer-when-downgrade"
11019
12144
  })))));
11020
12145
  };
11021
- var Root$c = styled(Box)(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose([""])));
12146
+ var Root$c = styled(Box)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose([""])));
11022
12147
 
11023
- var _templateObject$I;
12148
+ var _templateObject$M;
11024
12149
  var StaticPageList = function StaticPageList(_ref) {
11025
12150
  var _sortBy;
11026
12151
  var apiEndPoint = _ref.apiEndPoint,
@@ -11128,9 +12253,9 @@ var StaticPageList = function StaticPageList(_ref) {
11128
12253
  }
11129
12254
  }, "Not found")))));
11130
12255
  };
11131
- var TitleContainer$2 = styled.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n padding: 1.2rem;\n cursor: pointer;\n color: #323232;\n img {\n max-width: 100%;\n }\n &:hover {\n img {\n transform: scale(1.01);\n }\n }\n"])));
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"])));
11132
12257
 
11133
- var _excluded$6 = ["userName", "children", "style"];
12258
+ var _excluded$7 = ["userName", "children", "style"];
11134
12259
  var colors$1 = ['#FFB900', '#D83B01', '#B50E0E', '#E81123', '#B4009E', '#5C2D91', '#0078D7', '#00B4FF', '#008272', '#107C10'];
11135
12260
  var getRandomColor = function getRandomColor(userName) {
11136
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)];
@@ -11149,7 +12274,7 @@ var Avatar = function Avatar(_ref) {
11149
12274
  var userName = _ref.userName,
11150
12275
  children = _ref.children,
11151
12276
  style = _ref.style,
11152
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
12277
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
11153
12278
  var backgroundColor = '#1f62ff';
11154
12279
  if (userName) {
11155
12280
  backgroundColor = getRandomColor(userName);
@@ -11164,7 +12289,7 @@ var Avatar = function Avatar(_ref) {
11164
12289
  }));
11165
12290
  };
11166
12291
 
11167
- var _templateObject$J, _templateObject2$u;
12292
+ var _templateObject$N, _templateObject2$w;
11168
12293
  var SwitchUser = function SwitchUser(_ref) {
11169
12294
  var _customerData$filter, _customerData$filter$;
11170
12295
  var apiEndPoint = _ref.apiEndPoint,
@@ -11251,14 +12376,14 @@ var SwitchUser = function SwitchUser(_ref) {
11251
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)))));
11252
12377
  }))));
11253
12378
  };
11254
- var RootContainer$4 = styled.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n margin: auto;\n padding: 2.4rem;\n max-width: 1920px;\n"])));
11255
- var CustomerContainer = styled.div(_templateObject2$u || (_templateObject2$u = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n transition: all 0.5s;\n padding: 1.1rem;\n border-radius: 1rem;\n box-shadow: 2px 2px 6px 0px #00000020;\n &:hover {\n transform: scale(1.05);\n }\n .name {\n color: ", ";\n font-size: 2.5rem;\n font-weight: 700;\n }\n .infoDetails {\n font-size: 1.1rem;\n color: #46464680;\n margin: 1rem 0;\n display: flex;\n align-items: center;\n svg {\n color: ", ";\n font-size: 1.5rem;\n margin-right: 0.5rem;\n }\n }\n"])), function (props) {
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) {
11256
12381
  return props.theme.primaryColor || '#000000d9';
11257
12382
  }, function (props) {
11258
12383
  return props.theme.primaryColor || '#000000d9';
11259
12384
  });
11260
12385
 
11261
- var _templateObject$K, _templateObject2$v;
12386
+ var _templateObject$O, _templateObject2$x;
11262
12387
  var ThankYou = function ThankYou(_ref) {
11263
12388
  var _ref$id = _ref.id,
11264
12389
  id = _ref$id === void 0 ? 0 : _ref$id,
@@ -11317,8 +12442,8 @@ var ThankYou = function ThankYou(_ref) {
11317
12442
  onClick: onContinue
11318
12443
  }, /*#__PURE__*/React__default.createElement("p", null, "Continue Shopping"))))))));
11319
12444
  };
11320
- var Root$d = styled(Box)(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose([""])));
11321
- var StyledButton = styled.button(_templateObject2$v || (_templateObject2$v = _taggedTemplateLiteralLoose(["\n outline: none;\n border: 1px solid;\n border-color: ", ";\n background: none;\n border-radius: 14px;\n padding: 10px 20px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: background 0.5s ease;\n width: 200px;\n color: ", ";\n text-transform: uppercase;\n &:hover {\n cursor: pointer;\n background: ", ";\n color: #fff;\n }\n"])), function (props) {
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) {
11322
12447
  return props.theme.primaryColor;
11323
12448
  }, function (props) {
11324
12449
  return props.theme.primaryColor;
@@ -11342,7 +12467,7 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11342
12467
  backgroundColor: 'rgba(0, 0, 0, 0.1)'
11343
12468
  }
11344
12469
  }
11345
- }, /*#__PURE__*/React__default.createElement(DialogTitle, null, /*#__PURE__*/React__default.createElement(Typography, {
12470
+ }, /*#__PURE__*/React__default.createElement(DialogTitle$1, null, /*#__PURE__*/React__default.createElement(Typography, {
11346
12471
  variant: "h4",
11347
12472
  fontWeight: "bold",
11348
12473
  align: "center",
@@ -11354,7 +12479,7 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11354
12479
  sx: {
11355
12480
  padding: 2
11356
12481
  }
11357
- }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
12482
+ }, /*#__PURE__*/React__default.createElement(TableContainer$4, {
11358
12483
  component: Box,
11359
12484
  sx: {
11360
12485
  border: '1px solid #e0e0e0',
@@ -11409,7 +12534,7 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11409
12534
  sx: {
11410
12535
  marginY: 3
11411
12536
  }
11412
- }), /*#__PURE__*/React__default.createElement(TableContainer$3, {
12537
+ }), /*#__PURE__*/React__default.createElement(TableContainer$4, {
11413
12538
  component: Box,
11414
12539
  sx: {
11415
12540
  border: '1px solid #e0e0e0',
@@ -11472,38 +12597,38 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11472
12597
  }, "Okay"))));
11473
12598
  };
11474
12599
 
11475
- var _templateObject$L, _templateObject2$w, _templateObject3$n, _templateObject4$j, _templateObject5$f, _templateObject6$d, _templateObject7$9, _templateObject8$7;
11476
- var CheckoutRootContainer = styled.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n width: 100%;\n padding: 2rem;\n background-color: ", ";\n font-size: 16px;\n\n div,\n button,\n span {\n font-size: 16px;\n }\n @media only screen and (max-width: 1600px) {\n padding: 3em 0.5em;\n }\n @media screen and (max-width: 900px) {\n div,\n button,\n span {\n font-size: 12px;\n }\n padding: 2rem 0.5rem;\n }\n"])), function (props) {
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) {
11477
12602
  return props.bg;
11478
12603
  });
11479
- var CheckoutPageContainer = styled.div(_templateObject2$w || (_templateObject2$w = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: ", ";\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: flex-start;\n background-color: ", ";\n margin: 0 auto;\n padding: 2em;\n padding-left: min(4.5em, 2.5vw);\n color: rgba(50, 50, 50, 1);\n /* max-height: 90vh; */\n overflow: hidden;\n /* background: gainsboro; */\n border-radius: 28px;\n /* background-color: #fff8f6; */\n @media only screen and (max-width: 1200px) {\n flex-direction: column;\n align-items: center;\n max-height: max-content;\n }\n @media only screen and (max-width: 768px) {\n padding: 1em 0.5em;\n }\n .icon {\n font-size: 12px;\n }\n ////////////checkout and cart fonts\n /////////////////\n /* /////remove arrows from number input */\n /* Chrome, Safari, Edge, Opera */\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n /* Firefox */\n input[type='number'] {\n -moz-appearance: textfield;\n }\n\n /* //////mui inputs */\n\n .Mui-checked {\n color: ", ";\n }\n\n .MuiOutlinedInput-notchedOutline {\n border: none;\n outline: none;\n }\n\n .MuiInputBase-root .MuiOutlinedInput-root,\n .MuiInputBase-colorPrimary,\n .MuiInputBase-fullWidth,\n .MuiInputBase-formControl {\n border-radius: 10px;\n }\n // /* /////stepper length */\n .MuiStepConnector-line,\n .MuiStepConnector-lineVertical {\n min-height: 60px !important;\n }\n\n @media only screen and (max-width: 900px) {\n .MuiStepConnector-line,\n .MuiStepConnector-lineVertical {\n min-height: 40px !important;\n }\n }\n"])), function (props) {
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) {
11480
12605
  return props.maxWidth || '1605px';
11481
12606
  }, function (props) {
11482
12607
  return props.bg || '#fff8f6';
11483
12608
  }, function (props) {
11484
12609
  return props.primaryColor || 'rgba(50, 50, 50, 1)';
11485
12610
  });
11486
- var Row = styled.div(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n"])));
11487
- var CheckoutMainWithHeader = styled(Stack)(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
11488
- var CheckoutMain = styled.div(_templateObject5$f || (_templateObject5$f = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 1008px;\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n margin-right: 2em;\n max-height: 65vh;\n padding-right: 2em;\n overflow-y: auto;\n position: relative;\n padding-top: 2em;\n padding-bottom: 3em;\n /* width */\n ::-webkit-scrollbar {\n width: 10px;\n background: ", ";\n border-radius: 16px;\n }\n\n /* Track */\n ::-webkit-scrollbar-track {\n background: ", ";\n border-radius: 16px;\n }\n\n /* Handle */\n ::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 16px;\n }\n @media only screen and (max-width: 1200px) {\n margin-bottom: 3em;\n min-height: max-content;\n max-height: max-content;\n margin-right: 0;\n overflow: visible;\n }\n @media only screen and (max-width: 768px) {\n // max-width: 100vw;\n padding-right: 0;\n // width: 98vw;\n // min-width: 90vw;\n padding-top: 1em;\n }\n /* overflow: hidden; */\n"])), function (props) {
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) {
11489
12614
  return props.bg || 'rgba(102,112,128,0.5)';
11490
12615
  }, function (props) {
11491
12616
  return props.bg || 'rgba(102,112,128,0.5)';
11492
12617
  }, function (props) {
11493
12618
  return props.color;
11494
12619
  });
11495
- var CheckoutHeading = styled.div(_templateObject6$d || (_templateObject6$d = _taggedTemplateLiteralLoose(["\n margin-left: 2.5em;\n margin-bottom: 2em;\n h5 {\n font-size: 2.3em;\n font-weight: 600;\n text-transform: capitalize;\n }\n p {\n font-size: 0.875em;\n margin-top: 0.5em;\n }\n @media only screen and (max-width: 768px) {\n margin-left: 0;\n padding-left: 1em;\n }\n"])));
11496
- var CheckoutHeader = styled(Row)(_templateObject7$9 || (_templateObject7$9 = _taggedTemplateLiteralLoose(["\n width: 100%;\n overflow: auto;\n justify-content: space-around;\n display: flex;\n flex-direction: row;\n align-items: center;\n position: sticky;\n top: 0;\n background-color: white;\n z-index: 1;\n justify-content: flex-start;\n min-height: 4em;\n max-height: 4em;\n max-width: 60em;\n background: #ffffff;\n border-radius: 20px;\n color: #7d7b7b;\n padding: 0 2em;\n margin: 0 2em 1em 1em;\n .row {\n display: flex;\n color: inherit;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n text-transform: capitalize;\n margin-right: 2.4%;\n .icon {\n font-size: 14px;\n font-weight: 400;\n display: grid;\n place-items: center;\n margin-right: 6px;\n color: inherit;\n }\n p,\n span {\n font-size: 0.95em;\n color: inherit;\n }\n }\n .checked {\n p,\n span {\n color: #323232;\n }\n .icon {\n color: #249937;\n }\n }\n @media only screen and (max-width: 1200px) {\n margin-right: 0em;\n }\n @media only screen and (max-width: 768px) {\n width: 100%;\n padding: 2em 1em;\n margin: 1.4em 0;\n .row {\n margin-right: 4.5%;\n p {\n font-size: 12px;\n }\n span {\n display: none;\n }\n }\n }\n"])));
11497
- var CheckoutStepIcon = styled.div(_templateObject8$7 || (_templateObject8$7 = _taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n border-radius: 50%;\n font-size: 5px;\n display: grid;\n place-items: center;\n margin: auto;\n padding: 0;\n margin-left: 2px;\n .circle {\n width: 16px;\n height: 16px;\n border-radius: 50%;\n font-size: 5px;\n display: grid;\n place-items: center;\n margin: auto;\n padding: 0;\n }\n .ic {\n font-size: 8px;\n }\n"])));
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"])));
11498
12623
 
11499
- var _templateObject$M, _templateObject2$x, _templateObject3$o;
11500
- var CheckoutSummaryContainer = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n background: ", ";\n color: ", ";\n border-radius: 20px;\n padding: max(1.5em, 30px);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n max-width: 25rem;\n min-width: min(25rem, 95%);\n font-size: 16px;\n margin-top: 6.15em;\n @media only screen and (max-width: 1200px) {\n margin-top: 0;\n }\n"])), function (props) {
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) {
11501
12626
  return props.bg || 'rgba(255, 240, 236, 1)';
11502
12627
  }, function (props) {
11503
12628
  return props.color || ' rgba(50, 50, 50, 1)';
11504
12629
  });
11505
- var TextRow = styled.div(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n max-width: 90%;\n margin-bottom: 0.8rem;\n padding-bottom: 0.8rem;\n width: 90%;\n border-bottom: 1px solid #f7f7f7;\n .text {\n font-size: 1.1em;\n text-transform: capitalize;\n }\n .total {\n font-size: 1.65em;\n font-weight: 800;\n }\n"])));
11506
- var FilledInfo = styled.div(_templateObject3$o || (_templateObject3$o = _taggedTemplateLiteralLoose(["\n margin-bottom: 2em;\n .heading {\n font-size: 1.25em;\n font-weight: 800;\n margin-bottom: 0.8em;\n }\n\n p {\n font-size: 0.875em;\n text-transform: capitalize;\n max-width: 60%;\n }\n .bold {\n font-weight: 700;\n margin-bottom: 0.8em;\n max-width: 300px;\n width: fit-content;\n }\n .payment {\n width: 70px;\n height: 48px;\n background: #ffffff;\n border-radius: 15.875px;\n display: grid;\n place-items: center;\n overflow: hidden;\n }\n .blank {\n opacity: 0;\n }\n"])));
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"])));
11507
12632
 
11508
12633
  var CheckoutSummary = function CheckoutSummary(_ref) {
11509
12634
  var billingInformation = _ref.billingInformation,
@@ -11575,14 +12700,14 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
11575
12700
  }, renderMoney(orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.adjustmentValue))));
11576
12701
  };
11577
12702
 
11578
- var _templateObject$N, _templateObject2$y, _templateObject3$p, _templateObject4$k, _templateObject5$g, _templateObject6$e, _templateObject7$a, _templateObject8$8, _templateObject9$6, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2;
11579
- var StepContainer = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 60em;\n background: white;\n padding: 1em 2em;\n background: #ffffff;\n border-radius: 20px;\n margin-left: 2em;\n margin-top: -2em;\n margin-bottom: 1em;\n // @media screen and (max-width: 1200px) {\n // width: 80vw;\n // min-width: 0;\n // }\n @media screen and (max-width: 768px) {\n // width: 96%;\n margin-left: 1em;\n padding: 0.8em;\n }\n @media screen and (max-width: 600px) {\n // width: 94%;\n margin-left: 1.2em;\n }\n"])));
11580
- var StepsContent = styled.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n padding-left: 1.565em;\n min-height: max-content;\n .MuiOutlinedInput-root {\n background: ", ";\n }\n\n p {\n font-size: 0.75em;\n }\n .bold {\n text-transform: uppercase;\n word-spacing: 5px;\n margin-top: 0.95em;\n span {\n font-weight: 600;\n cursor: pointer;\n font-size: 0.94rem;\n }\n .red {\n color: ", ";\n }\n }\n @media screen and (max-width: 768px) {\n padding: 0;\n width: 100%;\n }\n"])), function (props) {
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) {
11581
12706
  return 'transparent' + '!important';
11582
12707
  }, function (props) {
11583
12708
  return props.bg || 'red';
11584
12709
  });
11585
- var StepsHeaderContainer = styled.div(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n color: #323232;\n /* padding: ", "; */\n margin-bottom: ", ";\n margin-top: ", ";\n margin-left: ", ";\n /* color: grey; */\n border-bottom: 1px solid #f6f6f6;\n background: #ffffff;\n border-radius: 20px;\n // max-width: 900px;\n min-height: 4.35em;\n max-height: 4.35em;\n padding: ", ";\n h5 {\n font-size: 16px;\n font-weight: 600;\n text-transform: capitalize;\n margin-left: 0.6em;\n }\n .icon {\n font-size: 1.3em;\n margin-right: 8px;\n }\n .dropIcon {\n font-size: 1.4em;\n cursor: pointer;\n transform: rotate(-90deg);\n transition: 0.3s;\n color: rgba(50, 50, 50, 0.75);\n cursor: ", ";\n }\n .red {\n font-weight: 600;\n color: #fd0015;\n font-size: inherit;\n }\n @media screen and (max-width: 768px) {\n max-width: 97%;\n margin-left: 0.5em;\n padding-right: 1em;\n h5 {\n font-size: 12px;\n }\n }\n"])), function (props) {
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) {
11586
12711
  return props.single ? '1.8em 2em' : '1em 0';
11587
12712
  }, function (props) {
11588
12713
  return props.single ? '-1.56em' : '1em';
@@ -11595,11 +12720,11 @@ var StepsHeaderContainer = styled.div(_templateObject3$p || (_templateObject3$p
11595
12720
  }, function (props) {
11596
12721
  return props.username ? 'not-allowed' : 'pointer';
11597
12722
  });
11598
- var TextFeildContainer = styled.div(_templateObject4$k || (_templateObject4$k = _taggedTemplateLiteralLoose(["\n label {\n color: rgba(107, 106, 106, 0.6) !important;\n }\n background: ", ";\n border-radius: 10px;\n && {\n input {\n font-size: 0.875em !important;\n color: black;\n &::placeholder {\n font-size: 0.975em !important;\n }\n }\n .icon {\n color: black;\n font-size: 1em;\n }\n }\n"])), function (props) {
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) {
11599
12724
  var _props$theme, _props$theme$input;
11600
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';
11601
12726
  });
11602
- var CommonCheckoutBtn = styled.button(_templateObject5$g || (_templateObject5$g = _taggedTemplateLiteralLoose(["\n border: none;\n outline: none;\n width: ", ";\n height: ", ";\n background: ", ";\n display: grid;\n place-items: center;\n color: white;\n margin: 0 1em;\n font-weight: 500;\n letter-spacing: 1px;\n text-transform: ", ";\n transition: 0.4s;\n cursor: ", ";\n &:hover,\n &:focus {\n opacity: 0.7;\n }\n"])), function (props) {
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) {
11603
12728
  return props.width || '8.05em';
11604
12729
  }, function (props) {
11605
12730
  return props.height || '2.25em';
@@ -11612,7 +12737,7 @@ var CommonCheckoutBtn = styled.button(_templateObject5$g || (_templateObject5$g
11612
12737
  });
11613
12738
  var Select = styled.div.attrs({
11614
12739
  className: 'checkout-input'
11615
- })(_templateObject6$e || (_templateObject6$e = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 54px;\n border-radius: 10px;\n background: ", ";\n outline: none;\n border: none;\n padding: 0 1em;\n cursor: pointer;\n select {\n width: 100%;\n height: 100%;\n border: none;\n outline: none;\n padding: 0.5em 0;\n color: rgba(107, 106, 106, 0.6);\n background: ", ";\n }\n"])), function (props) {
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) {
11616
12741
  var _props$theme2, _props$theme2$input;
11617
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';
11618
12743
  }, function (props) {
@@ -11620,12 +12745,12 @@ var Select = styled.div.attrs({
11620
12745
  });
11621
12746
  var SaveButton = styled.button.attrs({
11622
12747
  className: 'checkout-btn'
11623
- })(_templateObject7$a || (_templateObject7$a = _taggedTemplateLiteralLoose(["\n border: none;\n outline: none;\n font-size: 0.8125em;\n text-transform: uppercase;\n font-weight: 600;\n border-radius: 7px;\n padding: 0.55em 1em;\n background: ", ";\n display: grid;\n place-items: center;\n color: white;\n margin: 1em 0;\n letter-spacing: 1px;\n transition: 0.4s;\n cursor: ", ";\n &:hover,\n &:focus {\n opacity: 0.7;\n }\n"])), function (props) {
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) {
11624
12749
  return props.color || '#FD0015';
11625
12750
  }, function (props) {
11626
12751
  return props.disabled ? 'not-allowed' : 'pointer';
11627
12752
  });
11628
- var ButtonRowContainer = styled.div(_templateObject8$8 || (_templateObject8$8 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n button {\n width: 4.862em;\n height: 1.96em;\n border-radius: 0.43em;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n font-weight: 600;\n letter-spacing: 1px;\n color: white;\n opacity: ", ";\n background-color: ", ";\n border: 2px solid\n ", ";\n cursor: ", ";\n }\n .back {\n font-size: 0.875em;\n font-weight: 500;\n justify-content: flex-start;\n margin-right: 0.2em;\n color: #323232;\n background: transparent;\n border: none;\n cursor: ", ";\n font-size: 0.8em;\n transition: 0.4s;\n opacity: 1;\n .icon {\n font-size: 1.2em;\n margin-right: 2px;\n }\n &:hover,\n &:focus {\n letter-spacing: 1px;\n outline: none;\n }\n }\n"])), function (props) {
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) {
11629
12754
  return props.disabledNext && '0.5';
11630
12755
  }, function (props) {
11631
12756
  return props.color || '#fd0015';
@@ -11636,7 +12761,7 @@ var ButtonRowContainer = styled.div(_templateObject8$8 || (_templateObject8$8 =
11636
12761
  }, function (props) {
11637
12762
  return props.disabledBack ? 'not-allowed' : 'pointer';
11638
12763
  });
11639
- var CheckBoxRow = styled.div(_templateObject9$6 || (_templateObject9$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n cursor: pointer;\n padding: ", ";\n margin-left: ", ";\n p {\n font-size: 0.85em;\n }\n\n button {\n border: none;\n border-radius: 4px;\n padding: 0.8rem 3rem;\n background: ", ";\n color: white;\n text-transform: uppercase;\n font-weight: 600;\n margin: 1em;\n margin-top: 2em;\n transition: 0.4s;\n cursor: pointer;\n min-width: max-content;\n &:hover {\n padding: 0.7em 2.7em;\n }\n }\n .back {\n background-color: ", ";\n padding: 0.8em 2em;\n &:hover {\n padding: 0.8em 2.4em;\n }\n }\n .bold,\n .red {\n font-weight: 600;\n font-size: 1.125em;\n }\n .red {\n margin-left: 0.5em;\n color: ", ";\n }\n .medium {\n font-weight: 600;\n font-size: 1em;\n }\n @media only screen and (max-width: 600px) {\n button {\n &:hover {\n padding: 0.8em 3em;\n }\n }\n\n .back {\n &:hover {\n padding: 0.8em 2em;\n }\n margin-left: 0;\n }\n }\n"])), function (props) {
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) {
11640
12765
  return props.padding;
11641
12766
  }, function (props) {
11642
12767
  return props.marginLeft;
@@ -11647,14 +12772,14 @@ var CheckBoxRow = styled.div(_templateObject9$6 || (_templateObject9$6 = _tagged
11647
12772
  }, function (prop) {
11648
12773
  return prop.colorText || 'red';
11649
12774
  });
11650
- var CreditCardFextField = styled.div(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n label {\n color: rgba(107, 106, 106, 0.6) !important;\n }\n .MuiOutlinedInput-root {\n background: ", ";\n }\n .save-btn {\n background: ", ";\n }\n"])), function (prop) {
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) {
11651
12776
  return prop.bgInput + '!important' || '';
11652
12777
  }, function (prop) {
11653
12778
  return prop.btnBg + '!important' || '';
11654
12779
  });
11655
- var CardHeading = styled.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n font-weight: 600;\n margin-bottom: 1rem;\n"])));
11656
- var DeliveryOptionContainer = styled.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
11657
- var DeliveryOption = styled.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n max-width: 691px;\n min-height: 40px;\n padding: 0 1em;\n border: 1px solid transparent;\n transition: 0.3s;\n cursor: pointer;\n background-color: ", ";\n border: ", ";\n border-bottom: ", ";\n border-radius: 5px;\n &:last-child {\n border-bottom: ", ";\n }\n &:hover {\n background-color: ", ";\n border: ", ";\n border-radius: 5px;\n }\n p {\n font-weight: 500;\n color: black;\n font-size: 0.95em;\n text-transform: capitalize;\n }\n .circle {\n border-radius: 50%;\n display: grid;\n place-items: center;\n background: linear-gradient(345.48deg, #3c332a -131.29%, #ffffff 124.82%);\n margin-right: 1em;\n width: 14px;\n height: 14px;\n min-width: 14px;\n min-height: 14px;\n cursor: pointer;\n .inner {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n display: grid;\n place-items: center;\n background: linear-gradient(\n 326.37deg,\n rgba(67, 58, 42, 0.9) -219.66%,\n rgba(255, 255, 255, 0.9) 90.45%\n );\n box-shadow: inset -1px -1px 1px rgba(255, 255, 255, 0.45),\n inset 0px 0px 10px rgba(0, 0, 0, 0.2);\n }\n .fill {\n width: 6px;\n height: 6px;\n background: radial-gradient(\n 15.79% 15.79% at 36.84% 31.58%,\n #ffffff 0%,\n rgba(255, 255, 255, 0) 100%\n )\n /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */,\n linear-gradient(\n 358.85deg,\n rgba(157, 18, 30, 0.2) -19.81%,\n rgba(12, 96, 157, 0) 64.74%\n ),\n radial-gradient(50% 50% at 50% 50%, #fab0b6 0%, #fd0015 100%), #fd0015;\n background-blend-mode: normal, multiply, normal, normal;\n box-shadow: 0px 0.5px 0px rgba(253, 0, 21, 0.25),\n 0px 1px 1px rgba(253, 0, 21, 0.2);\n border-radius: 50%;\n background: ", ";\n }\n }\n .amount {\n margin-left: auto;\n color: ", ";\n font-weight: ", ";\n font-size: 0.95em;\n }\n"])), function (props) {
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) {
11658
12783
  return props.hovered ? props.bg : '';
11659
12784
  }, function (props) {
11660
12785
  return props.hovered ? "1px solid " + props.border : "1px solid" + props.bg;
@@ -11673,19 +12798,19 @@ var DeliveryOption = styled.div(_templateObject13$2 || (_templateObject13$2 = _t
11673
12798
  }, function (props) {
11674
12799
  return props.hovered ? '800' : '700';
11675
12800
  });
11676
- var CreditCard = styled.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n width: 70px;\n min-height: 48px;\n max-height: 50px;\n background-color: white;\n border: 3px solid rgba(217, 217, 217, 0.1);\n display: grid;\n place-items: center;\n margin: auto;\n cursor: pointer;\n overflow: hidden;\n border-radius: 5px;\n transition: 0.1s;\n border: 1px solid transparent;\n text-align: center;\n p {\n font-size: 10px;\n }\n"])));
11677
- var PaymentLi = styled.div(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n margin-bottom: 1.5em;\n cursor: pointer;\n .circle {\n /* background: #323232; */\n width: 16px;\n height: 16px;\n display: grid;\n place-items: center;\n border-radius: 50%;\n border: 1px solid #323232;\n margin-right: 1em;\n }\n .innerCircle {\n background: #323232;\n border-radius: 50%;\n width: 6px;\n height: 6px;\n }\n p {\n font-size: 1em;\n color: black;\n text-transform: capitalize;\n font-weight: 500;\n }\n"])));
11678
- var StyledTableRow = styled(TableRow)(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteralLoose(["\n && {\n box-shadow: none;\n border: none;\n background-color: ", ";\n p {\n font-size: 0.9em;\n }\n .max {\n min-width: max-content;\n word-break: break-word;\n @media only screen and (max-width: 768px) {\n min-width: 5rem;\n }\n }\n .red {\n color: ", "\n font-weight: inherit;\n }\n .price {\n font-weight: 600;\n }\n .sm {\n font-weight: 500;\n }\n .bolder {\n font-weight: 700;\n font-size: 1em;\n }\n @media only screen and (max-width: 600px) {\n p {\n font-size: 12px;\n }\n .sm {\n font-size: 10px;\n }\n .price,\n .red {\n font-size: 10px;\n }\n .total {\n font-size: 14px;\n }\n .bolder {\n font-size: 12px;\n }\n }\n }\n"])), function (props) {
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) {
11679
12804
  return props.colored ? props.bg || "'rgba(255, 240, 236, 1)'" : 'white';
11680
12805
  }, function (props) {
11681
12806
  return props.bg || 'red';
11682
12807
  });
11683
- var StyledTableCell = styled(TableCell)(_templateObject17$2 || (_templateObject17$2 = _taggedTemplateLiteralLoose(["\n && {\n border: none;\n font-size: 1em;\n .noAboveSm {\n display: none;\n }\n @media only screen and (max-width: 768px) {\n display: ", ";\n padding: 0.5em 0.3em;\n .noAboveSm {\n display: inline-block;\n margin-right: 6px;\n }\n }\n @media only screen and (min-width: 768px) {\n display: ", ";\n }\n }\n"])), function (props) {
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) {
11684
12809
  return props.noSmall ? 'none' : '';
11685
12810
  }, function (props) {
11686
12811
  return props.noAboveSmall ? 'none' : '';
11687
12812
  });
11688
- var BottomGrid = styled(Grid)(_templateObject18$2 || (_templateObject18$2 = _taggedTemplateLiteralLoose(["\n .bold {\n font-weight: 600;\n text-transform: capitalize;\n margin: 1em 0;\n font-size: 1em;\n }\n .icon {\n font-size: 1.6em;\n color: ", ";\n }\n textarea {\n width: 100%;\n resize: none;\n border: 1px solid\n ", ";\n border-radius: 4px;\n margin-bottom: 2em;\n padding: 1em;\n background: ", ";\n }\n p {\n font-size: 12px;\n .ul {\n text-decoration: underline;\n font-size: inherit;\n }\n }\n .bottom {\n margin-left: 3em;\n font-style: italic;\n span {\n font-weight: 600;\n color: ", ";\n\n cursor: pointer;\n &:hover {\n text-decoration: underline;\n }\n }\n }\n"])), function (prop) {
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) {
11689
12814
  return prop.primaryColor || 'rgba(107, 106, 106, 1)';
11690
12815
  }, function (prop) {
11691
12816
  var _prop$bgTextArea;
@@ -13135,7 +14260,7 @@ var erSessionStorage = {
13135
14260
  }
13136
14261
  };
13137
14262
 
13138
- var _templateObject$O, _templateObject2$z;
14263
+ var _templateObject$S, _templateObject2$B;
13139
14264
  var ConsentForm = function ConsentForm(_ref) {
13140
14265
  var apiEndPoint = _ref.apiEndPoint,
13141
14266
  token = _ref.token,
@@ -13301,7 +14426,7 @@ var InfoComponent = function InfoComponent(_ref2) {
13301
14426
  });
13302
14427
  }))));
13303
14428
  };
13304
- var InfoContainer$1 = styled.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n h2 {\n border-bottom: 1px solid #00000040;\n margin-bottom: 0.8rem;\n }\n p {\n font-size: 1.2rem;\n }\n"])));
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"])));
13305
14430
  var InfoItem = function InfoItem(_ref3) {
13306
14431
  var name = _ref3.name,
13307
14432
  value = _ref3.value;
@@ -13314,7 +14439,7 @@ var InfoItem = function InfoItem(_ref3) {
13314
14439
  item: true
13315
14440
  }, /*#__PURE__*/React__default.createElement("p", null, value))));
13316
14441
  };
13317
- 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"])));
13318
14443
 
13319
14444
  var PaypalComponent = function PaypalComponent(_ref) {
13320
14445
  var apiEndPoint = _ref.apiEndPoint,
@@ -13508,7 +14633,7 @@ var Step4 = function Step4(_ref) {
13508
14633
  icon: /*#__PURE__*/React__default.createElement(MdOutlineStickyNote2, {
13509
14634
  className: "icon"
13510
14635
  })
13511
- }), /*#__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, {
13512
14637
  "aria-label": "customized table",
13513
14638
  sx: {
13514
14639
  maxHeight: '600px'
@@ -14689,8 +15814,8 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref9) {
14689
15814
  }, props)));
14690
15815
  };
14691
15816
 
14692
- var _templateObject$P, _templateObject2$A, _templateObject3$q;
14693
- var columns = [{
15817
+ var _templateObject$T, _templateObject2$C, _templateObject3$s;
15818
+ var columns$1 = [{
14694
15819
  id: 'id',
14695
15820
  label: 'Id',
14696
15821
  isSearchable: 'true'
@@ -14753,7 +15878,7 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
14753
15878
  };
14754
15879
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TitleContainer$3, {
14755
15880
  primaryColor: primaryColor
14756
- }, /*#__PURE__*/React__default.createElement("span", null, currentTimeText()), /*#__PURE__*/React__default.createElement("b", null, " ", name, "!")), /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
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, {
14757
15882
  cacheFilters: true,
14758
15883
  extraFilterParams: queryParams,
14759
15884
  listUpdate: triggerTableData,
@@ -14762,7 +15887,7 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
14762
15887
  x: 1000
14763
15888
  },
14764
15889
  tableId: "master-child-map",
14765
- columns: columns,
15890
+ columns: columns$1,
14766
15891
  apiData: {
14767
15892
  url: "/vendor/portal/purchaseOrder/list",
14768
15893
  apiEndPoint: API_BASE_URL,
@@ -14804,15 +15929,15 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
14804
15929
  setTriggerTableData: setTriggerTableData
14805
15930
  })));
14806
15931
  };
14807
- var TableContainer$2 = styled.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n margin: 0.5rem;\n border-radius: 14px;\n"])));
14808
- var TypographyContainer$9 = styled(Typography)(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
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) {
14809
15934
  return props.fontColor;
14810
15935
  });
14811
- var TitleContainer$3 = styled.h4(_templateObject3$q || (_templateObject3$q = _taggedTemplateLiteralLoose(["\n font-size: 2.7rem;\n span {\n color: '#000';\n font-weight: 500;\n }\n b {\n color: ", ";\n }\n @media only screen and (max-width: 608px) {\n font-size: 2.2rem;\n }\n"])), function (props) {
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) {
14812
15937
  return props.primaryColor;
14813
15938
  });
14814
15939
 
14815
- var columns$1 = [{
15940
+ var columns$2 = [{
14816
15941
  id: 'id',
14817
15942
  label: 'Id'
14818
15943
  }, {
@@ -15106,7 +16231,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15106
16231
  fontSize: '1.2rem'
15107
16232
  }
15108
16233
  }, item === null || item === void 0 ? void 0 : item.value)))));
15109
- }))))))), /*#__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, {
15110
16235
  cacheFilters: true,
15111
16236
  extraFilterParams: queryParams,
15112
16237
  listUpdate: triggerTableData,
@@ -15115,7 +16240,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15115
16240
  x: 1000
15116
16241
  },
15117
16242
  tableId: "master-child-map",
15118
- columns: columns$1,
16243
+ columns: columns$2,
15119
16244
  apiData: {
15120
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),
15121
16246
  apiEndPoint: API_BASE_URL,
@@ -15163,7 +16288,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15163
16288
  }, /*#__PURE__*/React__default.createElement(Grid, {
15164
16289
  item: true,
15165
16290
  xs: 6
15166
- }, /*#__PURE__*/React__default.createElement(TableContainer$2, {
16291
+ }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
15167
16292
  style: {
15168
16293
  boxShadow: 'rgba(0,0,0,0.2) 0px 0px 8px 0px'
15169
16294
  }
@@ -15189,7 +16314,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15189
16314
  }))))), /*#__PURE__*/React__default.createElement(Grid, {
15190
16315
  item: true,
15191
16316
  xs: 6
15192
- }, /*#__PURE__*/React__default.createElement(TableContainer$2, {
16317
+ }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
15193
16318
  style: {
15194
16319
  boxShadow: 'rgba(0,0,0,0.2) 0px 0px 8px 0px'
15195
16320
  }
@@ -15215,7 +16340,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15215
16340
  })))))));
15216
16341
  };
15217
16342
 
15218
- var columns$2 = [{
16343
+ var columns$3 = [{
15219
16344
  id: 'name',
15220
16345
  label: 'Name',
15221
16346
  isSearchable: true
@@ -15306,7 +16431,7 @@ var VendorInventory = function VendorInventory(_ref) {
15306
16431
  var onChangeQueryParams = function onChangeQueryParams(data) {
15307
16432
  setTableParams(data);
15308
16433
  };
15309
- 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, {
15310
16435
  cacheFilters: true,
15311
16436
  extraFilterParams: queryParams,
15312
16437
  listUpdate: triggerTableData,
@@ -15316,7 +16441,7 @@ var VendorInventory = function VendorInventory(_ref) {
15316
16441
  x: 1000
15317
16442
  },
15318
16443
  tableId: "master-child-map",
15319
- columns: columns$2,
16444
+ columns: columns$3,
15320
16445
  apiData: {
15321
16446
  apiEndPoint: API_BASE_URL,
15322
16447
  token: token,
@@ -15379,7 +16504,7 @@ var VendorInventory = function VendorInventory(_ref) {
15379
16504
  })));
15380
16505
  };
15381
16506
 
15382
- 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;
15383
16508
  var VendorLogin = function VendorLogin(_ref) {
15384
16509
  var primaryColor = _ref.primaryColor,
15385
16510
  API_BASE_URL = _ref.API_BASE_URL;
@@ -15485,16 +16610,16 @@ var VendorLogin = function VendorLogin(_ref) {
15485
16610
  color: "inherit"
15486
16611
  }) : 'sign in'))))));
15487
16612
  };
15488
- var Container$3 = styled.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background: rgb(255, 255, 255);\n font-size: 16px !important;\n padding: 1rem;\n @media only screen and (max-width: 640px) {\n font-size: 14px !important;\n }\n"])));
15489
- var StyledLogin = styled.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n height: 70%;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 1em;\n align-items: center;\n"])));
15490
- var StyledCard = styled(Card$1)(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n width: min(100%, 489px);\n height: 100%;\n max-height: 450px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid #cac8c8;\n flex-direction: column;\n background: white;\n // min-height: 500px;\n h4 {\n font-size: 1.5em;\n margin-bottom: 1em;\n margin-top: -2em;\n text-transform: uppercase;\n font-weight: 500;\n }\n button {\n text-transform: capitalize;\n letter-spacing: 1px;\n font-size: 1em;\n font-weight: 500;\n }\n"])));
15491
- var H1 = styled(Typography)(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n margin-top: 1rem;\n"])));
15492
- var StyleInputBx = styled.div(_templateObject5$h || (_templateObject5$h = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n align-items: center;\n border: 1px solid rgb(202, 200, 200);\n // padding:.5em;\n min-width: min(80vw, 360px);\n // border-radius: 20px;\n overflow: hidden;\n margin: 0.6em 0;\n // padding:.2em 0;\n .icon {\n border-right: 1px solid rgb(202, 200, 200);\n height: 100%;\n padding: 1em;\n display: grid;\n place-items: center;\n width: 15%;\n box-sizing: border-box;\n color: grey;\n }\n input {\n width: 85%;\n height: 100%;\n outline: none;\n padding: 0 1em;\n font-size: 1.1em;\n border: none;\n &:focus,\n &:hover {\n outline: none !important;\n }\n }\n"])));
15493
- var ShowPassBtn = styled.span(_templateObject6$f || (_templateObject6$f = _taggedTemplateLiteralLoose(["\n padding-right: 0.4em;\n display: grid;\n place-items: center;\n font-size: 25px;\n color: grey;\n cursor: pointer;\n"])));
15494
- var ButtonContianer = styled.span(_templateObject7$b || (_templateObject7$b = _taggedTemplateLiteralLoose(["\n width: 100%;\n max-width: 360px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n // @include flexRow(space-between);\n margin-top: 1em;\n @media only screen and (max-width: 640px) {\n padding: 0 1em;\n }\n"])));
15495
- var StyledButton$1 = styled(Button)(_templateObject8$9 || (_templateObject8$9 = _taggedTemplateLiteralLoose(["\n width: 100px;\n height: 46px;\n box-sizing: border-box;\n\n span {\n padding: 0.5em;\n }\n @media only screen and (max-width: 640px) {\n height: 35px;\n }\n"])));
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"])));
15496
16621
 
15497
- var _templateObject$R, _templateObject2$C, _templateObject3$s, _templateObject4$m;
16622
+ var _templateObject$V, _templateObject2$E, _templateObject3$u, _templateObject4$o;
15498
16623
  var menuItems = [{
15499
16624
  name: 'My Account',
15500
16625
  Icon: RiAccountBoxLine,
@@ -15702,8 +16827,8 @@ var VendorAccountDetails = function VendorAccountDetails(_ref) {
15702
16827
  height: 200
15703
16828
  }) : /*#__PURE__*/React__default.createElement(Fragment$1, null, API_BASE_URL && token && renderListItemComponent(tabValue)))))));
15704
16829
  };
15705
- var Root$e = styled(Box)(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n padding: 1.4rem;\n background-color: #fff;\n @media only screen and (max-width: 608px) {\n padding: 0.5rem;\n }\n"])));
15706
- var MainContainer$4 = styled.div(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n margin: auto;\n min-height: 100vh;\n background-color: #fff;\n max-width: ", ";\n padding: 2rem;\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n @media only screen and (max-width: 608px) {\n padding: 0.5rem;\n }\n"])), function (props) {
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) {
15707
16832
  return props.open ? '1800px' : '1600px';
15708
16833
  });
15709
16834
  var Main$1 = styled$1('main', {
@@ -15736,12 +16861,12 @@ var Main$1 = styled$1('main', {
15736
16861
  overflow: 'auto'
15737
16862
  });
15738
16863
  });
15739
- var ContainerDrawer$1 = styled(Drawer)(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n // height: 100%;\n margin-right: ", ";\n .MuiDrawer-paper {\n padding: 1rem;\n position: relative;\n z-index: 1;\n background: ", ";\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n }\n"])), function (props) {
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) {
15740
16865
  return props.open && '2rem';
15741
16866
  }, function (props) {
15742
16867
  return props.primaryColor || transparent;
15743
16868
  });
15744
- 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) {
15745
16870
  return props.fontColor;
15746
16871
  });
15747
16872
 
@@ -15846,7 +16971,7 @@ var getRestockedData = function getRestockedData(_ref3) {
15846
16971
  }
15847
16972
  };
15848
16973
 
15849
- var _templateObject$S;
16974
+ var _templateObject$W;
15850
16975
  var NewArrival = function NewArrival(_ref) {
15851
16976
  var _newArrivalItems$cont;
15852
16977
  var apiEndPoint = _ref.apiEndPoint,
@@ -15997,7 +17122,7 @@ var DateCard = function DateCard(_ref2) {
15997
17122
  }
15998
17123
  }, item === null || item === void 0 ? void 0 : item.count));
15999
17124
  };
16000
- var ProductsGrid = styled.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: 1fr 1fr 1fr 1fr 1fr;\n grid-gap: 1.4rem;\n padding: 2rem 0;\n grid-row-gap: 22px;\n margin-bottom: 4em;\n @media only screen and (max-width: 1445px) {\n grid-template-columns: 1fr 1fr 1fr 1fr;\n }\n @media only screen and (max-width: 1200px) {\n grid-template-columns: 1fr 1fr 1fr;\n }\n @media only screen and (max-width: 580px) {\n grid-template-columns: 1fr 1fr;\n padding-top: 0rem;\n /* width: 100vw; */\n margin-top: 1em;\n grid-gap: 1rem;\n }\n"])));
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"])));
16001
17126
 
16002
17127
  var ReStockedItem = function ReStockedItem(_ref) {
16003
17128
  var _newArrivalItems$cont;
@@ -16107,7 +17232,7 @@ var ReStockedItem = function ReStockedItem(_ref) {
16107
17232
  })))))));
16108
17233
  };
16109
17234
 
16110
- var _excluded$7 = ["children", "value", "index"];
17235
+ var _excluded$8 = ["children", "value", "index"];
16111
17236
  var NewArrivalPage = function NewArrivalPage(_ref) {
16112
17237
  var apiEndPoint = _ref.apiEndPoint,
16113
17238
  token = _ref.token,
@@ -16215,7 +17340,7 @@ function CustomTabPanel(props) {
16215
17340
  var children = props.children,
16216
17341
  value = props.value,
16217
17342
  index = props.index,
16218
- other = _objectWithoutPropertiesLoose(props, _excluded$7);
17343
+ other = _objectWithoutPropertiesLoose(props, _excluded$8);
16219
17344
  return /*#__PURE__*/React__default.createElement("div", _extends({
16220
17345
  role: "tabpanel",
16221
17346
  hidden: value !== index,
@@ -16357,21 +17482,21 @@ var moveToCart = function moveToCart(_ref3) {
16357
17482
  }
16358
17483
  };
16359
17484
 
16360
- var _templateObject$T, _templateObject2$D, _templateObject3$t, _templateObject4$n, _templateObject5$i, _templateObject6$g, _templateObject7$c, _templateObject8$a, _templateObject9$7, _templateObject10$5, _templateObject11$4;
16361
- var EmptyStateText = styled.p(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n color: #4b4b4b;\n margin: 16px 0;\n"])));
16362
- var ProductCardWrapper = styled.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n position: relative;\n background-color: #ffffff;\n border: 1px solid #d3d3d3;\n border-radius: 10px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 10px;\n gap: 10px;\n cursor: pointer;\n"])));
16363
- var TopBar = styled.div(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n"])));
16364
- var SearchWrapper = styled(Box)(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n && {\n margin-bottom: 24px;\n max-width: 400px;\n width: 100%;\n }\n"])));
16365
- var TotalItemsText = styled.div(_templateObject5$i || (_templateObject5$i = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 500;\n color: #4b4b4b;\n margin-bottom: 24px;\n white-space: nowrap;\n"])));
16366
- var DeleteButton = styled.button(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 8px;\n opacity: 1;\n pointer-events: auto;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n border-radius: 50%;\n background-color: #ffffff;\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n color: #ff0000;\n"])));
16367
- var PriceContainer = styled.div(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
16368
- var DiscountPriceRow = styled.div(_templateObject8$a || (_templateObject8$a = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n"])));
16369
- var ProductName$2 = styled.div(_templateObject9$7 || (_templateObject9$7 = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n font-weight: 500;\n color: #000000;\n text-align: center;\n height: 40px;\n overflow: hidden;\n width: 100%;\n text-overflow: ellipsis;\n white-space: pre-wrap;\n"])));
16370
- var ProductActionButton = styled(Button)(_templateObject10$5 || (_templateObject10$5 = _taggedTemplateLiteralLoose(["\n && {\n background-color: ", ";\n color: #ffffff;\n border-radius: 10px;\n font-weight: 500;\n }\n"])), function (_ref) {
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) {
16371
17496
  var primaryColor = _ref.primaryColor;
16372
17497
  return primaryColor != null ? primaryColor : '#000000';
16373
17498
  });
16374
- 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"])));
16375
17500
 
16376
17501
  var getProductImage = function getProductImage(imageUrl, fallbackUrl) {
16377
17502
  var url = imageUrl || fallbackUrl;