@weareconceptstudio/account 0.3.0 → 0.3.1

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.
Files changed (81) hide show
  1. package/dist/components/AccountButton/style.js +2 -1
  2. package/dist/components/TotalCheckout/AddNewCard/index.d.ts +6 -0
  3. package/dist/components/TotalCheckout/AddNewCard/index.js +11 -0
  4. package/dist/components/TotalCheckout/AddNewCard/style.d.ts +2 -0
  5. package/dist/components/TotalCheckout/AddNewCard/style.js +90 -0
  6. package/dist/components/TotalCheckout/CardComp/index.d.ts +9 -0
  7. package/dist/components/TotalCheckout/CardComp/index.js +36 -0
  8. package/dist/components/TotalCheckout/CardComp/style.d.ts +2 -0
  9. package/dist/components/TotalCheckout/CardComp/style.js +203 -0
  10. package/dist/components/TotalCheckout/CommentComp/index.d.ts +3 -0
  11. package/dist/components/TotalCheckout/CommentComp/index.js +15 -0
  12. package/dist/components/TotalCheckout/CommentComp/style.d.ts +2 -0
  13. package/dist/components/TotalCheckout/CommentComp/style.js +33 -0
  14. package/dist/components/TotalCheckout/FreeShippingComp/index.d.ts +2 -2
  15. package/dist/components/TotalCheckout/FreeShippingComp/index.js +3 -4
  16. package/dist/components/TotalCheckout/FreeShippingComp/style.js +1 -1
  17. package/dist/components/TotalCheckout/MuramoneyComp/index.d.ts +9 -0
  18. package/dist/components/TotalCheckout/MuramoneyComp/index.js +32 -0
  19. package/dist/components/TotalCheckout/MuramoneyComp/style.d.ts +2 -0
  20. package/dist/components/TotalCheckout/MuramoneyComp/style.js +117 -0
  21. package/dist/components/TotalCheckout/MuramoneyComp/utils.d.ts +10 -0
  22. package/dist/components/TotalCheckout/MuramoneyComp/utils.js +14 -0
  23. package/dist/components/TotalCheckout/PaymentComp/index.d.ts +9 -0
  24. package/dist/components/TotalCheckout/PaymentComp/index.js +14 -0
  25. package/dist/components/TotalCheckout/PaymentComp/style.d.ts +2 -0
  26. package/dist/components/TotalCheckout/PaymentComp/style.js +50 -0
  27. package/dist/components/TotalCheckout/PaymentMethodsComp/index.d.ts +8 -0
  28. package/dist/components/TotalCheckout/PaymentMethodsComp/index.js +82 -0
  29. package/dist/components/TotalCheckout/PaymentMethodsComp/style.d.ts +2 -0
  30. package/dist/components/TotalCheckout/PaymentMethodsComp/style.js +162 -0
  31. package/dist/components/TotalCheckout/PromoCodeComp/index.d.ts +2 -1
  32. package/dist/components/TotalCheckout/PromoCodeComp/index.js +18 -15
  33. package/dist/components/TotalCheckout/PromoCodeComp/style.js +4 -11
  34. package/dist/components/TotalCheckout/SelectPaymentMethodPopup/index.d.ts +3 -0
  35. package/dist/components/TotalCheckout/SelectPaymentMethodPopup/index.js +65 -0
  36. package/dist/components/TotalCheckout/SelectPaymentMethodPopup/style.d.ts +2 -0
  37. package/dist/components/TotalCheckout/SelectPaymentMethodPopup/style.js +153 -0
  38. package/dist/components/TotalCheckout/index.js +26 -45
  39. package/dist/components/TotalCheckout/style.js +119 -17
  40. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/ProgressComponent/index.js +0 -1
  41. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.js +1 -3
  42. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.js +1 -3
  43. package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.js +1 -3
  44. package/dist/modules/address/SelectAddressPopup/index.js +38 -5
  45. package/dist/modules/address/SelectAddressPopup/style.js +6 -0
  46. package/dist/modules/cart/CartTemplate/index.js +2 -2
  47. package/dist/modules/cart/EmptyCart/icons.d.ts +2 -0
  48. package/dist/modules/cart/EmptyCart/icons.js +10 -0
  49. package/dist/modules/cart/EmptyCart/index.js +3 -1
  50. package/dist/modules/cart/EmptyCart/style.js +40 -0
  51. package/dist/modules/cart/SimpleItems/Item/index.js +1 -2
  52. package/dist/modules/cart/SimpleItems/ItemMobile/index.js +1 -2
  53. package/dist/modules/checkout/CheckoutTemplate/StepReview/index.js +22 -1
  54. package/dist/modules/checkout/ThankYouTemplate/icons.js +16 -3
  55. package/dist/modules/checkout/ThankYouTemplate/style.js +8 -1
  56. package/dist/modules/index.d.ts +1 -0
  57. package/dist/modules/index.js +1 -0
  58. package/dist/modules/order/OrderDetails/index.js +3 -3
  59. package/dist/modules/order/OrderStatus/index.d.ts +6 -0
  60. package/dist/modules/order/OrderStatus/index.js +25 -0
  61. package/dist/modules/order/OrderedItems/index.js +1 -2
  62. package/dist/modules/order/OrdersList/OrderItem/index.js +4 -3
  63. package/dist/modules/order/OrdersList/index.js +4 -4
  64. package/dist/modules/payment/PaymentMethodsTemplate/index.d.ts +3 -0
  65. package/dist/modules/payment/PaymentMethodsTemplate/index.js +41 -0
  66. package/dist/modules/payment/PaymentMethodsTemplate/style.d.ts +2 -0
  67. package/dist/modules/payment/PaymentMethodsTemplate/style.js +53 -0
  68. package/dist/modules/payment/index.d.ts +1 -0
  69. package/dist/modules/payment/index.js +1 -0
  70. package/dist/styles/theme.js +1 -0
  71. package/dist/styles/variables.js +1 -0
  72. package/dist/translations/en.d.ts +12 -0
  73. package/dist/translations/en.js +14 -2
  74. package/dist/translations/hy.d.ts +12 -0
  75. package/dist/translations/hy.js +14 -2
  76. package/dist/translations/index.d.ts +36 -0
  77. package/dist/translations/ru.d.ts +12 -0
  78. package/dist/translations/ru.js +14 -2
  79. package/package.json +1 -1
  80. package/dist/utils/_functions.d.ts +0 -2
  81. package/dist/utils/_functions.js +0 -18
