@salesgenterp/ui-components 0.4.550 → 0.4.552

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,21 +47,22 @@ var Paper = _interopDefault(require('@mui/material/Paper'));
47
47
  var Table = _interopDefault(require('@mui/material/Table'));
48
48
  var TableBody = _interopDefault(require('@mui/material/TableBody'));
49
49
  var TableCell = _interopDefault(require('@mui/material/TableCell'));
50
- var TableContainer$3 = _interopDefault(require('@mui/material/TableContainer'));
50
+ var TableContainer$4 = _interopDefault(require('@mui/material/TableContainer'));
51
51
  var TableHead = _interopDefault(require('@mui/material/TableHead'));
52
52
  var TableRow = _interopDefault(require('@mui/material/TableRow'));
53
53
  var reactVirtuoso = require('react-virtuoso');
54
54
  var Box = _interopDefault(require('@mui/material/Box'));
55
55
  var TableSortLabel = _interopDefault(require('@mui/material/TableSortLabel'));
56
+ var fi = require('react-icons/fi');
57
+ var reactDom = require('react-dom');
56
58
  var hi2 = require('react-icons/hi2');
59
+ var paramCase = require('param-case');
57
60
  var InputBase = _interopDefault(require('@mui/material/InputBase'));
58
61
  var reactSelect = require('react-select');
59
62
  var ReactAsyncSelect = _interopDefault(require('react-select/async'));
60
63
  var Snowfall = _interopDefault(require('react-snowfall'));
61
64
  var ReCAPTCHA = _interopDefault(require('react-google-recaptcha'));
62
- var paramCase = require('param-case');
63
65
  var cg = require('react-icons/cg');
64
- var fi = require('react-icons/fi');
65
66
  var fa6 = require('react-icons/fa6');
66
67
  var Image$3 = _interopDefault(require('next/image'));
67
68
  var debounce$1 = _interopDefault(require('lodash/debounce'));
@@ -2834,7 +2835,301 @@ var InfoContainer = styled__default.div(_templateObject$9 || (_templateObject$9
2834
2835
  return props.fontColor;
2835
2836
  });
2836
2837
 
