@weareconceptstudio/account 0.4.7 → 0.4.8
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/components/CustomCheckbox/index.js +1 -1
- package/dist/components/Sequence/index.js +12 -12
- package/dist/components/TotalCheckout/BalanceComp/index.js +3 -3
- package/dist/components/TotalCheckout/BalanceComp/utils.js +2 -2
- package/dist/components/TotalCheckout/CommentComp/index.js +1 -1
- package/dist/components/TotalCheckout/FreeShippingComp/index.js +3 -3
- package/dist/components/TotalCheckout/PromoCodeComp/index.js +3 -3
- package/dist/components/TotalCheckout/PromoCodeComp/utils.js +1 -3
- package/dist/components/TotalCheckout/Skeleton/index.js +0 -1
- package/dist/components/TotalCheckout/index.js +7 -7
- package/dist/components/WarningMessageForPopup/index.js +4 -4
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.js +8 -8
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.js +3 -3
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/ItemHistory/index.js +4 -4
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/index.js +3 -3
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.js +5 -5
- package/dist/modules/account/AccountBalanceTemplate/StatusBalance/index.js +1 -1
- package/dist/modules/account/AccountBalanceTemplate/index.js +1 -1
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/index.js +5 -5
- package/dist/modules/account/AccountSettingsTemplate/AccountInfo/utils.js +10 -10
- package/dist/modules/account/AccountSettingsTemplate/AccountPassword/index.js +6 -6
- package/dist/modules/account/AccountSettingsTemplate/AccountPassword/utils.js +4 -4
- package/dist/modules/account/AccountTemplate/index.js +3 -3
- package/dist/modules/address/AddressForm/index.js +3 -3
- package/dist/modules/address/AddressItem/index.js +8 -8
- package/dist/modules/address/AddressWrap/index.js +2 -2
- package/dist/modules/address/AddressesTemplate/index.js +2 -2
- package/dist/modules/address/EmptyAddress/index.js +1 -1
- package/dist/modules/address/SelectAddress/index.js +6 -6
- package/dist/modules/address/SelectAddressPopup/index.js +4 -4
- package/dist/modules/address/ShippingBillingInfo/index.js +6 -3
- package/dist/modules/auth/ForgotPasswordTemplate/index.js +9 -9
- package/dist/modules/auth/ResetPasswordTemplate/ExpiredLink/index.js +3 -3
- package/dist/modules/auth/ResetPasswordTemplate/index.js +6 -8
- package/dist/modules/auth/ResetPasswordTemplate/utils.js +2 -2
- package/dist/modules/auth/SignInTemplate/index.js +6 -8
- package/dist/modules/auth/SignInTemplate/utils.js +4 -4
- package/dist/modules/auth/SignUpTemplate/index.js +8 -8
- package/dist/modules/auth/SignUpTemplate/utils.js +9 -9
- package/dist/modules/auth/VerifyEmailAddressTemplate/index.js +11 -11
- package/dist/modules/cart/CartTemplate/index.js +5 -5
- package/dist/modules/cart/EmptyCart/index.js +3 -3
- package/dist/modules/cart/SimpleItems/Item/index.js +1 -1
- package/dist/modules/cart/SimpleItems/ItemMobile/index.js +2 -2
- package/dist/modules/cart/SimpleItems/index.js +5 -5
- package/dist/modules/checkout/CheckoutTemplate/StepReview/index.js +2 -2
- package/dist/modules/checkout/CheckoutTemplate/StepShipping/index.js +1 -1
- package/dist/modules/checkout/CheckoutTemplate/index.js +1 -1
- package/dist/modules/checkout/ThankYouTemplate/index.js +5 -5
- package/dist/modules/order/EmptyOrders/index.js +3 -3
- package/dist/modules/order/OrderDetails/index.js +9 -9
- package/dist/modules/order/OrderIndividualTemplate/index.js +1 -1
- package/dist/modules/order/OrderStatus/index.js +1 -1
- package/dist/modules/order/OrderedItems/index.js +13 -13
- package/dist/modules/order/OrdersList/OrderItem/index.js +1 -1
- package/dist/modules/order/OrdersList/index.js +19 -11
- package/dist/modules/payment/AddNewCard/index.js +1 -1
- package/dist/modules/payment/Card/index.js +3 -3
- package/dist/modules/payment/Payment/index.js +1 -1
- package/dist/modules/payment/PaymentMethodItem/index.js +1 -1
- package/dist/modules/payment/PaymentMethodsTemplate/index.js +1 -1
- package/dist/modules/payment/SelectPaymentMethodPopup/index.js +3 -3
- package/dist/translations/en.d.ts +237 -214
- package/dist/translations/en.js +237 -214
- package/dist/translations/hy.d.ts +237 -214
- package/dist/translations/hy.js +237 -214
- package/dist/translations/index.d.ts +711 -642
- package/dist/translations/ru.d.ts +237 -214
- package/dist/translations/ru.js +237 -214
- package/package.json +1 -1
|
@@ -10,6 +10,6 @@ const CustomCheckbox = ({ hide, setHide, isText = true }) => {
|
|
|
10
10
|
hide ? (React.createElement("div", { className: 'checkbox-wrap', role: 'button' },
|
|
11
11
|
React.createElement(CheckboxCheckedIcon, null))) : (React.createElement("div", { className: 'checkbox-wrap', role: 'button' },
|
|
12
12
|
React.createElement(CheckboxIcon, null))),
|
|
13
|
-
isText ? (React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 checkbox-text`, text: `useAlsoBillingAddress` })) : null)));
|
|
13
|
+
isText ? (React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 checkbox-text`, text: `account.order_balance.useAlsoBillingAddress` })) : null)));
|
|
14
14
|
};
|
|
15
15
|
export default CustomCheckbox;
|
|
@@ -11,55 +11,55 @@ const Sequence = ({ step }) => {
|
|
|
11
11
|
React.createElement("div", { className: `step step-1 ${step}` },
|
|
12
12
|
React.createElement("div", { className: `circle-wrap` },
|
|
13
13
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-number`, text: 1 })),
|
|
14
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'shipping' }),
|
|
14
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.address_management.shipping' }),
|
|
15
15
|
React.createElement("div", { className: `step-line` })),
|
|
16
16
|
React.createElement("div", { className: `step step-2` },
|
|
17
17
|
React.createElement("div", { className: `circle-wrap` },
|
|
18
18
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-number`, text: 2 })),
|
|
19
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'review' }),
|
|
19
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.order_balance.review' }),
|
|
20
20
|
React.createElement("div", { className: `step-line` })),
|
|
21
21
|
React.createElement("div", { className: `step step-3` },
|
|
22
22
|
React.createElement("div", { className: `circle-wrap` },
|
|
23
23
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-number`, text: 3 })),
|
|
24
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'payment' }),
|
|
24
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.payment_management.payment' }),
|
|
25
25
|
React.createElement("div", { className: `step-line` })),
|
|
26
26
|
React.createElement("div", { className: `step step-4` },
|
|
27
27
|
React.createElement("div", { className: `circle-wrap` },
|
|
28
28
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-number`, text: 4 })),
|
|
29
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'confirmation' })))) : step === 'review' ? (React.createElement(React.Fragment, null,
|
|
29
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.order_balance.confirmation' })))) : step === 'review' ? (React.createElement(React.Fragment, null,
|
|
30
30
|
React.createElement("div", { className: `step step-1 ${step}` },
|
|
31
31
|
React.createElement("div", { className: `circle-wrap` }, checkbox),
|
|
32
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'shipping' }),
|
|
32
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.address_management.shipping' }),
|
|
33
33
|
React.createElement("div", { className: `step-line` })),
|
|
34
34
|
React.createElement("div", { className: `step step-2 ${step}` },
|
|
35
35
|
React.createElement("div", { className: `circle-wrap` },
|
|
36
36
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-number`, text: 2 })),
|
|
37
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'review' }),
|
|
37
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.order_balance.review' }),
|
|
38
38
|
React.createElement("div", { className: `step-line` })),
|
|
39
39
|
React.createElement("div", { className: `step step-3` },
|
|
40
40
|
React.createElement("div", { className: `circle-wrap` },
|
|
41
41
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-number`, text: 3 })),
|
|
42
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'payment' }),
|
|
42
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.payment_management.payment' }),
|
|
43
43
|
React.createElement("div", { className: `step-line` })),
|
|
44
44
|
React.createElement("div", { className: `step step-4` },
|
|
45
45
|
React.createElement("div", { className: `circle-wrap` },
|
|
46
46
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-number`, text: 4 })),
|
|
47
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'confirmation' })))) : (React.createElement(React.Fragment, null,
|
|
47
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.order_balance.confirmation' })))) : (React.createElement(React.Fragment, null,
|
|
48
48
|
React.createElement("div", { className: `step step-1 ${step}` },
|
|
49
49
|
React.createElement("div", { className: `circle-wrap` }, checkbox),
|
|
50
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'shipping' }),
|
|
50
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.address_management.shipping' }),
|
|
51
51
|
React.createElement("div", { className: `step-line` })),
|
|
52
52
|
React.createElement("div", { className: `step step-2 ${step}` },
|
|
53
53
|
React.createElement("div", { className: `circle-wrap` }, checkbox),
|
|
54
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'review' }),
|
|
54
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.order_balance.review' }),
|
|
55
55
|
React.createElement("div", { className: `step-line` })),
|
|
56
56
|
React.createElement("div", { className: `step step-3 ${step}` },
|
|
57
57
|
React.createElement("div", { className: `circle-wrap` }, checkbox),
|
|
58
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'payment' }),
|
|
58
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.payment_management.payment' }),
|
|
59
59
|
React.createElement("div", { className: `step-line` })),
|
|
60
60
|
React.createElement("div", { className: `step step-4 ${step}` },
|
|
61
61
|
React.createElement("div", { className: `circle-wrap` },
|
|
62
62
|
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-number`, text: 4 })),
|
|
63
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'confirmation' })))))));
|
|
63
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color4 step-text`, text: 'account.order_balance.confirmation' })))))));
|
|
64
64
|
};
|
|
65
65
|
export default Sequence;
|
|
@@ -20,14 +20,14 @@ const BalanceComp = ({ isBalance = true, currency, balance, useBalance, balanceH
|
|
|
20
20
|
React.createElement("svg", { width: '12', height: '12', fill: 'none', viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg' },
|
|
21
21
|
React.createElement("path", { d: 'M0 6H12', stroke: 'black', strokeWidth: '2' }),
|
|
22
22
|
React.createElement("path", { d: 'M6 12L6 0', stroke: 'black', strokeWidth: '2' }))),
|
|
23
|
-
React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium balance-text' }, `${translate('useYourMoney')} (${handlePriceCheckFunc(balance, currency)} ${translate('balance')})`)), description: React.createElement(React.Fragment, null, useBalance ? (React.createElement("div", { className: `balance-success-block` },
|
|
23
|
+
React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium balance-text' }, `${translate('account.balance_promotions.useYourMoney')} (${handlePriceCheckFunc(balance, currency)} ${translate('account.balance_promotions.balance')})`)), description: React.createElement(React.Fragment, null, useBalance ? (React.createElement("div", { className: `balance-success-block` },
|
|
24
24
|
React.createElement(Text, { className: 'account-p account-p4 account-primary-color2 account-font-medium balance-success-text' }, handlePriceCheckFunc(useBalance, currency)),
|
|
25
|
-
React.createElement(Text, { text: 'remove', className: 'account-p account-p4 account-primary-color2 account-font-medium balance-remove-text', onClick: () => {
|
|
25
|
+
React.createElement(Text, { text: 'account.general_actions.remove', className: 'account-p account-p4 account-primary-color2 account-font-medium balance-remove-text', onClick: () => {
|
|
26
26
|
balanceHandler(null);
|
|
27
27
|
setDisable(false);
|
|
28
28
|
} }))) : (React.createElement(FormBuilder, { onSubmit: onFinish, fields: balanceFields, className: `balance-block`, formOptions: {
|
|
29
29
|
className: 'balance-container',
|
|
30
30
|
} },
|
|
31
|
-
React.createElement(AccountButton, { text: `add`, type: 'submit', btnType: `balance-version` })))) }))) : null;
|
|
31
|
+
React.createElement(AccountButton, { text: `account.general_actions.add`, type: 'submit', btnType: `balance-version` })))) }))) : null;
|
|
32
32
|
};
|
|
33
33
|
export default BalanceComp;
|
|
@@ -3,10 +3,10 @@ export const balanceFields = [
|
|
|
3
3
|
fieldType: 'input',
|
|
4
4
|
labelProps: {
|
|
5
5
|
name: 'balance',
|
|
6
|
-
errorKey: 'balance',
|
|
6
|
+
errorKey: 'account.balance_promotions.balance',
|
|
7
7
|
},
|
|
8
8
|
fieldProps: {
|
|
9
|
-
placeholder: 'balancePlaceholder',
|
|
9
|
+
placeholder: 'account.balance_promotions.balancePlaceholder',
|
|
10
10
|
type: 'number',
|
|
11
11
|
},
|
|
12
12
|
},
|
|
@@ -10,6 +10,6 @@ const CommentComp = ({ fillCheckoutData }) => {
|
|
|
10
10
|
React.createElement("svg", { width: '12', height: '12', fill: 'none', viewBox: '0 0 12 12', xmlns: 'http://www.w3.org/2000/svg' },
|
|
11
11
|
React.createElement("path", { d: 'M0 6H12', stroke: 'black', strokeWidth: '2' }),
|
|
12
12
|
React.createElement("path", { d: 'M6 12L6 0', stroke: 'black', strokeWidth: '2' }))),
|
|
13
|
-
React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium comment-text', text: 'comment' })), description: 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` }) }))));
|
|
13
|
+
React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium comment-text', text: 'account.order_balance.comment' })), description: React.createElement(Input.TextArea, { containerClassName: `comment-field`, placeholder: 'account.cart_checkout.checkoutCommentPlaceholder', onChange: (e) => fillCheckoutData('note', e.target.value), className: `account-p account-p3 account-font-regular account-primary-color1` }) }))));
|
|
14
14
|
};
|
|
15
15
|
export default CommentComp;
|
|
@@ -8,13 +8,13 @@ const FreeShippingComp = ({ shippingCostValue, freeShippingRange, shippingCost,
|
|
|
8
8
|
React.createElement("svg", { fill: 'none', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', className: 'free-shipping-comp-icon' },
|
|
9
9
|
React.createElement("path", { d: 'M21.675 14.475V9.9L17.925 6.15H15.375V4.125H2.85C2.325 4.725 2.025 5.025 1.5 5.55V16.65H3.3C3.3 18.375 4.725 19.8 6.45 19.8C8.175 19.8 9.6 18.375 9.6 16.65H13.35C13.35 18.375 14.775 19.8 16.5 19.8C18.225 19.8 19.65 18.375 19.65 16.65H22.35V14.475H21.675ZM6.45 18.6C5.475 18.6 4.65 17.775 4.65 16.8C4.65 15.825 5.475 15 6.45 15C7.425 15 8.25 15.825 8.25 16.8C8.25 17.775 7.5 18.6 6.45 18.6ZM16.575 18.6C15.6 18.6 14.775 17.775 14.775 16.8C14.775 15.825 15.6 15 16.575 15C17.55 15 18.375 15.825 18.375 16.8C18.375 17.775 17.625 18.6 16.575 18.6ZM19.575 11.1H15.375V7.95H17.025L19.575 10.5V11.1Z' })),
|
|
10
10
|
React.createElement("span", { className: 'free-shipping-comp-attr' },
|
|
11
|
-
React.createElement("span", null, translate('freeShippingText1')),
|
|
11
|
+
React.createElement("span", null, translate('account.notifications_messages.freeShippingText1')),
|
|
12
12
|
React.createElement("span", { className: 'range-value' }, handlePriceCheckFunc(freeShippingRange, currency)),
|
|
13
|
-
React.createElement("span", null, translate('freeShippingText2'))))) : typeof shippingCost != 'number' ? (React.createElement(FreeShippingCompStyle, null,
|
|
13
|
+
React.createElement("span", null, translate('account.notifications_messages.freeShippingText2'))))) : typeof shippingCost != 'number' ? (React.createElement(FreeShippingCompStyle, null,
|
|
14
14
|
React.createElement("svg", { fill: 'none', viewBox: '0 0 16 16', xmlns: 'http://www.w3.org/2000/svg', className: 'free-shipping-comp-icon' },
|
|
15
15
|
React.createElement("path", { d: 'M13.901 5.06321C13.835 5.1324 13.754 5.167 13.658 5.167C13.562 5.167 13.481 5.1324 13.415 5.06321L13.388 5.03491C13.2081 4.84621 12.9981 4.74871 12.7611 4.74242C12.5241 4.73613 12.3111 4.83363 12.1191 5.03491L8.90036 8.40947C8.83437 8.47866 8.75337 8.51326 8.65738 8.51326C8.56139 8.51326 8.48039 8.47866 8.4144 8.40947C8.3484 8.34028 8.3154 8.25537 8.3154 8.15473C8.3154 8.05409 8.3484 7.96917 8.4144 7.89998L11.5912 4.56945C11.8941 4.25181 12.2811 4.08827 12.7461 4.08512C13.2111 4.07883 13.595 4.23608 13.901 4.55687C13.967 4.62606 14 4.71097 14 4.81161C14 4.91225 13.967 4.99717 13.901 5.06636V5.06321ZM6.17655 3.19509C6.24255 3.1259 6.32354 3.09131 6.41954 3.09131C6.51553 3.09131 6.59652 3.1259 6.66252 3.19509L6.79151 3.33033C7.12449 3.67942 7.28648 4.11343 7.28348 4.63864C7.27748 5.16071 7.10949 5.59786 6.77651 5.94695L6.63552 6.09477C6.56953 6.16396 6.48853 6.19855 6.39254 6.19855C6.29655 6.19855 6.21555 6.16396 6.14956 6.09477C6.08356 6.02558 6.05056 5.94066 6.05056 5.84002C6.05056 5.73938 6.08356 5.65447 6.14956 5.58528L6.33554 5.39029C6.55453 5.16071 6.65652 4.89967 6.64152 4.60719C6.62652 4.31471 6.52453 4.06625 6.33554 3.86812L6.17955 3.70458C6.11356 3.63539 6.08056 3.55048 6.08056 3.44984C6.08056 3.3492 6.11356 3.26428 6.17955 3.19509H6.17655ZM8.58538 2.10378C8.65138 2.03459 8.73237 2 8.82837 2C8.92436 2 9.00535 2.03459 9.07135 2.10378L9.7253 2.78939C10.0193 3.10703 10.1723 3.50959 10.1813 3.99077C10.1903 4.4751 10.0433 4.87451 9.7403 5.19216L7.78744 7.23954C7.72145 7.30873 7.64045 7.34332 7.54446 7.34332C7.44846 7.34332 7.36747 7.30873 7.30147 7.23954C7.23548 7.17035 7.20248 7.08543 7.20248 6.9848C7.20248 6.88416 7.23548 6.79924 7.30147 6.73005L9.22434 4.71412C9.40433 4.52542 9.49132 4.28326 9.48832 3.99077C9.48232 3.69829 9.39233 3.45613 9.20934 3.26743L8.58238 2.61013C8.51639 2.54094 8.48339 2.45602 8.48339 2.35538C8.48339 2.25474 8.51639 2.16983 8.58238 2.10064L8.58538 2.10378ZM12.8601 9.64859C12.7941 9.71778 12.7131 9.75238 12.6171 9.75238C12.5211 9.75238 12.4401 9.71778 12.3741 9.64859L11.8761 9.12653C11.6572 8.89694 11.4292 8.78372 11.1922 8.78372C10.9552 8.78372 10.7272 8.89694 10.5082 9.12653L10.0373 9.62029C9.97129 9.68948 9.89029 9.72407 9.7943 9.72407C9.6983 9.72407 9.61731 9.68948 9.55131 9.62029C9.48532 9.5511 9.45232 9.46619 9.45232 9.36555C9.45232 9.26491 9.48532 9.17999 9.55131 9.1108L9.97728 8.66422C10.3103 8.31512 10.7092 8.13586 11.1742 8.12642C11.6392 8.11699 12.0381 8.28682 12.3711 8.63277L12.8541 9.13911C12.9201 9.2083 12.9531 9.29321 12.9531 9.39385C12.9531 9.49449 12.9201 9.5794 12.8541 9.64859H12.8601ZM2.36082 13.9855L9.01435 11.501C9.20034 11.4318 9.25434 11.1802 9.11335 11.0355L4.81765 6.6074C4.67666 6.46273 4.44268 6.51934 4.37668 6.71433L2.01585 13.6239C1.94085 13.8471 2.14484 14.0641 2.35783 13.9824L2.36082 13.9855Z' })),
|
|
16
16
|
React.createElement("span", { className: 'free-shipping-comp-attr' },
|
|
17
|
-
React.createElement("span", null, translate('youHaveReachedFreeShipping')),
|
|
17
|
+
React.createElement("span", null, translate('account.notifications_messages.youHaveReachedFreeShipping')),
|
|
18
18
|
React.createElement("span", { className: 'range-value' },
|
|
19
19
|
handlePriceCheckFunc(shippingCostValue, currency),
|
|
20
20
|
"!")))) : null;
|
|
@@ -20,14 +20,14 @@ const PromoCodeComp = ({ isPromoCode = true, promotionHandler, usePromotion, get
|
|
|
20
20
|
React.createElement("svg", { xmlns: 'http://www.w3.org/2000/svg', width: '12', height: '12', viewBox: '0 0 12 12', fill: 'none' },
|
|
21
21
|
React.createElement("path", { d: 'M0 6H12', stroke: 'black', strokeWidth: '2' }),
|
|
22
22
|
React.createElement("path", { d: 'M6 12L6 0', stroke: 'black', strokeWidth: '2' }))),
|
|
23
|
-
React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium promo-code-text', text: 'gotPromotionCode' })), description: React.createElement(React.Fragment, null, usePromotion ? (React.createElement("div", { className: `promo-code-success-block` },
|
|
23
|
+
React.createElement(Text, { className: 'account-p account-p4 account-primary-color1 account-font-medium promo-code-text', text: 'account.balance_promotions.gotPromotionCode' })), description: React.createElement(React.Fragment, null, usePromotion ? (React.createElement("div", { className: `promo-code-success-block` },
|
|
24
24
|
React.createElement(Text, { className: 'account-p account-p4 account-primary-color2 account-font-medium promo-code-success-text' }, usePromotion),
|
|
25
|
-
React.createElement(Text, { text: 'remove', className: 'account-p account-p4 account-primary-color2 account-font-medium promo-code-remove-text', onClick: () => {
|
|
25
|
+
React.createElement(Text, { text: 'account.general_actions.remove', className: 'account-p account-p4 account-primary-color2 account-font-medium promo-code-remove-text', onClick: () => {
|
|
26
26
|
promotionHandler(null);
|
|
27
27
|
setDisable(false);
|
|
28
28
|
} }))) : (React.createElement(FormBuilder, { onSubmit: onFinish, fields: promoCodeFields, className: `promo-code-block`, formOptions: {
|
|
29
29
|
className: 'promo-code-container',
|
|
30
30
|
} },
|
|
31
|
-
React.createElement(AccountButton, { text: `add`, type: 'submit', btnType: `promo-code-version` })))) }))) : null;
|
|
31
|
+
React.createElement(AccountButton, { text: `account.general_actions.add`, type: 'submit', btnType: `promo-code-version` })))) }))) : null;
|
|
32
32
|
};
|
|
33
33
|
export default PromoCodeComp;
|
|
@@ -2,13 +2,11 @@ export const promoCodeFields = [
|
|
|
2
2
|
{
|
|
3
3
|
fieldType: 'input',
|
|
4
4
|
labelProps: {
|
|
5
|
-
// label: 'promoCodeLabel',
|
|
6
5
|
name: 'promo_code',
|
|
7
|
-
// required: false,
|
|
8
6
|
errorKey: 'promoCode',
|
|
9
7
|
},
|
|
10
8
|
fieldProps: {
|
|
11
|
-
placeholder: 'promoCodePlaceholder',
|
|
9
|
+
placeholder: 'account.balance_promotions.promoCodePlaceholder',
|
|
12
10
|
},
|
|
13
11
|
},
|
|
14
12
|
];
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
//* Styles
|
|
3
3
|
import { skeletonTotal } from './icons';
|
|
4
4
|
import SkeletonTotalCheckoutStyle from './style';
|
|
5
|
-
//* Component
|
|
6
5
|
const SkeletonTotalCheckout = () => {
|
|
7
6
|
return (React.createElement(SkeletonTotalCheckoutStyle, null,
|
|
8
7
|
React.createElement("div", { className: 'wrapper-skeleton' }, skeletonTotal)));
|
|
@@ -57,22 +57,22 @@ const TotalCheckout = memo(({ isShipping, children, confirmation, buttonProps })
|
|
|
57
57
|
React.createElement("div", { className: `cart-main-wrap` },
|
|
58
58
|
React.createElement("div", { className: `left-panel-wrap panel` }, children),
|
|
59
59
|
React.createElement("div", { className: `right-panel-wrap panel ${confirmation ? 'display-none-wrap' : ''}` }, !confirmation && !addressLoading && !loading ? (React.createElement("div", { className: `max-width-wrapper sticky-wrap` },
|
|
60
|
-
React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1 sticky-wrap-title`, text: `orderSummary` }),
|
|
60
|
+
React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1 sticky-wrap-title`, text: `account.cart_checkout.orderSummary` }),
|
|
61
61
|
React.createElement("div", { className: `od-line` }),
|
|
62
62
|
React.createElement("div", { className: `od-item-wrap` },
|
|
63
|
-
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 sticky-wrap-subtotal`, text: `subtotal` }),
|
|
63
|
+
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 sticky-wrap-subtotal`, text: `account.cart_checkout.subtotal` }),
|
|
64
64
|
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 sticky-wrap-currency`, text: itemsCount ? handlePriceCheckFunc(subtotal, currency) : `0 ${currency}` })),
|
|
65
65
|
React.createElement("div", { className: `od-item-wrap` },
|
|
66
|
-
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 sticky-wrap-shipping`, text: `shipping` }),
|
|
66
|
+
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 sticky-wrap-shipping`, text: `account.address_management.shipping` }),
|
|
67
67
|
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}`}` })),
|
|
68
68
|
user && useBalance ? (React.createElement("div", { className: `od-item-wrap` },
|
|
69
|
-
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: `muramoney` }),
|
|
69
|
+
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: `account.balance_promotions.muramoney` }),
|
|
70
70
|
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 balance-text-block`, text: `-${handlePriceCheckFunc(useBalance, currency)}` }))) : null,
|
|
71
71
|
user && discount ? (React.createElement("div", { className: `od-item-wrap` },
|
|
72
|
-
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: `discount` }),
|
|
72
|
+
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: `account.order_balance.discount` }),
|
|
73
73
|
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 balance-text-block`, text: `-${handlePriceCheckFunc(discount, currency)}` }))) : null,
|
|
74
74
|
React.createElement("div", { className: `od-item-wrap` },
|
|
75
|
-
React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1 sticky-wrap-total`, text: `total` }),
|
|
75
|
+
React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1 sticky-wrap-total`, text: `account.order_balance.total` }),
|
|
76
76
|
React.createElement(Text, { className: `account-p account-p2 account-font-bold account-primary-color1 sticky-wrap-currency2`, text: itemsCount ? handlePriceCheckFunc(total, currency) : `0 ${currency}` })),
|
|
77
77
|
!isCheckoutPage ? (React.createElement(FreeShippingComp, { currency: currency, shippingCost: shippingCost, shippingCostValue: shippingCostValue, freeShippingRange: freeShippingRange })) : null,
|
|
78
78
|
React.createElement(CollapseContainer, { className: 'collapse-container-wrapper' },
|
|
@@ -80,6 +80,6 @@ const TotalCheckout = memo(({ isShipping, children, confirmation, buttonProps })
|
|
|
80
80
|
React.createElement(BalanceComp, { getItemCount: itemsCount, balance: user?.balance || 0, currency: currency, balanceHandler: handleBalance, useBalance: useBalance }),
|
|
81
81
|
React.createElement(PromoCodeComp, { getItemCount: itemsCount, promotionHandler: handlePromotion, usePromotion: usePromotion }))),
|
|
82
82
|
isCheckoutPage && typeof isShipping === 'boolean' && !isShipping ? React.createElement(CommentComp, { fillCheckoutData: fillCheckoutData }) : null,
|
|
83
|
-
React.createElement(AccountButton, {
|
|
83
|
+
React.createElement(AccountButton, { url: buttonProps.url, btnType: `full-width`, text: buttonProps.text, type: buttonProps.type, disabled: checkoutBtnDisabled, loading: buttonProps.loadingButton, className: `sticky-wrap-btn text-center`, onClick: () => buttonProps.handleClick && buttonProps.handleClick() }))) : (React.createElement(SkeletonTotalCheckout, null))))));
|
|
84
84
|
});
|
|
85
85
|
export default TotalCheckout;
|
|
@@ -10,8 +10,8 @@ const WarningMessageForPopup = React.memo(({ isDelete = false, isThankYou = fals
|
|
|
10
10
|
React.createElement(Text, { tag: `h6`, className: `account-h6 account-font-bold account-primary-color1 warning-message-title`, text: title }),
|
|
11
11
|
React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 confirm-delete-address-text`, text: description }),
|
|
12
12
|
React.createElement("div", { className: `cancel-remove-wrap ${!isDelete ? 'mobile-margin' : ''}` }, isDelete ? (React.createElement(React.Fragment, null,
|
|
13
|
-
React.createElement(AccountButton, {
|
|
14
|
-
React.createElement(AccountButton, { text: `remove`, btnType: `full-width`, className: 'warning-message-popup-remove', onClick: () => {
|
|
13
|
+
React.createElement(AccountButton, { onClick: closePopup, btnType: `green-large-text`, text: `account.general_actions.cancel`, className: 'warning-message-popup-close' }),
|
|
14
|
+
React.createElement(AccountButton, { text: `account.general_actions.remove`, btnType: `full-width`, className: 'warning-message-popup-remove', onClick: () => {
|
|
15
15
|
onRemove();
|
|
16
16
|
closePopup();
|
|
17
17
|
} }))) : isThankYou ? (
|
|
@@ -19,11 +19,11 @@ const WarningMessageForPopup = React.memo(({ isDelete = false, isThankYou = fals
|
|
|
19
19
|
// <AccountButton
|
|
20
20
|
// onClick={closePopup}
|
|
21
21
|
// btnType={`full-width`}
|
|
22
|
-
// text={`continueToShop`}
|
|
23
22
|
// url={globalData?.menu_bar[0]?.slug}
|
|
24
23
|
// className={'warning-message-popup-continue'}
|
|
24
|
+
// text={`account.general_actions.continueToShop`}
|
|
25
25
|
// />
|
|
26
26
|
// ) : null
|
|
27
|
-
React.createElement("div", null, "Global Data")) : (React.createElement(AccountButton, {
|
|
27
|
+
React.createElement("div", null, "Global Data")) : (React.createElement(AccountButton, { onClick: closePopup, btnType: `full-width`, text: `account.general_actions.done`, className: 'warning-message-popup-done' })))));
|
|
28
28
|
});
|
|
29
29
|
export default WarningMessageForPopup;
|
|
@@ -10,18 +10,18 @@ const ProgressBalance = ({ progress, balance, nextStatusValue, nextStatusTitle,
|
|
|
10
10
|
React.createElement("div", { className: 'wrapper-progress-inner-info' },
|
|
11
11
|
React.createElement(ProgressComponent, { className: 'circular-progress', percent: progress, animated: true, round: true }),
|
|
12
12
|
balance || balance == 0 ? (React.createElement("div", { className: 'wrapper-progress-text' },
|
|
13
|
-
React.createElement(Text, { className: 'account-primary-color1 account-p account-p4 first-letter balance-title', text: 'balance' }),
|
|
14
|
-
React.createElement(Text, { className: 'account-primary-color1
|
|
13
|
+
React.createElement(Text, { className: 'account-primary-color1 account-p account-p4 first-letter balance-title', text: 'account.balance_promotions.balance' }),
|
|
14
|
+
React.createElement(Text, { className: 'account-primary-color1 account-h5 first-letter balance-value' }, typeof balance == 'number' ? handlePriceCheckFunc(balance, currency) : balance))) : null),
|
|
15
15
|
nextStatusValue ? (React.createElement("div", { className: 'wrapper-next-status' },
|
|
16
16
|
React.createElement(Text, { className: 'account-primary-color1 account-p account-p4 text-center next-status-text' },
|
|
17
|
-
translate('balanceNextStatusDescription1'),
|
|
18
|
-
|
|
17
|
+
translate('account.balance_promotions.balanceNextStatusDescription1'),
|
|
18
|
+
"\u00A0",
|
|
19
19
|
React.createElement(Text, { className: 'account-font-medium next-status-value', tag: 'span' },
|
|
20
20
|
typeof nextStatusValue == 'number' ? handlePriceCheckFunc(nextStatusValue, '').trim() : nextStatusValue,
|
|
21
21
|
iconValue || null),
|
|
22
|
-
|
|
23
|
-
translate('balanceNextStatusDescription2'),
|
|
24
|
-
|
|
25
|
-
React.createElement(Text, { tag: 'span', className: 'account-secondary-color9 account-font-medium next-status-title', text: nextStatusTitle })))) : null));
|
|
22
|
+
"\u00A0",
|
|
23
|
+
translate('account.balance_promotions.balanceNextStatusDescription2'),
|
|
24
|
+
"\u00A0",
|
|
25
|
+
React.createElement(Text, { tag: 'span', className: 'account-secondary-color9 account-font-medium next-status-title', text: `account.user_status.${nextStatusTitle}` })))) : null));
|
|
26
26
|
};
|
|
27
27
|
export default ProgressBalance;
|
|
@@ -7,13 +7,13 @@ import ProgressBalance from './ProgressBalance';
|
|
|
7
7
|
const HeroBalance = ({ iconValue, balance, cashback, progress, totalSpent, nextStatusValue, description, title, nextStatusTitle, currency }) => {
|
|
8
8
|
const { translate } = useTranslation();
|
|
9
9
|
const dataInformation = [cashback, totalSpent, balance];
|
|
10
|
-
const dataInformationTitle = ['balanceCashback', 'balanceTotalSpent', 'balance'];
|
|
10
|
+
const dataInformationTitle = ['account.balance_promotions.balanceCashback', 'account.balance_promotions.balanceTotalSpent', 'balance'];
|
|
11
11
|
return (React.createElement(HeroBalanceStyle, { className: 'account-hero-balance' },
|
|
12
12
|
React.createElement("div", { className: 'inner-wrapper' },
|
|
13
13
|
React.createElement("div", { className: 'left-bar-account-balance' },
|
|
14
14
|
React.createElement("div", { className: 'inner-wrapper-left-bar' },
|
|
15
|
-
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p3 first-letter status-title', text: 'balanceStatus' }),
|
|
16
|
-
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-h5 first-letter text-title', text: title }),
|
|
15
|
+
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p3 first-letter status-title', text: 'account.balance_promotions.balanceStatus' }),
|
|
16
|
+
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-h5 first-letter text-title', text: `account.user_status.${title}` }),
|
|
17
17
|
description && (React.createElement(Text, { className: 'account-primary-color1 account-p account-p2 first-letter description-status' },
|
|
18
18
|
translate(description.description1),
|
|
19
19
|
" ",
|
|
@@ -27,15 +27,15 @@ const ItemHistory = ({ date, activity, value, action_type }) => {
|
|
|
27
27
|
React.createElement("div", { className: 'inner-wrapper-info', ref: innerWrapperRef },
|
|
28
28
|
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p1 date-info-text' },
|
|
29
29
|
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p1 mobile-date-info-text first-letter', tag: 'span' },
|
|
30
|
-
translate('balanceCategoryDate'),
|
|
30
|
+
translate('account.balance_promotions.balanceCategoryDate'),
|
|
31
31
|
":"),
|
|
32
|
-
|
|
32
|
+
"\u00A0",
|
|
33
33
|
date),
|
|
34
34
|
React.createElement("div", { className: 'wrapper-activity-text' },
|
|
35
35
|
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p1 activity-info-text' }, activity)),
|
|
36
36
|
React.createElement(Text, { className: `account-primary-color1 account-font-medium account-p account-p1 amount-info-text ${action_type}` },
|
|
37
|
-
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p1 mobile-amount-info-text first-letter', tag: 'span' }, translate('balanceCategoryAmount')),
|
|
38
|
-
|
|
37
|
+
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p1 mobile-amount-info-text first-letter', tag: 'span' }, translate('account.balance_promotions.balanceCategoryAmount')),
|
|
38
|
+
"\u00A0",
|
|
39
39
|
value)),
|
|
40
40
|
React.createElement("div", { className: 'line-info' })));
|
|
41
41
|
};
|
|
@@ -5,7 +5,7 @@ import HistoryBalanceStyle from './style';
|
|
|
5
5
|
//* Component
|
|
6
6
|
import ItemHistory from './ItemHistory';
|
|
7
7
|
import { Pagination } from '../../../../components';
|
|
8
|
-
const dataCategoryName = ['balanceCategoryDate', 'balanceCategoryActivity', 'balanceCategoryAmount'];
|
|
8
|
+
const dataCategoryName = ['account.balance_promotions.balanceCategoryDate', 'account.balance_promotions.balanceCategoryActivity', 'account.balance_promotions.balanceCategoryAmount'];
|
|
9
9
|
const HistoryBalance = ({ linkEarnPage }) => {
|
|
10
10
|
const { translate, selectedLang } = useTranslation();
|
|
11
11
|
const [currentPage, setCurrentPage] = useState(1);
|
|
@@ -28,9 +28,9 @@ const HistoryBalance = ({ linkEarnPage }) => {
|
|
|
28
28
|
return data && data.length ? (React.createElement(HistoryBalanceStyle, null,
|
|
29
29
|
React.createElement("div", { className: 'wrapper-title-section-history' },
|
|
30
30
|
React.createElement("div", { className: 'wrapper-history-link' },
|
|
31
|
-
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p1 first-letter title-section-history', text: 'balanceRecentActivity' }),
|
|
31
|
+
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p1 first-letter title-section-history', text: 'account.balance_promotions.balanceRecentActivity' }),
|
|
32
32
|
linkEarnPage ? (React.createElement(Link, { href: '/muramoney' },
|
|
33
|
-
React.createElement(Text, { className: 'account-primary-color1 account-font-bold account-p account-p4 first-letter how-earn-text', text: 'balanceHowToEarn' }))) : null),
|
|
33
|
+
React.createElement(Text, { className: 'account-primary-color1 account-font-bold account-p account-p4 first-letter how-earn-text', text: 'account.balance_promotions.balanceHowToEarn' }))) : null),
|
|
34
34
|
React.createElement("div", { className: 'line-title' })),
|
|
35
35
|
React.createElement("div", { className: 'wrapper-history-container' },
|
|
36
36
|
React.createElement("div", { className: 'wrapper-history-category-title', id: 'history-category-title' }, dataCategoryName.map((item, i) => {
|
|
@@ -2,20 +2,20 @@ import { handlePriceCheckFunc, Text, useTranslation } from '@weareconceptstudio/
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
const ItemStatus = ({ title, cashback, value, className, currency }) => {
|
|
4
4
|
const { translate } = useTranslation();
|
|
5
|
-
return (React.createElement("div", { className: `wrapper-item-status ${className}` },
|
|
5
|
+
return (React.createElement("div", { className: `wrapper-item-status ${className || ''}` },
|
|
6
6
|
React.createElement("div", { className: 'title' },
|
|
7
|
-
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p3 first-letter title-status-progress' }
|
|
7
|
+
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p3 first-letter title-status-progress', text: `account.user_status.${title}` })),
|
|
8
8
|
React.createElement("div", { className: 'circle-line' },
|
|
9
9
|
React.createElement("div", { className: 'circle' })),
|
|
10
10
|
React.createElement("div", { className: 'cashback' },
|
|
11
11
|
React.createElement(Text, { className: 'account-primary-color1 account-p account-p4 first-letter text-progress-cashback' },
|
|
12
12
|
cashback + '%',
|
|
13
13
|
" ",
|
|
14
|
-
translate('balanceCashback'))),
|
|
14
|
+
translate('account.balance_promotions.balanceCashback'))),
|
|
15
15
|
React.createElement("div", { className: 'value' },
|
|
16
16
|
React.createElement(Text, { className: 'account-primary-color1 account-p account-p4 first-letter text-progress-value' }, value ? (React.createElement(React.Fragment, null,
|
|
17
|
-
translate('balanceStarting'),
|
|
17
|
+
translate('account.balance_promotions.balanceStarting'),
|
|
18
18
|
" ",
|
|
19
|
-
handlePriceCheckFunc(value, currency))) : (translate('balanceFirstOrderStatus'))))));
|
|
19
|
+
handlePriceCheckFunc(value, currency))) : (translate('account.balance_promotions.balanceFirstOrderStatus'))))));
|
|
20
20
|
};
|
|
21
21
|
export default ItemStatus;
|
|
@@ -38,7 +38,7 @@ const StatusBalance = ({ allItem, activeStatus, currency }) => {
|
|
|
38
38
|
}, [resizes, winWidth]);
|
|
39
39
|
return (React.createElement(StatusBalanceStyle, { ref: styleRef, className: 'account-progress-status-wrapper' },
|
|
40
40
|
React.createElement("div", { className: 'wrapper-title-section' },
|
|
41
|
-
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p1 first-letter status-title-section-progress', text: 'balanceStatus' }),
|
|
41
|
+
React.createElement(Text, { className: 'account-primary-color1 account-font-medium account-p account-p1 first-letter status-title-section-progress', text: 'account.balance_promotions.balanceStatus' }),
|
|
42
42
|
React.createElement("div", { className: 'line-title' })),
|
|
43
43
|
React.createElement("div", { ref: outsideContentRef, className: 'outside-wrapper-content' },
|
|
44
44
|
React.createElement("div", { ref: contentRef, className: 'content-wrapper' },
|
|
@@ -18,7 +18,7 @@ const AccountBalanceTemplate = ({ iconValue, dataItem, linkEarnPage, className }
|
|
|
18
18
|
});
|
|
19
19
|
}, []);
|
|
20
20
|
return dataBalance ? (React.createElement(AccountBalanceTemplateStyle, { className: className || '' },
|
|
21
|
-
React.createElement(HeroBalance, { currency: currency, iconValue: iconValue, nextStatusTitle: 'resident', balance: dataBalance.balance, title: dataBalance.info.status, cashback: dataBalance.cashback, progress: dataBalance.info.timeline, totalSpent: dataBalance.info.spent.current, nextStatusValue: dataBalance.info.spent.next, description: (() => {
|
|
21
|
+
React.createElement(HeroBalance, { currency: currency, iconValue: iconValue, nextStatusTitle: 'resident', balance: dataBalance.balance, title: dataBalance.info.status.toLowerCase(), cashback: dataBalance.cashback, progress: dataBalance.info.timeline, totalSpent: dataBalance.info.spent.current, nextStatusValue: dataBalance.info.spent.next, description: (() => {
|
|
22
22
|
if (dataItem) {
|
|
23
23
|
const { description1, description2 } = dataItem.find((item) => item.name?.toLowerCase() === dataBalance.info.status?.toLowerCase()) || {};
|
|
24
24
|
return { description1, description2 };
|
|
@@ -11,7 +11,7 @@ const AccountInfo = ({ user, onAccountUpdate, displayFields = defaultDisplayFiel
|
|
|
11
11
|
const [edit, setEdit] = useState(false);
|
|
12
12
|
//! Handle Popup
|
|
13
13
|
const handleSuccessPopup = useCallback(() => {
|
|
14
|
-
openPopup(React.createElement(WarningMessageForPopup, { title: 'yourSettingsHaveBeenSaved', description: '
|
|
14
|
+
openPopup(React.createElement(WarningMessageForPopup, { title: 'account.order_balance.yourSettingsHaveBeenSaved', description: 'account.password_management.yourPasswordHaveBeenChanged' }), {
|
|
15
15
|
className: 'messagePopup',
|
|
16
16
|
accountIcon: true,
|
|
17
17
|
});
|
|
@@ -24,7 +24,7 @@ const AccountInfo = ({ user, onAccountUpdate, displayFields = defaultDisplayFiel
|
|
|
24
24
|
});
|
|
25
25
|
}, [edit]);
|
|
26
26
|
return (user && (React.createElement(AccountInfoStyle, { className: `account-info` },
|
|
27
|
-
React.createElement(Text, { text: `accountInformation`, className: `account-p account-p1 account-font-bold account-primary-color1` }),
|
|
27
|
+
React.createElement(Text, { text: `account.account_info.accountInformation`, className: `account-p account-p1 account-font-bold account-primary-color1` }),
|
|
28
28
|
!edit ? (React.createElement(React.Fragment, null,
|
|
29
29
|
React.createElement("div", { className: `info-wrap` }, displayFields.map((displayField, index) => (React.createElement("div", { key: index, className: `info-item-wrap` },
|
|
30
30
|
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1` },
|
|
@@ -32,12 +32,12 @@ const AccountInfo = ({ user, onAccountUpdate, displayFields = defaultDisplayFiel
|
|
|
32
32
|
":"),
|
|
33
33
|
"\u00A0",
|
|
34
34
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1`, text: user[displayField.value] || '-' }))))),
|
|
35
|
-
React.createElement(AccountButton, { text: `edit`, btnType: `green-large-text`, onClick: () => setEdit(true) }))) : (React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement(AccountButton, { text: `account.general_actions.edit`, btnType: `green-large-text`, onClick: () => setEdit(true) }))) : (React.createElement(React.Fragment, null,
|
|
36
36
|
React.createElement(FormBuilder, { fields: formFields, onSubmit: onFinish, className: 'form-items-wrap', formOptions: {
|
|
37
37
|
initialValues: user,
|
|
38
38
|
} },
|
|
39
39
|
React.createElement("div", { className: `cancel-and-save-and-apply-wrap` },
|
|
40
|
-
React.createElement(AccountButton, {
|
|
41
|
-
React.createElement(AccountButton, { type: 'submit',
|
|
40
|
+
React.createElement(AccountButton, { btnType: `green-large-text`, onClick: () => setEdit(false), text: `account.general_actions.cancel` }),
|
|
41
|
+
React.createElement(AccountButton, { type: 'submit', btnType: `full-width`, text: `account.general_actions.saveChanges` }))))))));
|
|
42
42
|
};
|
|
43
43
|
export default AccountInfo;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
export const defaultDisplayFields = [
|
|
2
|
-
{ label: 'firstName', value: 'first_name' },
|
|
3
|
-
{ label: 'lastName', value: 'last_name' },
|
|
4
|
-
{ label: 'phone', value: 'phone' },
|
|
5
|
-
{ label: 'email', value: 'email' },
|
|
2
|
+
{ label: 'account.account_info.firstName', value: 'first_name' },
|
|
3
|
+
{ label: 'account.account_info.lastName', value: 'last_name' },
|
|
4
|
+
{ label: 'account.account_info.phone', value: 'phone' },
|
|
5
|
+
{ label: 'account.account_info.email', value: 'email' },
|
|
6
6
|
];
|
|
7
7
|
export const defaultFormFields = [
|
|
8
8
|
{
|
|
9
9
|
fieldType: 'input',
|
|
10
10
|
labelProps: {
|
|
11
|
-
label: 'firstName',
|
|
11
|
+
label: 'account.account_info.firstName',
|
|
12
12
|
name: 'first_name',
|
|
13
13
|
},
|
|
14
14
|
fieldProps: {
|
|
15
|
-
placeholder: 'firstNamePlaceholder',
|
|
15
|
+
placeholder: 'account.account_info.firstNamePlaceholder',
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
fieldType: 'input',
|
|
20
20
|
labelProps: {
|
|
21
|
-
label: 'lastName',
|
|
21
|
+
label: 'account.account_info.lastName',
|
|
22
22
|
name: 'last_name',
|
|
23
23
|
},
|
|
24
24
|
fieldProps: {
|
|
25
|
-
placeholder: 'lastNamePlaceholder',
|
|
25
|
+
placeholder: 'account.account_info.lastNamePlaceholder',
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
fieldType: 'phone',
|
|
30
30
|
labelProps: {
|
|
31
|
-
label: 'phone',
|
|
31
|
+
label: 'account.account_info.phone',
|
|
32
32
|
name: 'phone',
|
|
33
33
|
},
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
fieldType: 'input',
|
|
37
37
|
labelProps: {
|
|
38
|
-
label: 'email',
|
|
38
|
+
label: 'account.account_info.email',
|
|
39
39
|
name: 'email',
|
|
40
40
|
},
|
|
41
41
|
fieldProps: {
|
|
@@ -10,7 +10,7 @@ const AccountPassword = ({ formFields = defaultFormFields, onPasswordUpdate }) =
|
|
|
10
10
|
const [edit, setEdit] = useState(false);
|
|
11
11
|
//! Handle Popup
|
|
12
12
|
const handleSuccessPopup = useCallback(() => {
|
|
13
|
-
openPopup(React.createElement(WarningMessageForPopup, { title: 'yourSettingsHaveBeenSaved', description: 'yourPasswordHaveBeenChanged' }), {
|
|
13
|
+
openPopup(React.createElement(WarningMessageForPopup, { title: 'account.order_balance.yourSettingsHaveBeenSaved', description: 'account.password_management.yourPasswordHaveBeenChanged' }), {
|
|
14
14
|
className: 'messagePopup',
|
|
15
15
|
accountIcon: true,
|
|
16
16
|
});
|
|
@@ -23,17 +23,17 @@ const AccountPassword = ({ formFields = defaultFormFields, onPasswordUpdate }) =
|
|
|
23
23
|
});
|
|
24
24
|
}, []);
|
|
25
25
|
return (React.createElement(AccountPasswordStyle, { className: `account-password` },
|
|
26
|
-
React.createElement(Text, { className: `account-p account-p1 account-font-bold account-primary-color1`, text: `password` }),
|
|
26
|
+
React.createElement(Text, { className: `account-p account-p1 account-font-bold account-primary-color1`, text: `account.password_management.password` }),
|
|
27
27
|
!edit ? (React.createElement(React.Fragment, null,
|
|
28
28
|
React.createElement("div", { className: `info-item-wrap` },
|
|
29
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1`, text: `password` }),
|
|
29
|
+
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1`, text: `account.password_management.password` }),
|
|
30
30
|
"\u00A0",
|
|
31
31
|
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1`, text: '****************' })),
|
|
32
|
-
React.createElement(AccountButton, { text: `edit`, btnType: `green-large-text`, onClick: () => setEdit(true) }))) : (React.createElement(FormBuilder, { formOptions: {
|
|
32
|
+
React.createElement(AccountButton, { text: `account.general_actions.edit`, btnType: `green-large-text`, onClick: () => setEdit(true) }))) : (React.createElement(FormBuilder, { formOptions: {
|
|
33
33
|
className: 'password-form-wrapper',
|
|
34
34
|
}, className: 'form-items-wrap', onSubmit: onFinish, fields: formFields },
|
|
35
35
|
React.createElement("div", { className: `cancel-and-save-and-apply-wrap` },
|
|
36
|
-
React.createElement(AccountButton, {
|
|
37
|
-
React.createElement(AccountButton, { type: 'submit',
|
|
36
|
+
React.createElement(AccountButton, { btnType: `green-large-text`, onClick: () => setEdit(false), text: `account.general_actions.cancel` }),
|
|
37
|
+
React.createElement(AccountButton, { type: 'submit', btnType: `full-width`, text: `account.general_actions.saveChanges` }))))));
|
|
38
38
|
};
|
|
39
39
|
export default AccountPassword;
|
|
@@ -2,23 +2,23 @@ export const defaultFormFields = [
|
|
|
2
2
|
{
|
|
3
3
|
fieldType: 'password',
|
|
4
4
|
labelProps: {
|
|
5
|
-
label: 'enterCurrentPassword',
|
|
5
|
+
label: 'account.password_management.enterCurrentPassword',
|
|
6
6
|
name: 'current_password',
|
|
7
7
|
rules: [{ type: 'password' }],
|
|
8
8
|
},
|
|
9
9
|
fieldProps: {
|
|
10
|
-
placeholder: 'enterCurrentPasswordPlaceholder',
|
|
10
|
+
placeholder: 'account.password_management.enterCurrentPasswordPlaceholder',
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
fieldType: 'password',
|
|
15
15
|
labelProps: {
|
|
16
|
-
label: 'enterNewPassword',
|
|
16
|
+
label: 'account.password_management.enterNewPassword',
|
|
17
17
|
name: 'password',
|
|
18
18
|
rules: [{ type: 'new-password' }],
|
|
19
19
|
},
|
|
20
20
|
fieldProps: {
|
|
21
|
-
placeholder: 'enterNewPasswordPlaceholder',
|
|
21
|
+
placeholder: 'account.password_management.enterNewPasswordPlaceholder',
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
];
|
|
@@ -15,7 +15,7 @@ const AccountTemplate = ({ isFullWidth = true, menuOptions = [], children }) =>
|
|
|
15
15
|
}, [winWidth]);
|
|
16
16
|
//! Menu
|
|
17
17
|
const menu = useMemo(() => {
|
|
18
|
-
return menuOptions.map((menuItem, index) => (React.createElement(Link, { key: index, href: menuItem.url, className: `menu-item ${menuItem.className
|
|
18
|
+
return menuOptions.map((menuItem, index) => (React.createElement(Link, { key: index, href: menuItem.url, className: `menu-item ${menuItem.className || ''}`, ...menuItem.options },
|
|
19
19
|
React.createElement(Text, { tag: `span`, className: `account-p account-p1 account-font-bold sidebar-item`, text: menuItem.name }))));
|
|
20
20
|
}, [menuOptions]);
|
|
21
21
|
const loadingComponent = useMemo(() => {
|
|
@@ -26,10 +26,10 @@ const AccountTemplate = ({ isFullWidth = true, menuOptions = [], children }) =>
|
|
|
26
26
|
React.createElement("aside", { className: 'sidebar' },
|
|
27
27
|
React.createElement("div", { className: `sidebar-inner-wrap` },
|
|
28
28
|
React.createElement("div", { className: `my-acc-wrap` },
|
|
29
|
-
React.createElement(Text, { className: 'account-p account-p1 account-font-bold account-primary-color1', text: 'myAccount' }),
|
|
29
|
+
React.createElement(Text, { className: 'account-p account-p1 account-font-bold account-primary-color1', text: 'account.account_info.myAccount' }),
|
|
30
30
|
React.createElement("div", { className: `account-line` })),
|
|
31
31
|
React.createElement("div", { className: 'tabs-wrap' }, menu),
|
|
32
|
-
React.createElement(Text, {
|
|
32
|
+
React.createElement(Text, { onClick: signOut, text: 'account.auth_account_management.signOut', className: 'account-p account-p1 account-error-color account-font-bold sign-out' }))),
|
|
33
33
|
lineStore,
|
|
34
34
|
React.createElement("div", { className: `right-bar` },
|
|
35
35
|
loadingComponent,
|