@@ -0,0 +1,153 @@
1
+ import styled from 'styled-components';
2
+ const SelectPaymentMethodPopupStyle = styled.section `
3
+ --account_cancelAndSaveWrapMTop: var(--sp5x);
4
+ --account_cancelDistance: var(--sp5x);
5
+ --account_selectAddressWrapMBot: var(--sp5x);
6
+ --account_payMethodsItemDistance: var(--sp3x);
7
+ --account_payMethodsItemInternalPad: var(--sp2x);
8
+ --account_radioWrapperWidth: calc(50% - var(--account_payMethodsItemDistance) / 2);
9
+ --account_lineMTop: var(--sp3x);
10
+ --account_lineMBottom: var(--sp4x);
11
+
12
+ .new-card-container {
13
+ position: relative;
14
+ }
15
+
16
+ .select-payment-wrap {
17
+ display: flex;
18
+ flex-wrap: wrap;
19
+ justify-content: space-between;
20
+ align-items: center;
21
+ margin-bottom: var(--account_selectAddressWrapMBot);
22
+ }
23
+
24
+ .flex-wrapper {
25
+ display: flex;
26
+ flex-wrap: wrap;
27
+ gap: var(--account_payMethodsItemDistance);
28
+
29
+ /* .item-container {
30
+ &:not(:nth-child(1), :nth-child(2)) {
31
+ margin-top: var(--account_payMethodsItemDistance) !important;
32
+ }
33
+ } */
34
+ }
35
+
36
+ .custom-payment-options {
37
+ width: var(--account_radioWrapperWidth);
38
+ padding: var(--account_payMethodsItemInternalPad) !important;
39
+ }
40
+
41
+ .cancel-and-save-wrap {
42
+ display: flex;
43
+ justify-content: flex-end;
44
+ align-items: center;
45
+ margin-top: var(--account_cancelAndSaveWrapMTop);
46
+
47
+ .btn-wrap {
48
+ &:first-child {
49
+ margin-right: var(--account_cancelDistance);
50
+ }
51
+ }
52
+ }
53
+
54
+ .line {
55
+ width: 100%;
56
+ height: 2px;
57
+ background-color: var(--account_primaryColor5);
58
+ margin: var(--account_lineMTop) 0 var(--account_lineMBottom);
59
+ }
60
+
61
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
62
+ --account_cancelAndSaveWrapMTop: var(--sp4x);
63
+ --account_cancelDistance: var(--sp3x);
64
+ --account_selectAddressWrapMBot: var(--sp4x);
65
+ --account_payMethodsItemDistance: var(--sp3x);
66
+ --account_payMethodsItemInternalPad: var(--sp2x);
67
+ --account_radioWrapperWidth: calc(50% - var(--account_payMethodsItemDistance) / 2);
68
+ --account_lineMTop: var(--sp2-5x);
69
+ --account_lineMBottom: var(--sp3x);
70
+ }
71
+
72
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
73
+ --account_cancelAndSaveWrapMTop: var(--sp3x);
74
+ --account_cancelDistance: var(--sp3x);
75
+ --account_selectAddressWrapMBot: var(--sp3x);
76
+ --account_payMethodsItemDistance: var(--sp2x);
77
+ --account_payMethodsItemInternalPad: var(--sp1-5x);
78
+ --account_radioWrapperWidth: calc(50% - var(--account_payMethodsItemDistance) / 2);
79
+ --account_lineMTop: var(--sp2x);
80
+ --account_lineMBottom: var(--sp3x);
81
+ }
82
+
83
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
84
+ --account_cancelAndSaveWrapMTop: var(--sp3x);
85
+ --account_cancelDistance: var(--sp3x);
86
+ --account_selectAddressWrapMBot: var(--sp3x);
87
+ --account_payMethodsItemDistance: var(--sp2x);
88
+ --account_payMethodsItemInternalPad: var(--sp1-5x);
89
+ --account_radioWrapperWidth: calc(50% - var(--account_payMethodsItemDistance) / 2);
90
+ --account_lineMTop: var(--sp2x);
91
+ --account_lineMBottom: var(--sp3x);
92
+ }
93
+
94
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXS}) {
95
+ --account_cancelAndSaveWrapMTop: var(--sp3x);
96
+ --account_cancelDistance: var(--sp2-5x);
97
+ --account_selectAddressWrapMBot: var(--sp3x);
98
+ --account_payMethodsItemDistance: var(--sp2x);
99
+ --account_payMethodsItemInternalPad: var(--sp1-5x);
100
+ --account_radioWrapperWidth: calc(50% - var(--account_payMethodsItemDistance) / 2);
101
+ --account_lineMTop: var(--sp2x);
102
+ --account_lineMBottom: var(--sp2x);
103
+ }
104
+
105
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
106
+ --account_cancelAndSaveWrapMTop: var(--sp3x);
107
+ --account_cancelDistance: var(--sp2-5x);
108
+ --account_selectAddressWrapMBot: var(--sp3x);
109
+ --account_payMethodsItemDistance: var(--sp2x);
110
+ --account_payMethodsItemInternalPad: var(--sp1-5x);
111
+ --account_radioWrapperWidth: calc(50% - var(--account_payMethodsItemDistance) / 2);
112
+ --account_lineMTop: var(--sp2x);
113
+ --account_lineMBottom: var(--sp2x);
114
+ }
115
+
116
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
117
+ --account_cancelAndSaveWrapMTop: var(--sp3x);
118
+ --account_cancelDistance: var(--sp2-5x);
119
+ --account_selectAddressWrapMBot: var(--sp3x);
120
+ --account_payMethodsItemDistance: var(--sp2x);
121
+ --account_payMethodsItemInternalPad: var(--sp1-5x);
122
+ --account_radioWrapperWidth: calc(50% - var(--account_payMethodsItemDistance) / 2);
123
+ --account_lineMTop: var(--sp1-5x);
124
+ --account_lineMBottom: var(--sp2x);
125
+ }
126
+
127
+ @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
128
+ --account_cancelAndSaveWrapMTop: var(--sp3x);
129
+ --account_cancelDistance: var(--sp2x);
130
+ --account_selectAddressWrapMBot: var(--sp3x);
131
+ --account_payMethodsItemDistance: var(--sp2x);
132
+ --account_payMethodsItemInternalPad: var(--sp1-5x);
133
+ --account_radioWrapperWidth: 100%;
134
+ --account_lineMTop: var(--sp1-5x);
135
+ --account_lineMBottom: var(--sp1-5x);
136
+
137
+ .cancel-and-save-wrap {
138
+ flex-direction: column-reverse;
139
+
140
+ .btn-wrap {
141
+ &:first-child {
142
+ margin-right: 0;
143
+ margin-top: var(--account_cancelDistance);
144
+ }
145
+
146
+ &:last-child {
147
+ width: 100%;
148
+ }
149
+ }
150
+ }
151
+ }
152
+ `;
153
+ export default SelectPaymentMethodPopupStyle;
@@ -1,44 +1,30 @@
1
- import React, { memo, useMemo } from 'react';
2
- import { Text } from '@weareconceptstudio/core';
3
- import { Input, Radio } from '@weareconceptstudio/form';
1
+ import React, { memo } from 'react';
2
+ import { Text, CollapseContainer, handlePriceCheckFunc, numToLocalString } from '@weareconceptstudio/core';
4
3
  import { useAccountContext } from '../../AccountProvider';