2837
- var _templateObject$a, _templateObject2$5, _templateObject3$3, _templateObject4$2, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
2838
+ var AsyncDataLoad = function AsyncDataLoad(_ref) {
2839
+ var apiEndPoint = _ref.apiEndPoint,
2840
+ token = _ref.token,
2841
+ children = _ref.children,
2842
+ onError = _ref.onError,
2843
+ skeletonHeight = _ref.skeletonHeight,
2844
+ loadingView = _ref.loadingView,
2845
+ errorView = _ref.errorView,
2846
+ asyncService = _ref.asyncService,
2847
+ triggerChange = _ref.triggerChange,
2848
+ apiConfig = _ref.apiConfig;
2849
+ var _useState = React.useState({
2850
+ status: 'loading',
2851
+ data: {}
2852
+ }),
2853
+ apiState = _useState[0],
2854
+ setApiState = _useState[1];
2855
+ var getAPIData = function getAPIData() {
2856
+ try {
2857
+ var _temp3 = _catch(function () {
2858
+ function _temp2() {
2859
+ setApiState({
2860
+ status: API_STATUSES.SUCCESS,
2861
+ data: data
2862
+ });
2863
+ }
2864
+ setApiState({
2865
+ status: API_STATUSES.LOADING,
2866
+ data: {}
2867
+ });
2868
+ var data;
2869
+ var _temp = function () {
2870
+ if (asyncService) {
2871
+ return Promise.resolve(asyncService()).then(function (_asyncService) {
2872
+ data = _asyncService;
2873
+ });
2874
+ } else {
2875
+ return Promise.resolve(API(_extends({
2876
+ apiEndPoint: apiEndPoint,
2877
+ token: token,
2878
+ hideErrorMessage: true
2879
+ }, apiConfig))).then(function (_API) {
2880
+ data = _API;
2881
+ });
2882
+ }
2883
+ }();
2884
+ return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
2885
+ }, function (e) {
2886
+ setApiState({
2887
+ status: API_STATUSES.ERROR,
2888
+ data: {}
2889
+ });
2890
+ if (onError) {
2891
+ onError(e);
2892
+ }
2893
+ });
2894
+ return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
2895
+ } catch (e) {
2896
+ return Promise.reject(e);
2897
+ }
2898
+ };
2899
+ React.useEffect(function () {
2900
+ if (apiConfig || asyncService) {
2901
+ (function () {
2902
+ return getAPIData();
2903
+ })();
2904
+ }
2905
+ }, [apiConfig, triggerChange]);
2906
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, apiState.status === API_STATUSES.LOADING ? loadingView ? loadingView : /*#__PURE__*/React__default.createElement(Loader, {
2907
+ skeleton: skeletonHeight,
2908
+ height: skeletonHeight
2909
+ }) : null, apiState.status === API_STATUSES.SUCCESS ? typeof children === 'function' ? children(apiState.data) : {
2910
+ children: children
2911
+ } : null, apiState.status === API_STATUSES.ERROR ? errorView ? errorView : 'NO DATA' : null);
2912
+ };
2913
+ var AsyncDataLoadComponent = React.memo(AsyncDataLoad);
2914
+
2915
+ var getUpcomingAchPayments = function getUpcomingAchPayments(_ref) {
2916
+ var apiEndPoint = _ref.apiEndPoint,
2917
+ token = _ref.token;
2918
+ try {
2919
+ return Promise.resolve(API({
2920
+ url: '/ecommerce/order/payment/upcoming-auto-ach',
2921
+ apiEndPoint: apiEndPoint,
2922
+ token: token
2923
+ }));
2924
+ } catch (e) {
2925
+ return Promise.reject(e);
2926
+ }
2927
+ };
2928
+ var saveExcessPayment = function saveExcessPayment(_ref2) {
2929
+ var apiEndPoint = _ref2.apiEndPoint,
2930
+ token = _ref2.token,
2931
+ payload = _ref2.payload;
2932
+ try {
2933
+ return Promise.resolve(API({
2934
+ url: '/ecommerce/order/payment/excess',
2935
+ apiEndPoint: apiEndPoint,
2936
+ token: token,
2937
+ method: 'POST',
2938
+ body: payload
2939
+ }));
2940
+ } catch (e) {
2941
+ return Promise.reject(e);
2942
+ }
2943
+ };
2944
+
2945
+ var ExcessPaymentForm = function ExcessPaymentForm(_ref) {
2946
+ var paymentMethods = _ref.paymentMethods,
2947
+ control = _ref.control,
2948
+ styles = _ref.styles,
2949
+ handleSubmit = _ref.handleSubmit,
2950
+ onSubmit = _ref.onSubmit,
2951
+ onClose = _ref.onClose,
2952
+ loading = _ref.loading;
2953
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("form", null, /*#__PURE__*/React__default.createElement(material.Grid, {
2954
+ container: true,
2955
+ spacing: 2
2956
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
2957
+ item: true,
2958
+ xs: 12
2959
+ }, /*#__PURE__*/React__default.createElement(FormSelect, {
2960
+ label: "Payment Method",
2961
+ name: "paymentModeId",
2962
+ required: true,
2963
+ control: control,
2964
+ options: paymentMethods,
2965
+ valueKey: "id",
2966
+ labelKey: "name",
2967
+ placeholder: "Select Payment Mode",
2968
+ fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
2969
+ })), /*#__PURE__*/React__default.createElement(material.Grid, {
2970
+ item: true,
2971
+ xs: 12
2972
+ }, /*#__PURE__*/React__default.createElement(FormTextField, {
2973
+ label: "Excess Amount",
2974
+ name: "excessAmount",
2975
+ type: "number",
2976
+ required: true,
2977
+ control: control,
2978
+ fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
2979
+ })), /*#__PURE__*/React__default.createElement(material.Grid, {
2980
+ item: true,
2981
+ xs: 12
2982
+ }, /*#__PURE__*/React__default.createElement(FormTextField, {
2983
+ label: "Transaction Id",
2984
+ name: "transactionId",
2985
+ control: control,
2986
+ fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
2987
+ })), /*#__PURE__*/React__default.createElement(material.Grid, {
2988
+ item: true,
2989
+ xs: 12
2990
+ }, /*#__PURE__*/React__default.createElement(FormTextField, {
2991
+ label: "Notes",
2992
+ name: "notes",
2993
+ control: control,
2994
+ fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor,
2995
+ multiline: true,
2996
+ rows: 3
2997
+ })))), /*#__PURE__*/React__default.createElement(material.DialogActions, {
2998
+ sx: {
2999
+ justifyContent: 'center',
3000
+ px: 0,
3001
+ pt: 2
3002
+ }
3003
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
3004
+ container: true,
3005
+ spacing: 4,
3006
+ alignItems: "center",
3007
+ justifyContent: "center"
3008
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
3009
+ item: true
3010
+ }, /*#__PURE__*/React__default.createElement(MuiButton, {
3011
+ primaryColor: styles === null || styles === void 0 ? void 0 : styles.primaryColor,
3012
+ sx: {
3013
+ fontSize: '1.3rem'
3014
+ },
3015
+ onClick: handleSubmit(onSubmit),
3016
+ loading: loading,
3017
+ size: "small"
3018
+ }, "Save")), /*#__PURE__*/React__default.createElement(material.Grid, {
3019
+ item: true
3020
+ }, /*#__PURE__*/React__default.createElement(MuiButton, {
3021
+ primaryColor: styles === null || styles === void 0 ? void 0 : styles.primaryColor,
3022
+ sx: {
3023
+ fontSize: '1.3rem'
3024
+ },
3025
+ onClick: onClose,
3026
+ size: "small"
3027
+ }, "Cancel")))));
3028
+ };
3029
+ var ExcessPaymentDialog = function ExcessPaymentDialog(_ref2) {
3030
+ var visible = _ref2.visible,
3031
+ onClose = _ref2.onClose,
3032
+ defaultStoreId = _ref2.defaultStoreId,
3033
+ apiEndPoint = _ref2.apiEndPoint,
3034
+ token = _ref2.token,
3035
+ styles = _ref2.styles,
3036
+ onSave = _ref2.onSave,
3037
+ customerData = _ref2.customerData;
3038
+ var _useForm = reactHookForm.useForm({
3039
+ defaultValues: {
3040
+ paymentModeId: '',
3041
+ excessAmount: '',
3042
+ transactionId: '',
3043
+ notes: ''
3044
+ }
3045
+ }),
3046
+ handleSubmit = _useForm.handleSubmit,
3047
+ control = _useForm.control,
3048
+ reset = _useForm.reset;
3049
+ var _useState = React.useState(false),
3050
+ loading = _useState[0],
3051
+ setLoading = _useState[1];
3052
+ React.useEffect(function () {
3053
+ if (!visible) {
3054
+ reset({
3055
+ paymentModeId: '',
3056
+ excessAmount: '',
3057
+ transactionId: '',
3058
+ notes: ''
3059
+ });
3060
+ }
3061
+ }, [visible, reset]);
3062
+ var onSubmit = function onSubmit(formData) {
3063
+ try {
3064
+ var _customerData$custome;
3065
+ var payload = {
3066
+ customerId: customerData === null || customerData === void 0 ? void 0 : (_customerData$custome = customerData.customerDto) === null || _customerData$custome === void 0 ? void 0 : _customerData$custome.id,
3067
+ insertedTimestamp: getUTCTime({
3068
+ time: new Date()
3069
+ }),
3070
+ paymentModeId: Number(formData === null || formData === void 0 ? void 0 : formData.paymentModeId),
3071
+ excessAmount: Number(formData === null || formData === void 0 ? void 0 : formData.excessAmount),
3072
+ storeId: defaultStoreId,
3073
+ amount: Number(formData === null || formData === void 0 ? void 0 : formData.excessAmount),
3074
+ transactionId: (formData === null || formData === void 0 ? void 0 : formData.transactionId) || null,
3075
+ notes: (formData === null || formData === void 0 ? void 0 : formData.notes) || null
3076
+ };
3077
+ var _temp = _finallyRethrows(function () {
3078
+ return _catch(function () {
3079
+ setLoading(true);
3080
+ return Promise.resolve(saveExcessPayment({
3081
+ apiEndPoint: apiEndPoint,
3082
+ token: token,
3083
+ payload: payload
3084
+ })).then(function (response) {
3085
+ onSave && onSave(payload);
3086
+ });
3087
+ }, function () {});
3088
+ }, function (_wasThrown, _result) {
3089
+ setLoading(false);
3090
+ if (_wasThrown) throw _result;
3091
+ return _result;
3092
+ });
3093
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
3094
+ } catch (e) {
3095
+ return Promise.reject(e);
3096
+ }
3097
+ };
3098
+ return /*#__PURE__*/React__default.createElement(material.Dialog, {
3099
+ open: visible,
3100
+ onClose: onClose,
3101
+ fullWidth: true,
3102
+ maxWidth: "sm"
3103
+ }, /*#__PURE__*/React__default.createElement(material.DialogTitle, null, "Excess Payment"), /*#__PURE__*/React__default.createElement(material.DialogContent, null, /*#__PURE__*/React__default.createElement(AsyncDataLoadComponent, {
3104
+ apiEndPoint: apiEndPoint,
3105
+ token: token,
3106
+ asyncService: function asyncService() {
3107
+ try {
3108
+ return Promise.resolve(getPaymentMethods({
3109
+ apiEndPoint: apiEndPoint,
3110
+ token: token
3111
+ }));
3112
+ } catch (e) {
3113
+ return Promise.reject(e);
3114
+ }
3115
+ }
3116
+ }, function (data) {
3117
+ var paymentMethods = (data === null || data === void 0 ? void 0 : data.filter(function (item) {
3118
+ return item === null || item === void 0 ? void 0 : item.ecommerce;
3119
+ })) || [];
3120
+ return /*#__PURE__*/React__default.createElement(ExcessPaymentForm, {
3121
+ loading: loading,
3122
+ paymentMethods: paymentMethods,
3123
+ control: control,
3124
+ styles: styles,
3125
+ handleSubmit: handleSubmit,
3126
+ onSubmit: onSubmit,
3127
+ onClose: onClose
3128
+ });
3129
+ })));
3130
+ };
3131
+
3132
+ var _templateObject$a, _templateObject2$5, _templateObject3$3, _templateObject4$2, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
2838
3133
  var totalIcons = [{
2839
3134
  name: '',
2840
3135
  icon: /*#__PURE__*/React__default.createElement(ai.AiOutlineShoppingCart, null)
@@ -2847,6 +3142,9 @@ var totalIcons = [{
2847
3142
  }, {
2848
3143
  name: 'Total Number Of Orders',
2849
3144
  icon: /*#__PURE__*/React__default.createElement(gi.GiCardboardBoxClosed, null)
3145
+ }, {
3146
+ name: 'Excess Payment',
3147
+ icon: /*#__PURE__*/React__default.createElement(tb.TbFileDollar, null)
2850
3148
  }];
2851
3149
  var Dashboard = function Dashboard(_ref) {
2852
3150
  var _customerData$custome, _selectDates$salesOrd, _selectDates$recentIn, _selectDates$salesOrd2, _selectDates$recentIn2, _customerData$custome2, _customerData$custome3, _customerData$custome4;
@@ -2877,14 +3175,18 @@ var Dashboard = function Dashboard(_ref) {
2877
3175
  showOnlyRecentOrder = _ref$showOnlyRecentOr === void 0 ? false : _ref$showOnlyRecentOr,
2878
3176
  hidePayActionButton = _ref.hidePayActionButton,
2879
3177
  hideInvoiceTab = _ref.hideInvoiceTab,
2880
- hideSalesOrderTab = _ref.hideSalesOrderTab;
3178
+ hideSalesOrderTab = _ref.hideSalesOrderTab,
3179
+ hideAddAccessPaymentButton = _ref.hideAddAccessPaymentButton;
2881
3180
  var _useState = React.useState({}),
2882
3181
  customerData = _useState[0],
2883
3182
  setCustomerData = _useState[1];
2884
3183
  var _useState2 = React.useState({}),
2885
3184
  dashboardData = _useState2[0],
2886
3185
  setDashboardData = _useState2[1];
2887
- var _useState3 = React.useState({
3186
+ var _useState3 = React.useState(),
3187
+ refetchDashboardData = _useState3[0],
3188
+ setRefetchDashboardData = _useState3[1];
3189
+ var _useState4 = React.useState({
2888
3190
  recentInvoices: {
2889
3191
  startDate: null,
2890
3192
  endDate: null
@@ -2894,25 +3196,30 @@ var Dashboard = function Dashboard(_ref) {
2894
3196
  endDate: null
2895
3197
  }
2896
3198
  }),
2897
- selectDates = _useState3[0],
2898
- setSelectDates = _useState3[1];
2899
- var _useState4 = React.useState(getRandomString()),
2900
- triggerTableData = _useState4[0],
2901
- setTriggerTableData = _useState4[1];
2902
- var _useState5 = React.useState({
3199
+ selectDates = _useState4[0],
3200
+ setSelectDates = _useState4[1];
3201
+ var _useState5 = React.useState(getRandomString()),
3202
+ triggerTableData = _useState5[0],
3203
+ setTriggerTableData = _useState5[1];
3204
+ var _useState6 = React.useState({
2903
3205
  open: false,
2904
3206
  url: ''
2905
3207
  }),
2906
- invoiceModal = _useState5[0],
2907
- setInvoiceModal = _useState5[1];
2908
- var _useState6 = React.useState({
3208
+ invoiceModal = _useState6[0],
3209
+ setInvoiceModal = _useState6[1];
3210
+ var _useState7 = React.useState({
3211
+ open: false
3212
+ }),
3213
+ isPaymentModal = _useState7[0],
3214
+ setIsPaymentModal = _useState7[1];
3215
+ var _useState8 = React.useState({
2909
3216
  open: false
2910
3217
  }),
2911
- isPaymentModal = _useState6[0],
2912
- setIsPaymentModal = _useState6[1];
2913
- var _useState7 = React.useState(0),
2914
- value = _useState7[0],
2915
- setValue = _useState7[1];
3218
+ isExcessPaymentModal = _useState8[0],
3219
+ setIsExcessPaymentModal = _useState8[1];
3220
+ var _useState9 = React.useState(0),
3221
+ value = _useState9[0],
3222
+ setValue = _useState9[1];
2916
3223
  React.useEffect(function () {
2917
3224
  if (hideSalesOrderTab) {
2918
3225
  setValue(1);
@@ -3148,7 +3455,7 @@ var Dashboard = function Dashboard(_ref) {
3148
3455
  Promise.reject(e);
3149
3456
  }
3150
3457
  })();
3151
- }, []);
3458
+ }, [refetchDashboardData]);
3152
3459
  React.useEffect(function () {
3153
3460
  try {
3154
3461
  try {
@@ -3201,6 +3508,30 @@ var Dashboard = function Dashboard(_ref) {
3201
3508
  orderId: isPaymentModal === null || isPaymentModal === void 0 ? void 0 : isPaymentModal.orderId,
3202
3509
  setTriggerTableData: setTriggerTableData,
3203
3510
  styles: styles
3511
+ }), (isExcessPaymentModal === null || isExcessPaymentModal === void 0 ? void 0 : isExcessPaymentModal.open) && /*#__PURE__*/React__default.createElement(ExcessPaymentDialog, {
3512
+ customerData: customerData,
3513
+ apiEndPoint: apiEndPoint,
3514
+ token: token,
3515
+ defaultStoreId: defaultStoreId,
3516
+ styles: styles,
3517
+ onSave: function onSave(payload) {
3518
+ try {
3519
+ setRefetchDashboardData(getRandomString());
3520
+ alert("Excess Payment $" + (payload === null || payload === void 0 ? void 0 : payload.excessAmount) + " added successfully");
3521
+ setIsExcessPaymentModal({
3522
+ open: false
3523
+ });
3524
+ return Promise.resolve();
3525
+ } catch (e) {
3526
+ return Promise.reject(e);
3527
+ }
3528
+ },
3529
+ visible: isExcessPaymentModal === null || isExcessPaymentModal === void 0 ? void 0 : isExcessPaymentModal.open,
3530
+ onClose: function onClose() {
3531
+ return setIsExcessPaymentModal({
3532
+ open: false
3533
+ });
3534
+ }
3204
3535
  }), /*#__PURE__*/React__default.createElement(material.Grid, {
3205
3536
  container: true,
3206
3537
  columnSpacing: 4
@@ -3218,7 +3549,8 @@ var Dashboard = function Dashboard(_ref) {
3218
3549
  spacing: 3
3219
3550
  }, totalDataSource === null || totalDataSource === void 0 ? void 0 : totalDataSource.map(function (data) {
3220
3551
  var _data$name, _data$name2, _data$name3, _totalIcons$find;
3221
- var isAmount = (data === null || data === void 0 ? void 0 : (_data$name = data.name) === null || _data$name === void 0 ? void 0 : _data$name.indexOf('Amount')) > 1 || (data === null || data === void 0 ? void 0 : (_data$name2 = data.name) === null || _data$name2 === void 0 ? void 0 : _data$name2.indexOf('Credit')) > 1 || (data === null || data === void 0 ? void 0 : (_data$name3 = data.name) === null || _data$name3 === void 0 ? void 0 : _data$name3.indexOf('Price')) > 1;
3552
+ var isAmount = (data === null || data === void 0 ? void 0 : (_data$name = data.name) === null || _data$name === void 0 ? void 0 : _data$name.indexOf('Amount')) > 1 || (data === null || data === void 0 ? void 0 : (_data$name2 = data.name) === null || _data$name2 === void 0 ? void 0 : _data$name2.indexOf('Credit')) > 1 || (data === null || data === void 0 ? void 0 : (_data$name3 = data.name) === null || _data$name3 === void 0 ? void 0 : _data$name3.indexOf('Price')) > 1 || (data === null || data === void 0 ? void 0 : data.name) === 'Excess Payment';
3553
+ var isExcessPayment = (data === null || data === void 0 ? void 0 : data.name) === 'Excess Payment';
3222
3554
  return /*#__PURE__*/React__default.createElement(material.Grid, {
3223
3555
  item: true,
3224
3556
  xs: 12,
@@ -3238,7 +3570,23 @@ var Dashboard = function Dashboard(_ref) {
3238
3570
  className: "icon-container"
3239
3571
  }, (totalIcons === null || totalIcons === void 0 ? void 0 : (_totalIcons$find = totalIcons.find(function (icons) {
3240
3572
  return (icons === null || icons === void 0 ? void 0 : icons.name) === (data === null || data === void 0 ? void 0 : data.name);
3241
- })) === null || _totalIcons$find === void 0 ? void 0 : _totalIcons$find.icon) || (isAmount ? /*#__PURE__*/React__default.createElement(md.MdMonetizationOn, null) : /*#__PURE__*/React__default.createElement(gr.GrStackOverflow, null))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", null, data === null || data === void 0 ? void 0 : data.name), /*#__PURE__*/React__default.createElement("h3", null, "" + (isAmount ? renderMoney(data === null || data === void 0 ? void 0 : data.value) : data === null || data === void 0 ? void 0 : data.value)))));
3573
+ })) === null || _totalIcons$find === void 0 ? void 0 : _totalIcons$find.icon) || (isAmount ? /*#__PURE__*/React__default.createElement(md.MdMonetizationOn, null) : /*#__PURE__*/React__default.createElement(gr.GrStackOverflow, null))), /*#__PURE__*/React__default.createElement("div", {
3574
+ style: {
3575
+ flex: 1
3576
+ }
3577
+ }, /*#__PURE__*/React__default.createElement("p", null, data === null || data === void 0 ? void 0 : data.name), /*#__PURE__*/React__default.createElement("h3", null, "" + (isAmount ? renderMoney(data === null || data === void 0 ? void 0 : data.value) : data === null || data === void 0 ? void 0 : data.value))), isExcessPayment && !hideAddAccessPaymentButton && /*#__PURE__*/React__default.createElement(material.Tooltip, {
3578
+ title: "Add Excess Payment",
3579
+ arrow: true
3580
+ }, /*#__PURE__*/React__default.createElement(AddExcessPaymentButton, {
3581
+ className: "add-excess-payment-btn",
3582
+ primaryColor: primaryColor,
3583
+ onClick: function onClick() {
3584
+ return setIsExcessPaymentModal({
3585
+ open: true
3586
+ });
3587
+ },
3588
+ "aria-label": "Add excess payment"
3589
+ }, /*#__PURE__*/React__default.createElement(md.MdAdd, null), /*#__PURE__*/React__default.createElement("span", null, "Add")))));
3242
3590
  }))), !hideBannerSection && /*#__PURE__*/React__default.createElement(BannerContainer, null, /*#__PURE__*/React__default.createElement(material.Grid, {
3243
3591
  container: true,
3244
3592
  spacing: 3,
@@ -3557,10 +3905,12 @@ var SocialIconContainer = styled__default.a(_templateObject8$1 || (_templateObje
3557
3905
  });
3558
3906
  var ImageContainer = styled__default(material.CardMedia)(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n max-width: 100%;\n border-radius: 14px;\n img {\n max-width: 100%;\n }\n"])));
3559
3907
  var TotalRoot = styled__default.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n margin: 2rem 0;\n"])));
3560
- var TotalContainer = styled__default(material.Stack)(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n border-radius: 14px;\n background-color: ", ";\n padding: 1.8rem 1.4rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n :hover {\n background-color: ", ";\n p,\n h3 {\n color: #fff !important;\n }\n .icon-container {\n background: #fff;\n }\n }\n p {\n font-size: 1rem;\n font-weight: 600;\n color: ", ";\n margin-bottom: 0rem;\n }\n h3 {\n font-size: 1.7rem;\n font-weight: 600;\n color: ", ";\n }\n .icon-container {\n background: ", ";\n border-radius: 14px;\n padding: 0.6rem;\n display: flex;\n margin: auto 0;\n svg {\n font-size: 2.6rem;\n color: ", ";\n }\n }\n"])), function (props) {
3908
+ var TotalContainer = styled__default(material.Stack)(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n border-radius: 14px;\n background-color: ", ";\n padding: 1.8rem 1.4rem;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n align-items: center;\n :hover {\n background-color: ", ";\n p,\n h3 {\n color: #fff !important;\n }\n .icon-container {\n background: #fff;\n }\n .add-excess-payment-btn {\n background: #fff;\n color: ", ";\n }\n }\n p {\n font-size: 1rem;\n font-weight: 600;\n color: ", ";\n margin-bottom: 0rem;\n }\n h3 {\n font-size: 1.7rem;\n font-weight: 600;\n color: ", ";\n }\n .icon-container {\n background: ", ";\n border-radius: 14px;\n padding: 0.6rem;\n display: flex;\n margin: auto 0;\n svg {\n font-size: 2.6rem;\n color: ", ";\n }\n }\n"])), function (props) {
3561
3909
  return props.secondaryColor;
3562
3910
  }, function (props) {
3563
3911
  return props.primaryColor;
3912
+ }, function (props) {
3913
+ return props.primaryColor;
3564
3914
  }, function (props) {
3565
3915
  return props.fontColor;
3566
3916
  }, function (props) {
@@ -3570,12 +3920,15 @@ var TotalContainer = styled__default(material.Stack)(_templateObject11$1 || (_te
3570
3920
  }, function (props) {
3571
3921
  return props.primaryColor;
3572
3922
  });
3573
- var BannerContainer = styled__default(material.Stack)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose([""])));
3574
- var CategoryContainer = styled__default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 1.8rem;\n border-radius: 14px;\n"])), function (props) {
3923
+ var AddExcessPaymentButton = styled__default.button(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n margin-left: auto;\n border: none;\n cursor: pointer;\n border-radius: 999px;\n padding: 0.45rem 0.9rem 0.45rem 0.55rem;\n background: ", ";\n color: #fff;\n font-size: 0.85rem;\n font-weight: 600;\n line-height: 1;\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n\n svg {\n font-size: 1.35rem;\n }\n\n &:hover {\n transform: translateY(-1px);\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);\n }\n\n &:active {\n transform: translateY(0);\n }\n"])), function (props) {
3924
+ return props.primaryColor;
3925
+ });
3926
+ var BannerContainer = styled__default(material.Stack)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose([""])));
3927
+ var CategoryContainer = styled__default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 1.8rem;\n border-radius: 14px;\n"])), function (props) {
3575
3928
  var _props$theme;
3576
3929
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.primaryColor;
3577
3930
  });
3578
- var CategoryText = styled__default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n h3 {\n color: #fff;\n font-size: 2rem;\n font-weight: 700;\n margin: 1rem 0;\n }\n p {\n color: #fff;\n font-size: 1.2rem;\n text-transform: capitalize;\n }\n button {\n padding: 0.5rem 2rem;\n margin-top: 1rem;\n background-color: ", ";\n color: ", ";\n border-radius: 14px;\n font-size: 1.2rem;\n font-weight: 600;\n &:hover {\n background-color: ", ";\n color: #fff;\n }\n }\n"])), function (props) {
3931
+ var CategoryText = styled__default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n h3 {\n color: #fff;\n font-size: 2rem;\n font-weight: 700;\n margin: 1rem 0;\n }\n p {\n color: #fff;\n font-size: 1.2rem;\n text-transform: capitalize;\n }\n button {\n padding: 0.5rem 2rem;\n margin-top: 1rem;\n background-color: ", ";\n color: ", ";\n border-radius: 14px;\n font-size: 1.2rem;\n font-weight: 600;\n &:hover {\n background-color: ", ";\n color: #fff;\n }\n }\n"])), function (props) {
3579
3932
  var _props$theme2;
3580
3933
  return (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.secondaryColor;
3581
3934
  }, function (props) {
@@ -3585,19 +3938,19 @@ var CategoryText = styled__default.div(_templateObject14 || (_templateObject14 =
3585
3938
  var _props$theme4;
3586
3939
  return (_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.primaryColor;
3587
3940
  });
3588
- var DiscoverContainer = styled__default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 1.8rem;\n border-radius: 14px;\n h3,\n svg {\n color: ", ";\n font-size: 2rem;\n font-weight: 700;\n line-height: 2rem;\n }\n"])), function (props) {
3941
+ var DiscoverContainer = styled__default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n padding: 1.8rem;\n border-radius: 14px;\n h3,\n svg {\n color: ", ";\n font-size: 2rem;\n font-weight: 700;\n line-height: 2rem;\n }\n"])), function (props) {
3589
3942
  var _props$theme5, _props$theme6, _props$theme7;
3590
3943
  return (_props$theme5 = props.theme) !== null && _props$theme5 !== void 0 && _props$theme5.isNightMode ? (_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.secondaryColor : "rgba(" + hexToRgbA((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.primaryColor) + ",0.1)";
3591
3944
  }, function (props) {
3592
3945
  var _props$theme8;
3593
3946
  return (_props$theme8 = props.theme) === null || _props$theme8 === void 0 ? void 0 : _props$theme8.fontColor;
3594
3947
  });
3595
- var StatusContainer = styled__default(material.Stack)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n padding: 4px 8px;\n border-radius: 6px;\n background-color: ", ";\n color: #fff;\n width: max-content;\n"])), function (props) {
3948
+ var StatusContainer = styled__default(material.Stack)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n padding: 4px 8px;\n border-radius: 6px;\n background-color: ", ";\n color: #fff;\n width: max-content;\n"])), function (props) {
3596
3949
  return props.primaryColor;
3597
3950
  });
3598
- var TableContainer = styled__default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n margin-top: 2rem;\n border-radius: 14px;\n"])));
3599
- var InvoiceDialog = styled__default(material.Dialog)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n iframe {\n width: 900px;\n border: none;\n height: 600px;\n }\n"])));
3600
- var TabsContainer = styled__default(material.Tabs)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n button {\n color: ", " !important;\n font-size: 1.1rem;\n font-weight: 600;\n }\n .Mui-selected {\n color: ", " !important;\n }\n .MuiTabs-indicator {\n background-color: ", " !important;\n }\n"])), function (props) {
3951
+ var TableContainer = styled__default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n margin-top: 2rem;\n border-radius: 14px;\n"])));
3952
+ var InvoiceDialog = styled__default(material.Dialog)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n iframe {\n width: 900px;\n border: none;\n height: 600px;\n }\n"])));
3953
+ var TabsContainer = styled__default(material.Tabs)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n button {\n color: ", " !important;\n font-size: 1.1rem;\n font-weight: 600;\n }\n .Mui-selected {\n color: ", " !important;\n }\n .MuiTabs-indicator {\n background-color: ", " !important;\n }\n"])), function (props) {
3601
3954
  return props.fontColor;
3602
3955
  }, function (props) {
3603
3956
  return props.primaryColor;
@@ -3989,42 +4342,63 @@ var SideMenuItemComponentContainer = styles.styled(SideMenuItemComponent)(functi
3989
4342
  };
3990
4343
  });
3991
4344
 
3992
- var sideMenuItems = [{
3993
- name: 'My Account',
3994
- Icon: ri.RiAccountBoxLine,
3995
- items: [{
3996
- name: 'Dashboard',
3997
- path: 'dashboard',
3998
- link: '/',
3999
- Icon: ri.RiHome7Line
4000
- }, {
4001
- name: 'My Profile',
4002
- path: 'myProfile',
4003
- link: '/',
4004
- Icon: tb.TbUserCircle
4005
- }, {
4006
- name: 'Address List',
4007
- path: 'addressList',
4008
- link: '/',
4009
- Icon: tb.TbBuildingStore
4010
- }, {
4011
- name: 'Statement',
4012
- path: 'statement',
4013
- link: '/',
4014
- Icon: ri.RiFileTextLine
4015
- }, {
4016
- name: 'Change Password',
4017
- path: 'changePassword',
4018
- link: '/',
4019
- Icon: bi.BiLockOpen
4020
- }]
4021
- }];
4345
+ var sideMenuItems = function sideMenuItems(props) {
4346
+ return [{
4347
+ name: 'My Account',
4348
+ Icon: ri.RiAccountBoxLine,
4349
+ items: [{
4350
+ name: 'Dashboard',
4351
+ path: 'dashboard',
4352
+ link: '/',
4353
+ Icon: ri.RiHome7Line,
4354
+ hide: (props === null || props === void 0 ? void 0 : props.hideDashboard) || false
4355
+ }, {
4356
+ name: 'My Profile',
4357
+ path: 'myProfile',
4358
+ link: '/',
4359
+ Icon: tb.TbUserCircle,
4360
+ hide: (props === null || props === void 0 ? void 0 : props.hideMyProfile) || false
4361
+ }, {
4362
+ name: 'Address List',
4363
+ path: 'addressList',
4364
+ link: '/',
4365
+ Icon: tb.TbBuildingStore,
4366
+ hide: (props === null || props === void 0 ? void 0 : props.hideAddressList) || false
4367
+ }, {
4368
+ name: 'Statement',
4369
+ path: 'statement',
4370
+ link: '/',
4371
+ Icon: ri.RiFileTextLine,
4372
+ hide: (props === null || props === void 0 ? void 0 : props.hideStatement) || false
4373
+ }, {
4374
+ name: 'Upcoming ACH Payments',
4375
+ path: 'upcomingACHPayments',
4376
+ link: '/',
4377
+ Icon: ai.AiOutlineCreditCard,
4378
+ hide: (props === null || props === void 0 ? void 0 : props.hideUpcomingACHPayments) || false
4379
+ }, {
4380
+ name: 'Change Password',
4381
+ path: 'changePassword',
4382
+ link: '/',
4383
+ Icon: bi.BiLockOpen,
4384
+ hide: (props === null || props === void 0 ? void 0 : props.hideChangePassword) || false
4385
+ }]
4386
+ }];
4387
+ };
4022
4388
  var SideMenu = function SideMenu(props) {
4023
4389
  var _props$menuItems;
4390
+ 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) {
4391
+ var _section$items;
4392
+ return _extends({}, section, {
4393
+ items: (_section$items = section.items) === null || _section$items === void 0 ? void 0 : _section$items.filter(function (item) {
4394
+ return !item.hide;
4395
+ })
4396
+ });
4397
+ });
4024
4398
  return /*#__PURE__*/React__default.createElement(material.List, {
4025
4399
  component: "nav",
4026
4400
  disablePadding: true
4027
- }, ((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) {
4401
+ }, menuItems.map(function (item, index) {
4028
4402
  return /*#__PURE__*/React__default.createElement(_SideMenuItem, _extends({}, item, {
4029
4403
  key: index,
4030
4404
  primaryColor: props.primaryColor,
@@ -4911,7 +5285,7 @@ var getDropzoneRejectionError = function getDropzoneRejectionError(fileRejection
4911
5285
  return (error === null || error === void 0 ? void 0 : error.message) || 'Invalid file';
4912
5286
  };
4913
5287
 
4914
- var _templateObject$k, _templateObject2$c, _templateObject3$8, _templateObject4$6, _templateObject5$4, _templateObject6$3, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34;
5288
+ var _templateObject$k, _templateObject2$c, _templateObject3$8, _templateObject4$6, _templateObject5$4, _templateObject6$3, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34;
4915
5289
  var DEFAULT_PRIMARY_COLOR = "#437c0f";
4916
5290
  var Container = styled__default.div(_templateObject$k || (_templateObject$k = _taggedTemplateLiteralLoose(["\n width: 100%;\n min-height: 80vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background: #f6f6f6;\n padding: 2rem 1rem;\n"])));
4917
5291
  var Card = styled__default.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n width: min(100%, 720px);\n background: #fff;\n border: 1px solid #cac8c8;\n border-radius: 8px;\n padding: 1.5rem;\n"])));
@@ -4951,7 +5325,7 @@ var DropzoneBtn = styled__default.span(_templateObject16$1 || (_templateObject16
4951
5325
  var DropzoneText = styled__default.span(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n font-size: 0.875rem;\n color: #666;\n"])));
4952
5326
  var DropzoneError = styled__default.p(_templateObject18$1 || (_templateObject18$1 = _taggedTemplateLiteralLoose(["\n margin: 0.5rem 0 0;\n font-size: 0.8rem;\n color: #c62828;\n"])));
4953
5327
  var SelectedFileRow = styled__default.div(_templateObject19$1 || (_templateObject19$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 1rem;\n padding: 0.6rem 0.75rem;\n border: 1px solid #e0e0e0;\n border-radius: 6px;\n background: #fafafa;\n"])));
4954
- var SelectedFileInfo = styled__default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n flex: 1;\n"])));
5328
+ var SelectedFileInfo = styled__default.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n min-width: 0;\n flex: 1;\n"])));
4955
5329
  var SelectedFileName = styled__default.span(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n font-size: 0.875rem;\n color: #333;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])));
4956
5330
  var ClearFileBtn = styled__default.button(_templateObject22 || (_templateObject22 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background: none;\n color: #c62828;\n font-size: 1.1rem;\n cursor: pointer;\n flex-shrink: 0;\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n"])));
4957
5331
  var UploadedFiles = styled__default.ul(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n\n li {\n display: flex;\n align-items: center;\n gap: 0.75rem;\n font-size: 0.875rem;\n color: #555;\n padding: 0.65rem 0.75rem;\n background: #fff;\n border: 1px solid #eee;\n border-radius: 4px;\n }\n"])));
@@ -5267,7 +5641,70 @@ var getDocumentTypes = function getDocumentTypes(_ref3) {
5267
5641
  }
5268
5642
  };
5269
5643
 
5270
- var _templateObject$l, _templateObject2$d, _templateObject3$9, _templateObject4$7;
5644
+ var _templateObject$l;
5645
+ var columns = [{
5646
+ id: 'orderId',
5647
+ label: 'Order Id',
5648
+ minWidth: 120
5649
+ }, {
5650
+ id: 'amount',
5651
+ label: 'Amount',
5652
+ minWidth: 120,
5653
+ format: function format(value) {
5654
+ return renderMoney(value);
5655
+ }
5656
+ }, {
5657
+ id: 'scheduleDate',
5658
+ label: 'Schedule Date',
5659
+ minWidth: 160,
5660
+ format: function format(value) {
5661
+ return getLocalTime({
5662
+ time: value
5663
+ });
5664
+ }
5665
+ }, {
5666
+ id: 'notes',
5667
+ label: 'Notes',
5668
+ minWidth: 180
5669
+ }, {
5670
+ id: 'achAccountUUID',
5671
+ label: 'ACH Account',
5672
+ minWidth: 280
5673
+ }];
5674
+ var UpcomingACHPayments = function UpcomingACHPayments(_ref) {
5675
+ var apiEndPoint = _ref.apiEndPoint,
5676
+ token = _ref.token,
5677
+ primaryColor = _ref.primaryColor,
5678
+ secondaryColor = _ref.secondaryColor,
5679
+ backgroundColor = _ref.backgroundColor,
5680
+ fontColor = _ref.fontColor;
5681
+ return /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
5682
+ pagination: false,
5683
+ scroll: {
5684
+ x: 1000
5685
+ },
5686
+ tableId: "upcoming-ach-payments",
5687
+ columns: columns,
5688
+ asyncService: function asyncService() {
5689
+ try {
5690
+ return Promise.resolve(getUpcomingAchPayments({
5691
+ apiEndPoint: apiEndPoint,
5692
+ token: token
5693
+ }));
5694
+ } catch (e) {
5695
+ return Promise.reject(e);
5696
+ }
5697
+ },
5698
+ primaryColor: primaryColor,
5699
+ secondaryColor: secondaryColor,
5700
+ backgroundColor: backgroundColor,
5701
+ fontColor: fontColor
5702
+ }));
5703
+ };
5704
+ var TableContainer$2 = styled__default.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n margin: 1.2rem 0;\n border-radius: 14px;\n"])));
5705
+
5706
+ var _templateObject$m, _templateObject2$d, _templateObject3$9, _templateObject4$7;
5707
+ var _excluded$5 = ["apiEndPoint", "serviceApiEndPoint", "token", "primaryColor", "secondaryColor", "backgroundColor", "fontColor", "darkMode", "onChangeColors", "path", "onChangePath", "maxWidth", "logoUrl", "sectionLeftImageSection", "exploreCategoryImage", "sectionRightImageSection", "discountImageSection", "disabledUpdateProfileFromDashboard", "hideTotalCardInDashboardSummary", "showOnlyRecentOrder", "hidePayActionButton", "hideSalesOrderTab", "hideInvoiceTab", "hideAddAccessPaymentButton"];
5271
5708
  var AccountDetails = function AccountDetails(_ref) {
5272
5709
  var _storeData$map, _storeData$find, _storeData$;
5273
5710
  var apiEndPoint = _ref.apiEndPoint,
@@ -5300,7 +5737,10 @@ var AccountDetails = function AccountDetails(_ref) {
5300
5737
  _ref$hideSalesOrderTa = _ref.hideSalesOrderTab,
5301
5738
  hideSalesOrderTab = _ref$hideSalesOrderTa === void 0 ? false : _ref$hideSalesOrderTa,
5302
5739
  _ref$hideInvoiceTab = _ref.hideInvoiceTab,
5303
- hideInvoiceTab = _ref$hideInvoiceTab === void 0 ? false : _ref$hideInvoiceTab;
5740
+ hideInvoiceTab = _ref$hideInvoiceTab === void 0 ? false : _ref$hideInvoiceTab,
5741
+ _ref$hideAddAccessPay = _ref.hideAddAccessPaymentButton,
5742
+ hideAddAccessPaymentButton = _ref$hideAddAccessPay === void 0 ? false : _ref$hideAddAccessPay,
5743
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
5304
5744
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
5305
5745
  apiEndPoint: apiEndPoint,
5306
5746
  token: token
@@ -5473,7 +5913,8 @@ var AccountDetails = function AccountDetails(_ref) {
5473
5913
  showOnlyRecentOrder: showOnlyRecentOrder,
5474
5914
  hidePayActionButton: hidePayActionButton,
5475
5915
  hideSalesOrderTab: hideSalesOrderTab,
5476
- hideInvoiceTab: hideInvoiceTab
5916
+ hideInvoiceTab: hideInvoiceTab,
5917
+ hideAddAccessPaymentButton: hideAddAccessPaymentButton
5477
5918
  });
5478
5919
  case 'myProfile':
5479
5920
  return /*#__PURE__*/React__default.createElement(MyProfile, {
@@ -5513,6 +5954,20 @@ var AccountDetails = function AccountDetails(_ref) {
5513
5954
  storeIdList: storeIdList,
5514
5955
  defaultStoreId: defaultStoreId
5515
5956
  });
5957
+ case 'upcomingACHPayments':
5958
+ if (props !== null && props !== void 0 && props.hideUpcomingAchPayments) {
5959
+ return /*#__PURE__*/React__default.createElement(TypographyContainer$7, {
5960
+ fontColor: colors.fontColor
5961
+ }, "Empty");
5962
+ }
5963
+ return /*#__PURE__*/React__default.createElement(UpcomingACHPayments, {
5964
+ apiEndPoint: apiEndPoint,
5965
+ token: token,
5966
+ primaryColor: colors.primaryColor,
5967
+ secondaryColor: colors.secondaryColor,
5968
+ backgroundColor: colors.backgroundColor,
5969
+ fontColor: colors.fontColor
5970
+ });
5516
5971
  case 'changePassword':
5517
5972
  return /*#__PURE__*/React__default.createElement(ChangePassword, {
5518
5973
  apiEndPoint: apiEndPoint,
@@ -5563,12 +6018,12 @@ var AccountDetails = function AccountDetails(_ref) {
5563
6018
  style: {
5564
6019
  padding: '0 3rem 1rem'
5565
6020
  }
5566
- }), /*#__PURE__*/React__default.createElement(SideMenu, {
6021
+ }), /*#__PURE__*/React__default.createElement(SideMenu, _extends({
5567
6022
  primaryColor: colors.primaryColor,
5568
6023
  fontColor: colors.fontColor,
5569
6024
  tabValue: tabValue,
5570
6025
  onTabChange: onTabChange
5571
- })), /*#__PURE__*/React__default.createElement(Main, {
6026
+ }, props))), /*#__PURE__*/React__default.createElement(Main, {
5572
6027
  open: open,
5573
6028
  backgroundColor: colors.backgroundColor,
5574
6029
  style: {
@@ -5625,7 +6080,7 @@ var AccountDetails = function AccountDetails(_ref) {
5625
6080
  skeleton: true
5626
6081
  }, apiEndPoint && token && renderListItemComponent(tabValue))))))));
5627
6082
  };
5628
- var Root$4 = styled__default(material.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) {
6083
+ var Root$4 = styled__default(material.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) {
5629
6084
  var _props$theme;
5630
6085
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.backgroundImage;
5631
6086
  }, function (props) {
@@ -5656,104 +6111,27 @@ var Main = styles.styled('main', {
5656
6111
  marginLeft: "-" + drawerWidth + "px"
5657
6112
  }, open && {
5658
6113
  transition: theme.transitions.create('margin', {
5659
- easing: theme.transitions.easing.easeOut,
5660
- duration: theme.transitions.duration.enteringScreen
5661
- }),
5662
- marginLeft: 0
5663
- }, {
5664
- background: backgroundColor,
5665
- borderRadius: 14,
5666
- height: 'auto',
5667
- overflow: 'auto'
5668
- });
5669
- });
5670
- var ContainerDrawer = styled__default(material.Drawer)(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n // height: 100%;\n margin-right: ", ";\n .MuiDrawer-paper {\n padding: 1rem;\n position: relative;\n z-index: 1;\n background: ", ";\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n }\n"])), function (props) {
5671
- return props.open && '2rem';
5672
- }, function (props) {
5673
- return props.primaryColor || transparent;
5674
- });
5675
- var TypographyContainer$7 = styled__default(material.Typography)(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
5676
- return props.fontColor;
5677
- });
5678
-
5679
- var AsyncDataLoad = function AsyncDataLoad(_ref) {
5680
- var apiEndPoint = _ref.apiEndPoint,
5681
- token = _ref.token,
5682
- children = _ref.children,
5683
- onError = _ref.onError,
5684
- skeletonHeight = _ref.skeletonHeight,
5685
- loadingView = _ref.loadingView,
5686
- errorView = _ref.errorView,
5687
- asyncService = _ref.asyncService,
5688
- triggerChange = _ref.triggerChange,
5689
- apiConfig = _ref.apiConfig;
5690
- var _useState = React.useState({
5691
- status: 'loading',
5692
- data: {}
5693
- }),
5694
- apiState = _useState[0],
5695
- setApiState = _useState[1];
5696
- var getAPIData = function getAPIData() {
5697
- try {
5698
- var _temp3 = _catch(function () {
5699
- function _temp2() {
5700
- setApiState({
5701
- status: API_STATUSES.SUCCESS,
5702
- data: data
5703
- });
5704
- }
5705
- setApiState({
5706
- status: API_STATUSES.LOADING,
5707
- data: {}
5708
- });
5709
- var data;
5710
- var _temp = function () {
5711
- if (asyncService) {
5712
- return Promise.resolve(asyncService()).then(function (_asyncService) {
5713
- data = _asyncService;
5714
- });
5715
- } else {
5716
- return Promise.resolve(API(_extends({
5717
- apiEndPoint: apiEndPoint,
5718
- token: token,
5719
- hideErrorMessage: true
5720
- }, apiConfig))).then(function (_API) {
5721
- data = _API;
5722
- });
5723
- }
5724
- }();
5725
- return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
5726
- }, function (e) {
5727
- setApiState({
5728
- status: API_STATUSES.ERROR,
5729
- data: {}
5730
- });
5731
- if (onError) {
5732
- onError(e);
5733
- }
5734
- });
5735
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
5736
- } catch (e) {
5737
- return Promise.reject(e);
5738
- }
5739
- };
5740
- React.useEffect(function () {
5741
- if (apiConfig || asyncService) {
5742
- (function () {
5743
- return getAPIData();
5744
- })();
5745
- }
5746
- }, [apiConfig, triggerChange]);
5747
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, apiState.status === API_STATUSES.LOADING ? loadingView ? loadingView : /*#__PURE__*/React__default.createElement(Loader, {
5748
- skeleton: skeletonHeight,
5749
- height: skeletonHeight
5750
- }) : null, apiState.status === API_STATUSES.SUCCESS ? typeof children === 'function' ? children(apiState.data) : {
5751
- children: children
5752
- } : null, apiState.status === API_STATUSES.ERROR ? errorView ? errorView : 'NO DATA' : null);
5753
- };
5754
- var AsyncDataLoadComponent = React.memo(AsyncDataLoad);
6114
+ easing: theme.transitions.easing.easeOut,
6115
+ duration: theme.transitions.duration.enteringScreen
6116
+ }),
6117
+ marginLeft: 0
6118
+ }, {
6119
+ background: backgroundColor,
6120
+ borderRadius: 14,
6121
+ height: 'auto',
6122
+ overflow: 'auto'
6123
+ });
6124
+ });
6125
+ var ContainerDrawer = styled__default(material.Drawer)(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteralLoose(["\n // height: 100%;\n margin-right: ", ";\n .MuiDrawer-paper {\n padding: 1rem;\n position: relative;\n z-index: 1;\n background: ", ";\n border-radius: 14px;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 8px 0px;\n }\n"])), function (props) {
6126
+ return props.open && '2rem';
6127
+ }, function (props) {
6128
+ return props.primaryColor || transparent;
6129
+ });
6130
+ var TypographyContainer$7 = styled__default(material.Typography)(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
6131
+ return props.fontColor;
6132
+ });
5755
6133
 
5756
- var _templateObject$m, _templateObject2$e, _templateObject3$a;
6134
+ var _templateObject$n, _templateObject2$e, _templateObject3$a;
5757
6135
  var BannerImages = function BannerImages(_ref) {
5758
6136
  var config = _ref.config,
5759
6137
  sliderImages = _ref.sliderImages,
@@ -5818,11 +6196,11 @@ var BannerImages = function BannerImages(_ref) {
5818
6196
  }))));
5819
6197
  })));
