@salesgenterp/ui-components 0.4.551 → 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
@@ -2835,7 +2835,301 @@ var InfoContainer = styled__default.div(_templateObject$9 || (_templateObject$9
2835
2835
  return props.fontColor;
2836
2836
  });
2837
2837
 
2838
- 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;
2839
3133
  var totalIcons = [{
2840
3134
  name: '',
2841
3135
  icon: /*#__PURE__*/React__default.createElement(ai.AiOutlineShoppingCart, null)
@@ -2848,6 +3142,9 @@ var totalIcons = [{
2848
3142
  }, {
2849
3143
  name: 'Total Number Of Orders',
2850
3144
  icon: /*#__PURE__*/React__default.createElement(gi.GiCardboardBoxClosed, null)
3145
+ }, {
3146
+ name: 'Excess Payment',
3147
+ icon: /*#__PURE__*/React__default.createElement(tb.TbFileDollar, null)
2851
3148
  }];
2852
3149
  var Dashboard = function Dashboard(_ref) {
2853
3150
  var _customerData$custome, _selectDates$salesOrd, _selectDates$recentIn, _selectDates$salesOrd2, _selectDates$recentIn2, _customerData$custome2, _customerData$custome3, _customerData$custome4;
@@ -2878,14 +3175,18 @@ var Dashboard = function Dashboard(_ref) {
2878
3175
  showOnlyRecentOrder = _ref$showOnlyRecentOr === void 0 ? false : _ref$showOnlyRecentOr,
2879
3176
  hidePayActionButton = _ref.hidePayActionButton,
2880
3177
  hideInvoiceTab = _ref.hideInvoiceTab,
2881
- hideSalesOrderTab = _ref.hideSalesOrderTab;
3178
+ hideSalesOrderTab = _ref.hideSalesOrderTab,
3179
+ hideAddAccessPaymentButton = _ref.hideAddAccessPaymentButton;
2882
3180
  var _useState = React.useState({}),
2883
3181
  customerData = _useState[0],
2884
3182
  setCustomerData = _useState[1];
2885
3183
  var _useState2 = React.useState({}),
2886
3184
  dashboardData = _useState2[0],
2887
3185
  setDashboardData = _useState2[1];
2888
- var _useState3 = React.useState({
3186
+ var _useState3 = React.useState(),
3187
+ refetchDashboardData = _useState3[0],
3188
+ setRefetchDashboardData = _useState3[1];
3189
+ var _useState4 = React.useState({
2889
3190
  recentInvoices: {
2890
3191
  startDate: null,
2891
3192
  endDate: null
@@ -2895,25 +3196,30 @@ var Dashboard = function Dashboard(_ref) {
2895
3196
  endDate: null
2896
3197
  }
2897
3198
  }),
2898
- selectDates = _useState3[0],
2899
- setSelectDates = _useState3[1];
2900
- var _useState4 = React.useState(getRandomString()),
2901
- triggerTableData = _useState4[0],
2902
- setTriggerTableData = _useState4[1];
2903
- 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({
2904
3205
  open: false,
2905
3206
  url: ''
2906
3207
  }),
2907
- invoiceModal = _useState5[0],
2908
- setInvoiceModal = _useState5[1];
2909
- var _useState6 = React.useState({
3208
+ invoiceModal = _useState6[0],
3209
+ setInvoiceModal = _useState6[1];
3210
+ var _useState7 = React.useState({
2910
3211
  open: false
2911
3212
  }),
2912
- isPaymentModal = _useState6[0],
2913
- setIsPaymentModal = _useState6[1];
2914
- var _useState7 = React.useState(0),
2915
- value = _useState7[0],
2916
- setValue = _useState7[1];
3213
+ isPaymentModal = _useState7[0],
3214
+ setIsPaymentModal = _useState7[1];
3215
+ var _useState8 = React.useState({
3216
+ open: false
3217
+ }),
3218
+ isExcessPaymentModal = _useState8[0],
3219
+ setIsExcessPaymentModal = _useState8[1];
3220
+ var _useState9 = React.useState(0),
3221
+ value = _useState9[0],
3222
+ setValue = _useState9[1];
2917
3223
  React.useEffect(function () {
2918
3224
  if (hideSalesOrderTab) {
2919
3225
  setValue(1);
@@ -3149,7 +3455,7 @@ var Dashboard = function Dashboard(_ref) {
3149
3455
  Promise.reject(e);
3150
3456
  }
3151
3457
  })();
3152
- }, []);
3458
+ }, [refetchDashboardData]);
3153
3459
  React.useEffect(function () {
3154
3460
  try {
3155
3461
  try {
@@ -3202,6 +3508,30 @@ var Dashboard = function Dashboard(_ref) {
3202
3508
  orderId: isPaymentModal === null || isPaymentModal === void 0 ? void 0 : isPaymentModal.orderId,
3203
3509
  setTriggerTableData: setTriggerTableData,
3204
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
+ }
3205
3535
  }), /*#__PURE__*/React__default.createElement(material.Grid, {
3206
3536
  container: true,
3207
3537
  columnSpacing: 4
@@ -3219,7 +3549,8 @@ var Dashboard = function Dashboard(_ref) {
3219
3549
  spacing: 3
3220
3550
  }, totalDataSource === null || totalDataSource === void 0 ? void 0 : totalDataSource.map(function (data) {
3221
3551
  var _data$name, _data$name2, _data$name3, _totalIcons$find;
3222
- 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';
3223
3554
  return /*#__PURE__*/React__default.createElement(material.Grid, {
3224
3555
  item: true,
3225
3556
  xs: 12,
@@ -3239,7 +3570,23 @@ var Dashboard = function Dashboard(_ref) {
3239
3570
  className: "icon-container"
3240
3571
  }, (totalIcons === null || totalIcons === void 0 ? void 0 : (_totalIcons$find = totalIcons.find(function (icons) {
3241
3572
  return (icons === null || icons === void 0 ? void 0 : icons.name) === (data === null || data === void 0 ? void 0 : data.name);
3242
- })) === 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")))));
3243
3590
  }))), !hideBannerSection && /*#__PURE__*/React__default.createElement(BannerContainer, null, /*#__PURE__*/React__default.createElement(material.Grid, {
3244
3591
  container: true,
3245
3592
  spacing: 3,
@@ -3558,10 +3905,12 @@ var SocialIconContainer = styled__default.a(_templateObject8$1 || (_templateObje
3558
3905
  });
3559
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"])));
3560
3907
  var TotalRoot = styled__default.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n margin: 2rem 0;\n"])));
3561
- 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) {
3562
3909
  return props.secondaryColor;
3563
3910
  }, function (props) {
3564
3911
  return props.primaryColor;
3912
+ }, function (props) {
3913
+ return props.primaryColor;
3565
3914
  }, function (props) {
3566
3915
  return props.fontColor;
3567
3916
  }, function (props) {
@@ -3571,12 +3920,15 @@ var TotalContainer = styled__default(material.Stack)(_templateObject11$1 || (_te
3571
3920
  }, function (props) {
3572
3921
  return props.primaryColor;
3573
3922
  });
3574
- var BannerContainer = styled__default(material.Stack)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose([""])));
3575
- 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) {
3576
3928
  var _props$theme;
3577
3929
  return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.primaryColor;
3578
3930
  });
3579
- 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) {
3580
3932
  var _props$theme2;
3581
3933
  return (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.secondaryColor;
3582
3934
  }, function (props) {
@@ -3586,19 +3938,19 @@ var CategoryText = styled__default.div(_templateObject14 || (_templateObject14 =
3586
3938
  var _props$theme4;
3587
3939
  return (_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.primaryColor;
3588
3940
  });
3589
- 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) {
3590
3942
  var _props$theme5, _props$theme6, _props$theme7;
3591
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)";
3592
3944
  }, function (props) {
3593
3945
  var _props$theme8;
3594
3946
  return (_props$theme8 = props.theme) === null || _props$theme8 === void 0 ? void 0 : _props$theme8.fontColor;
3595
3947
  });
3596
- 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) {
3597
3949
  return props.primaryColor;
3598
3950
  });
3599
- var TableContainer = styled__default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n margin-top: 2rem;\n border-radius: 14px;\n"])));
3600
- var InvoiceDialog = styled__default(material.Dialog)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n iframe {\n width: 900px;\n border: none;\n height: 600px;\n }\n"])));
3601
- 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) {
3602
3954
  return props.fontColor;
3603
3955
  }, function (props) {
3604
3956
  return props.primaryColor;
@@ -4933,7 +5285,7 @@ var getDropzoneRejectionError = function getDropzoneRejectionError(fileRejection
4933
5285
  return (error === null || error === void 0 ? void 0 : error.message) || 'Invalid file';
4934
5286
  };
4935
5287
 
4936
- 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;
4937
5289
  var DEFAULT_PRIMARY_COLOR = "#437c0f";
4938
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"])));
4939
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"])));
@@ -4973,7 +5325,7 @@ var DropzoneBtn = styled__default.span(_templateObject16$1 || (_templateObject16
4973
5325
  var DropzoneText = styled__default.span(_templateObject17$1 || (_templateObject17$1 = _taggedTemplateLiteralLoose(["\n font-size: 0.875rem;\n color: #666;\n"])));
4974
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"])));
4975
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"])));
4976
- 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"])));
4977
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"])));
4978
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"])));
4979
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"])));
@@ -5289,20 +5641,6 @@ var getDocumentTypes = function getDocumentTypes(_ref3) {
5289
5641
  }
5290
5642
  };
5291
5643
 
5292
- var getUpcomingAchPayments = function getUpcomingAchPayments(_ref) {
5293
- var apiEndPoint = _ref.apiEndPoint,
5294
- token = _ref.token;
5295
- try {
5296
- return Promise.resolve(API({
5297
- url: '/ecommerce/order/payment/upcoming-auto-ach',
5298
- apiEndPoint: apiEndPoint,
5299
- token: token
5300
- }));
5301
- } catch (e) {
5302
- return Promise.reject(e);
5303
- }
5304
- };
5305
-
5306
5644
  var _templateObject$l;
5307
5645
  var columns = [{
5308
5646
  id: 'orderId',
@@ -5366,7 +5704,7 @@ var UpcomingACHPayments = function UpcomingACHPayments(_ref) {
5366
5704
  var TableContainer$2 = styled__default.div(_templateObject$l || (_templateObject$l = _taggedTemplateLiteralLoose(["\n margin: 1.2rem 0;\n border-radius: 14px;\n"])));
5367
5705
 
5368
5706
  var _templateObject$m, _templateObject2$d, _templateObject3$9, _templateObject4$7;
5369
- 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"];
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"];
5370
5708
  var AccountDetails = function AccountDetails(_ref) {
5371
5709
  var _storeData$map, _storeData$find, _storeData$;
5372
5710
  var apiEndPoint = _ref.apiEndPoint,
@@ -5400,6 +5738,8 @@ var AccountDetails = function AccountDetails(_ref) {
5400
5738
  hideSalesOrderTab = _ref$hideSalesOrderTa === void 0 ? false : _ref$hideSalesOrderTa,
5401
5739
  _ref$hideInvoiceTab = _ref.hideInvoiceTab,
5402
5740
  hideInvoiceTab = _ref$hideInvoiceTab === void 0 ? false : _ref$hideInvoiceTab,
5741
+ _ref$hideAddAccessPay = _ref.hideAddAccessPaymentButton,
5742
+ hideAddAccessPaymentButton = _ref$hideAddAccessPay === void 0 ? false : _ref$hideAddAccessPay,
5403
5743
  props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
5404
5744
  var _useAllSystemFeatureV = useAllSystemFeatureValues({
5405
5745
  apiEndPoint: apiEndPoint,
@@ -5573,7 +5913,8 @@ var AccountDetails = function AccountDetails(_ref) {
5573
5913
  showOnlyRecentOrder: showOnlyRecentOrder,
5574
5914
  hidePayActionButton: hidePayActionButton,
5575
5915
  hideSalesOrderTab: hideSalesOrderTab,
5576
- hideInvoiceTab: hideInvoiceTab
5916
+ hideInvoiceTab: hideInvoiceTab,
5917
+ hideAddAccessPaymentButton: hideAddAccessPaymentButton
5577
5918
  });
5578
5919
  case 'myProfile':
5579
5920
  return /*#__PURE__*/React__default.createElement(MyProfile, {
@@ -5790,83 +6131,6 @@ var TypographyContainer$7 = styled__default(material.Typography)(_templateObject
5790
6131
  return props.fontColor;
5791
6132
  });
5792
6133
 
5793
- var AsyncDataLoad = function AsyncDataLoad(_ref) {
5794
- var apiEndPoint = _ref.apiEndPoint,
5795
- token = _ref.token,
5796
- children = _ref.children,
5797
- onError = _ref.onError,
5798
- skeletonHeight = _ref.skeletonHeight,
5799
- loadingView = _ref.loadingView,
5800
- errorView = _ref.errorView,
5801
- asyncService = _ref.asyncService,
5802
- triggerChange = _ref.triggerChange,
5803
- apiConfig = _ref.apiConfig;
5804
- var _useState = React.useState({
5805
- status: 'loading',
5806
- data: {}
5807
- }),
5808
- apiState = _useState[0],
5809
- setApiState = _useState[1];
5810
- var getAPIData = function getAPIData() {
5811
- try {
5812
- var _temp3 = _catch(function () {
5813
- function _temp2() {
5814
- setApiState({
5815
- status: API_STATUSES.SUCCESS,
5816
- data: data
5817
- });
5818
- }
5819
- setApiState({
5820
- status: API_STATUSES.LOADING,
5821
- data: {}
5822
- });
5823
- var data;
5824
- var _temp = function () {
5825
- if (asyncService) {
5826
- return Promise.resolve(asyncService()).then(function (_asyncService) {
5827
- data = _asyncService;
5828
- });
5829
- } else {
5830
- return Promise.resolve(API(_extends({
5831
- apiEndPoint: apiEndPoint,
5832
- token: token,
5833
- hideErrorMessage: true
5834
- }, apiConfig))).then(function (_API) {
5835
- data = _API;
5836
- });
5837
- }
5838
- }();
5839
- return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
5840
- }, function (e) {
5841
- setApiState({
5842
- status: API_STATUSES.ERROR,
5843
- data: {}
5844
- });
5845
- if (onError) {
5846
- onError(e);
5847
- }
5848
- });
5849
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
5850
- } catch (e) {
5851
- return Promise.reject(e);
5852
- }
5853
- };
5854
- React.useEffect(function () {
5855
- if (apiConfig || asyncService) {
5856
- (function () {
5857
- return getAPIData();
5858
- })();
5859
- }
5860
- }, [apiConfig, triggerChange]);
5861
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, apiState.status === API_STATUSES.LOADING ? loadingView ? loadingView : /*#__PURE__*/React__default.createElement(Loader, {
5862
- skeleton: skeletonHeight,
5863
- height: skeletonHeight
5864
- }) : null, apiState.status === API_STATUSES.SUCCESS ? typeof children === 'function' ? children(apiState.data) : {
5865
- children: children
5866
- } : null, apiState.status === API_STATUSES.ERROR ? errorView ? errorView : 'NO DATA' : null);
5867
- };
5868
- var AsyncDataLoadComponent = React.memo(AsyncDataLoad);
5869
-
5870
6134
  var _templateObject$n, _templateObject2$e, _templateObject3$a;
5871
6135
  var BannerImages = function BannerImages(_ref) {
5872
6136
  var config = _ref.config,
@@ -7911,7 +8175,7 @@ var TotalAfterDiscount = function TotalAfterDiscount(_ref2) {
7911
8175
  }, renderMoney(totalAmount)) : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement("b", null, renderMoney(total))));
7912
8176
  };
7913
8177
 
7914
- var _templateObject$v, _templateObject2$m, _templateObject3$g, _templateObject4$d, _templateObject5$9, _templateObject6$7, _templateObject7$6, _templateObject8$5, _templateObject9$5, _templateObject10$4, _templateObject11$3, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59;
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;
7915
8179
  var DEFAULT_PRIMARY_COLOR$1 = '#437C0F';
7916
8180
  var formatCurrency = function formatCurrency(amount) {
7917
8181
  return Number(amount).toLocaleString('en-US', {
@@ -8521,7 +8785,7 @@ var HeaderIconWrap = styled__default.div(_templateObject19$2 || (_templateObject
8521
8785
  var $accentColor = _ref21.$accentColor;
8522
8786
  return $accentColor + "cc";
8523
8787
  });
8524
- var HeaderCopy = styled__default.div(_templateObject20$1 || (_templateObject20$1 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n z-index: 1;\n"])));
8788
+ var HeaderCopy = styled__default.div(_templateObject20$2 || (_templateObject20$2 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n z-index: 1;\n"])));
8525
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) {
8526
8790
  var $accentColor = _ref22.$accentColor;
8527
8791
  return $accentColor;