5
4
  import AccountButton from '../AccountButton';
6
5
  import FreeShippingComp from './FreeShippingComp';
7
6
  import PromoCodeComp from './PromoCodeComp';
8
- //* Utils
9
- import { handlePriceCheckFunc, numToLocalString } from '../../utils/_functions';
7
+ import MuramoneyComp from './MuramoneyComp';
8
+ import CommentComp from './CommentComp';
10
9
  //* Style
11
10
  import TotalCheckoutStyle from './style';
12
11
  //* Skeleton
13
12
  import SkeletonTotalCheckout from './Skeleton';
14
- // TODO: Shipping Coast
15
- const fakeShippingCost = 5000;
16
- const TotalCheckout = memo(({ isShipping, children, confirmation, buttonProps, itemsCount, subtotal, total, shippingCost, fillCheckoutData, checkoutData, isCheckout = false, loading, freeShippingRange }) => {
17
- const { currency, useUser } = useAccountContext();
13
+ import { useAddressContext } from '../../modules';
14
+ // TODO: Muramoney & Promo code
15
+ const promo_code = '10% of first order';
16
+ const TotalCheckout = memo(({ isShipping, children, confirmation, buttonProps, fillCheckoutData, isCheckout = false, loading }) => {
17
+ const { currency, useCart, useUser } = useAccountContext();
18
+ const { checkoutAddressId } = useAddressContext();
18
19
  const { user } = useUser();
19
- const savedCards = useMemo(() => {
20
- if (user) {
21
- let cards = [
22
- {
23
- label: 'Remember New Card',
24
- value: '0',
25
- },
26
- ];
27
- user.savedCards.forEach((savedCard) => {
28
- cards.push({
29
- label: `${savedCard.name} - ${savedCard.number}}`,
30
- value: savedCard.id,
31
- });
32
- });
33
- return checkoutData?.paymentType == 'credit_card' ? (React.createElement(Radio.Group, { value: checkoutData.paymentType, onChange: (val) => {
34
- if (val == 0) {
35
- fillCheckoutData('remember_card', true);
36
- }
37
- fillCheckoutData('card_id', val);
38
- }, options: cards })) : null;
20
+ const { itemsCount, shippingCost, freeShippingRange, shippingCostValue, total, subtotal, useBalance, getCart } = useCart();
21
+ const handleBalance = (amount) => {
22
+ let params = { addressId: checkoutAddressId };
23
+ if (amount) {
24
+ params['useBalance'] = amount;
39
25
  }
40
- return null;
41
- }, [user, checkoutData]);
26
+ getCart(params);
27
+ };
42
28
  return (React.createElement(TotalCheckoutStyle, null,
43
29
  React.createElement("div", { className: `cart-main-wrap` },
44
30
  React.createElement("div", { className: `left-panel-wrap panel` }, children),
@@ -51,22 +37,17 @@ const TotalCheckout = memo(({ isShipping, children, confirmation, buttonProps, i
51
37
  React.createElement("div", { className: `od-item-wrap` },
52
38
  React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 sticky-wrap-shipping`, text: `shipping` }),
53
39
  React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 sticky-wrap-shipping-cost`, text: `${String(shippingCost).toLowerCase() === 'free' || shippingCost === '-' ? shippingCost : `${numToLocalString(shippingCost)} ${currency}`}` })),
40
+ useBalance ? (React.createElement("div", { className: `od-item-wrap` },
41
+ React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: `muramoney` }),
42
+ React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 balance-text-block`, text: `-${handlePriceCheckFunc(useBalance, currency)}` }))) : null,
54
43
  React.createElement("div", { className: `od-item-wrap` },
55
44
  React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1 sticky-wrap-total`, text: `total` }),
56
- React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1 sticky-wrap-currnecy2`, text: itemsCount ? handlePriceCheckFunc(total, currency) : `0 ${currency}` })),
57
- React.createElement(FreeShippingComp, { currency: currency, shippingCost: shippingCost, fakeShippingCost: fakeShippingCost, freeShippingRange: freeShippingRange }),
58
- React.createElement(PromoCodeComp, null),
59
- isCheckout && typeof isShipping === 'boolean' && !isShipping ? (React.createElement(React.Fragment, null,
60
- React.createElement(Input.TextArea, { containerClassName: `comment-field`, placeholder: 'checkoutCommentPlaceholder', onChange: (e) => fillCheckoutData('note', e.target.value), className: `account-p account-p3 account-font-regular account-primary-color1` }),
61
- React.createElement(Radio.Group, { value: checkoutData.paymentType, onChange: (val) => fillCheckoutData('paymentType', val), options: [
62
- { label: 'Visa Arca', value: 'credit_card' },
63
- { label: 'Idram', value: 'idram' },
64
- { label: 'POS TERMINAL', value: 'pos_terminal' },
65
- { label: 'Telcell', value: 'telcell' },
66
- { label: 'Inecopay', value: 'inecopay' },
67
- { label: 'Cash', value: 'cash_on_delivery' },
68
- ] }),
69
- React.createElement("div", { style: { marginTop: 20 } }, savedCards))) : null,
45
+ React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1 sticky-wrap-currency2`, text: itemsCount ? handlePriceCheckFunc(total, currency) : `0 ${currency}` })),
46
+ !isCheckout ? (React.createElement(FreeShippingComp, { currency: currency, shippingCost: shippingCost, shippingCostValue: shippingCostValue, freeShippingRange: freeShippingRange })) : null,
47
+ React.createElement(CollapseContainer, { className: 'collapse-container-wrapper' },
48
+ React.createElement(MuramoneyComp, { balance: user.balance, currency: currency, balanceHandler: handleBalance, useBalance: useBalance }),
49
+ React.createElement(PromoCodeComp, { promo_code: promo_code })),
50
+ isCheckout && typeof isShipping === 'boolean' && !isShipping ? React.createElement(CommentComp, { fillCheckoutData: fillCheckoutData }) : null,
70
51
  React.createElement(AccountButton, { url: buttonProps.url, btnType: `full-width`, text: buttonProps.text, type: buttonProps.type, className: `sticky-wrap-btn`, disabled: buttonProps.disabled, onClick: () => buttonProps.handleClick && buttonProps.handleClick() }))) : (React.createElement(SkeletonTotalCheckout, null))))));