5820
6198
  };
5821
- var Video = styled__default.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"])));
6199
+ var Video = styled__default.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"])));
5822
6200
  var Image = styled__default.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"])));
5823
6201
  var BannerContainer$1 = styled__default.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"])));
5824
6202
 
5825
- var _templateObject$n, _templateObject2$f, _templateObject3$b, _templateObject4$8;
6203
+ var _templateObject$o, _templateObject2$f, _templateObject3$b, _templateObject4$8;
5826
6204
  var LandingCarousel = function LandingCarousel(_ref) {
5827
6205
  var _config$spaceBetweenC, _config$colLg, _ref2, _ref3, _config$colSm, _ref4, _config$colMd, _config$colLg2;
5828
6206
  var config = _ref.config,
@@ -5904,7 +6282,7 @@ var LandingCarousel = function LandingCarousel(_ref) {
5904
6282
  })));
5905
6283
  })));
5906
6284
  };
5907
- var Image$1 = styled__default.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"])));
6285
+ var Image$1 = styled__default.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"])));
5908
6286
  var Video$1 = styled__default.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"])));
5909
6287
  var Root$5 = styled__default.div(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteralLoose(["\n height: 100%;\n"])));
5910
6288
  var ReactSlick = styled__default(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) {
@@ -5913,7 +6291,7 @@ var ReactSlick = styled__default(Slider)(_templateObject4$8 || (_templateObject4
5913
6291
  return props === null || props === void 0 ? void 0 : props.spaceBetweenCol;
5914
6292
  });
5915
6293
 
5916
- var _templateObject$o, _templateObject2$g;
6294
+ var _templateObject$p, _templateObject2$g;
5917
6295
  var inDebounce;
5918
6296
  var JUSTIFY = {
5919
6297
  Left: {
@@ -6108,7 +6486,7 @@ var HomeBanner = function HomeBanner(_ref) {
6108
6486
  }, item === null || item === void 0 ? void 0 : item.component);
6109
6487
  }))))));
6110
6488
  };
6111
- var Root$6 = styled__default.div(_templateObject$o || (_templateObject$o = _taggedTemplateLiteralLoose([""])));
6489
+ var Root$6 = styled__default.div(_templateObject$p || (_templateObject$p = _taggedTemplateLiteralLoose([""])));
6112
6490
  var MainContainer$1 = styled__default.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteralLoose([""])));
6113
6491
  var SingleBanner = function SingleBanner(_ref3) {
6114
6492
  var config = _ref3.config,
@@ -6142,7 +6520,7 @@ var adjustResponsiveSpace = function adjustResponsiveSpace(_ref4) {
6142
6520
  return spaceValue;
6143
6521
  };
6144
6522
 
6145
- var _templateObject$p, _templateObject2$h, _templateObject3$c, _templateObject4$9, _templateObject5$5;
6523
+ var _templateObject$q, _templateObject2$h, _templateObject3$c, _templateObject4$9, _templateObject5$5;
6146
6524
  var LandingCarousel$1 = function LandingCarousel(_ref) {
6147
6525
  var _brandData2;
6148
6526
  var brandList = _ref.brandList,
@@ -6268,7 +6646,7 @@ var LandingCarousel$1 = function LandingCarousel(_ref) {
6268
6646
  })));
6269
6647
  })));
6270
6648
  };
6271
- var Image$2 = styled__default.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"])));
6649
+ var Image$2 = styled__default.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"])));
6272
6650
  var Video$2 = styled__default.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"])));
6273
6651
  var Root$7 = styled__default.div(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteralLoose(["\n height: 100%;\n"])));
6274
6652
  var ReactSlick$1 = styled__default(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) {
@@ -6278,7 +6656,7 @@ var SliderItem = styled__default.div(_templateObject5$5 || (_templateObject5$5 =
6278
6656
  return (props === null || props === void 0 ? void 0 : props.spaceBetweenCol) || 0;
6279
6657
  });
6280
6658
 
6281
- var _templateObject$q, _templateObject2$i;
6659
+ var _templateObject$r, _templateObject2$i;
6282
6660
  var BrandList = function BrandList(_ref) {
6283
6661
  var apiEndPoint = _ref.apiEndPoint,
6284
6662
  _ref$colors = _ref.colors,
@@ -6340,10 +6718,10 @@ var BrandList = function BrandList(_ref) {
6340
6718
  autoplaySpeed: autoplaySpeed
6341
6719
  }))));
6342
6720
  };
6343
- var Root$8 = styled__default.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose([""])));
6721
+ var Root$8 = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose([""])));
6344
6722
  var MainContainer$2 = styled__default.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteralLoose([""])));
6345
6723
 
6346
- var _templateObject$r, _templateObject2$j, _templateObject3$d, _templateObject4$a, _templateObject5$6, _templateObject6$4, _templateObject7$3, _templateObject8$3, _templateObject9$3;
6724
+ var _templateObject$s, _templateObject2$j, _templateObject3$d, _templateObject4$a, _templateObject5$6, _templateObject6$4, _templateObject7$3, _templateObject8$3, _templateObject9$3;
6347
6725
  var BrandStock = function BrandStock(_ref) {
6348
6726
  var _Object$keys, _Object$keys2, _data$brands;
6349
6727
  var storeData = _ref.storeData,
@@ -6498,13 +6876,13 @@ var BrandStock = function BrandStock(_ref) {
6498
6876
  }));
6499
6877
  })), (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))));
6500
6878
  };
6501
- var Root$9 = styled__default.div(_templateObject$r || (_templateObject$r = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n"])));
6879
+ var Root$9 = styled__default.div(_templateObject$s || (_templateObject$s = _taggedTemplateLiteralLoose(["\n padding: 1rem;\n"])));
6502
6880
  var TitleContainer$1 = styled__default.div(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteralLoose(["\n padding: 0 1rem;\n display: flex;\n justify-content: space-between;\n"])));
6503
6881
  var MainContainer$3 = styled__default.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"])));
6504
6882
  var DetailsContainer = styled__default.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"])));
6505
6883
  var BrandContainer = styled__default.div(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteralLoose(["\n .brandImage {\n max-width: 100%;\n margin: 1rem auto;\n }\n"])));
6506
6884
  var ReturnPolicyContainer = styled__default.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"])));
6507
- var TablePaperContainer = styled__default(TableContainer$3)(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n background-color: transparent;\n"])));
6885
+ var TablePaperContainer = styled__default(TableContainer$4)(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteralLoose(["\n background-color: transparent;\n"])));
6508
6886
  var TableRowContainer$1 = styled__default(TableRow)(_templateObject8$3 || (_templateObject8$3 = _taggedTemplateLiteralLoose(["\n && {\n background: ", ";\n &:last-child td,\n &:last-child th {\n border: 0;\n }\n }\n"])), function (props) {
6509
6887
  return !props.availableQuantity && '#cd2323';
6510
6888
  });
@@ -6512,8 +6890,8 @@ var TableCellContainer$1 = styled__default(TableCell)(_templateObject9$3 || (_te
6512
6890
  return props.availableQuantity ? props.stockCol && 'green' : '#ffffff';
6513
6891
  });
6514
6892
 
6515
- var _templateObject$s, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$5, _templateObject7$4;
6516
- var CartDrawerContainer = styled__default.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) {
6893
+ var _templateObject$t, _templateObject2$k, _templateObject3$e, _templateObject4$b, _templateObject5$7, _templateObject6$5, _templateObject7$4;
6894
+ var CartDrawerContainer = styled__default.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) {
6517
6895
  return props.maxWidth || '650px';
6518
6896
  });
6519
6897
  var CartDrawerBar = styled__default.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"])));
@@ -6621,8 +6999,8 @@ function useGridSize() {
6621
6999
  return layout;
6622
7000
  }
6623
7001
 
6624
- var _templateObject$t, _templateObject2$l, _templateObject3$f, _templateObject4$c, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$3;
6625
- var CartPageSection = styled__default.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) {
7002
+ var _templateObject$u, _templateObject2$l, _templateObject3$f, _templateObject4$c, _templateObject5$8, _templateObject6$6, _templateObject7$5, _templateObject8$4, _templateObject9$4, _templateObject10$3;
7003
+ var CartPageSection = styled__default.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) {
6626
7004
  return props.bg;
6627
7005
  }, function (props) {
6628
7006
  return props.bg || '#FAE8E5';
@@ -7797,41 +8175,973 @@ var TotalAfterDiscount = function TotalAfterDiscount(_ref2) {
7797
8175
  }, renderMoney(totalAmount)) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement("b", null, renderMoney(total))));
7798
8176
  };
7799
8177
 