71
52
  });
72
53
  export default TotalCheckout;
@@ -6,13 +6,17 @@ const TotalCheckoutStyle = styled.section `
6
6
  --account_cartMainWrapPadTop: var(--sp8x);
7
7
  --account_leftPanelWrapWidth: calc(100% - var(--account_rightPanelWrapWidth));
8
8
 
9
- //! Right Layout Sizes
9
+ /* //! Right Layout Sizes */
10
10
  --account_odLineMTop: var(--sp2x);
11
11
  --account_odLineMBot: var(--sp6x);
12
12
  --account_itemMTop: var(--sp3x);
13
- --account_commentMarginTop: var(--sp6x);
13
+ --account_commentMarginTop: var(--sp1-5x);
14
14
  --account_commentPadding: var(--sp2x) var(--sp3x);
15
- --account_btnMTop: var(--sp2x);
15
+ --account_btnMTop: var(--sp6x);
16
+
17
+ /* //! Collapse Sizes */
18
+ --account_collapseLargeDistance: var(--sp4x);
19
+ --account_collapseSmallDistance: var(--sp3x);
16
20
 
17
21
  .cart-main-wrap {
18
22
  display: flex;
@@ -67,6 +71,76 @@ const TotalCheckoutStyle = styled.section `
67
71
  display: none !important;
68
72
  }
69
73
 
74
+ .balance-text-block {
75
+ color: var(--account_secondaryColor13);
76
+ }
77
+
78
+ /* //! Collapse Styles */
79
+ .comment-text {
80
+ width: fit-content;
81
+ transition: color var(--account_trTime) ease-out;
82
+ cursor: pointer;
83
+ }
84
+
85
+ #collapse-item {
86
+ svg {
87
+ path {
88
+ transition: all var(--account_trTime) ease-out;
89
+
90
+ &:last-child {
91
+ transform: rotate(0deg);
92
+ transform-origin: 50% 50%;
93
+ }
94
+ }
95
+ }
96
+
97
+ &.active {
98
+ svg {
99
+ path:last-child {
100
+ transform: rotate(90deg);
101
+ }
102
+ }
103
+ }
104
+ }
105
+
106
+ #collapse-title {
107
+ display: flex;
108
+ gap: var(--sp1x);
109
+
110
+ /* //! Mouse Detect */
111
+ @media (pointer: fine) {
112
+ @media (hover: hover) {
113
+ &:hover {
114
+ .muramoney-text,
115
+ .promo-code-text,
116
+ .comment-text {
117
+ color: var(--account_primaryColor3);
118
+ }
119
+
120
+ svg path {
121
+ stroke: var(--account_primaryColor3);
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+
128
+ .collapse-container-wrapper {
129
+ margin-top: var(--account_collapseLargeDistance);
130
+ }
131
+
132
+ .collapse-distance {
133
+ margin-top: var(--account_collapseSmallDistance);
134
+ padding-top: var(--account_collapseSmallDistance);
135
+ }
136
+
137
+ .muramoney-container,
138
+ .muramoney-success-block,
139
+ .promo-code-container,
140
+ .promo-code-success-block {
141
+ margin-top: var(--account_commentMarginTop);
142
+ }
143
+
70
144
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
71
145
  --account_distance: var(--sp8x);
72
146
  /* --account_rightPanelWrapWidth: var(--sp66x); */
@@ -77,9 +151,13 @@ const TotalCheckoutStyle = styled.section `
77
151
  --account_odLineMTop: var(--sp2x);
78
152
  --account_odLineMBot: var(--sp4x);
79
153
  --account_itemMTop: var(--sp2x);
80
- --account_commentMarginTop: var(--sp4x);
154
+ --account_commentMarginTop: var(--sp1x);
81
155
  --account_commentPadding: var(--sp2x);
82
- --account_btnMTop: var(--sp2x);
156
+ --account_btnMTop: var(--sp4x);
157
+
158
+ /* //! Collapse Sizes */
159
+ --account_collapseLargeDistance: var(--sp4x);
160
+ --account_collapseSmallDistance: var(--sp3x);
83
161
  }
84
162
 
85
163
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
@@ -92,9 +170,13 @@ const TotalCheckoutStyle = styled.section `
92
170
  --account_odLineMTop: var(--sp2x);
93
171
  --account_odLineMBot: var(--sp4x);
94
172
  --account_itemMTop: var(--sp2x);
95
- --account_commentMarginTop: var(--sp4x);
173
+ --account_commentMarginTop: var(--sp1x);
96
174
  --account_commentPadding: var(--sp1x) var(--sp2x);
97
- --account_btnMTop: var(--sp2x);
175
+ --account_btnMTop: var(--sp3x);
176
+
177
+ /* //! Collapse Sizes */
178
+ --account_collapseLargeDistance: var(--sp3x);
179
+ --account_collapseSmallDistance: var(--sp3x);
98
180
  }
99
181
 
100
182
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
@@ -107,9 +189,13 @@ const TotalCheckoutStyle = styled.section `
107
189
  --account_odLineMTop: var(--sp2x);
108
190
  --account_odLineMBot: var(--sp3x);
109
191
  --account_itemMTop: var(--sp2x);
110
- --account_commentMarginTop: var(--sp3x);
192
+ --account_commentMarginTop: var(--sp1x);
111
193
  --account_commentPadding: var(--sp1x) var(--sp2x);
112
- --account_btnMTop: var(--sp2x);
194
+ --account_btnMTop: var(--sp3x);
195
+
196
+ /* //! Collapse Sizes */
197
+ --account_collapseLargeDistance: var(--sp4x);
198
+ --account_collapseSmallDistance: var(--sp3x);
113
199
  }
114
200
 
115
201
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXS}) {
@@ -122,9 +208,13 @@ const TotalCheckoutStyle = styled.section `
122
208
  --account_odLineMTop: var(--sp2x);
123
209
  --account_odLineMBot: var(--sp3x);
124
210
  --account_itemMTop: var(--sp2x);
125
- --account_commentMarginTop: var(--sp3x);
211
+ --account_commentMarginTop: var(--sp1x);
126
212
  --account_commentPadding: var(--sp1x) var(--sp2x);
127
- --account_btnMTop: var(--sp2x);
213
+ --account_btnMTop: var(--sp3x);
214
+
215
+ /* //! Collapse Sizes */
216
+ --account_collapseLargeDistance: var(--sp4x);
217
+ --account_collapseSmallDistance: var(--sp3x);
128
218
  }
129
219
 
130
220
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
@@ -137,9 +227,13 @@ const TotalCheckoutStyle = styled.section `
137
227
  --account_odLineMTop: var(--sp2x);
138
228
  --account_odLineMBot: var(--sp3x);
139
229
  --account_itemMTop: var(--sp1x);
140
- --account_commentMarginTop: var(--sp3x);
230
+ --account_commentMarginTop: var(--sp1x);
141
231
  --account_commentPadding: var(--sp1x) var(--sp2x);
142
- --account_btnMTop: var(--sp2x);
232
+ --account_btnMTop: var(--sp3x);
233
+
234
+ /* //! Collapse Sizes */
235
+ --account_collapseLargeDistance: var(--sp3x);
236
+ --account_collapseSmallDistance: var(--sp3x);
143
237
  }
144
238
 
145
239
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
@@ -152,9 +246,13 @@ const TotalCheckoutStyle = styled.section `
152
246
  --account_odLineMTop: var(--sp2x);
153
247
  --account_odLineMBot: var(--sp3x);
154
248
  --account_itemMTop: var(--sp1x);
155
- --account_commentMarginTop: var(--sp3x);
249
+ --account_commentMarginTop: var(--sp1x);
156
250
  --account_commentPadding: var(--sp1x) var(--sp2x);
157
- --account_btnMTop: var(--sp2x);
251
+ --account_btnMTop: var(--sp4x);
252
+
253
+ /* //! Collapse Sizes */
254
+ --account_collapseLargeDistance: var(--sp3x);
255
+ --account_collapseSmallDistance: var(--sp2-5x);
158
256
 
159
257
  .cart-main-wrap {
160
258
  .right-panel-wrap {
@@ -173,9 +271,13 @@ const TotalCheckoutStyle = styled.section `
173
271
  --account_odLineMTop: var(--sp2x);
174
272
  --account_odLineMBot: var(--sp3x);
175
273
  --account_itemMTop: var(--sp1x);
176
- --account_commentMarginTop: var(--sp3x);
274
+ --account_commentMarginTop: var(--sp1x);
177
275
  --account_commentPadding: var(--sp1x) var(--sp2x);
178
- --account_btnMTop: var(--sp2x);
276
+ --account_btnMTop: var(--sp3x);
277
+
278
+ /* //! Collapse Sizes */
279
+ --account_collapseLargeDistance: var(--sp3x);
280
+ --account_collapseSmallDistance: var(--sp2x);
179
281
 
180
282
  .cart-main-wrap {
181
283
  .right-panel-wrap {
@@ -19,7 +19,6 @@ const ProgressComponent = ({ round, value = 50, maxValue = 100, size, gapSize, s
19
19
  }
20
20
  }
21
21
  const sizeNumber = getValue(size || '--sizeProgress');
22
- console.log(sizeNumber);
23
22
  const strokeWidthNumber = getValue(strokeWidth || '--strokeWidth');
24
23
  const gapSizeValue = getValue(gapSize || '--gapDistance');
25
24
  const radius = (sizeNumber - strokeWidthNumber) / 2;
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
- import { Text, useTranslation } from '@weareconceptstudio/core';
2
+ import { handlePriceCheckFunc, Text, useTranslation } from '@weareconceptstudio/core';
3
3
  //* Component
4
4
  import ProgressComponent from './ProgressComponent';
5
- //* Util
6
- import { handlePriceCheckFunc } from '../../../../../utils/_functions';
7
5
  //* Styles
8
6
  import ProgressBalanceStyle from './style';
9
7
  const ProgressBalance = ({ progress, balance, nextStatusValue, nextStatusTitle, iconValue }) => {
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
- import { Text, useTranslation } from '@weareconceptstudio/core';
2
+ import { handlePriceCheckFunc, Text, useTranslation } from '@weareconceptstudio/core';
3
3
  //* Styles
4
4
  import HeroBalanceStyle from './style';
5
- //* Helpers
6
- import { handlePriceCheckFunc } from '../../../../utils/_functions';
7
5
  //* Component
8
6
  import ProgressBalance from './ProgressBalance';
9
7
  const HeroBalance = ({ iconValue, balance, cashback, progress, totalSpent, nextStatusValue, description, title, nextStatusTitle }) => {
@@ -1,7 +1,5 @@
1
- import { Text, useTranslation } from '@weareconceptstudio/core';
1
+ import { handlePriceCheckFunc, Text, useTranslation } from '@weareconceptstudio/core';
2
2
  import React from 'react';
3
- //* Helpers
4
- import { handlePriceCheckFunc } from '../../../../../utils/_functions';
5
3
  const ItemStatus = ({ title, cashback, value, className }) => {
6
4
  const { translate } = useTranslation();
7
5
  return (React.createElement("div", { className: `wrapper-item-status ${className}` },
@@ -1,5 +1,5 @@
1
- import React, { memo as Memo, useCallback, useState } from 'react';
2
- import { useUi, Text } from '@weareconceptstudio/core';
1
+ import React, { memo as Memo, useCallback, useEffect, useRef, useState } from 'react';
2
+ import { useUi, Text, useResizeObserver } from '@weareconceptstudio/core';
3
3
  //* Components
4
4
  import AddressForm from '../AddressForm';
5
5
  import AddressItem from '../AddressItem';
@@ -8,9 +8,15 @@ import AccountButton from '../../../components/AccountButton';
8
8
  import SelectAddressPopupStyle from './style';
9
9
  import { useAddressContext } from '../AddressProvider';
10
10
  const SelectAddressPopup = Memo(({ title, type }) => {
11
- const { openPopup, closePopup } = useUi();
11
+ const { openPopup, closePopup, winWidth } = useUi();
12
12
  const { selectAddress, addresses, hasAddressType, selectedAddresses } = useAddressContext();
13
13
  const [checkedId, setCheckedId] = useState(() => selectedAddresses.id, [selectedAddresses]);
14
+ //! Refs
15
+ const flexWrapperRef = useRef();
16
+ const styleRef = useRef();
17
+ //! State
18
+ const [refElement, setRefElement] = useState();
19
+ const resize = useResizeObserver(flexWrapperRef.current ? [...[...flexWrapperRef.current.children].map((item) => item)] : null);
14
20
  const handleNewAddressPopup = () => {
15
21
  openPopup(React.createElement(AddressForm, { title: type == 'shipping' ? `addNewShippingAddress` : type == 'billing' ? 'addNewBillingAddress' : 'addNewAddress', type: type, isCheckoutPage: true }), {
16
22
  accountIcon: true,
@@ -20,11 +26,38 @@ const SelectAddressPopup = Memo(({ title, type }) => {
20
26
  selectAddress({ checkedId, type });
21
27
  closePopup();
22
28
  }, [checkedId]);
23
- return (React.createElement(SelectAddressPopupStyle, null,
29
+ useEffect(() => {
30
+ setRefElement(flexWrapperRef.current);
31
+ }, [flexWrapperRef.current]);
32
+ useEffect(() => {
33
+ if (addresses.length > 2 && flexWrapperRef.current) {
34
+ const container = flexWrapperRef.current;
35
+ const items = Array.from(container.children);
36
+ const maxHeight = Math.max(...items.slice(0, 4).map((item) => item.clientHeight));
37
+ const minHeight = Math.min(...items.slice(0, 4).map((item) => item.clientHeight));
38
+ console.log(maxHeight, minHeight);
39
+ console.log(maxHeight, minHeight);
40
+ if (winWidth < 768) {
41
+ const first = Math.max(...items.slice(0, 1).map((item) => item.clientHeight));
42
+ const second = Math.min(...items.slice(1, 2).map((item) => item.clientHeight));
43
+ console.log(items.slice(0, 1), items.slice(1, 2));
44
+ styleRef.current.style.setProperty('--item-max-height', `${first + second}px`);
45
+ }
46
+ else {
47
+ styleRef.current.style.setProperty('--item-max-height', `${maxHeight + minHeight}px`);
48
+ }
49
+ }
50
+ }, [winWidth, addresses, flexWrapperRef.current, resize]);
51
+ useEffect(() => {
52
+ if (styleRef.current) {
53
+ styleRef.current.style.height = styleRef.current.clientHeight + 'px';
54
+ }
55
+ }, []);
56
+ return (React.createElement(SelectAddressPopupStyle, { ref: styleRef },
24
57
  React.createElement("div", { className: `select-address-wrap` },
25
58
  React.createElement(Text, { tag: `h6`, className: hasAddressType ? `account-h6 account-font-bold account-primary-color1` : 'account-p account-p2 account-font-bold account-primary-color1', text: title }),
26
59
  React.createElement(AccountButton, { onClick: handleNewAddressPopup, text: `addNewAdd`, btnType: hasAddressType ? `purple-text` : 'green-small-text' })),
27
- addresses?.length > 0 ? (React.createElement("div", { className: `flex-wrapper` }, addresses.map((item, index) => {
60
+ addresses?.length > 0 ? (React.createElement("div", { ref: flexWrapperRef, className: `flex-wrapper` }, addresses.map((item, index) => {
28
61
  return (React.createElement(AddressItem, { id: item.id, type: type, data: item, key: index, select_address: true, checkout_review: false, checkedId: checkedId, setCheckedId: setCheckedId }));
29
62
  }))) : null,
30
63
  React.createElement("div", { className: `cancel-and-save-wrap` },
@@ -5,6 +5,10 @@ const SelectAddressPopupStyle = styled.section `
5
5
  --account_selectAddressWrapMBot: var(--sp5x);
6
6
  --account_itemDistance: var(--sp3x);
7
7
 
8
+ display: flex;
9
+ flex-direction: column;
10
+ justify-content: space-between;
11
+
8
12
  .select-address-wrap {
9
13
  display: flex;
10
14
  flex-wrap: wrap;
@@ -18,6 +22,8 @@ const SelectAddressPopupStyle = styled.section `
18
22
  flex-wrap: wrap;
19
23
  margin-left: calc(-1 * calc(var(--account_itemDistance) / 2));
20
24
  margin-right: calc(-1 * calc(var(--account_itemDistance) / 2));
25
+ overflow: auto;
26
+ height: calc(var(--item-max-height) + var(--account_itemDistance));
21
27
 
22
28
  .item-container {
23
29
  &:not(:nth-child(1), :nth-child(2)) {
@@ -15,11 +15,11 @@ import SkeletonCartTemplate from './Skeleton';
15
15
  const CartTemplate = ({ children, actions, btnDisabled, checkoutUrl = '/checkout/' }) => {
16
16
  const { shopUrl, useCart } = useAccountContext();
17
17
  const { translate } = useTranslation();
18
- const { items, itemsCount, shippingCost, loading, subtotal, total, freeShippingRange } = useCart();
18
+ const { items, itemsCount, shippingCost, loading, subtotal, total, freeShippingRange, shippingCostValue } = useCart();
19
19
  return (React.createElement(Page, { className: 'cart use-account' },
20
20
  React.createElement(AccountContainer, { className: `second-version` },
21
21
  React.createElement(CartTemplateStyle, null,
22
- React.createElement(TotalCheckout, { total: total, loading: loading, subtotal: subtotal, itemsCount: itemsCount, shippingCost: shippingCost, freeShippingRange: freeShippingRange, buttonProps: {
22
+ React.createElement(TotalCheckout, { total: total, loading: loading, subtotal: subtotal, itemsCount: itemsCount, shippingCost: shippingCost, freeShippingRange: freeShippingRange, shippingCostValue: shippingCostValue, buttonProps: {
23
23
  url: checkoutUrl,
24
24
  disabled: btnDisabled,
25
25
  text: 'proceedToCheckout',
@@ -0,0 +1,2 @@
1
+ export const emptyCartIcon: React.JSX.Element;
2
+ import React from 'react';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export const emptyCartIcon = (React.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '129', height: '181', viewBox: '0 0 129 181' },
3
+ React.createElement("g", { "clip-path": 'url(#clip0_2872_19370)' },
4
+ React.createElement("path", { d: 'M107.4 170.413C98.7374 169.552 91.9468 162.232 91.9468 153.353C91.9468 144.474 98.4753 137.445 106.897 136.355L106.743 126.038L97.9344 83.301H14.4453L23.4912 125.548C23.512 125.656 23.5245 125.764 23.5245 125.872V180.963H107.554L107.396 170.421L107.4 170.413Z' }),
5
+ React.createElement("path", { d: 'M0 126.292V180.959H20.4385V126.03L10.3482 78.9113L0 126.292Z' }),
6
+ React.createElement("path", { d: 'M97.2981 80.2124L95.8418 73.1456H12.2695L13.7841 80.2124H97.2981Z' }),
7
+ React.createElement("path", { d: 'M64.9637 16.9194C63.8943 17.3601 63.1121 18.0792 62.8 19.1267C62.7959 19.1475 62.7917 19.1683 62.7834 19.1849C62.9082 19.8833 63.5032 20.723 64.4852 21.5502C65.979 22.8056 68.1551 23.8989 70.6101 24.6305C75.2038 25.9981 78.986 25.5866 80.1386 24.3561C80.1469 24.3312 80.1553 24.3104 80.1636 24.2854C80.4174 23.4374 80.5006 21.7331 78.2288 19.8209C76.8848 18.6903 74.9791 17.7217 72.857 17.0899C71.384 16.6534 69.8445 16.3957 68.4256 16.3707L56.4754 0.61192C55.9595 -0.0656538 54.99 -0.202832 54.3117 0.312623C53.6335 0.828078 53.4962 1.79664 54.0121 2.47421L64.9595 16.9153L64.9637 16.9194ZM68.9416 20.7271C69.1163 20.1369 70.4228 20.0038 71.8625 20.4278C73.298 20.856 74.3216 21.6791 74.1427 22.2735C73.968 22.8638 72.6614 22.9968 71.2217 22.5728C69.7862 22.1446 68.7626 21.3216 68.9416 20.7271Z' }),
8
+ React.createElement("path", { d: 'M81.6718 33.8421L78.5469 29.7226L79.5081 26.4927C78.5469 26.8419 77.3569 27.0248 76.0088 27.0248C74.2737 27.0248 72.2764 26.7255 70.1751 26.102C67.5205 25.3122 65.1487 24.115 63.4968 22.7224C62.9476 22.261 62.4982 21.7913 62.1445 21.3216L61.1293 24.7344L48.7672 1.85897C48.3635 1.11073 47.4232 0.828061 46.6742 1.23544C45.9252 1.63866 45.6423 2.57811 46.0501 3.32635L65.8394 39.9403C66.1182 40.4557 66.6508 40.7509 67.2001 40.7509C67.4497 40.7509 67.6994 40.6927 67.9324 40.5638C68.6814 40.1606 68.9643 39.2212 68.5565 38.4729L66.0433 33.8255C66.5759 34.0417 67.1293 34.237 67.6994 34.4033C69.2556 34.8647 70.8783 35.1225 72.3596 35.1225C74.5566 35.1225 76.4415 34.553 77.3403 33.2352L79.2085 35.7003C79.5123 36.0993 79.9741 36.3113 80.4401 36.3113C80.7647 36.3113 81.0934 36.2074 81.3722 35.9996C82.0504 35.4841 82.1877 34.5155 81.6718 33.838V33.8421Z' }),
9
+ React.createElement("path", { d: 'M120.367 112.403C119.972 112.403 119.568 112.304 119.202 112.087C118.096 111.443 117.725 110.026 118.37 108.92C118.549 108.612 119.215 107.415 120.159 105.029C120.63 103.84 121.974 103.258 123.164 103.728C124.354 104.198 124.936 105.54 124.466 106.729C123.738 108.571 122.972 110.217 122.373 111.252C121.944 111.988 121.166 112.399 120.372 112.399L120.367 112.403ZM126.238 93.3024C126.134 93.3024 126.026 93.2941 125.922 93.2816C124.653 93.107 123.767 91.9431 123.942 90.6753C124.146 89.1788 124.287 87.6948 124.354 86.2689C124.416 84.9928 125.502 84.0034 126.779 84.0658C128.057 84.1281 129.043 85.2131 128.985 86.4893C128.91 88.0523 128.76 89.6693 128.535 91.2988C128.377 92.4586 127.383 93.2983 126.243 93.2983L126.238 93.3024ZM124.345 73.5696C123.442 73.5696 122.581 73.0375 122.211 72.1521C121.661 70.8427 120.996 69.5998 120.238 68.4566C119.531 67.3925 119.822 65.9542 120.892 65.2475C121.957 64.5409 123.397 64.8318 124.104 65.9002C125.019 67.2844 125.822 68.7809 126.484 70.3563C126.979 71.5327 126.426 72.8921 125.248 73.3867C124.953 73.5114 124.649 73.5696 124.349 73.5696H124.345ZM110.302 60.0057C110.003 60.0057 109.699 59.9475 109.403 59.8228C108.122 59.2824 106.744 58.8043 105.305 58.397C104.073 58.0478 103.358 56.7716 103.707 55.5412C104.057 54.3107 105.334 53.5957 106.566 53.9449C108.188 54.4022 109.749 54.9467 111.201 55.5578C112.378 56.0525 112.932 57.4118 112.437 58.5882C112.062 59.4736 111.205 60.0057 110.302 60.0057ZM50.7134 58.8625C50.5928 58.8625 50.4679 58.8542 50.3431 58.8334C48.5997 58.5549 46.9644 58.16 45.479 57.6612C44.264 57.2538 43.6107 55.9444 44.0185 54.7306C44.4263 53.5168 45.737 52.8641 46.952 53.2715C48.2002 53.6872 49.59 54.0239 51.0838 54.2608C52.3487 54.4645 53.2058 55.6534 53.0019 56.9129C52.8189 58.0519 51.8327 58.8584 50.7176 58.8584L50.7134 58.8625ZM66.1005 58.8376C64.9438 58.8376 63.9452 57.973 63.8037 56.8007C63.6498 55.5329 64.5568 54.3772 65.8259 54.2276C67.12 54.0738 68.464 53.8784 69.8287 53.6581L70.3197 53.5791C71.5805 53.3754 72.7705 54.2318 72.9744 55.4954C73.1783 56.7591 72.3211 57.9439 71.0562 58.1475L70.5777 58.2265C69.1505 58.4593 67.7358 58.663 66.3793 58.8251C66.2836 58.8376 66.1921 58.8417 66.1005 58.8417V58.8376ZM86.0397 56.5679C84.7998 56.5679 83.7762 55.5911 83.7262 54.344C83.6763 53.0678 84.6749 51.9912 85.9523 51.9413C87.1965 51.8914 88.4281 51.8706 89.6181 51.8706C89.9801 51.8706 90.3421 51.8706 90.7041 51.8789C91.9815 51.8956 93.0093 52.9431 92.9926 54.2234C92.976 55.4913 91.9441 56.5097 90.675 56.5097C90.6667 56.5097 90.6542 56.5097 90.6459 56.5097C90.3088 56.5097 89.9593 56.5097 89.6223 56.5056C88.4905 56.5056 87.3171 56.5305 86.1313 56.5762C86.1021 56.5762 86.0689 56.5762 86.0397 56.5762V56.5679ZM36.4082 47.0528C35.2389 47.0528 34.2362 46.1715 34.1072 44.9868C34.0489 44.4381 34.0156 43.8686 34.0156 43.2991C34.0156 42.1269 34.1446 40.9089 34.3943 39.6743C34.6481 38.4231 35.8714 37.6125 37.1238 37.8661C38.3763 38.1196 39.1877 39.3417 38.9338 40.593C38.7466 41.5241 38.6509 42.4345 38.6509 43.295C38.6509 43.6982 38.6717 44.0972 38.7133 44.488C38.8506 45.76 37.9311 46.899 36.6578 47.0362C36.5746 47.0445 36.4914 47.0486 36.4082 47.0486V47.0528ZM44.1142 29.1407C43.5566 29.1407 42.9949 28.9412 42.5497 28.5338C41.6052 27.6692 41.5427 26.206 42.4082 25.2623C43.4817 24.0943 44.6468 22.947 45.8826 21.8537C46.8396 21.0057 48.3043 21.093 49.1531 22.0491C50.0019 23.0051 49.9145 24.4684 48.9575 25.3164C47.8424 26.3057 46.7855 27.3408 45.8243 28.3925C45.3666 28.8913 44.7425 29.1449 44.1142 29.1449V29.1407Z' }),
10
+ React.createElement("path", { d: 'M109.104 139.294C101.344 139.294 95.0273 145.6 95.0273 153.353C95.0273 161.106 101.339 167.416 109.104 167.416C116.868 167.416 123.18 161.11 123.18 153.353C123.18 145.596 116.868 139.294 109.104 139.294ZM116.731 158.279C117.476 159.023 117.476 160.228 116.731 160.973C115.986 161.717 114.779 161.717 114.034 160.973L109.104 156.047L104.173 160.973C103.428 161.717 102.222 161.717 101.477 160.973C100.732 160.228 100.732 159.023 101.477 158.279L106.407 153.353L101.477 148.427C100.732 147.683 100.732 146.477 101.477 145.733C102.222 144.989 103.428 144.989 104.173 145.733L109.104 150.659L114.034 145.733C114.779 144.989 115.986 144.989 116.731 145.733C117.476 146.477 117.476 147.683 116.731 148.427L111.8 153.353L116.731 158.279Z' }))));
@@ -3,10 +3,12 @@ import { Text } from '@weareconceptstudio/core';
3
3
  import { AccountButton } from '../../../components';
4
4
  //* Style
5
5
  import EmptyCartStyle from './style';
6
+ import { emptyCartIcon } from './icons';
6
7
  const EmptyCart = ({ shoppingUrl }) => {
7
8
  return (React.createElement(EmptyCartStyle, null,
8
9
  React.createElement("div", { className: `empty-cart-wrap` },
9
- React.createElement(Text, { tag: `h4`, className: `account-h4 account-font-bold account-primary-color1 empty-cart-title`, text: `cartEmpty` }),
10
+ React.createElement("div", { className: 'wrapper-icon' }, emptyCartIcon),
11
+ React.createElement(Text, { tag: `h4`, className: `account-h6 account-font-bold account-primary-color1 empty-cart-title`, text: `cartEmpty` }),
10
12
  React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 empty-cart-description`, text: `cartEmptyDesc` }),
11
13
  shoppingUrl ? (React.createElement(AccountButton, { text: `shopNow`, url: shoppingUrl, btnType: 'purple-text', className: 'empty-cart-btn' })) : null)));
12
14
  };