7800
- var _templateObject$u, _templateObject2$m, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$7;
7801
- var ProductImage = styled__default.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"])));
7802
- var ProductName = styled__default.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) {
8178
+ var _templateObject$v, _templateObject2$m, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$7, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59;
8179
+ var DEFAULT_PRIMARY_COLOR$1 = '#437C0F';
8180
+ var formatCurrency = function formatCurrency(amount) {
8181
+ return Number(amount).toLocaleString('en-US', {
8182
+ minimumFractionDigits: 0,
8183
+ maximumFractionDigits: 2
8184
+ });
8185
+ };
8186
+ var getUnitSaving = function getUnitSaving(coupon, productPrice) {
8187
+ if (coupon !== null && coupon !== void 0 && coupon.percentage && coupon !== null && coupon !== void 0 && coupon.offPercentage && productPrice > 0) {
8188
+ return productPrice * (coupon.offPercentage / 100);
8189
+ }
8190
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.offPercentageAmount) > 0) {
8191
+ return coupon.offPercentageAmount;
8192
+ }
8193
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.offAmount) > 0 && !(coupon !== null && coupon !== void 0 && coupon.percentage)) {
8194
+ return coupon.offAmount;
8195
+ }
8196
+ return null;
8197
+ };
8198
+ var formatCartCount = function formatCartCount(cartQuantity) {
8199
+ return cartQuantity + " " + (cartQuantity === 1 ? 'quantity' : 'quantities') + " added in the cart";
8200
+ };
8201
+ var formatRemainingQuantity = function formatRemainingQuantity(remaining) {
8202
+ return remaining + " more " + (remaining === 1 ? 'quantity' : 'quantities');
8203
+ };
8204
+ var isBuyXGetFreeProduct = function isBuyXGetFreeProduct(coupon) {
8205
+ var _coupon$freeProducts;
8206
+ 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;
8207
+ };
8208
+ var getBuyXGetFreeProductOffPercent = function getBuyXGetFreeProductOffPercent(coupon) {
8209
+ var pct = Number(coupon === null || coupon === void 0 ? void 0 : coupon.offPercentage);
8210
+ if (Number.isFinite(pct) && pct > 0) return pct;
8211
+ return 100;
8212
+ };
8213
+ var isFullyFreeBuyXOffer = function isFullyFreeBuyXOffer(coupon) {
8214
+ return getBuyXGetFreeProductOffPercent(coupon) >= 100;
8215
+ };
8216
+ var getBuyXGetFreeProductOfferLabel = function getBuyXGetFreeProductOfferLabel(coupon) {
8217
+ var offPercent = getBuyXGetFreeProductOffPercent(coupon);
8218
+ if (offPercent >= 100) return 'free';
8219
+ return offPercent + "% off on these products";
8220
+ };
8221
+ var getFreeProductHref = function getFreeProductHref(product) {
8222
+ return "/product-details/" + paramCase.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);
8223
+ };
8224
+ var getBuyXGetFreeProductMessages = function getBuyXGetFreeProductMessages(quantityToBuy, quantityToGet, cartQuantity, offPercentage) {
8225
+ if (offPercentage === void 0) {
8226
+ offPercentage = 100;
8227
+ }
8228
+ var isFullyFree = offPercentage >= 100;
8229
+ var buyTimes = quantityToBuy + " " + (quantityToBuy === 1 ? 'time' : 'times');
8230
+ 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";
8231
+ var lines = [benefitSummary];
8232
+ if (cartQuantity <= 0) {
8233
+ return lines;
8234
+ }
8235
+ if (cartQuantity < quantityToBuy) {
8236
+ var remaining = quantityToBuy - cartQuantity;
8237
+ lines.push(formatCartCount(cartQuantity));
8238
+ lines.push("Add " + formatRemainingQuantity(remaining) + " to qualify");
8239
+ } else {
8240
+ 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");
8241
+ }
8242
+ return lines;
8243
+ };
8244
+ var getBuyXGetYMessages = function getBuyXGetYMessages(quantityToBuy, quantityToGet, cartQuantity) {
8245
+ var totalNeeded = quantityToBuy + quantityToGet;
8246
+ var lines = ["Buy " + quantityToBuy + ", get " + quantityToGet + " for free"];
8247
+ if (cartQuantity <= 0) {
8248
+ return lines;
8249
+ }
8250
+ if (cartQuantity < quantityToBuy) {
8251
+ var remaining = quantityToBuy - cartQuantity;
8252
+ lines.push(formatCartCount(cartQuantity));
8253
+ lines.push("Add " + formatRemainingQuantity(remaining) + " to qualify");
8254
+ } else if (cartQuantity < totalNeeded) {
8255
+ var _remaining = totalNeeded - cartQuantity;
8256
+ lines.push(formatCartCount(cartQuantity));
8257
+ lines.push("Add " + formatRemainingQuantity(_remaining) + " to apply this coupon");
8258
+ } else {
8259
+ var freeLabel = quantityToGet === 1 ? 'item' : 'items';
8260
+ lines.push(formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get " + quantityToGet + " " + freeLabel + " for free");
8261
+ }
8262
+ return lines;
8263
+ };
8264
+ var getCouponTypeIcon = function getCouponTypeIcon(coupon) {
8265
+ if (isBuyXGetFreeProduct(coupon)) {
8266
+ return isFullyFreeBuyXOffer(coupon) ? fi.FiGift : fi.FiPercent;
8267
+ }
8268
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0) return fi.FiLayers;
8269
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage) return fi.FiPercent;
8270
+ return fi.FiTag;
8271
+ };
8272
+ var getDetailMeta = function getDetailMeta(line) {
8273
+ if (line.includes('added in the cart') && line.includes('Apply')) {
8274
+ return {
8275
+ icon: hi2.HiSparkles,
8276
+ tone: 'success'
8277
+ };
8278
+ }
8279
+ if (line.includes('added in the cart')) {
8280
+ return {
8281
+ icon: fi.FiShoppingCart,
8282
+ tone: 'info'
8283
+ };
8284
+ }
8285
+ if (line.startsWith('Add ')) {
8286
+ return {
8287
+ icon: fi.FiPlusCircle,
8288
+ tone: 'warning'
8289
+ };
8290
+ }
8291
+ if (line.includes('Apply') || line.includes('claim')) {
8292
+ return {
8293
+ icon: hi2.HiSparkles,
8294
+ tone: 'success'
8295
+ };
8296
+ }
8297
+ return {
8298
+ icon: fi.FiTag,
8299
+ tone: 'info'
8300
+ };
8301
+ };
8302
+ var getCouponBenefit = function getCouponBenefit(coupon, _temp) {
8303
+ var _ref = _temp === void 0 ? {} : _temp,
8304
+ _ref$productPrice = _ref.productPrice,
8305
+ productPrice = _ref$productPrice === void 0 ? 0 : _ref$productPrice,
8306
+ _ref$cartQuantity = _ref.cartQuantity,
8307
+ cartQuantity = _ref$cartQuantity === void 0 ? 0 : _ref$cartQuantity;
8308
+ if (isBuyXGetFreeProduct(coupon)) {
8309
+ return getBuyXGetFreeProductMessages(coupon.quantityToBuy, coupon.quantityToGet, cartQuantity, getBuyXGetFreeProductOffPercent(coupon));
8310
+ }
8311
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8312
+ if (hasBuyXGetY) {
8313
+ return getBuyXGetYMessages(coupon.quantityToBuy, coupon.quantityToGet, cartQuantity);
8314
+ }
8315
+ var unitSaving = getUnitSaving(coupon, productPrice);
8316
+ if (!unitSaving) return null;
8317
+ var lines = [];
8318
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage) {
8319
+ lines.push(coupon.offPercentage + "% off \xB7 Save $" + formatCurrency(unitSaving) + " per item");
8320
+ } else {
8321
+ lines.push("Save $" + formatCurrency(unitSaving) + " per item");
8322
+ }
8323
+ if (cartQuantity > 0) {
8324
+ var totalSaving = unitSaving * cartQuantity;
8325
+ lines.push(formatCartCount(cartQuantity) + " \xB7 Apply this coupon to get $" + formatCurrency(totalSaving) + " off");
8326
+ }
8327
+ return lines;
8328
+ };
8329
+ var getSuggestionPreviewText = function getSuggestionPreviewText(coupon, _temp2) {
8330
+ var _ref2 = _temp2 === void 0 ? {} : _temp2,
8331
+ _ref2$productPrice = _ref2.productPrice,
8332
+ productPrice = _ref2$productPrice === void 0 ? 0 : _ref2$productPrice,
8333
+ _ref2$cartQuantity = _ref2.cartQuantity,
8334
+ cartQuantity = _ref2$cartQuantity === void 0 ? 0 : _ref2$cartQuantity;
8335
+ if (!coupon) return null;
8336
+ if (isBuyXGetFreeProduct(coupon)) {
8337
+ var _quantityToBuy = coupon.quantityToBuy || 1;
8338
+ var quantityToGet = coupon.quantityToGet || 1;
8339
+ var buyTimes = _quantityToBuy + " " + (_quantityToBuy === 1 ? 'time' : 'times');
8340
+ var offPercent = getBuyXGetFreeProductOffPercent(coupon);
8341
+ if (offPercent >= 100) {
8342
+ return "Buy this product " + buyTimes + ", get " + quantityToGet + " " + (quantityToGet === 1 ? 'free product' : 'free products') + ". Click View All offers to know more";
8343
+ }
8344
+ return "Buy this product " + buyTimes + ", get " + offPercent + "% off on some products. Click View All offers to know more";
8345
+ }
8346
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8347
+ if (hasBuyXGetY) {
8348
+ var _getCouponBenefit;
8349
+ return ((_getCouponBenefit = getCouponBenefit(coupon, {
8350
+ productPrice: productPrice,
8351
+ cartQuantity: cartQuantity
8352
+ })) === null || _getCouponBenefit === void 0 ? void 0 : _getCouponBenefit[0]) || null;
8353
+ }
8354
+ var unitSaving = getUnitSaving(coupon, productPrice);
8355
+ var quantityToBuy = coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy;
8356
+ var hasBuyQuantityRequirement = quantityToBuy > 0 && !((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0);
8357
+ if (hasBuyQuantityRequirement && coupon !== null && coupon !== void 0 && coupon.offPercentage && unitSaving) {
8358
+ var qtyLabel = quantityToBuy === 1 ? 'quantity' : 'quantities';
8359
+ return "Buy " + quantityToBuy + " " + qtyLabel + ", get " + coupon.offPercentage + "% off, save $" + formatCurrency(unitSaving) + " per item";
8360
+ }
8361
+ if (hasBuyQuantityRequirement && unitSaving) {
8362
+ var _qtyLabel = quantityToBuy === 1 ? 'quantity' : 'quantities';
8363
+ return "Buy " + quantityToBuy + " " + _qtyLabel + ", save $" + formatCurrency(unitSaving) + " per item";
8364
+ }
8365
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage && unitSaving) {
8366
+ return "get " + coupon.offPercentage + "% off, save $" + formatCurrency(unitSaving) + " per item";
8367
+ }
8368
+ if (unitSaving) {
8369
+ return "save $" + formatCurrency(unitSaving) + " per item";
8370
+ }
8371
+ return null;
8372
+ };
8373
+ var getSavingsBadge = function getSavingsBadge(coupon, productPrice) {
8374
+ if (isBuyXGetFreeProduct(coupon)) {
8375
+ if (!isFullyFreeBuyXOffer(coupon)) {
8376
+ return {
8377
+ variant: 'percent',
8378
+ top: getBuyXGetFreeProductOffPercent(coupon) + "%",
8379
+ bottom: 'OFF'
8380
+ };
8381
+ }
8382
+ var qty = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) || 1;
8383
+ return {
8384
+ variant: 'gift',
8385
+ top: qty > 1 ? qty + "\xD7" : 'FREE',
8386
+ bottom: 'GIFT'
8387
+ };
8388
+ }
8389
+ if ((coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0) {
8390
+ return {
8391
+ variant: 'bogo',
8392
+ top: "+" + coupon.quantityToGet,
8393
+ bottom: 'FREE'
8394
+ };
8395
+ }
8396
+ if (coupon !== null && coupon !== void 0 && coupon.offPercentage) {
8397
+ return {
8398
+ variant: 'percent',
8399
+ top: coupon.offPercentage + "%",
8400
+ bottom: 'OFF'
8401
+ };
8402
+ }
8403
+ var unitSaving = getUnitSaving(coupon, productPrice);
8404
+ if (unitSaving) {
8405
+ return {
8406
+ variant: 'amount',
8407
+ top: "$" + formatCurrency(unitSaving),
8408
+ bottom: 'SAVE'
8409
+ };
8410
+ }
8411
+ return {
8412
+ variant: 'deal',
8413
+ top: 'SAVE',
8414
+ bottom: 'NOW'
8415
+ };
8416
+ };
8417
+ var getProgressInfo = function getProgressInfo(coupon, cartQuantity) {
8418
+ if (isBuyXGetFreeProduct(coupon)) {
8419
+ var _target = coupon.quantityToBuy || 0;
8420
+ if (!_target) return null;
8421
+ var _current = Math.min(cartQuantity, _target);
8422
+ var _percent = Math.min(100, _current / _target * 100);
8423
+ var _remaining2 = Math.max(0, _target - cartQuantity);
8424
+ var qualified = cartQuantity >= _target;
8425
+ var offerLabel = getBuyXGetFreeProductOfferLabel(coupon);
8426
+ var unlockLabel = isFullyFreeBuyXOffer(coupon) ? 'your FREE gift' : offerLabel;
8427
+ return {
8428
+ type: 'quantity',
8429
+ current: _current,
8430
+ target: _target,
8431
+ percent: _percent,
8432
+ qualified: qualified,
8433
+ unitLabel: _target === 1 ? 'Item' : 'Items',
8434
+ 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 + "!"
8435
+ };
8436
+ }
8437
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8438
+ if (!hasBuyXGetY) return null;
8439
+ var quantityToBuy = coupon.quantityToBuy,
8440
+ quantityToGet = coupon.quantityToGet;
8441
+ var totalNeeded = quantityToBuy + quantityToGet;
8442
+ if (cartQuantity >= totalNeeded) {
8443
+ return {
8444
+ type: 'buyxgety',
8445
+ qualified: true,
8446
+ quantityToBuy: quantityToBuy,
8447
+ quantityToGet: quantityToGet,
8448
+ message: "You're eligible — apply your code at checkout!"
8449
+ };
8450
+ }
8451
+ if (cartQuantity >= quantityToBuy) {
8452
+ var _current2 = cartQuantity;
8453
+ var _target2 = totalNeeded;
8454
+ var _percent2 = Math.min(100, _current2 / _target2 * 100);
8455
+ var _remaining3 = totalNeeded - cartQuantity;
8456
+ return {
8457
+ type: 'quantity',
8458
+ current: _current2,
8459
+ target: _target2,
8460
+ percent: _percent2,
8461
+ qualified: false,
8462
+ unitLabel: _target2 === 1 ? 'Item' : 'Items',
8463
+ message: _remaining3 === 1 ? 'Only 1 more item to apply this coupon' : "Only " + _remaining3 + " more items to apply this coupon",
8464
+ showTimeline: true,
8465
+ quantityToBuy: quantityToBuy,
8466
+ quantityToGet: quantityToGet
8467
+ };
8468
+ }
8469
+ var current = Math.min(cartQuantity, quantityToBuy);
8470
+ var target = quantityToBuy;
8471
+ var percent = Math.min(100, current / target * 100);
8472
+ var remaining = quantityToBuy - cartQuantity;
8473
+ return {
8474
+ type: 'quantity',
8475
+ current: current,
8476
+ target: target,
8477
+ percent: percent,
8478
+ qualified: false,
8479
+ unitLabel: target === 1 ? 'Item' : 'Items',
8480
+ message: remaining === 1 ? 'Only 1 more item to qualify' : "Only " + remaining + " more items to qualify",
8481
+ showTimeline: true,
8482
+ quantityToBuy: quantityToBuy,
8483
+ quantityToGet: quantityToGet
8484
+ };
8485
+ };
8486
+ var isProgressDetailLine = function isProgressDetailLine(line) {
8487
+ return line === null || line === void 0 ? void 0 : line.startsWith('Add ');
8488
+ };
8489
+ var DiscountSuggestionsModal = function DiscountSuggestionsModal(_ref3) {
8490
+ var open = _ref3.open,
8491
+ onClose = _ref3.onClose,
8492
+ productName = _ref3.productName,
8493
+ _ref3$productDiscount = _ref3.productDiscounts,
8494
+ productDiscounts = _ref3$productDiscount === void 0 ? [] : _ref3$productDiscount,
8495
+ primaryColor = _ref3.primaryColor,
8496
+ _ref3$cartQuantity = _ref3.cartQuantity,
8497
+ cartQuantity = _ref3$cartQuantity === void 0 ? 0 : _ref3$cartQuantity,
8498
+ _ref3$productPrice = _ref3.productPrice,
8499
+ productPrice = _ref3$productPrice === void 0 ? 0 : _ref3$productPrice;
8500
+ var _useState = React.useState(null),
8501
+ copiedCode = _useState[0],
8502
+ setCopiedCode = _useState[1];
8503
+ var accentColor = primaryColor || DEFAULT_PRIMARY_COLOR$1;
8504
+ var copyCouponCode = React.useCallback(function (code) {
8505
+ try {
8506
+ if (!code) return Promise.resolve();
8507
+ var _temp3 = _catch(function () {
8508
+ var _navigator, _navigator$clipboard;
8509
+ 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 () {
8510
+ var _window;
8511
+ setCopiedCode(code);
8512
+ (_window = window) === null || _window === void 0 ? void 0 : _window.setTimeout(function () {
8513
+ return setCopiedCode(null);
8514
+ }, 1800);
8515
+ });
8516
+ }, function (error) {
8517
+ console.error('Failed to copy coupon code', error);
8518
+ });
8519
+ return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
8520
+ } catch (e) {
8521
+ return Promise.reject(e);
8522
+ }
8523
+ }, []);
8524
+ React.useEffect(function () {
8525
+ if (!open) return;
8526
+ var scrollLocks = [];
8527
+ var lockElement = function lockElement(el) {
8528
+ if (!el) return;
8529
+ scrollLocks.push({
8530
+ el: el,
8531
+ overflow: el.style.overflow,
8532
+ overscrollBehavior: el.style.overscrollBehavior
8533
+ });
8534
+ el.style.overflow = 'hidden';
8535
+ el.style.overscrollBehavior = 'none';
8536
+ };
8537
+ lockElement(document.body);
8538
+ lockElement(document.documentElement);
8539
+ document.querySelectorAll('.scrollDiv, .MuiTableContainer-root').forEach(lockElement);
8540
+ var handleKeyDown = function handleKeyDown(event) {
8541
+ if (event.key === 'Escape') onClose();
8542
+ };
8543
+ document.addEventListener('keydown', handleKeyDown);
8544
+ return function () {
8545
+ scrollLocks.forEach(function (_ref4) {
8546
+ var el = _ref4.el,
8547
+ overflow = _ref4.overflow,
8548
+ overscrollBehavior = _ref4.overscrollBehavior;
8549
+ el.style.overflow = overflow;
8550
+ el.style.overscrollBehavior = overscrollBehavior;
8551
+ });
8552
+ document.removeEventListener('keydown', handleKeyDown);
8553
+ };
8554
+ }, [open, onClose]);
8555
+ if (!open) return null;
8556
+ return reactDom.createPortal(/*#__PURE__*/React__default.createElement(Overlay, {
8557
+ onClick: onClose,
8558
+ role: "presentation"
8559
+ }, /*#__PURE__*/React__default.createElement(Panel, {
8560
+ role: "dialog",
8561
+ "aria-modal": "true",
8562
+ "aria-labelledby": "discount-suggestions-title",
8563
+ onClick: function onClick(event) {
8564
+ return event.stopPropagation();
8565
+ }
8566
+ }, /*#__PURE__*/React__default.createElement(DialogHeader, null, /*#__PURE__*/React__default.createElement(DialogTitle, {
8567
+ id: "discount-suggestions-title"
8568
+ }, "Available Offers"), /*#__PURE__*/React__default.createElement(CloseButton, {
8569
+ type: "button",
8570
+ "aria-label": "close",
8571
+ onClick: onClose
8572
+ }, /*#__PURE__*/React__default.createElement(md.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, {
8573
+ $accentColor: accentColor,
8574
+ role: "region",
8575
+ "aria-label": "Available offers and savings"
8576
+ }, /*#__PURE__*/React__default.createElement(AmbientGlow, {
8577
+ $accentColor: accentColor,
8578
+ "aria-hidden": "true"
8579
+ }), /*#__PURE__*/React__default.createElement(Sparkle, {
8580
+ $accentColor: accentColor,
8581
+ $top: "12%",
8582
+ $left: "6%",
8583
+ $delay: "0s",
8584
+ "aria-hidden": "true"
8585
+ }), /*#__PURE__*/React__default.createElement(Sparkle, {
8586
+ $accentColor: accentColor,
8587
+ $top: "28%",
8588
+ $left: "88%",
8589
+ $delay: "1.2s",
8590
+ $size: "sm",
8591
+ "aria-hidden": "true"
8592
+ }), /*#__PURE__*/React__default.createElement(Sparkle, {
8593
+ $accentColor: accentColor,
8594
+ $top: "72%",
8595
+ $left: "4%",
8596
+ $delay: "2.1s",
8597
+ $size: "sm",
8598
+ "aria-hidden": "true"
8599
+ }), /*#__PURE__*/React__default.createElement(SectionHeader, {
8600
+ $accentColor: accentColor
8601
+ }, /*#__PURE__*/React__default.createElement(HeaderIconWrap, {
8602
+ $accentColor: accentColor
8603
+ }, /*#__PURE__*/React__default.createElement(md.MdLocalOffer, null)), /*#__PURE__*/React__default.createElement(HeaderCopy, null, /*#__PURE__*/React__default.createElement(Eyebrow, {
8604
+ $accentColor: accentColor
8605
+ }, /*#__PURE__*/React__default.createElement(fi.FiZap, null), "Savings Center"), /*#__PURE__*/React__default.createElement(SectionHeading, null, productName || 'Available Offers')), /*#__PURE__*/React__default.createElement(OfferCountBadge, {
8606
+ $accentColor: accentColor
8607
+ }, /*#__PURE__*/React__default.createElement(hi2.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) {
8608
+ var _coupon$discountId;
8609
+ var benefit = getCouponBenefit(coupon, {
8610
+ productPrice: productPrice,
8611
+ cartQuantity: cartQuantity
8612
+ });
8613
+ var benefitSummary = (benefit === null || benefit === void 0 ? void 0 : benefit[0]) || null;
8614
+ var benefitDetails = (benefit === null || benefit === void 0 ? void 0 : benefit.length) > 1 ? benefit.slice(1) : [];
8615
+ var statusDetails = benefitDetails.filter(function (line) {
8616
+ return !isProgressDetailLine(line);
8617
+ });
8618
+ var hasSuccessStatus = statusDetails.some(function (line) {
8619
+ var _getDetailMeta = getDetailMeta(line),
8620
+ tone = _getDetailMeta.tone;
8621
+ return tone === 'success';
8622
+ });
8623
+ var freeProducts = isBuyXGetFreeProduct(coupon) ? (coupon === null || coupon === void 0 ? void 0 : coupon.freeProducts) || [] : [];
8624
+ var isFullyFreeOffer = isBuyXGetFreeProduct(coupon) ? isFullyFreeBuyXOffer(coupon) : false;
8625
+ var TypeIcon = getCouponTypeIcon(coupon);
8626
+ var isCopied = copiedCode === (coupon === null || coupon === void 0 ? void 0 : coupon.couponCode);
8627
+ var savingsBadge = getSavingsBadge(coupon, productPrice);
8628
+ var progressInfo = getProgressInfo(coupon, cartQuantity);
8629
+ var hasBuyXGetY = (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToBuy) > 0 && (coupon === null || coupon === void 0 ? void 0 : coupon.quantityToGet) > 0;
8630
+ var showTimeline = hasBuyXGetY && ((progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.showTimeline) || (progressInfo === null || progressInfo === void 0 ? void 0 : progressInfo.type) === 'buyxgety');
8631
+ return /*#__PURE__*/React__default.createElement(OfferCard, {
8632
+ key: (_coupon$discountId = coupon === null || coupon === void 0 ? void 0 : coupon.discountId) != null ? _coupon$discountId : coupon === null || coupon === void 0 ? void 0 : coupon.couponCode,
8633
+ $accentColor: accentColor,
8634
+ $index: index
8635
+ }, /*#__PURE__*/React__default.createElement(CardBody, null, /*#__PURE__*/React__default.createElement(CardHeader, null, /*#__PURE__*/React__default.createElement(SavingsBadge, {
8636
+ $accentColor: accentColor,
8637
+ $variant: savingsBadge.variant
8638
+ }, /*#__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, {
8639
+ $accentColor: accentColor
8640
+ }, /*#__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, {
8641
+ $accentColor: accentColor
8642
+ }, /*#__PURE__*/React__default.createElement(hi2.HiSparkles, null), "Ready")), /*#__PURE__*/React__default.createElement(TitleRow, null, /*#__PURE__*/React__default.createElement(OfferTitle, {
8643
+ title: coupon === null || coupon === void 0 ? void 0 : coupon.discountName
8644
+ }, coupon === null || coupon === void 0 ? void 0 : coupon.discountName), /*#__PURE__*/React__default.createElement(CodeRow, {
8645
+ $accentColor: accentColor
8646
+ }, /*#__PURE__*/React__default.createElement(CodeValue, {
8647
+ $accentColor: accentColor,
8648
+ "aria-label": "Coupon code " + (coupon === null || coupon === void 0 ? void 0 : coupon.couponCode)
8649
+ }, coupon === null || coupon === void 0 ? void 0 : coupon.couponCode), /*#__PURE__*/React__default.createElement(material.Tooltip, {
8650
+ title: isCopied ? 'Copied!' : 'Copy code',
8651
+ arrow: true,
8652
+ placement: "top"
8653
+ }, /*#__PURE__*/React__default.createElement(PrimaryCopyButton, {
8654
+ type: "button",
8655
+ $accentColor: accentColor,
8656
+ $copied: isCopied,
8657
+ "aria-label": "Copy coupon code " + (coupon === null || coupon === void 0 ? void 0 : coupon.couponCode),
8658
+ onClick: function onClick() {
8659
+ return copyCouponCode(coupon === null || coupon === void 0 ? void 0 : coupon.couponCode);
8660
+ }
8661
+ }, isCopied ? /*#__PURE__*/React__default.createElement("div", {
8662
+ style: {
8663
+ display: 'flex',
8664
+ alignItems: 'center',
8665
+ gap: '4px'
8666
+ }
8667
+ }, /*#__PURE__*/React__default.createElement(fi.FiCheck, null), /*#__PURE__*/React__default.createElement("span", null, "Copied")) : /*#__PURE__*/React__default.createElement("div", {
8668
+ style: {
8669
+ display: 'flex',
8670
+ alignItems: 'center',
8671
+ gap: '4px'
8672
+ }
8673
+ }, /*#__PURE__*/React__default.createElement(fi.FiCopy, null), /*#__PURE__*/React__default.createElement("span", null, "Copy")))))))), benefitSummary && /*#__PURE__*/React__default.createElement(OfferDescription, null, benefitSummary), showTimeline && /*#__PURE__*/React__default.createElement(BuyXTimeline, {
8674
+ $accentColor: accentColor
8675
+ }, /*#__PURE__*/React__default.createElement(TimelineStep, null, /*#__PURE__*/React__default.createElement(TimelineIcon, {
8676
+ $accentColor: accentColor
8677
+ }, /*#__PURE__*/React__default.createElement(fi.FiShoppingCart, null)), /*#__PURE__*/React__default.createElement(TimelineLabel, null, "Buy ", coupon.quantityToBuy)), /*#__PURE__*/React__default.createElement(TimelineTrack, {
8678
+ $accentColor: accentColor
8679
+ }, /*#__PURE__*/React__default.createElement(TimelineArrow, {
8680
+ $accentColor: accentColor
8681
+ })), /*#__PURE__*/React__default.createElement(TimelineStep, null, /*#__PURE__*/React__default.createElement(TimelineIcon, {
8682
+ $accentColor: accentColor,
8683
+ $highlight: true
8684
+ }, /*#__PURE__*/React__default.createElement(fi.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, {
8685
+ $accentColor: accentColor,
8686
+ role: "progressbar",
8687
+ "aria-valuenow": progressInfo.current,
8688
+ "aria-valuemin": 0,
8689
+ "aria-valuemax": progressInfo.target,
8690
+ "aria-label": progressInfo.current + " of " + progressInfo.target + " items toward eligibility"
8691
+ }, /*#__PURE__*/React__default.createElement(ProgressFill, {
8692
+ $accentColor: accentColor,
8693
+ $percent: progressInfo.percent
8694
+ })), /*#__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, {
8695
+ $accentColor: accentColor
8696
+ }, /*#__PURE__*/React__default.createElement(hi2.HiSparkles, null), /*#__PURE__*/React__default.createElement("span", null, progressInfo.message)), statusDetails.length > 0 && /*#__PURE__*/React__default.createElement(StatusList, null, statusDetails.map(function (line, detailIndex) {
8697
+ var _getDetailMeta2 = getDetailMeta(line),
8698
+ DetailIcon = _getDetailMeta2.icon,
8699
+ tone = _getDetailMeta2.tone;
8700
+ return /*#__PURE__*/React__default.createElement(StatusItem, {
8701
+ key: (coupon === null || coupon === void 0 ? void 0 : coupon.discountId) + "-" + detailIndex,
8702
+ $accentColor: accentColor,
8703
+ $tone: tone,
8704
+ $chipIndex: detailIndex
8705
+ }, /*#__PURE__*/React__default.createElement(DetailIcon, null), /*#__PURE__*/React__default.createElement("span", null, line));
8706
+ })), freeProducts.length > 0 && /*#__PURE__*/React__default.createElement(GiftSection, null, isFullyFreeOffer && /*#__PURE__*/React__default.createElement(GiftSectionHeader, {
8707
+ $accentColor: accentColor
8708
+ }, /*#__PURE__*/React__default.createElement(fi.FiGift, null), /*#__PURE__*/React__default.createElement("span", null, "Free gift options")), /*#__PURE__*/React__default.createElement(GiftList, null, freeProducts.map(function (product) {
8709
+ var _product$productName;
8710
+ return /*#__PURE__*/React__default.createElement(GiftLink, {
8711
+ key: product === null || product === void 0 ? void 0 : product.productId,
8712
+ href: getFreeProductHref(product),
8713
+ $accentColor: accentColor
8714
+ }, /*#__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(fi.FiArrowRight, null));
8715
+ })))));
8716
+ })))))), document.body);
8717
+ };
8718
+ var fadeSlideUp = styled.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"])));
8719
+ var shimmer = styled.keyframes(_templateObject2$m || (_templateObject2$m = _taggedTemplateLiteralLoose(["\n 0% {\n background-position: -120% 0;\n }\n 100% {\n background-position: 220% 0;\n }\n"])));
8720
+ var copyPop = styled.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"])));
8721
+ var chipIn = styled.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"])));
8722
+ var progressGrow = styled.keyframes(_templateObject5$9 || (_templateObject5$9 = _taggedTemplateLiteralLoose(["\n from {\n width: 0;\n }\n"])));
8723
+ var sparkleFloat = styled.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"])));
8724
+ var reducedMotion = styled.css(_templateObject7$6 || (_templateObject7$6 = _taggedTemplateLiteralLoose(["\n @media (prefers-reduced-motion: reduce) {\n animation: none !important;\n transition: none !important;\n }\n"])));
8725
+ var Overlay = styled__default.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"])));
8726
+ var Panel = styled__default.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"])));
8727
+ var DialogHeader = styled__default.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"])));
8728
+ var DialogTitle = styled__default.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"])));
8729
+ var CloseButton = styled__default.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"])));
8730
+ var ScrollableBody = styled__default.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"])));
8731
+ var EmptyState$1 = styled__default.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"])));
8732
+ var SavingsCenter = styled__default.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) {
8733
+ var $accentColor = _ref5.$accentColor;
8734
+ return $accentColor;
8735
+ }, function (_ref6) {
8736
+ var $accentColor = _ref6.$accentColor;
8737
+ return $accentColor + "20";
8738
+ }, function (_ref7) {
8739
+ var $accentColor = _ref7.$accentColor;
8740
+ return $accentColor + "10";
8741
+ }, fadeSlideUp, reducedMotion);
8742
+ var AmbientGlow = styled__default.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) {
8743
+ var $accentColor = _ref8.$accentColor;
8744
+ return $accentColor + "18";
8745
+ });
8746
+ var Sparkle = styled__default.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) {
8747
+ var $top = _ref9.$top;
8748
+ return $top;
8749
+ }, function (_ref10) {
8750
+ var $left = _ref10.$left;
8751
+ return $left;
8752
+ }, function (_ref11) {
8753
+ var $size = _ref11.$size;
8754
+ return $size === 'sm' ? '4px' : '6px';
8755
+ }, function (_ref12) {
8756
+ var $size = _ref12.$size;
8757
+ return $size === 'sm' ? '4px' : '6px';
8758
+ }, function (_ref13) {
8759
+ var $accentColor = _ref13.$accentColor;
8760
+ return $accentColor;
8761
+ }, function (_ref14) {
8762
+ var $accentColor = _ref14.$accentColor;
8763
+ return $accentColor + "80";
8764
+ }, sparkleFloat, function (_ref15) {
8765
+ var $delay = _ref15.$delay;
8766
+ return $delay;
8767
+ }, reducedMotion);
8768
+ var SectionHeader = styled__default.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) {
8769
+ var $accentColor = _ref16.$accentColor;
8770
+ return $accentColor + "16";
8771
+ }, function (_ref17) {
8772
+ var $accentColor = _ref17.$accentColor;
8773
+ return $accentColor + "05";
8774
+ }, function (_ref18) {
8775
+ var $accentColor = _ref18.$accentColor;
8776
+ return $accentColor + "12";
8777
+ }, shimmer, reducedMotion);
8778
+ var HeaderIconWrap = styled__default.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) {
8779
+ var $accentColor = _ref19.$accentColor;
8780
+ return $accentColor + "40";
8781
+ }, function (_ref20) {
8782
+ var $accentColor = _ref20.$accentColor;
8783
+ return $accentColor;
8784
+ }, function (_ref21) {
8785
+ var $accentColor = _ref21.$accentColor;
8786
+ return $accentColor + "cc";
8787
+ });
8788
+ var HeaderCopy = styled__default.div(_templateObject20$2 || (_templateObject20$2 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n z-index: 1;\n"])));
8789
+ var Eyebrow = styled__default.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) {
8790
+ var $accentColor = _ref22.$accentColor;
8791
+ return $accentColor;
8792
+ });
8793
+ var SectionHeading = styled__default.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"])));
8794
+ var OfferCountBadge = styled__default.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) {
8795
+ var $accentColor = _ref23.$accentColor;
8796
+ return $accentColor;
8797
+ });
8798
+ var OfferStack = styled__default.div(_templateObject24$1 || (_templateObject24$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.55rem;\n"])));
8799
+ var OfferCard = styled__default.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) {
8800
+ var $accentColor = _ref24.$accentColor;
8801
+ return $accentColor + "20";
8802
+ }, fadeSlideUp, function (_ref25) {
8803
+ var $index = _ref25.$index;
8804
+ return 0.06 + $index * 0.04;
8805
+ }, function (_ref26) {
8806
+ var $accentColor = _ref26.$accentColor;
8807
+ return $accentColor + "45";
8808
+ }, function (_ref27) {
8809
+ var $accentColor = _ref27.$accentColor;
8810
+ return $accentColor + "12";
8811
+ }, function (_ref28) {
8812
+ var $accentColor = _ref28.$accentColor;
8813
+ return $accentColor + "50";
8814
+ }, reducedMotion);
8815
+ var CardBody = styled__default.div(_templateObject26$1 || (_templateObject26$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.35rem;\n padding: 0.6rem 0.65rem;\n"])));
8816
+ var CardHeader = styled__default.div(_templateObject27$1 || (_templateObject27$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-start;\n gap: 0.55rem;\n"])));
8817
+ var CardHeaderCopy = styled__default.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"])));
8818
+ var SavingsBadge = styled__default.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) {
8819
+ var $accentColor = _ref29.$accentColor,
8820
+ $variant = _ref29.$variant;
8821
+ if ($variant === 'gift') {
8822
+ return "linear-gradient(145deg, #e8a317 0%, #c47d0a 100%)";
8823
+ }
8824
+ if ($variant === 'bogo') {
8825
+ return "linear-gradient(145deg, " + $accentColor + " 0%, #2d5f0a 100%)";
8826
+ }
8827
+ return "linear-gradient(145deg, " + $accentColor + " 0%, " + $accentColor + "cc 100%)";
8828
+ }, function (_ref30) {
8829
+ var $accentColor = _ref30.$accentColor;
8830
+ return $accentColor + "28";
8831
+ });
8832
+ var BadgeTop = styled__default.span(_templateObject30$1 || (_templateObject30$1 = _taggedTemplateLiteralLoose(["\n font-size: 0.82rem;\n font-weight: 900;\n letter-spacing: -0.02em;\n"])));
8833
+ var BadgeBottom = styled__default.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"])));
8834
+ var CardMetaRow = styled__default.div(_templateObject32$1 || (_templateObject32$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.28rem;\n"])));
8835
+ var TypePill = styled__default.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) {
8836
+ var $accentColor = _ref31.$accentColor;
8837
+ return $accentColor;
8838
+ }, function (_ref32) {
8839
+ var $accentColor = _ref32.$accentColor;
8840
+ return $accentColor + "10";
8841
+ }, function (_ref33) {
8842
+ var $accentColor = _ref33.$accentColor;
8843
+ return $accentColor + "22";
8844
+ });
8845
+ var QualifiedPill = styled__default.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) {
8846
+ var $accentColor = _ref34.$accentColor;
8847
+ return $accentColor;
8848
+ }, function (_ref35) {
8849
+ var $accentColor = _ref35.$accentColor;
8850
+ return $accentColor + "12";
8851
+ }, function (_ref36) {
8852
+ var $accentColor = _ref36.$accentColor;
8853
+ return $accentColor + "30";
8854
+ });
8855
+ var TitleRow = styled__default.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"])));
8856
+ var OfferTitle = styled__default.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"])));
8857
+ var OfferDescription = styled__default.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"])));
8858
+ var BuyXTimeline = styled__default.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) {
8859
+ var $accentColor = _ref37.$accentColor;
8860
+ return $accentColor + "07";
8861
+ }, function (_ref38) {
8862
+ var $accentColor = _ref38.$accentColor;
8863
+ return $accentColor + "14";
8864
+ });
8865
+ var TimelineStep = styled__default.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n"])));
8866
+ var TimelineIcon = styled__default.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) {
8867
+ var $accentColor = _ref39.$accentColor,
8868
+ $highlight = _ref39.$highlight;
8869
+ return $highlight ? '#fff' : $accentColor;
8870
+ }, function (_ref40) {
8871
+ var $accentColor = _ref40.$accentColor,
8872
+ $highlight = _ref40.$highlight;
8873
+ return $highlight ? $accentColor : $accentColor + "14";
8874
+ });
8875
+ var TimelineLabel = styled__default.span(_templateObject41 || (_templateObject41 = _taggedTemplateLiteralLoose(["\n font-size: 0.65rem;\n font-weight: 700;\n color: #3a4334;\n white-space: nowrap;\n"])));
8876
+ var TimelineTrack = styled__default.div(_templateObject42 || (_templateObject42 = _taggedTemplateLiteralLoose(["\n flex: 1;\n display: flex;\n align-items: center;\n min-width: 2rem;\n padding: 0 0.15rem;\n"])));
8877
+ var TimelineArrow = styled__default.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) {
8878
+ var $accentColor = _ref41.$accentColor;
8879
+ return $accentColor + "44";
8880
+ }, function (_ref42) {
8881
+ var $accentColor = _ref42.$accentColor;
8882
+ return $accentColor;
8883
+ }, function (_ref43) {
8884
+ var $accentColor = _ref43.$accentColor;
8885
+ return $accentColor;
8886
+ });
8887
+ var ProgressBlock = styled__default.div(_templateObject44 || (_templateObject44 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n"])));
8888
+ var ProgressTrack = styled__default.div(_templateObject45 || (_templateObject45 = _taggedTemplateLiteralLoose(["\n width: 100%;\n height: 0.35rem;\n border-radius: 999px;\n background: #e8ede3;\n overflow: hidden;\n"])));
8889
+ var ProgressFill = styled__default.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) {
8890
+ var $percent = _ref44.$percent;
8891
+ return $percent;
8892
+ }, function (_ref45) {
8893
+ var $accentColor = _ref45.$accentColor;
8894
+ return $accentColor + "cc";
8895
+ }, function (_ref46) {
8896
+ var $accentColor = _ref46.$accentColor;
8897
+ return $accentColor;
8898
+ }, progressGrow, reducedMotion);
8899
+ var ProgressMeta = styled__default.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"])));
8900
+ var ProgressCount = styled__default.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"])));
8901
+ var ProgressHint = styled__default.span(_templateObject49 || (_templateObject49 = _taggedTemplateLiteralLoose(["\n font-size: 0.68rem;\n font-weight: 600;\n color: #7a5e12;\n line-height: 1.3;\n"])));
8902
+ var SuccessBanner = styled__default.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) {
8903
+ var $accentColor = _ref47.$accentColor;
8904
+ return $accentColor;
8905
+ }, function (_ref48) {
8906
+ var $accentColor = _ref48.$accentColor;
8907
+ return $accentColor + "10";
8908
+ }, function (_ref49) {
8909
+ var $accentColor = _ref49.$accentColor;
8910
+ return $accentColor + "25";
8911
+ });
8912
+ var StatusList = styled__default.div(_templateObject51 || (_templateObject51 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n"])));
8913
+ var StatusItem = styled__default.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) {
8914
+ var $chipIndex = _ref50.$chipIndex;
8915
+ return 0.1 + $chipIndex * 0.05;
8916
+ }, function (_ref51) {
8917
+ var $accentColor = _ref51.$accentColor,
8918
+ $tone = _ref51.$tone;
8919
+ if ($tone === 'warning') return '#fff8eb';
8920
+ if ($tone === 'success') return $accentColor + "10";
8921
+ return '#f4f6f1';
8922
+ }, function (_ref52) {
8923
+ var $accentColor = _ref52.$accentColor,
8924
+ $tone = _ref52.$tone;
8925
+ if ($tone === 'warning') return '#8a6400';
8926
+ if ($tone === 'success') return $accentColor;
8927
+ return '#45503c';
8928
+ }, function (_ref53) {
8929
+ var $accentColor = _ref53.$accentColor,
8930
+ $tone = _ref53.$tone;
8931
+ if ($tone === 'warning') return '#f0d48a';
8932
+ if ($tone === 'success') return $accentColor + "28";
8933
+ return '#e0e5da';
8934
+ }, reducedMotion);
8935
+ var GiftSection = styled__default.div(_templateObject53 || (_templateObject53 = _taggedTemplateLiteralLoose(["\n padding-top: 0.35rem;\n border-top: 1px solid #eef1e9;\n"])));
8936
+ var GiftSectionHeader = styled__default.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) {
8937
+ var $accentColor = _ref54.$accentColor;
8938
+ return $accentColor;
8939
+ });
8940
+ var GiftList = styled__default.div(_templateObject55 || (_templateObject55 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n gap: 0.22rem;\n"])));
8941
+ var GiftLink = styled__default.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) {
8942
+ var $accentColor = _ref55.$accentColor;
8943
+ return $accentColor + "1e";
8944
+ }, function (_ref56) {
8945
+ var $accentColor = _ref56.$accentColor;
8946
+ return $accentColor;
8947
+ }, function (_ref57) {
8948
+ var $accentColor = _ref57.$accentColor;
8949
+ return $accentColor;
8950
+ }, function (_ref58) {
8951
+ var $accentColor = _ref58.$accentColor;
8952
+ return $accentColor + "08";
8953
+ }, function (_ref59) {
8954
+ var $accentColor = _ref59.$accentColor;
8955
+ return $accentColor;
8956
+ }, reducedMotion);
8957
+ var CodeRow = styled__default.div(_templateObject57 || (_templateObject57 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 0.3rem;\n flex-shrink: 0;\n"])));
8958
+ var CodeValue = styled__default.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) {
8959
+ var $accentColor = _ref60.$accentColor;
8960
+ return $accentColor;
8961
+ });
8962
+ var PrimaryCopyButton = styled__default.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) {
8963
+ var $accentColor = _ref61.$accentColor,
8964
+ $copied = _ref61.$copied;
8965
+ return $copied ? "linear-gradient(145deg, " + $accentColor + " 0%, " + $accentColor + "dd 100%)" : 'linear-gradient(145deg, #1a2114 0%, #0f140c 100%)';
8966
+ }, function (_ref62) {
8967
+ var $accentColor = _ref62.$accentColor;
8968
+ return $accentColor + "28";
8969
+ }, function (_ref63) {
8970
+ var $copied = _ref63.$copied;
8971
+ return $copied ? copyPop : 'none';
8972
+ }, function (_ref64) {
8973
+ var $accentColor = _ref64.$accentColor;
8974
+ return $accentColor;
8975
+ }, reducedMotion);
8976
+
8977
+ var _templateObject$w, _templateObject2$n, _templateObject3$h, _templateObject4$e, _templateObject5$a, _templateObject6$8;
8978
+ var DEFAULT_PRIMARY_COLOR$2 = '#437C0F';
8979
+ var DiscountSuggestionPreview = function DiscountSuggestionPreview(_ref) {
8980
+ var coupon = _ref.coupon,
8981
+ _ref$productPrice = _ref.productPrice,
8982
+ productPrice = _ref$productPrice === void 0 ? 0 : _ref$productPrice,
8983
+ _ref$cartQuantity = _ref.cartQuantity,
8984
+ cartQuantity = _ref$cartQuantity === void 0 ? 0 : _ref$cartQuantity,
8985
+ primaryColor = _ref.primaryColor,
8986
+ loading = _ref.loading,
8987
+ onViewOffers = _ref.onViewOffers,
8988
+ _ref$viewOffersLabel = _ref.viewOffersLabel,
8989
+ viewOffersLabel = _ref$viewOffersLabel === void 0 ? 'View All offers' : _ref$viewOffersLabel;
8990
+ var _useState = React.useState(false),
8991
+ copied = _useState[0],
8992
+ setCopied = _useState[1];
8993
+ var accentColor = primaryColor || DEFAULT_PRIMARY_COLOR$2;
8994
+ var previewText = getSuggestionPreviewText(coupon, {
8995
+ productPrice: productPrice,
8996
+ cartQuantity: cartQuantity
8997
+ });
8998
+ var code = coupon === null || coupon === void 0 ? void 0 : coupon.couponCode;
8999
+ var copyCouponCode = React.useCallback(function (event) {
9000
+ try {
9001
+ var _event$stopPropagatio;
9002
+ event === null || event === void 0 ? void 0 : (_event$stopPropagatio = event.stopPropagation) === null || _event$stopPropagatio === void 0 ? void 0 : _event$stopPropagatio.call(event);
9003
+ if (!code) return Promise.resolve();
9004
+ var _temp = _catch(function () {
9005
+ var _navigator, _navigator$clipboard;
9006
+ 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 () {
9007
+ var _window;
9008
+ setCopied(true);
9009
+ (_window = window) === null || _window === void 0 ? void 0 : _window.setTimeout(function () {
9010
+ return setCopied(false);
9011
+ }, 1800);
9012
+ });
9013
+ }, function (error) {
9014
+ console.error('Failed to copy coupon code', error);
9015
+ });
9016
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
9017
+ } catch (e) {
9018
+ return Promise.reject(e);
9019
+ }
9020
+ }, [code]);
9021
+ if (!code) return null;
9022
+ var quotedCode = "\"" + code + "\"";
9023
+ var fullTitle = previewText ? quotedCode + " " + previewText : quotedCode;
9024
+ return /*#__PURE__*/React__default.createElement(SuggestionRow, {
9025
+ onClick: function onClick(event) {
9026
+ event.stopPropagation();
9027
+ }
9028
+ }, /*#__PURE__*/React__default.createElement(SuggestionText, {
9029
+ $accentColor: accentColor,
9030
+ title: fullTitle
9031
+ }, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(CodeWrap, null, /*#__PURE__*/React__default.createElement(CodeValue$1, {
9032
+ $accentColor: accentColor
9033
+ }, quotedCode), /*#__PURE__*/React__default.createElement(material.Tooltip, {
9034
+ title: copied ? 'Copied!' : 'Copy code',
9035
+ arrow: true
9036
+ }, /*#__PURE__*/React__default.createElement(CopyBtn, {
9037
+ type: "button",
9038
+ $accentColor: accentColor,
9039
+ $copied: copied,
9040
+ "aria-label": "Copy coupon code " + code,
9041
+ onClick: copyCouponCode
9042
+ }, copied ? /*#__PURE__*/React__default.createElement(fi.FiCheck, null) : /*#__PURE__*/React__default.createElement(fi.FiCopy, null)))), previewText ? " " + previewText : '')), /*#__PURE__*/React__default.createElement(ViewOffersBtn, {
9043
+ type: "button",
9044
+ $accentColor: accentColor,
9045
+ onClick: function onClick(e) {
9046
+ e.stopPropagation();
9047
+ if (loading) return;
9048
+ onViewOffers === null || onViewOffers === void 0 ? void 0 : onViewOffers();
9049
+ }
9050
+ }, viewOffersLabel));
9051
+ };
9052
+ var SuggestionRow = styled__default.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"])));
9053
+ var SuggestionText = styled__default.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) {
9054
+ var $accentColor = _ref2.$accentColor;
9055
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9056
+ });
9057
+ var CodeWrap = styled__default.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"])));
9058
+ var CodeValue$1 = styled__default.span(_templateObject4$e || (_templateObject4$e = _taggedTemplateLiteralLoose(["\n font-weight: 800;\n letter-spacing: 0.02em;\n color: ", ";\n"])), function (_ref3) {
9059
+ var $accentColor = _ref3.$accentColor;
9060
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9061
+ });
9062
+ var CopyBtn = styled__default.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) {
9063
+ var $accentColor = _ref4.$accentColor,
9064
+ $copied = _ref4.$copied;
9065
+ return $copied ? $accentColor || DEFAULT_PRIMARY_COLOR$2 : ($accentColor || DEFAULT_PRIMARY_COLOR$2) + "55";
9066
+ }, function (_ref5) {
9067
+ var $accentColor = _ref5.$accentColor,
9068
+ $copied = _ref5.$copied;
9069
+ return $copied ? ($accentColor || DEFAULT_PRIMARY_COLOR$2) + "18" : '#fff';
9070
+ }, function (_ref6) {
9071
+ var $accentColor = _ref6.$accentColor;
9072
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9073
+ }, function (_ref7) {
9074
+ var $accentColor = _ref7.$accentColor;
9075
+ return ($accentColor || DEFAULT_PRIMARY_COLOR$2) + "14";
9076
+ }, function (_ref8) {
9077
+ var $accentColor = _ref8.$accentColor;
9078
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9079
+ });
9080
+ var ViewOffersBtn = styled__default.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) {
9081
+ var $accentColor = _ref9.$accentColor;
9082
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9083
+ }, function (_ref10) {
9084
+ var $accentColor = _ref10.$accentColor;
9085
+ return $accentColor || DEFAULT_PRIMARY_COLOR$2;
9086
+ }, function (_ref11) {
9087
+ var $accentColor = _ref11.$accentColor;
9088
+ return $accentColor ? $accentColor + "12" : '#437C0F12';
9089
+ });
9090
+
9091
+ var _templateObject$x, _templateObject2$o, _templateObject3$i, _templateObject4$f, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$6;
9092
+ var ProductImage = styled__default.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"])));
9093
+ var ProductName = styled__default.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) {
7803
9094
  return props.size || '1em';
7804
9095
  });
7805
- var CartTableRow = styled__default(material.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) {
9096
+ var CartTableRow = styled__default(material.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) {
7806
9097
  return props.size || '1.19em';
7807
9098
  }, function (prop) {
7808
9099
  return prop.bg;
7809
9100
  }, function (prop) {
7810
9101
  return prop.bg;
7811
9102
  });
7812
- var CartTableCell$1 = styled__default(material.TableCell)(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
7813
- var QuantityBox = styled__default.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"])));
7814
- var DeleteBtn = styled__default.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"])));
7815
- var CardRow = function CardRow(_ref) {
7816
- var _styles$price, _styles$Btn;
7817
- var row = _ref.row,
7818
- isItemSelected = _ref.isItemSelected,
7819
- handleClick = _ref.handleClick,
7820
- imgnotfoundUrl = _ref.imgnotfoundUrl,
7821
- handleIncrementDecrement = _ref.handleIncrementDecrement,
7822
- handleRemoveProduct = _ref.handleRemoveProduct,
7823
- loading = _ref.loading,
7824
- imgSize = _ref.imgSize,
7825
- styles = _ref.styles,
7826
- clickRedirect = _ref.clickRedirect,
7827
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
7828
- doNotShowPrice = _ref.doNotShowPrice;
9103
+ var CartTableCell$1 = styled__default(material.TableCell)(_templateObject4$f || (_templateObject4$f = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
9104
+ var QuantityBox = styled__default.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"])));
9105
+ var DeleteBtn = styled__default.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"])));
9106
+ var DiscountBtn = styled__default.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) {
9107
+ var $accentColor = _ref.$accentColor;
9108
+ return $accentColor || '#437C0F';
9109
+ }, function (_ref2) {
9110
+ var $accentColor = _ref2.$accentColor;
9111
+ return $accentColor || '#437C0F';
9112
+ });
9113
+ var ActionCell = styled__default.div(_templateObject8$6 || (_templateObject8$6 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.4rem;\n"])));
9114
+ var CardRow = function CardRow(_ref3) {
9115
+ var _styles$Btn, _styles$price, _styles$Btn2;
9116
+ var row = _ref3.row,
9117
+ isItemSelected = _ref3.isItemSelected,
9118
+ handleClick = _ref3.handleClick,
9119
+ imgnotfoundUrl = _ref3.imgnotfoundUrl,
9120
+ handleIncrementDecrement = _ref3.handleIncrementDecrement,
9121
+ handleRemoveProduct = _ref3.handleRemoveProduct,
9122
+ loading = _ref3.loading,
9123
+ imgSize = _ref3.imgSize,
9124
+ styles = _ref3.styles,
9125
+ clickRedirect = _ref3.clickRedirect,
9126
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref3.allowToProcessInvoiceForOutOfStockProductsEcommerce,
9127
+ doNotShowPrice = _ref3.doNotShowPrice,
9128
+ discountSuggesstions = _ref3.discountSuggesstions,
9129
+ showDiscountSuggestions = _ref3.showDiscountSuggestions;
7829
9130
  var imgnotfoundUrlcommon = noImgAvailable$1;
7830
9131
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
7831
9132
  var timer = React.useRef();
7832
9133
  var _useState = React.useState(row === null || row === void 0 ? void 0 : row.quantity),
7833
9134
  quantity = _useState[0],
7834
9135
  setQuantity = _useState[1];
9136
+ var _useState2 = React.useState(false),
9137
+ discountModalOpen = _useState2[0],
9138
+ setDiscountModalOpen = _useState2[1];
9139
+ 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);
9140
+ var productDiscounts = (discountSuggesstions === null || discountSuggesstions === void 0 ? void 0 : discountSuggesstions.filter(function (discount) {
9141
+ return (discount === null || discount === void 0 ? void 0 : discount.productId) == (row === null || row === void 0 ? void 0 : row.productId);
9142
+ })) || [];
9143
+ var showDiscountButton = (productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts.length) > 0;
9144
+ var firstSuggestion = productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts[0];
7835
9145
  React.useEffect(function () {
7836
9146
  setQuantity(row === null || row === void 0 ? void 0 : row.quantity);
7837
9147
  }, [row]);
@@ -7870,7 +9180,7 @@ var CardRow = function CardRow(_ref) {
7870
9180
  tabIndex: -1,
7871
9181
  key: row.ProductId,
7872
9182
  size: styles === null || styles === void 0 ? void 0 : (_styles$price = styles.price) === null || _styles$price === void 0 ? void 0 : _styles$price.size,
7873
- 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)
9183
+ 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)
7874
9184
  }, /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7875
9185
  padding: "checkbox",
7876
9186
  style: {
@@ -7906,6 +9216,15 @@ var CardRow = function CardRow(_ref) {
7906
9216
  }, row.productName), /*#__PURE__*/React__default.createElement(CouponDiscountName, {
7907
9217
  discountAmount: row === null || row === void 0 ? void 0 : row.couponDiscount,
7908
9218
  discountName: row === null || row === void 0 ? void 0 : row.couponCode
9219
+ }), showDiscountSuggestions && showDiscountButton && firstSuggestion && /*#__PURE__*/React__default.createElement(DiscountSuggestionPreview, {
9220
+ coupon: firstSuggestion,
9221
+ productPrice: (row === null || row === void 0 ? void 0 : row.standardPrice) || 0,
9222
+ cartQuantity: (row === null || row === void 0 ? void 0 : row.quantity) || 0,
9223
+ primaryColor: accentColor,
9224
+ loading: loading,
9225
+ onViewOffers: function onViewOffers() {
9226
+ return setDiscountModalOpen(true);
9227
+ }
7909
9228
  }), !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", {
7910
9229
  style: {
7911
9230
  color: 'red',
@@ -7982,7 +9301,7 @@ var CardRow = function CardRow(_ref) {
7982
9301
  discountAmount: row === null || row === void 0 ? void 0 : row.couponDiscount
7983
9302
  }))), /*#__PURE__*/React__default.createElement(CartTableCell$1, {
7984
9303
  alig: "center"
7985
- }, /*#__PURE__*/React__default.createElement(DeleteBtn, {
9304
+ }, /*#__PURE__*/React__default.createElement(ActionCell, null, /*#__PURE__*/React__default.createElement(DeleteBtn, {
7986
9305
  onClick: function onClick(e) {
7987
9306
  e.stopPropagation();
7988
9307
  if (loading) return;
@@ -7994,7 +9313,17 @@ var CardRow = function CardRow(_ref) {
7994
9313
  style: {
7995
9314
  fontSize: 'inherit'
7996
9315
  }
7997
- }))));
9316
+ }))), /*#__PURE__*/React__default.createElement(DiscountSuggestionsModal, {
9317
+ open: discountModalOpen,
9318
+ onClose: function onClose() {
9319
+ return setDiscountModalOpen(false);
9320
+ },
9321
+ productName: row === null || row === void 0 ? void 0 : row.productName,
9322
+ productDiscounts: productDiscounts,
9323
+ primaryColor: accentColor,
9324
+ cartQuantity: (row === null || row === void 0 ? void 0 : row.quantity) || 0,
9325
+ productPrice: (row === null || row === void 0 ? void 0 : row.standardPrice) || 0
9326
+ })));
7998
9327
  };
7999
9328
 
8000
9329
  var DEFAULT_PAGE_SIZE = 50;
@@ -8125,12 +9454,17 @@ function EnhancedTable(_ref2) {
8125
9454
  disabledSelectAllProductCheckbox = _ref2.disabledSelectAllProductCheckbox,
8126
9455
  clickRedirect = _ref2.clickRedirect,
8127
9456
  allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref2.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8128
- doNotShowPrice = _ref2.doNotShowPrice;
9457
+ doNotShowPrice = _ref2.doNotShowPrice,
9458
+ showDiscountSuggestions = _ref2.showDiscountSuggestions;
8129
9459
  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) {
8130
9460
  return _extends({}, li, {
8131
9461
  subtotal: li.standardPrice * li.quantity
8132
9462
  });
8133
9463
  });
9464
+ var discountSuggesstions = React.useMemo(function () {
9465
+ var _cartData$suggestions;
9466
+ return (_cartData$suggestions = cartData === null || cartData === void 0 ? void 0 : cartData.suggestions) != null ? _cartData$suggestions : [];
9467
+ }, [cartData === null || cartData === void 0 ? void 0 : cartData.suggestions]);
8134
9468
  var _React$useState = React.useState('asc'),
8135
9469
  order = _React$useState[0],
8136
9470
  setOrder = _React$useState[1];
@@ -8253,8 +9587,10 @@ function EnhancedTable(_ref2) {
8253
9587
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8254
9588
  doNotShowPrice: doNotShowPrice
8255
9589
  }), /*#__PURE__*/React.createElement(TableBody, null, paginatedCartArray.map(function (row, index) {
9590
+ var _row$productId;
8256
9591
  var isItemSelected = isSelected(row);
8257
9592
  return /*#__PURE__*/React.createElement(CardRow, {
9593
+ key: (_row$productId = row === null || row === void 0 ? void 0 : row.productId) != null ? _row$productId : index,
8258
9594
  row: row,
8259
9595
  isItemSelected: isItemSelected,
8260
9596
  handleClick: handleClick,
@@ -8265,7 +9601,9 @@ function EnhancedTable(_ref2) {
8265
9601
  handleRemoveProduct: handleRemoveProduct,
8266
9602
  clickRedirect: clickRedirect,
8267
9603
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8268
- doNotShowPrice: doNotShowPrice
9604
+ doNotShowPrice: doNotShowPrice,
9605
+ discountSuggesstions: discountSuggesstions,
9606
+ showDiscountSuggestions: showDiscountSuggestions
8269
9607
  });
8270
9608
  }))))), /*#__PURE__*/React.createElement("div", {
8271
9609
  style: {
@@ -8335,35 +9673,56 @@ function EnhancedTable(_ref2) {
8335
9673
  }))))));
8336
9674
  }
8337
9675
 
8338
- var _templateObject$v, _templateObject2$n, _templateObject3$h, _templateObject4$e, _templateObject5$a, _templateObject6$8, _templateObject7$6;
8339
- var CartPageCard = styled__default.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"])));
8340
- var CartPageImg = styled__default.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) {
9676
+ var _templateObject$y, _templateObject2$p, _templateObject3$j, _templateObject4$g, _templateObject5$c, _templateObject6$a, _templateObject7$8;
9677
+ var CartPageCard = styled__default.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"])));
9678
+ var CartPageImg = styled__default.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) {
8341
9679
  return props.width || 'auto';
8342
9680
  }, function (props) {
8343
9681
  return props.height || 'auto';
8344
9682
  });
8345
- var NameAndQtBox = styled__default.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"])));
8346
- var CartPageCardName = styled__default.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"])));
8347
- var QtAndPriceBox = styled__default.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"])));
8348
- var CartPageQtBox = styled__default.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"])));
8349
- var CloseBtn = styled__default.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"])));
9683
+ var NameAndQtBox = styled__default.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"])));
9684
+ var CartPageCardName = styled__default.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"])));
9685
+ var QtAndPriceBox = styled__default.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"])));
9686
+ var CartPageQtBox = styled__default.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"])));
9687
+ var CloseBtn = styled__default.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"])));
8350
9688
 
8351
- var CartPageProductCard = function CartPageProductCard(_ref) {
8352
- var item = _ref.item,
8353
- imgnotfoundUrl = _ref.imgnotfoundUrl,
8354
- handleIncrementDecrement = _ref.handleIncrementDecrement,
8355
- handleRemoveProduct = _ref.handleRemoveProduct,
8356
- loading = _ref.loading,
8357
- imgSize = _ref.imgSize,
8358
- clickRedirect = _ref.clickRedirect,
8359
- allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8360
- doNotShowPrice = _ref.doNotShowPrice;
9689
+ var _templateObject$z;
9690
+ var DiscountBtn$1 = styled__default.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) {
9691
+ var $accentColor = _ref.$accentColor;
9692
+ return $accentColor || '#437C0F';
9693
+ }, function (_ref2) {
9694
+ var $accentColor = _ref2.$accentColor;
9695
+ return $accentColor || '#437C0F';
9696
+ });
9697
+ var CartPageProductCard = function CartPageProductCard(_ref3) {
9698
+ var _styles$Btn;
9699
+ var item = _ref3.item,
9700
+ imgnotfoundUrl = _ref3.imgnotfoundUrl,
9701
+ handleIncrementDecrement = _ref3.handleIncrementDecrement,
9702
+ handleRemoveProduct = _ref3.handleRemoveProduct,
9703
+ loading = _ref3.loading,
9704
+ imgSize = _ref3.imgSize,
9705
+ styles = _ref3.styles,
9706
+ clickRedirect = _ref3.clickRedirect,
9707
+ allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref3.allowToProcessInvoiceForOutOfStockProductsEcommerce,
9708
+ doNotShowPrice = _ref3.doNotShowPrice,
9709
+ discountSuggesstions = _ref3.discountSuggesstions,
9710
+ showDiscountSuggestions = _ref3.showDiscountSuggestions;
8361
9711
  var imgnotfoundUrlcommon = noImgAvailable$1;
8362
9712
  if (imgnotfoundUrl && imgnotfoundUrl !== 'null') imgnotfoundUrlcommon = imgnotfoundUrl;
8363
9713
  var timer = React.useRef();
8364
9714
  var _useState = React.useState(item === null || item === void 0 ? void 0 : item.quantity),
8365
9715
  quantity = _useState[0],
8366
9716
  setQuantity = _useState[1];
9717
+ var _useState2 = React.useState(false),
9718
+ discountModalOpen = _useState2[0],
9719
+ setDiscountModalOpen = _useState2[1];
9720
+ 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);
9721
+ var productDiscounts = (discountSuggesstions === null || discountSuggesstions === void 0 ? void 0 : discountSuggesstions.filter(function (discount) {
9722
+ return (discount === null || discount === void 0 ? void 0 : discount.productId) == (item === null || item === void 0 ? void 0 : item.productId);
9723
+ })) || [];
9724
+ var showDiscountButton = (productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts.length) > 0;
9725
+ var firstSuggestion = productDiscounts === null || productDiscounts === void 0 ? void 0 : productDiscounts[0];
8367
9726
  React.useEffect(function () {
8368
9727
  setQuantity(item === null || item === void 0 ? void 0 : item.quantity);
8369
9728
  }, [item]);
@@ -8392,6 +9751,10 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8392
9751
  }
8393
9752
  }, 500);
8394
9753
  };
9754
+ var openDiscountModal = function openDiscountModal() {
9755
+ if (loading) return;
9756
+ setDiscountModalOpen(true);
9757
+ };
8395
9758
  return /*#__PURE__*/React__default.createElement(CartPageCard, null, /*#__PURE__*/React__default.createElement(CartPageImg, {
8396
9759
  src: item.imageUrl && item.imageUrl !== 'null' ? item.imageUrl : imgnotfoundUrlcommon,
8397
9760
  alt: 'img',
@@ -8411,7 +9774,14 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8411
9774
  })), !doNotShowPrice && /*#__PURE__*/React__default.createElement("p", null, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
8412
9775
  totalAmount: item === null || item === void 0 ? void 0 : item.standardPrice,
8413
9776
  discountAmount: item === null || item === void 0 ? void 0 : item.discountAmount
8414
- }))), /*#__PURE__*/React__default.createElement(QtAndPriceBox, null, /*#__PURE__*/React__default.createElement(CartPageQtBox, null, /*#__PURE__*/React__default.createElement("span", {
9777
+ }))), showDiscountSuggestions && showDiscountButton && firstSuggestion && /*#__PURE__*/React__default.createElement(DiscountSuggestionPreview, {
9778
+ coupon: firstSuggestion,
9779
+ productPrice: (item === null || item === void 0 ? void 0 : item.standardPrice) || 0,
9780
+ cartQuantity: (item === null || item === void 0 ? void 0 : item.quantity) || 0,
9781
+ primaryColor: accentColor,
9782
+ loading: loading,
9783
+ onViewOffers: openDiscountModal
9784
+ }), /*#__PURE__*/React__default.createElement(QtAndPriceBox, null, /*#__PURE__*/React__default.createElement(CartPageQtBox, null, /*#__PURE__*/React__default.createElement("span", {
8415
9785
  className: "icon",
8416
9786
  onClick: function onClick() {
8417
9787
  if (loading) return;
@@ -8461,7 +9831,17 @@ var CartPageProductCard = function CartPageProductCard(_ref) {
8461
9831
  if (!sure) return;
8462
9832
  handleRemoveProduct(item);
8463
9833
  }
8464
- }, /*#__PURE__*/React__default.createElement(ri.RiDeleteBin5Line, null)));
9834
+ }, /*#__PURE__*/React__default.createElement(ri.RiDeleteBin5Line, null)), /*#__PURE__*/React__default.createElement(DiscountSuggestionsModal, {
9835
+ open: discountModalOpen,
9836
+ onClose: function onClose() {
9837
+ return setDiscountModalOpen(false);
9838
+ },
9839
+ productName: item === null || item === void 0 ? void 0 : item.productName,
9840
+ productDiscounts: productDiscounts,
9841
+ primaryColor: accentColor,
9842
+ cartQuantity: (item === null || item === void 0 ? void 0 : item.quantity) || 0,
9843
+ productPrice: (item === null || item === void 0 ? void 0 : item.standardPrice) || 0
9844
+ }));
8465
9845
  };
8466
9846
 
8467
9847
  var DEFAULT_PAGE_SIZE$1 = 50;
@@ -8477,7 +9857,8 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8477
9857
  styles = _ref.styles,
8478
9858
  clickRedirect = _ref.clickRedirect,
8479
9859
  allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref.allowToProcessInvoiceForOutOfStockProductsEcommerce,
8480
- doNotShowPrice = _ref.doNotShowPrice;
9860
+ doNotShowPrice = _ref.doNotShowPrice,
9861
+ showDiscountSuggestions = _ref.showDiscountSuggestions;
8481
9862
  var _useState = React.useState(1),
8482
9863
  page = _useState[0],
8483
9864
  setPage = _useState[1];
@@ -8505,6 +9886,7 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8505
9886
  color: styles === null || styles === void 0 ? void 0 : (_styles$Btn = styles.Btn) === null || _styles$Btn === void 0 ? void 0 : _styles$Btn.background,
8506
9887
  loading: true
8507
9888
  })), paginatedCartArray.map(function (item) {
9889
+ var _cartData$suggestions;
8508
9890
  return /*#__PURE__*/React__default.createElement(CartPageProductCard, {
8509
9891
  key: item === null || item === void 0 ? void 0 : item.productId,
8510
9892
  item: item,
@@ -8513,9 +9895,12 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8513
9895
  handleIncrementDecrement: handleIncrementDecrement,
8514
9896
  handleRemoveProduct: handleRemoveProduct,
8515
9897
  imgSize: styles === null || styles === void 0 ? void 0 : styles.imgSize,
9898
+ styles: styles,
8516
9899
  clickRedirect: clickRedirect,
8517
9900
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8518
- doNotShowPrice: doNotShowPrice
9901
+ doNotShowPrice: doNotShowPrice,
9902
+ discountSuggesstions: (_cartData$suggestions = cartData === null || cartData === void 0 ? void 0 : cartData.suggestions) != null ? _cartData$suggestions : [],
9903
+ showDiscountSuggestions: showDiscountSuggestions
8519
9904
  });
8520
9905
  }))), sortedCartArray.length > 0 && /*#__PURE__*/React__default.createElement(PaginationRow, null, totalPages > 1 && /*#__PURE__*/React__default.createElement(material.Pagination, {
8521
9906
  count: totalPages,
@@ -8564,23 +9949,23 @@ var CartPageMainRetail = function CartPageMainRetail(_ref) {
8564
9949
  })))));
8565
9950
  };
8566
9951
 
8567
- var _templateObject$w, _templateObject2$o, _templateObject3$i, _templateObject4$f, _templateObject5$b, _templateObject6$9, _templateObject7$7, _templateObject8$5;
8568
- var CartSummaryContainer = styled__default.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) {
9952
+ var _templateObject$A, _templateObject2$q, _templateObject3$k, _templateObject4$h, _templateObject5$d, _templateObject6$b, _templateObject7$9, _templateObject8$7;
9953
+ var CartSummaryContainer = styled__default.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) {
8569
9954
  return props.background || '#667080';
8570
9955
  }, function (props) {
8571
9956
  return props.color || 'white';
8572
9957
  }, function (props) {
8573
9958
  return props.color || 'white';
8574
9959
  });
8575
- var CartSummaryRow = styled__default.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) {
9960
+ var CartSummaryRow = styled__default.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) {
8576
9961
  return props.justify || 'space-between';
8577
9962
  }, function (props) {
8578
9963
  return props.h5 || '1.31em';
8579
9964
  });
8580
- var CartSummaryHr = styled__default.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) {
9965
+ var CartSummaryHr = styled__default.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) {
8581
9966
  return props.color || 'rgba(255, 255, 255, 0.5)';
8582
9967
  });
8583
- var CartSummaryInputBox = styled__default.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) {
9968
+ var CartSummaryInputBox = styled__default.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) {
8584
9969
  return props.paddingBottom ? '0' : '0';
8585
9970
  }, function (props) {
8586
9971
  return props.background || '#bfc3ca';
@@ -8595,16 +9980,16 @@ var CartSummaryInputBox = styled__default.form(_templateObject4$f || (_templateO
8595
9980
  }, function (props) {
8596
9981
  return props.btn || '#393f48';
8597
9982
  });
8598
- var DiscountCouponContainer = styled__default.div(_templateObject5$b || (_templateObject5$b = _taggedTemplateLiteralLoose(["\n padding-top: 0.5rem;\n width: 100%;\n max-height: 200px;\n overflow: auto;\n"])));
8599
- var DiscountCouponCard = styled__default.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) {
9983
+ var DiscountCouponContainer = styled__default.div(_templateObject5$d || (_templateObject5$d = _taggedTemplateLiteralLoose(["\n padding-top: 0.5rem;\n width: 100%;\n max-height: 200px;\n overflow: auto;\n"])));
9984
+ var DiscountCouponCard = styled__default.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) {
8600
9985
  return props.btn || '#393f48';
8601
9986
  });
8602
- var CartSummaryCheckoutBtn = styled__default.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) {
9987
+ var CartSummaryCheckoutBtn = styled__default.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) {
8603
9988
  return props.background || '#393f48';
8604
9989
  }, function (props) {
8605
9990
  return props.color || 'inherit';
8606
9991
  });
8607
- var CartSummaryCheckBoxRow = styled__default(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) {
9992
+ var CartSummaryCheckBoxRow = styled__default(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) {
8608
9993
  return props.background || 'white';
8609
9994
  }, function (props) {
8610
9995
  return props.selected ? props.background : 'transparent';
@@ -8833,7 +10218,9 @@ var CartPageComponent = function CartPageComponent(_ref) {
8833
10218
  styles = _ref.styles,
8834
10219
  onChangeDiscountCoupon = _ref.onChangeDiscountCoupon,
8835
10220
  _ref$doNotShowPrice = _ref.doNotShowPrice,
8836
- doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice;
10221
+ doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice,
10222
+ _ref$showDiscountSugg = _ref.showDiscountSuggestions,
10223
+ showDiscountSuggestions = _ref$showDiscountSugg === void 0 ? false : _ref$showDiscountSugg;
8837
10224
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
8838
10225
  apiEndPoint: apiEndPoint,
8839
10226
  token: token
@@ -8957,7 +10344,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
8957
10344
  handleRemoveProduct: handleRemoveProduct,
8958
10345
  clickRedirect: clickRedirect,
8959
10346
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8960
- doNotShowPrice: doNotShowPrice
10347
+ doNotShowPrice: doNotShowPrice,
10348
+ showDiscountSuggestions: showDiscountSuggestions
8961
10349
  }) : /*#__PURE__*/React__default.createElement(EnhancedTable, {
8962
10350
  retail: retail,
8963
10351
  clickRedirect: clickRedirect,
@@ -8970,7 +10358,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
8970
10358
  handleRemoveAll: handleRemoveAll,
8971
10359
  disabledSelectAllProductCheckbox: disabledSelectAllProductCheckbox,
8972
10360
  allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
8973
- doNotShowPrice: doNotShowPrice
10361
+ doNotShowPrice: doNotShowPrice,
10362
+ showDiscountSuggestions: showDiscountSuggestions
8974
10363
  }), /*#__PURE__*/React__default.createElement(CartSummary, {
8975
10364
  apiEndPoint: apiEndPoint,
8976
10365
  token: token,
@@ -9011,12 +10400,12 @@ var checkMinMaxQty = function checkMinMaxQty(_ref2) {
9011
10400
  return quantityReturn;
9012
10401
  };
9013
10402
 
9014
- var _templateObject$x, _templateObject2$p, _templateObject3$j;
9015
- var CartDrawerProduct = styled__default.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) {
10403
+ var _templateObject$B, _templateObject2$r, _templateObject3$l;
10404
+ var CartDrawerProduct = styled__default.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) {
9016
10405
  return props.color || 'grey';
9017
10406
  });
9018
- var CartDrawerQtBox = styled__default.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"])));
9019
- var CartDrawerLoader = styled__default.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"])));
10407
+ var CartDrawerQtBox = styled__default.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"])));
10408
+ var CartDrawerLoader = styled__default.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"])));
9020
10409
 
9021
10410
  var CartDrawerProductCard = function CartDrawerProductCard(_ref) {
9022
10411
  var product = _ref.product,
@@ -9277,7 +10666,7 @@ var GTagManager = function GTagManager(_ref) {
9277
10666
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
9278
10667
  };
9279
10668
 
9280
- var _templateObject$y, _templateObject2$q, _templateObject3$k, _templateObject4$g, _templateObject5$c, _templateObject6$a;
10669
+ var _templateObject$C, _templateObject2$s, _templateObject3$m, _templateObject4$i, _templateObject5$e, _templateObject6$c;
9281
10670
  var OutOfStock = function OutOfStock(_ref) {
9282
10671
  var _product$body, _product$body$content, _product$body2, _product$body2$conten, _product$masterProduc, _product$header;
9283
10672
  var product = _ref.product,
@@ -9425,7 +10814,7 @@ var OutOfStock = function OutOfStock(_ref) {
9425
10814
  fontSize: '1.3rem',
9426
10815
  fontWeight: 600
9427
10816
  }
9428
- }, "Get notified when this item is in-stock"), (outofstockproducts === null || outofstockproducts === void 0 ? void 0 : outofstockproducts.length) > 0 && /*#__PURE__*/React__default.createElement(TableContainer$3, {
10817
+ }, "Get notified when this item is in-stock"), (outofstockproducts === null || outofstockproducts === void 0 ? void 0 : outofstockproducts.length) > 0 && /*#__PURE__*/React__default.createElement(TableContainer$4, {
9429
10818
  style: {
9430
10819
  maxHeight: 400
9431
10820
  },
@@ -9508,13 +10897,13 @@ var OutOfStock = function OutOfStock(_ref) {
9508
10897
  }
9509
10898
  }), /*#__PURE__*/React__default.createElement("span", null, subscribed ? 'Subscribed Successfully' : 'Subscribe')))))));
9510
10899
  };
9511
- var VariantsContainer = styled__default.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"])));
9512
- var MainCheckbox = styled__default(Checkbox)(_templateObject2$q || (_templateObject2$q = _taggedTemplateLiteralLoose(["\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n }\n"])), function (props) {
10900
+ var VariantsContainer = styled__default.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"])));
10901
+ var MainCheckbox = styled__default(Checkbox)(_templateObject2$s || (_templateObject2$s = _taggedTemplateLiteralLoose(["\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n }\n"])), function (props) {
9513
10902
  return props.theme.primaryColor;
9514
10903
  });
9515
- var EmailInput = styled__default(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"])));
9516
- var Root$a = styled__default.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"])));
9517
- var ContainerDiv = styled__default.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) {
10904
+ var EmailInput = styled__default(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"])));
10905
+ var Root$a = styled__default.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"])));
10906
+ var ContainerDiv = styled__default.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) {
9518
10907
  return props.height ? props.height : 'auto';
9519
10908
  }, function (props) {
9520
10909
  return props.margin ? props.margin : '0.3rem 0';
@@ -9525,7 +10914,7 @@ var ContainerDiv = styled__default.div(_templateObject5$c || (_templateObject5$c
9525
10914
  }, function (props) {
9526
10915
  return props.justifyContent ? props.justifyContent : 'default';
9527
10916
  });
9528
- var StyledSubscribe = styled__default.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) {
10917
+ var StyledSubscribe = styled__default.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) {
9529
10918
  return props.theme.primaryColor;
9530
10919
  }, function (props) {
9531
10920
  return props.padding ? props.padding : '5px 15px';
@@ -9545,12 +10934,12 @@ var StyledSubscribe = styled__default.button(_templateObject6$a || (_templateObj
9545
10934
  return props.Loading || props.subscribed ? 'none' : 'auto';
9546
10935
  });
9547
10936
 
9548
- var _templateObject$z;
10937
+ var _templateObject$D;
9549
10938
  var NoData = function NoData(_ref) {
9550
10939
  _objectDestructuringEmpty(_ref);
9551
10940
  return /*#__PURE__*/React__default.createElement(CustomNoRowsOverlay, null);
9552
10941
  };
9553
- var Container$1 = styled__default.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"])));
10942
+ var Container$1 = styled__default.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"])));
9554
10943
  var CustomNoRowsOverlay = function CustomNoRowsOverlay(_ref2) {
9555
10944
  _objectDestructuringEmpty(_ref2);
9556
10945
  return /*#__PURE__*/React__default.createElement(Container$1, null, /*#__PURE__*/React__default.createElement("svg", {
@@ -9660,7 +11049,7 @@ var SelectStyle = function SelectStyle(hasError) {
9660
11049
  };
9661
11050
  };
9662
11051
 
9663
- var _excluded$5 = ["value", "onChange", "placeholder", "searchProductLable", "apiData", "selectedValueKey", "loadOptionsMethod", "onScanUpdate", "minSearchChar", "searchLabelRequired", "onUpdate", "autoFocus", "defaultOptions", "initialOptions", "addItemLabel", "onAddItem", "searchResultSize"];
11052
+ var _excluded$6 = ["value", "onChange", "placeholder", "searchProductLable", "apiData", "selectedValueKey", "loadOptionsMethod", "onScanUpdate", "minSearchChar", "searchLabelRequired", "onUpdate", "autoFocus", "defaultOptions", "initialOptions", "addItemLabel", "onAddItem", "searchResultSize"];
9664
11053
  var AsyncSelectField = function AsyncSelectField(_ref) {
9665
11054
  var value = _ref.value,
9666
11055
  onChange = _ref.onChange,
@@ -9681,7 +11070,7 @@ var AsyncSelectField = function AsyncSelectField(_ref) {
9681
11070
  addItemLabel = _ref.addItemLabel,
9682
11071
  onAddItem = _ref.onAddItem,
9683
11072
  searchResultSize = _ref.searchResultSize,
9684
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
11073
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
9685
11074
  var DEFAULT_SEARCH_RESULT_SIZE = searchResultSize || 20;
9686
11075
  var labelKey = apiData.labelKey || 'name';
9687
11076
  var queryParam = apiData.queryParam || 'name';
@@ -10017,28 +11406,28 @@ var AsyncSelect = function AsyncSelect(_ref3) {
10017
11406
  return /*#__PURE__*/React__default.createElement(AsyncSelectField, props);
10018
11407
  };
10019
11408
 
10020
- var _templateObject$A;
10021
- var Container$2 = styled__default.div(_templateObject$A || (_templateObject$A = _taggedTemplateLiteralLoose([""])));
11409
+ var _templateObject$E;
11410
+ var Container$2 = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose([""])));
10022
11411
 
10023
- var _templateObject$B, _templateObject2$r, _templateObject3$l, _templateObject4$h, _templateObject5$d, _templateObject6$b;
10024
- var ProductImage$1 = styled__default.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"])));
10025
- var ProductName$1 = styled__default.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) {
11412
+ var _templateObject$F, _templateObject2$t, _templateObject3$n, _templateObject4$j, _templateObject5$f, _templateObject6$d;
11413
+ var ProductImage$1 = styled__default.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"])));
11414
+ var ProductName$1 = styled__default.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) {
10026
11415
  return props.size || '1em';
10027
11416
  }, function (props) {
10028
11417
  return props.maxHeight ? props.maxHeight + "em" : '2.75em';
10029
11418
  }, function (props) {
10030
11419
  return props.maxHeight ? props.maxHeight + "em" : '2.80em';
10031
11420
  });
10032
- var CartTableRow$1 = styled__default(material.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) {
11421
+ var CartTableRow$1 = styled__default(material.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) {
10033
11422
  return props.size || '1.19em';
10034
11423
  }, function (prop) {
10035
11424
  return prop.bg;
10036
11425
  }, function (prop) {
10037
11426
  return prop.bg;
10038
11427
  });
10039
- var CartTableCell$2 = styled__default(material.TableCell)(_templateObject4$h || (_templateObject4$h = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
10040
- var QuantityBox$1 = styled__default.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"])));
10041
- var DeleteBtn$1 = styled__default.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"])));
11428
+ var CartTableCell$2 = styled__default(material.TableCell)(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n && {\n border: none !important;\n font-size: 1em;\n }\n"])));
11429
+ var QuantityBox$1 = styled__default.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"])));
11430
+ var DeleteBtn$1 = styled__default.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"])));
10042
11431
  var CardRow$1 = function CardRow(_ref) {
10043
11432
  var _styles$price, _styles$Btn, _row$standardPrice, _row$subtotal;
10044
11433
  var row = _ref.row,
@@ -10156,13 +11545,13 @@ var CardRow$1 = function CardRow(_ref) {
10156
11545
  }))));
10157
11546
  };
10158
11547
 
10159
- var _templateObject$C, _templateObject2$s, _templateObject3$m, _templateObject4$i, _templateObject5$e, _templateObject6$c, _templateObject7$8, _templateObject8$6, _templateObject9$5;
10160
- var CartPageSection$1 = styled__default.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) {
11548
+ var _templateObject$G, _templateObject2$u, _templateObject3$o, _templateObject4$k, _templateObject5$g, _templateObject6$e, _templateObject7$a, _templateObject8$8, _templateObject9$6;
11549
+ var CartPageSection$1 = styled__default.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) {
10161
11550
  return props.bg;
10162
11551
  }, function (props) {
10163
11552
  return props.bg || '#FAE8E5';
10164
11553
  });
10165
- var CartPageContainer$1 = styled__default.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) {
11554
+ var CartPageContainer$1 = styled__default.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) {
10166
11555
  return props.maxWidth || '1600px';
10167
11556
  }, function (props) {
10168
11557
  return "min(" + (props.maxWidth || '1600px') + ",100%)";
@@ -10173,16 +11562,16 @@ var CartPageContainer$1 = styled__default.div(_templateObject2$s || (_templateOb
10173
11562
  }, function (props) {
10174
11563
  return props.color || '#BFC3CA';
10175
11564
  });
10176
- var CardsBox$1 = styled__default.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) {
11565
+ var CardsBox$1 = styled__default.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) {
10177
11566
  return props.retail ? 'grid' : 'flex';
10178
11567
  });
10179
- var CartHeading$1 = styled__default.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) {
11568
+ var CartHeading$1 = styled__default.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) {
10180
11569
  return props.color || 'black';
10181
11570
  }, function (props) {
10182
11571
  return props.h1 || 'inherit';
10183
11572
  });
10184
- var Loader$2 = styled__default.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"])));
10185
- var CartTableCell$3 = styled__default(material.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) {
11573
+ var Loader$2 = styled__default.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"])));
11574
+ var CartTableCell$3 = styled__default(material.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) {
10186
11575
  return "" + props.bg;
10187
11576
  }, function (props) {
10188
11577
  return "" + props.color || 'inherit';
@@ -10191,17 +11580,17 @@ var CartTableCell$3 = styled__default(material.TableCell)(_templateObject6$c ||
10191
11580
  }, function (props) {
10192
11581
  return "" + props.color || 'inherit';
10193
11582
  });
10194
- var CartTableContainer$1 = styled__default(material.TableContainer)(_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) {
11583
+ var CartTableContainer$1 = styled__default(material.TableContainer)(_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) {
10195
11584
  return props.bg || '#fdccc480';
10196
11585
  }, function (props) {
10197
11586
  return props.color || 'red';
10198
11587
  });
10199
- var CartButtonsRow$1 = styled__default.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) {
11588
+ var CartButtonsRow$1 = styled__default.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) {
10200
11589
  return props.bg || 'rgba(107, 106, 106, 1)';
10201
11590
  }, function (props) {
10202
11591
  return props.color || 'white';
10203
11592
  });
10204
- var CartPageBox$1 = styled__default.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"])));
11593
+ var CartPageBox$1 = styled__default.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"])));
10205
11594
 
10206
11595
  var headCells$1 = [{
10207
11596
  id: 'image',
@@ -10606,7 +11995,7 @@ var SnowfallComponent = function SnowfallComponent(_ref) {
10606
11995
  }) : null;
10607
11996
  };
10608
11997
 
10609
- var _templateObject$D, _templateObject2$t;
11998
+ var _templateObject$H, _templateObject2$v;
10610
11999
  var ContactUsForm = function ContactUsForm(_ref) {
10611
12000
  var apiEndPoint = _ref.apiEndPoint,
10612
12001
  serviceApiEndPoint = _ref.serviceApiEndPoint,
@@ -10731,15 +12120,15 @@ var ContactUsForm = function ContactUsForm(_ref) {
10731
12120
  }
10732
12121
  }, "Submit"))));
10733
12122
  };
10734
- var TypographyContainer$8 = styled__default(material.Typography)(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n font-size: 1.2rem !important;\n align-items: center;\n"])), function (props) {
12123
+ var TypographyContainer$8 = styled__default(material.Typography)(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n font-size: 1.2rem !important;\n align-items: center;\n"])), function (props) {
10735
12124
  return props.fontColor;
10736
12125
  });
10737
- var RootContainer$3 = styled__default(material.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) {
12126
+ var RootContainer$3 = styled__default(material.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) {
10738
12127
  return props.secondaryColor;
10739
12128
  });
10740
12129
 
10741
- var _templateObject$E;
10742
- var StaticContainer = styled__default.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) {
12130
+ var _templateObject$I;
12131
+ var StaticContainer = styled__default.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) {
10743
12132
  return props.theme.fontColor || '#606060';
10744
12133
  }, function (props) {
10745
12134
  return props.theme.primaryColor;
@@ -10751,7 +12140,7 @@ var StaticContainer = styled__default.div(_templateObject$E || (_templateObject$
10751
12140
  return props.theme.fontColor || '#606060';
10752
12141
  });
10753
12142
 
10754
- var _templateObject$F;
12143
+ var _templateObject$J;
10755
12144
  var APIStaticPage = function APIStaticPage(_ref) {
10756
12145
  var _ref$colors = _ref.colors,
10757
12146
  colors = _ref$colors === void 0 ? {
@@ -10939,10 +12328,10 @@ var APIStaticPage = function APIStaticPage(_ref) {
10939
12328
  }
10940
12329
  }, "Not found"))));
10941
12330
  };
10942
- var Root$b = styled__default(material.Box)(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n img {\n max-width: 100%;\n }\n"])));
12331
+ var Root$b = styled__default(material.Box)(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n img {\n max-width: 100%;\n }\n"])));
10943
12332
 
10944
- var _templateObject$G;
10945
- var StaticContainer$1 = styled__default.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) {
12333
+ var _templateObject$K;
12334
+ var StaticContainer$1 = styled__default.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) {
10946
12335
  return props.theme.fontColor || '#606060';
10947
12336
  }, function (props) {
10948
12337
  return props.theme.primaryColor;
@@ -10954,7 +12343,7 @@ var StaticContainer$1 = styled__default.div(_templateObject$G || (_templateObjec
10954
12343
  return props.theme.fontColor || '#606060';
10955
12344
  });
10956
12345
 
10957
- var _templateObject$H;
12346
+ var _templateObject$L;
10958
12347
  var StaticPage = function StaticPage(_ref) {
10959
12348
  var _data$content;
10960
12349
  var _ref$colors = _ref.colors,
@@ -11022,9 +12411,9 @@ var StaticPage = function StaticPage(_ref) {
11022
12411
  referrerPolicy: "no-referrer-when-downgrade"
11023
12412
  })))));
11024
12413
  };
11025
- var Root$c = styled__default(material.Box)(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose([""])));
12414
+ var Root$c = styled__default(material.Box)(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose([""])));
11026
12415
 
11027
- var _templateObject$I;
12416
+ var _templateObject$M;
11028
12417
  var StaticPageList = function StaticPageList(_ref) {
11029
12418
  var _sortBy;
11030
12419
  var apiEndPoint = _ref.apiEndPoint,
@@ -11132,9 +12521,9 @@ var StaticPageList = function StaticPageList(_ref) {
11132
12521
  }
11133
12522
  }, "Not found")))));
11134
12523
  };
11135
- var TitleContainer$2 = styled__default.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"])));
12524
+ var TitleContainer$2 = styled__default.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"])));
11136
12525
 
11137
- var _excluded$6 = ["userName", "children", "style"];
12526
+ var _excluded$7 = ["userName", "children", "style"];
11138
12527
  var colors$1 = ['#FFB900', '#D83B01', '#B50E0E', '#E81123', '#B4009E', '#5C2D91', '#0078D7', '#00B4FF', '#008272', '#107C10'];
11139
12528
  var getRandomColor = function getRandomColor(userName) {
11140
12529
  return colors$1[(userName === null || userName === void 0 ? void 0 : userName.length) % (colors$1 === null || colors$1 === void 0 ? void 0 : colors$1.length)];
@@ -11153,7 +12542,7 @@ var Avatar = function Avatar(_ref) {
11153
12542
  var userName = _ref.userName,
11154
12543
  children = _ref.children,
11155
12544
  style = _ref.style,
11156
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
12545
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
11157
12546
  var backgroundColor = '#1f62ff';
11158
12547
  if (userName) {
11159
12548
  backgroundColor = getRandomColor(userName);
@@ -11168,7 +12557,7 @@ var Avatar = function Avatar(_ref) {
11168
12557
  }));
11169
12558
  };
11170
12559
 
11171
- var _templateObject$J, _templateObject2$u;
12560
+ var _templateObject$N, _templateObject2$w;
11172
12561
  var SwitchUser = function SwitchUser(_ref) {
11173
12562
  var _customerData$filter, _customerData$filter$;
11174
12563
  var apiEndPoint = _ref.apiEndPoint,
@@ -11255,14 +12644,14 @@ var SwitchUser = function SwitchUser(_ref) {
11255
12644
  }, /*#__PURE__*/React__default.createElement(ai.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)))));
11256
12645
  }))));
11257
12646
  };
11258
- var RootContainer$4 = styled__default.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n margin: auto;\n padding: 2.4rem;\n max-width: 1920px;\n"])));
11259
- var CustomerContainer = styled__default.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) {
12647
+ var RootContainer$4 = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n margin: auto;\n padding: 2.4rem;\n max-width: 1920px;\n"])));
12648
+ var CustomerContainer = styled__default.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) {
11260
12649
  return props.theme.primaryColor || '#000000d9';
11261
12650
  }, function (props) {
11262
12651
  return props.theme.primaryColor || '#000000d9';
11263
12652
  });
11264
12653
 
11265
- var _templateObject$K, _templateObject2$v;
12654
+ var _templateObject$O, _templateObject2$x;
11266
12655
  var ThankYou = function ThankYou(_ref) {
11267
12656
  var _ref$id = _ref.id,
11268
12657
  id = _ref$id === void 0 ? 0 : _ref$id,
@@ -11321,8 +12710,8 @@ var ThankYou = function ThankYou(_ref) {
11321
12710
  onClick: onContinue
11322
12711
  }, /*#__PURE__*/React__default.createElement("p", null, "Continue Shopping"))))))));
11323
12712
  };
11324
- var Root$d = styled__default(material.Box)(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose([""])));
11325
- var StyledButton = styled__default.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) {
12713
+ var Root$d = styled__default(material.Box)(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose([""])));
12714
+ var StyledButton = styled__default.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) {
11326
12715
  return props.theme.primaryColor;
11327
12716
  }, function (props) {
11328
12717
  return props.theme.primaryColor;
@@ -11476,38 +12865,38 @@ var DiscountSummaryModal = function DiscountSummaryModal(_ref) {
11476
12865
  }, "Okay"))));
11477
12866
  };
11478
12867
 
11479
- var _templateObject$L, _templateObject2$w, _templateObject3$n, _templateObject4$j, _templateObject5$f, _templateObject6$d, _templateObject7$9, _templateObject8$7;
11480
- var CheckoutRootContainer = styled__default.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) {
12868
+ var _templateObject$P, _templateObject2$y, _templateObject3$p, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$b, _templateObject8$9;
12869
+ var CheckoutRootContainer = styled__default.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) {
11481
12870
  return props.bg;
11482
12871
  });
11483
- var CheckoutPageContainer = styled__default.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) {
12872
+ var CheckoutPageContainer = styled__default.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) {
11484
12873
  return props.maxWidth || '1605px';
11485
12874
  }, function (props) {
11486
12875
  return props.bg || '#fff8f6';
11487
12876
  }, function (props) {
11488
12877
  return props.primaryColor || 'rgba(50, 50, 50, 1)';
11489
12878
  });
11490
- var Row = styled__default.div(_templateObject3$n || (_templateObject3$n = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n"])));
11491
- var CheckoutMainWithHeader = styled__default(material.Stack)(_templateObject4$j || (_templateObject4$j = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
11492
- var CheckoutMain = styled__default.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) {
12879
+ var Row = styled__default.div(_templateObject3$p || (_templateObject3$p = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n"])));
12880
+ var CheckoutMainWithHeader = styled__default(material.Stack)(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
12881
+ var CheckoutMain = styled__default.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) {
11493
12882
  return props.bg || 'rgba(102,112,128,0.5)';
11494
12883
  }, function (props) {
11495
12884
  return props.bg || 'rgba(102,112,128,0.5)';
11496
12885
  }, function (props) {
11497
12886
  return props.color;
11498
12887
  });
11499
- var CheckoutHeading = styled__default.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"])));
11500
- var CheckoutHeader = styled__default(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"])));
11501
- var CheckoutStepIcon = styled__default.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"])));
12888
+ var CheckoutHeading = styled__default.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"])));
12889
+ var CheckoutHeader = styled__default(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"])));
12890
+ var CheckoutStepIcon = styled__default.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"])));
11502
12891
 
11503
- var _templateObject$M, _templateObject2$x, _templateObject3$o;
11504
- var CheckoutSummaryContainer = styled__default.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) {
12892
+ var _templateObject$Q, _templateObject2$z, _templateObject3$q;
12893
+ var CheckoutSummaryContainer = styled__default.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) {
11505
12894
  return props.bg || 'rgba(255, 240, 236, 1)';
11506
12895
  }, function (props) {
11507
12896
  return props.color || ' rgba(50, 50, 50, 1)';
11508
12897
  });
11509
- var TextRow = styled__default.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"])));
11510
- var FilledInfo = styled__default.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"])));
12898
+ var TextRow = styled__default.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"])));
12899
+ var FilledInfo = styled__default.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"])));
11511
12900
 
11512
12901
  var CheckoutSummary = function CheckoutSummary(_ref) {
11513
12902
  var billingInformation = _ref.billingInformation,
@@ -11579,14 +12968,14 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
11579
12968
  }, renderMoney(orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.adjustmentValue))));
11580
12969
  };
11581
12970
 
11582
- 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;
11583
- var StepContainer = styled__default.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"])));
11584
- var StepsContent = styled__default.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) {
12971
+ 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;
12972
+ var StepContainer = styled__default.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"])));
12973
+ var StepsContent = styled__default.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) {
11585
12974
  return 'transparent' + '!important';
11586
12975
  }, function (props) {
11587
12976
  return props.bg || 'red';
11588
12977
  });
11589
- var StepsHeaderContainer = styled__default.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) {
12978
+ var StepsHeaderContainer = styled__default.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) {
11590
12979
  return props.single ? '1.8em 2em' : '1em 0';
11591
12980
  }, function (props) {
11592
12981
  return props.single ? '-1.56em' : '1em';
@@ -11599,11 +12988,11 @@ var StepsHeaderContainer = styled__default.div(_templateObject3$p || (_templateO
11599
12988
  }, function (props) {
11600
12989
  return props.username ? 'not-allowed' : 'pointer';
11601
12990
  });
11602
- var TextFeildContainer = styled__default.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) {
12991
+ var TextFeildContainer = styled__default.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) {
11603
12992
  var _props$theme, _props$theme$input;
11604
12993
  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';
11605
12994
  });
11606
- var CommonCheckoutBtn = styled__default.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) {
12995
+ var CommonCheckoutBtn = styled__default.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) {
11607
12996
  return props.width || '8.05em';
11608
12997
  }, function (props) {
11609
12998
  return props.height || '2.25em';
@@ -11616,7 +13005,7 @@ var CommonCheckoutBtn = styled__default.button(_templateObject5$g || (_templateO
11616
13005
  });
11617
13006
  var Select = styled__default.div.attrs({
11618
13007
  className: 'checkout-input'
11619
- })(_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) {
13008
+ })(_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) {
11620
13009
  var _props$theme2, _props$theme2$input;
11621
13010
  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';
11622
13011
  }, function (props) {
@@ -11624,12 +13013,12 @@ var Select = styled__default.div.attrs({
11624
13013
  });
11625
13014
  var SaveButton = styled__default.button.attrs({
11626
13015
  className: 'checkout-btn'
11627
- })(_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) {
13016
+ })(_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) {
11628
13017
  return props.color || '#FD0015';
11629
13018
  }, function (props) {
11630
13019
  return props.disabled ? 'not-allowed' : 'pointer';
11631
13020
  });
11632
- var ButtonRowContainer = styled__default.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) {
13021
+ var ButtonRowContainer = styled__default.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) {
11633
13022
  return props.disabledNext && '0.5';
11634
13023
  }, function (props) {
11635
13024
  return props.color || '#fd0015';
@@ -11640,7 +13029,7 @@ var ButtonRowContainer = styled__default.div(_templateObject8$8 || (_templateObj
11640
13029
  }, function (props) {
11641
13030
  return props.disabledBack ? 'not-allowed' : 'pointer';
11642
13031
  });
11643
- var CheckBoxRow = styled__default.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) {
13032
+ var CheckBoxRow = styled__default.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) {
11644
13033
  return props.padding;
11645
13034
  }, function (props) {
11646
13035
  return props.marginLeft;
@@ -11651,14 +13040,14 @@ var CheckBoxRow = styled__default.div(_templateObject9$6 || (_templateObject9$6
11651
13040
  }, function (prop) {
11652
13041
  return prop.colorText || 'red';
11653
13042
  });
11654
- var CreditCardFextField = styled__default.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) {
13043
+ var CreditCardFextField = styled__default.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) {
11655
13044
  return prop.bgInput + '!important' || '';
11656
13045
  }, function (prop) {
11657
13046
  return prop.btnBg + '!important' || '';
11658
13047
  });
11659
- var CardHeading = styled__default.div(_templateObject11$3 || (_templateObject11$3 = _taggedTemplateLiteralLoose(["\n font-weight: 600;\n margin-bottom: 1rem;\n"])));
11660
- var DeliveryOptionContainer = styled__default.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
11661
- var DeliveryOption = styled__default.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) {
13048
+ var CardHeading = styled__default.div(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n font-weight: 600;\n margin-bottom: 1rem;\n"])));
13049
+ var DeliveryOptionContainer = styled__default.div(_templateObject12$3 || (_templateObject12$3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
13050
+ var DeliveryOption = styled__default.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) {
11662
13051
  return props.hovered ? props.bg : '';
11663
13052
  }, function (props) {
11664
13053
  return props.hovered ? "1px solid " + props.border : "1px solid" + props.bg;
@@ -11677,19 +13066,19 @@ var DeliveryOption = styled__default.div(_templateObject13$2 || (_templateObject
11677
13066
  }, function (props) {
11678
13067
  return props.hovered ? '800' : '700';
11679
13068
  });
11680
- var CreditCard = styled__default.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"])));
11681
- var PaymentLi = styled__default.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"])));
11682
- var StyledTableRow = styled__default(material.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) {
13069
+ var CreditCard = styled__default.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"])));
13070
+ var PaymentLi = styled__default.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"])));
13071
+ var StyledTableRow = styled__default(material.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) {
11683
13072
  return props.colored ? props.bg || "'rgba(255, 240, 236, 1)'" : 'white';
11684
13073
  }, function (props) {
11685
13074
  return props.bg || 'red';
11686
13075
  });
11687
- var StyledTableCell = styled__default(material.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) {
13076
+ var StyledTableCell = styled__default(material.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) {
11688
13077
  return props.noSmall ? 'none' : '';
11689
13078
  }, function (props) {
11690
13079
  return props.noAboveSmall ? 'none' : '';
11691
13080
  });
11692
- var BottomGrid = styled__default(material.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) {
13081
+ var BottomGrid = styled__default(material.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) {
11693
13082
  return prop.primaryColor || 'rgba(107, 106, 106, 1)';
11694
13083
  }, function (prop) {
11695
13084
  var _prop$bgTextArea;
@@ -13139,7 +14528,7 @@ var erSessionStorage = {
13139
14528
  }
13140
14529
  };
13141
14530
 
13142
- var _templateObject$O, _templateObject2$z;
14531
+ var _templateObject$S, _templateObject2$B;
13143
14532
  var ConsentForm = function ConsentForm(_ref) {
13144
14533
  var apiEndPoint = _ref.apiEndPoint,
13145
14534
  token = _ref.token,
@@ -13305,7 +14694,7 @@ var InfoComponent = function InfoComponent(_ref2) {
13305
14694
  });
13306
14695
  }))));
13307
14696
  };
13308
- var InfoContainer$1 = styled__default.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"])));
14697
+ var InfoContainer$1 = styled__default.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"])));
13309
14698
  var InfoItem = function InfoItem(_ref3) {
13310
14699
  var name = _ref3.name,
13311
14700
  value = _ref3.value;
@@ -13318,7 +14707,7 @@ var InfoItem = function InfoItem(_ref3) {
13318
14707
  item: true
13319
14708
  }, /*#__PURE__*/React__default.createElement("p", null, value))));
13320
14709
  };
13321
- var InfoItemContainer = styled__default.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n background: #00000010;\n padding: 0.5rem;\n"])));
14710
+ var InfoItemContainer = styled__default.div(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n background: #00000010;\n padding: 0.5rem;\n"])));
13322
14711
 
13323
14712
  var PaypalComponent = function PaypalComponent(_ref) {
13324
14713
  var apiEndPoint = _ref.apiEndPoint,
@@ -14693,8 +16082,8 @@ var CheckoutPageComponent = function CheckoutPageComponent(_ref9) {
14693
16082
  }, props)));
14694
16083
  };
14695
16084
 
14696
- var _templateObject$P, _templateObject2$A, _templateObject3$q;
14697
- var columns = [{
16085
+ var _templateObject$T, _templateObject2$C, _templateObject3$s;
16086
+ var columns$1 = [{
14698
16087
  id: 'id',
14699
16088
  label: 'Id',
14700
16089
  isSearchable: 'true'
@@ -14757,7 +16146,7 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
14757
16146
  };
14758
16147
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TitleContainer$3, {
14759
16148
  primaryColor: primaryColor
14760
- }, /*#__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, {
16149
+ }, /*#__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, {
14761
16150
  cacheFilters: true,
14762
16151
  extraFilterParams: queryParams,
14763
16152
  listUpdate: triggerTableData,
@@ -14766,7 +16155,7 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
14766
16155
  x: 1000
14767
16156
  },
14768
16157
  tableId: "master-child-map",
14769
- columns: columns,
16158
+ columns: columns$1,
14770
16159
  apiData: {
14771
16160
  url: "/vendor/portal/purchaseOrder/list",
14772
16161
  apiEndPoint: API_BASE_URL,
@@ -14808,15 +16197,15 @@ var PurchaseOrderList = function PurchaseOrderList(_ref) {
14808
16197
  setTriggerTableData: setTriggerTableData
14809
16198
  })));
14810
16199
  };
14811
- var TableContainer$2 = styled__default.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n margin: 0.5rem;\n border-radius: 14px;\n"])));
14812
- var TypographyContainer$9 = styled__default(material.Typography)(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
16200
+ var TableContainer$3 = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n margin: 0.5rem;\n border-radius: 14px;\n"])));
16201
+ var TypographyContainer$9 = styled__default(material.Typography)(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
14813
16202
  return props.fontColor;
14814
16203
  });
14815
- var TitleContainer$3 = styled__default.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) {
16204
+ var TitleContainer$3 = styled__default.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) {
14816
16205
  return props.primaryColor;
14817
16206
  });
14818
16207
 
14819
- var columns$1 = [{
16208
+ var columns$2 = [{
14820
16209
  id: 'id',
14821
16210
  label: 'Id'
14822
16211
  }, {
@@ -15110,7 +16499,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15110
16499
  fontSize: '1.2rem'
15111
16500
  }
15112
16501
  }, item === null || item === void 0 ? void 0 : item.value)))));
15113
- }))))))), /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
16502
+ }))))))), /*#__PURE__*/React__default.createElement(TableContainer$3, null, /*#__PURE__*/React__default.createElement(APITable, {
15114
16503
  cacheFilters: true,
15115
16504
  extraFilterParams: queryParams,
15116
16505
  listUpdate: triggerTableData,
@@ -15119,7 +16508,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15119
16508
  x: 1000
15120
16509
  },
15121
16510
  tableId: "master-child-map",
15122
- columns: columns$1,
16511
+ columns: columns$2,
15123
16512
  apiData: {
15124
16513
  url: "/vendor/portal/purchaseOrder/" + (router$1 === null || router$1 === void 0 ? void 0 : (_router$query = router$1.query) === null || _router$query === void 0 ? void 0 : _router$query.id),
15125
16514
  apiEndPoint: API_BASE_URL,
@@ -15167,7 +16556,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15167
16556
  }, /*#__PURE__*/React__default.createElement(material.Grid, {
15168
16557
  item: true,
15169
16558
  xs: 6
15170
- }, /*#__PURE__*/React__default.createElement(TableContainer$2, {
16559
+ }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
15171
16560
  style: {
15172
16561
  boxShadow: 'rgba(0,0,0,0.2) 0px 0px 8px 0px'
15173
16562
  }
@@ -15193,7 +16582,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15193
16582
  }))))), /*#__PURE__*/React__default.createElement(material.Grid, {
15194
16583
  item: true,
15195
16584
  xs: 6
15196
- }, /*#__PURE__*/React__default.createElement(TableContainer$2, {
16585
+ }, /*#__PURE__*/React__default.createElement(TableContainer$3, {
15197
16586
  style: {
15198
16587
  boxShadow: 'rgba(0,0,0,0.2) 0px 0px 8px 0px'
15199
16588
  }
@@ -15219,7 +16608,7 @@ var PurchaseOrderDetail = function PurchaseOrderDetail(_ref) {
15219
16608
  })))))));
15220
16609
  };
15221
16610
 
15222
- var columns$2 = [{
16611
+ var columns$3 = [{
15223
16612
  id: 'name',
15224
16613
  label: 'Name',
15225
16614
  isSearchable: true
@@ -15310,7 +16699,7 @@ var VendorInventory = function VendorInventory(_ref) {
15310
16699
  var onChangeQueryParams = function onChangeQueryParams(data) {
15311
16700
  setTableParams(data);
15312
16701
  };
15313
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TableContainer$2, null, /*#__PURE__*/React__default.createElement(APITable, {
16702
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(TableContainer$3, null, /*#__PURE__*/React__default.createElement(APITable, {
15314
16703
  cacheFilters: true,
15315
16704
  extraFilterParams: queryParams,
15316
16705
  listUpdate: triggerTableData,
@@ -15320,7 +16709,7 @@ var VendorInventory = function VendorInventory(_ref) {
15320
16709
  x: 1000
15321
16710
  },
15322
16711
  tableId: "master-child-map",
15323
- columns: columns$2,
16712
+ columns: columns$3,
15324
16713
  apiData: {
15325
16714
  apiEndPoint: API_BASE_URL,
15326
16715
  token: token,
@@ -15383,7 +16772,7 @@ var VendorInventory = function VendorInventory(_ref) {
15383
16772
  })));
15384
16773
  };
15385
16774
 
15386
- var _templateObject$Q, _templateObject2$B, _templateObject3$r, _templateObject4$l, _templateObject5$h, _templateObject6$f, _templateObject7$b, _templateObject8$9;
16775
+ var _templateObject$U, _templateObject2$D, _templateObject3$t, _templateObject4$n, _templateObject5$j, _templateObject6$h, _templateObject7$d, _templateObject8$b;
15387
16776
  var VendorLogin = function VendorLogin(_ref) {
15388
16777
  var primaryColor = _ref.primaryColor,
15389
16778
  API_BASE_URL = _ref.API_BASE_URL;
@@ -15489,16 +16878,16 @@ var VendorLogin = function VendorLogin(_ref) {
15489
16878
  color: "inherit"
15490
16879
  }) : 'sign in'))))));
15491
16880
  };
15492
- var Container$3 = styled__default.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"])));
15493
- var StyledLogin = styled__default.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"])));
15494
- var StyledCard = styled__default(material.Card)(_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"])));
15495
- var H1 = styled__default(material.Typography)(_templateObject4$l || (_templateObject4$l = _taggedTemplateLiteralLoose(["\n margin-top: 1rem;\n"])));
15496
- var StyleInputBx = styled__default.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"])));
15497
- var ShowPassBtn = styled__default.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"])));
15498
- var ButtonContianer = styled__default.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"])));
15499
- var StyledButton$1 = styled__default(material.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"])));
16881
+ var Container$3 = styled__default.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"])));
16882
+ var StyledLogin = styled__default.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"])));
16883
+ var StyledCard = styled__default(material.Card)(_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"])));
16884
+ var H1 = styled__default(material.Typography)(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n margin-top: 1rem;\n"])));
16885
+ var StyleInputBx = styled__default.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"])));
16886
+ var ShowPassBtn = styled__default.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"])));
16887
+ var ButtonContianer = styled__default.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"])));
16888
+ var StyledButton$1 = styled__default(material.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"])));
15500
16889
 
15501
- var _templateObject$R, _templateObject2$C, _templateObject3$s, _templateObject4$m;
16890
+ var _templateObject$V, _templateObject2$E, _templateObject3$u, _templateObject4$o;
15502
16891
  var menuItems = [{
15503
16892
  name: 'My Account',
15504
16893
  Icon: ri.RiAccountBoxLine,
@@ -15706,8 +17095,8 @@ var VendorAccountDetails = function VendorAccountDetails(_ref) {
15706
17095
  height: 200
15707
17096
  }) : /*#__PURE__*/React__default.createElement(React.Fragment, null, API_BASE_URL && token && renderListItemComponent(tabValue)))))));
15708
17097
  };
15709
- var Root$e = styled__default(material.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"])));
15710
- var MainContainer$4 = styled__default.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) {
17098
+ var Root$e = styled__default(material.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"])));
17099
+ var MainContainer$4 = styled__default.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) {
15711
17100
  return props.open ? '1800px' : '1600px';
15712
17101
  });
15713
17102
  var Main$1 = styles.styled('main', {
@@ -15740,12 +17129,12 @@ var Main$1 = styles.styled('main', {
15740
17129
  overflow: 'auto'
15741
17130
  });
15742
17131
  });
15743
- var ContainerDrawer$1 = styled__default(material.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) {
17132
+ var ContainerDrawer$1 = styled__default(material.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) {
15744
17133
  return props.open && '2rem';
15745
17134
  }, function (props) {
15746
17135
  return props.primaryColor || transparent;
15747
17136
  });
15748
- var TypographyContainer$a = styled__default(material.Typography)(_templateObject4$m || (_templateObject4$m = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
17137
+ var TypographyContainer$a = styled__default(material.Typography)(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n color: ", ";\n display: flex;\n align-items: center;\n"])), function (props) {
15749
17138
  return props.fontColor;
15750
17139
  });
15751
17140
 
@@ -15850,7 +17239,7 @@ var getRestockedData = function getRestockedData(_ref3) {
15850
17239
  }
15851
17240
  };
15852
17241
 
15853
- var _templateObject$S;
17242
+ var _templateObject$W;
15854
17243
  var NewArrival = function NewArrival(_ref) {
15855
17244
  var _newArrivalItems$cont;
15856
17245
  var apiEndPoint = _ref.apiEndPoint,
@@ -16001,7 +17390,7 @@ var DateCard = function DateCard(_ref2) {
16001
17390
  }
16002
17391
  }, item === null || item === void 0 ? void 0 : item.count));
16003
17392
  };
16004
- var ProductsGrid = styled__default.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"])));
17393
+ var ProductsGrid = styled__default.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"])));
16005
17394
 
16006
17395
  var ReStockedItem = function ReStockedItem(_ref) {
16007
17396
  var _newArrivalItems$cont;
@@ -16111,7 +17500,7 @@ var ReStockedItem = function ReStockedItem(_ref) {
16111
17500
  })))))));
16112
17501
  };
16113
17502
 
16114
- var _excluded$7 = ["children", "value", "index"];
17503
+ var _excluded$8 = ["children", "value", "index"];
16115
17504
  var NewArrivalPage = function NewArrivalPage(_ref) {
16116
17505
  var apiEndPoint = _ref.apiEndPoint,
16117
17506
  token = _ref.token,
@@ -16219,7 +17608,7 @@ function CustomTabPanel(props) {
16219
17608
  var children = props.children,
16220
17609
  value = props.value,
16221
17610
  index = props.index,
16222
- other = _objectWithoutPropertiesLoose(props, _excluded$7);
17611
+ other = _objectWithoutPropertiesLoose(props, _excluded$8);
16223
17612
  return /*#__PURE__*/React__default.createElement("div", _extends({
16224
17613
  role: "tabpanel",
16225
17614
  hidden: value !== index,
@@ -16361,21 +17750,21 @@ var moveToCart = function moveToCart(_ref3) {
16361
17750
  }
16362
17751
  };
16363
17752
 
16364
- var _templateObject$T, _templateObject2$D, _templateObject3$t, _templateObject4$n, _templateObject5$i, _templateObject6$g, _templateObject7$c, _templateObject8$a, _templateObject9$7, _templateObject10$5, _templateObject11$4;
16365
- var EmptyStateText = styled__default.p(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n color: #4b4b4b;\n margin: 16px 0;\n"])));
16366
- var ProductCardWrapper = styled__default.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"])));
16367
- var TopBar = styled__default.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"])));
16368
- var SearchWrapper = styled__default(material.Box)(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n && {\n margin-bottom: 24px;\n max-width: 400px;\n width: 100%;\n }\n"])));
16369
- var TotalItemsText = styled__default.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"])));
16370
- var DeleteButton = styled__default.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"])));
16371
- var PriceContainer = styled__default.div(_templateObject7$c || (_templateObject7$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
16372
- var DiscountPriceRow = styled__default.div(_templateObject8$a || (_templateObject8$a = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n"])));
16373
- var ProductName$2 = styled__default.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"])));
16374
- var ProductActionButton = styled__default(material.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) {
17753
+ var _templateObject$X, _templateObject2$F, _templateObject3$v, _templateObject4$p, _templateObject5$k, _templateObject6$i, _templateObject7$e, _templateObject8$c, _templateObject9$8, _templateObject10$6, _templateObject11$5;
17754
+ var EmptyStateText = styled__default.p(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n font-size: 16px;\n color: #4b4b4b;\n margin: 16px 0;\n"])));
17755
+ var ProductCardWrapper = styled__default.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"])));
17756
+ var TopBar = styled__default.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"])));
17757
+ var SearchWrapper = styled__default(material.Box)(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n && {\n margin-bottom: 24px;\n max-width: 400px;\n width: 100%;\n }\n"])));
17758
+ var TotalItemsText = styled__default.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"])));
17759
+ var DeleteButton = styled__default.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"])));
17760
+ var PriceContainer = styled__default.div(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])));
17761
+ var DiscountPriceRow = styled__default.div(_templateObject8$c || (_templateObject8$c = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n"])));
17762
+ var ProductName$2 = styled__default.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"])));
17763
+ var ProductActionButton = styled__default(material.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) {
16375
17764
  var primaryColor = _ref.primaryColor;
16376
17765
  return primaryColor != null ? primaryColor : '#000000';
16377
17766
  });
16378
- var OutOfStockButton = styled__default(material.Button)(_templateObject11$4 || (_templateObject11$4 = _taggedTemplateLiteralLoose(["\n && {\n color: #ffffff;\n border-radius: 10px;\n font-weight: 500;\n }\n"])));
17767
+ var OutOfStockButton = styled__default(material.Button)(_templateObject11$5 || (_templateObject11$5 = _taggedTemplateLiteralLoose(["\n && {\n color: #ffffff;\n border-radius: 10px;\n font-weight: 500;\n }\n"])));
16379
17768
 
16380
17769
  var getProductImage = function getProductImage(imageUrl, fallbackUrl) {
16381
17770
  var url = imageUrl || fallbackUrl;