@weareconceptstudio/account 0.4.6 → 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.
Files changed (84) hide show
  1. package/dist/components/AccountButton/icons.d.ts +2 -0
  2. package/dist/components/AccountButton/icons.js +3 -0
  3. package/dist/components/AccountButton/index.js +8 -4
  4. package/dist/components/AccountButton/style.js +68 -0
  5. package/dist/components/CustomCheckbox/index.js +1 -1
  6. package/dist/components/Sequence/index.js +12 -12
  7. package/dist/components/TotalCheckout/BalanceComp/index.js +3 -3
  8. package/dist/components/TotalCheckout/BalanceComp/utils.js +2 -4
  9. package/dist/components/TotalCheckout/CommentComp/index.js +1 -1
  10. package/dist/components/TotalCheckout/FreeShippingComp/index.js +3 -3
  11. package/dist/components/TotalCheckout/PromoCodeComp/index.d.ts +3 -3
  12. package/dist/components/TotalCheckout/PromoCodeComp/index.js +7 -7
  13. package/dist/components/TotalCheckout/PromoCodeComp/utils.js +1 -3
  14. package/dist/components/TotalCheckout/Skeleton/index.js +0 -1
  15. package/dist/components/TotalCheckout/index.js +13 -13
  16. package/dist/components/WarningMessageForPopup/index.js +4 -4
  17. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.d.ts +2 -1
  18. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.js +9 -9
  19. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/style.js +4 -0
  20. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.d.ts +2 -1
  21. package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.js +8 -8
  22. package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/ItemHistory/index.js +4 -4
  23. package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/index.js +3 -3
  24. package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.d.ts +2 -1
  25. package/dist/modules/account/AccountBalanceTemplate/StatusBalance/ItemStatus/index.js +6 -6
  26. package/dist/modules/account/AccountBalanceTemplate/StatusBalance/index.d.ts +2 -1
  27. package/dist/modules/account/AccountBalanceTemplate/StatusBalance/index.js +3 -3
  28. package/dist/modules/account/AccountBalanceTemplate/index.js +4 -2
  29. package/dist/modules/account/AccountSettingsTemplate/AccountInfo/index.js +10 -7
  30. package/dist/modules/account/AccountSettingsTemplate/AccountInfo/utils.js +10 -10
  31. package/dist/modules/account/AccountSettingsTemplate/AccountPassword/index.js +6 -6
  32. package/dist/modules/account/AccountSettingsTemplate/AccountPassword/utils.js +4 -4
  33. package/dist/modules/account/AccountTemplate/index.js +3 -3
  34. package/dist/modules/address/AddressForm/index.js +3 -3
  35. package/dist/modules/address/AddressItem/index.js +8 -8
  36. package/dist/modules/address/AddressWrap/index.js +5 -4
  37. package/dist/modules/address/AddressesTemplate/index.js +2 -2
  38. package/dist/modules/address/EmptyAddress/index.js +1 -1
  39. package/dist/modules/address/SelectAddress/index.js +6 -6
  40. package/dist/modules/address/SelectAddressPopup/index.js +4 -4
  41. package/dist/modules/address/ShippingBillingInfo/index.js +6 -3
  42. package/dist/modules/auth/ForgotPasswordTemplate/index.js +14 -46
  43. package/dist/modules/auth/ResetPasswordTemplate/ExpiredLink/index.js +4 -4
  44. package/dist/modules/auth/ResetPasswordTemplate/index.js +8 -10
  45. package/dist/modules/auth/ResetPasswordTemplate/utils.js +2 -2
  46. package/dist/modules/auth/SignInTemplate/index.d.ts +2 -1
  47. package/dist/modules/auth/SignInTemplate/index.js +15 -8
  48. package/dist/modules/auth/SignInTemplate/style.js +28 -0
  49. package/dist/modules/auth/SignInTemplate/utils.js +4 -4
  50. package/dist/modules/auth/SignUpTemplate/index.d.ts +2 -1
  51. package/dist/modules/auth/SignUpTemplate/index.js +13 -9
  52. package/dist/modules/auth/SignUpTemplate/style.js +28 -0
  53. package/dist/modules/auth/SignUpTemplate/utils.js +9 -9
  54. package/dist/modules/auth/VerifyEmailAddressTemplate/index.js +13 -11
  55. package/dist/modules/cart/CartTemplate/index.js +5 -5
  56. package/dist/modules/cart/EmptyCart/index.js +3 -3
  57. package/dist/modules/cart/SimpleItems/Item/index.js +1 -1
  58. package/dist/modules/cart/SimpleItems/ItemMobile/index.js +8 -3
  59. package/dist/modules/cart/SimpleItems/index.js +5 -5
  60. package/dist/modules/checkout/CheckoutTemplate/StepReview/index.js +2 -2
  61. package/dist/modules/checkout/CheckoutTemplate/StepShipping/index.js +1 -1
  62. package/dist/modules/checkout/CheckoutTemplate/index.js +1 -1
  63. package/dist/modules/checkout/ThankYouTemplate/index.js +5 -5
  64. package/dist/modules/order/EmptyOrders/index.js +3 -3
  65. package/dist/modules/order/OrderDetails/index.js +9 -9
  66. package/dist/modules/order/OrderIndividualTemplate/index.js +1 -1
  67. package/dist/modules/order/OrderStatus/index.js +1 -1
  68. package/dist/modules/order/OrderedItems/index.js +17 -14
  69. package/dist/modules/order/OrdersList/OrderItem/index.js +1 -1
  70. package/dist/modules/order/OrdersList/index.js +19 -11
  71. package/dist/modules/payment/AddNewCard/index.js +7 -4
  72. package/dist/modules/payment/Card/index.js +3 -3
  73. package/dist/modules/payment/Payment/index.js +1 -1
  74. package/dist/modules/payment/PaymentMethodItem/index.js +1 -1
  75. package/dist/modules/payment/PaymentMethodsTemplate/index.js +1 -1
  76. package/dist/modules/payment/SelectPaymentMethodPopup/index.js +3 -3
  77. package/dist/translations/en.d.ts +195 -194
  78. package/dist/translations/en.js +199 -207
  79. package/dist/translations/hy.d.ts +237 -214
  80. package/dist/translations/hy.js +237 -231
  81. package/dist/translations/index.d.ts +642 -595
  82. package/dist/translations/ru.d.ts +237 -214
  83. package/dist/translations/ru.js +237 -231
  84. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export const googleIcon: React.JSX.Element;
2
+ import React from 'react';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export const googleIcon = (React.createElement("svg", { fill: 'none', viewBox: '0 0 28 28', xmlns: 'http://www.w3.org/2000/svg' },
3
+ React.createElement("path", { d: 'M27.5725 11.8425L27.4312 11.2431H14.4037V16.7569H22.1875C21.3794 20.5944 17.6294 22.6144 14.5662 22.6144C12.3375 22.6144 9.98812 21.6769 8.43312 20.17C7.61271 19.3623 6.95966 18.4006 6.51137 17.3402C6.06308 16.2797 5.82835 15.1413 5.82062 13.99C5.82062 11.6675 6.86438 9.34437 8.38313 7.81625C9.90188 6.28813 12.1956 5.43313 14.4762 5.43313C17.0881 5.43313 18.96 6.82 19.66 7.4525L23.5781 3.555C22.4287 2.545 19.2712 0 14.35 0C10.5531 0 6.9125 1.45438 4.25125 4.10687C1.625 6.71875 0.265625 10.4956 0.265625 14C0.265625 17.5044 1.55188 21.0925 4.09688 23.725C6.81625 26.5325 10.6675 28 14.6331 28C18.2413 28 21.6612 26.5863 24.0987 24.0212C26.495 21.4963 27.7344 18.0025 27.7344 14.34C27.7344 12.7981 27.5794 11.8825 27.5725 11.8425Z', fill: 'var(--account_primaryColor1)' })));
@@ -1,9 +1,10 @@
1
- import React, { memo, useCallback, useMemo } from 'react';
1
+ import React, { useCallback, useMemo } from 'react';
2
2
  import classNames from 'classnames';
3
3
  import { Link, useTranslation } from '@weareconceptstudio/core';
4
+ import { googleIcon } from './icons';
4
5
  import AccountButtonStyle from './style';
5
6
  const AccountButton = (props) => {
6
- const { btnType, text, className, onClick, children, url, customLinkProps, target, type = 'button', disabled = false, svg_icon, loading = false } = props;
7
+ const { btnType, text, className, onClick, children, url, customLinkProps, target, type = 'button', disabled = false, svg_icon, loading = false, isGoogleAuth = false } = props;
7
8
  const { translate } = useTranslation();
8
9
  const Component = useMemo(() => (url ? Link : 'button'), [url]);
9
10
  const customProps = useMemo(() => (url ? { ...customLinkProps, url, target } : { type, disabled }), [url, type, disabled]);
@@ -12,14 +13,17 @@ const AccountButton = (props) => {
12
13
  [className]: className,
13
14
  'loading': loading,
14
15
  'disabled': disabled,
16
+ 'account-google-btn': isGoogleAuth,
15
17
  });
16
18
  const handleClick = useCallback(() => {
17
19
  return !disabled && onClick?.();
18
20
  }, [onClick, disabled]);
19
- return (React.createElement(AccountButtonStyle, { onClick: handleClick, className: `${classString} ` },
21
+ return (React.createElement(AccountButtonStyle, { onClick: handleClick, className: `${classString}` },
20
22
  React.createElement(Component, { ...customProps },
21
23
  loading ? (React.createElement("div", { className: 'outside-wrapper-loader' },
22
24
  React.createElement("div", { className: 'loader' }))) : null,
23
- React.createElement("div", { className: `content-button ${loading ? 'loading' : ''}` }, svg_icon || children || translate(text)))));
25
+ React.createElement("div", { className: `content-button ${loading ? 'loading' : ''}` }, isGoogleAuth ? (React.createElement("div", { className: `google-content-block` },
26
+ googleIcon,
27
+ React.createElement("span", { className: `google-text` }, "google"))) : (svg_icon || children || translate(text))))));
24
28
  };
25
29
  export default AccountButton;
@@ -14,6 +14,10 @@ const AccountButtonStyle = styled.div `
14
14
  --account_promoCodeVersionPadTB: var(--sp2x);
15
15
  --account_promoCodeVersionPadLR: var(--sp7x);
16
16
 
17
+ /* //! Google Auth */
18
+ --account_googleAuthIconSize: var(--sp4x);
19
+ --account_googleAuthContentGap: var(--sp1x);
20
+
17
21
  display: inline-flex;
18
22
 
19
23
  button,
@@ -242,6 +246,49 @@ const AccountButtonStyle = styled.div `
242
246
  height: calc(100% - var(--account_btnPadTB) * 2);
243
247
  }
244
248
 
249
+ &.account-google-btn {
250
+ a,
251
+ button {
252
+ background-color: var(--account_backgroundColor);
253
+
254
+ svg {
255
+ width: var(--account_googleAuthIconSize);
256
+ height: var(--account_googleAuthIconSize);
257
+
258
+ path {
259
+ transition: fill var(--account_trTime) ease-out;
260
+ }
261
+ }
262
+
263
+ .google-content-block {
264
+ display: flex;
265
+ align-items: center;
266
+ gap: var(--account_googleAuthContentGap);
267
+ }
268
+
269
+ .google-text {
270
+ color: var(--account_primaryColor1);
271
+ transition: color var(--account_trTime) ease-out;
272
+ }
273
+
274
+ @media (pointer: fine) {
275
+ @media (hover: hover) {
276
+ &:hover {
277
+ svg {
278
+ path {
279
+ fill: var(--account_secondaryColor9);
280
+ }
281
+ }
282
+
283
+ .google-text {
284
+ color: var(--account_secondaryColor9);
285
+ }
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+
245
292
  .loader {
246
293
  /* width: var(--sp4x); */
247
294
  height: 100%;
@@ -290,6 +337,9 @@ const AccountButtonStyle = styled.div `
290
337
  /* //! Promo Code Version */
291
338
  --account_promoCodeVersionPadTB: var(--sp2x);
292
339
  --account_promoCodeVersionPadLR: var(--sp7x);
340
+
341
+ /* //! Google Auth */
342
+ --account_googleAuthIconSize: var(--sp3-5x);
293
343
  }
294
344
 
295
345
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeM}) {
@@ -305,6 +355,9 @@ const AccountButtonStyle = styled.div `
305
355
  /* //! Promo Code Version */
306
356
  --account_promoCodeVersionPadTB: var(--sp2x);
307
357
  --account_promoCodeVersionPadLR: var(--sp4x);
358
+
359
+ /* //! Google Auth */
360
+ --account_googleAuthIconSize: var(--sp3x);
308
361
  }
309
362
 
310
363
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeMMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeS}) {
@@ -320,6 +373,9 @@ const AccountButtonStyle = styled.div `
320
373
  /* //! Promo Code Version */
321
374
  --account_promoCodeVersionPadTB: var(--sp2x);
322
375
  --account_promoCodeVersionPadLR: var(--sp4x);
376
+
377
+ /* //! Google Auth */
378
+ --account_googleAuthIconSize: var(--sp3x);
323
379
  }
324
380
 
325
381
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXS}) {
@@ -335,6 +391,9 @@ const AccountButtonStyle = styled.div `
335
391
  /* //! Promo Code Version */
336
392
  --account_promoCodeVersionPadTB: var(--sp2x);
337
393
  --account_promoCodeVersionPadLR: var(--sp4x);
394
+
395
+ /* //! Google Auth */
396
+ --account_googleAuthIconSize: var(--sp3x);
338
397
  }
339
398
 
340
399
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXSMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSize}) {
@@ -350,6 +409,9 @@ const AccountButtonStyle = styled.div `
350
409
  /* //! Promo Code Version */
351
410
  --account_promoCodeVersionPadTB: var(--sp2x);
352
411
  --account_promoCodeVersionPadLR: var(--sp4x);
412
+
413
+ /* //! Google Auth */
414
+ --account_googleAuthIconSize: var(--sp3x);
353
415
  }
354
416
 
355
417
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeS}) {
@@ -365,6 +427,9 @@ const AccountButtonStyle = styled.div `
365
427
  /* //! Promo Code Version */
366
428
  --account_promoCodeVersionPadTB: var(--sp2x);
367
429
  --account_promoCodeVersionPadLR: var(--sp4x);
430
+
431
+ /* //! Google Auth */
432
+ --account_googleAuthIconSize: var(--sp3x);
368
433
  }
369
434
 
370
435
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_TabletSizeSMin}) {
@@ -380,6 +445,9 @@ const AccountButtonStyle = styled.div `
380
445
  /* //! Promo Code Version */
381
446
  --account_promoCodeVersionPadTB: var(--sp2x);
382
447
  --account_promoCodeVersionPadLR: var(--sp4x);
448
+
449
+ /* //! Google Auth */
450
+ --account_googleAuthIconSize: var(--sp3x);
383
451
  }
384
452
  `;
385
453
  export default AccountButtonStyle;
@@ -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('balanceLowercase')})`)), 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;
@@ -2,13 +2,11 @@ export const balanceFields = [
2
2
  {
3
3
  fieldType: 'input',
4
4
  labelProps: {
5
- // label: 'muramoneyCodeLabel',
6
5
  name: 'balance',
7
- // required: false,
8
- errorKey: 'balance',
6
+ errorKey: 'account.balance_promotions.balance',
9
7
  },
10
8
  fieldProps: {
11
- placeholder: 'balancePlaceholder',
9
+ placeholder: 'account.balance_promotions.balancePlaceholder',
12
10
  type: 'number',
13
11
  },
14
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;
@@ -1,8 +1,8 @@
1
1
  export default PromoCodeComp;
2
- declare function PromoCodeComp({ isPromoCode, promoCodeHandler, usePromoCode, getItemCount }: {
2
+ declare function PromoCodeComp({ isPromoCode, promotionHandler, usePromotion, getItemCount }: {
3
3
  isPromoCode?: boolean;
4
- promoCodeHandler: any;
5
- usePromoCode: any;
4
+ promotionHandler: any;
5
+ usePromotion: any;
6
6
  getItemCount: any;
7
7
  }): React.JSX.Element;
8
8
  import React from 'react';
@@ -5,14 +5,14 @@ import AccountButton from '../../AccountButton';
5
5
  import { promoCodeFields } from './utils';
6
6
  //* Style
7
7
  import PromoCodeCompStyle from './style';
8
- const PromoCodeComp = ({ isPromoCode = true, promoCodeHandler, usePromoCode, getItemCount }) => {
8
+ const PromoCodeComp = ({ isPromoCode = true, promotionHandler, usePromotion, getItemCount }) => {
9
9
  //! States
10
10
  const [couponCode, setCouponCode] = useState(false);
11
11
  const [disable, setDisable] = useState(false);
12
12
  //! On Finish
13
13
  const onFinish = (values) => {
14
14
  setDisable(true);
15
- promoCodeHandler(values.promo_code);
15
+ promotionHandler(values.promo_code);
16
16
  };
17
17
  return isPromoCode ? (React.createElement(PromoCodeCompStyle, { className: `collapse-distance ${getItemCount ? '' : 'disable'}` },
18
18
  React.createElement(CollapseItem, { disable: disable, title: React.createElement(React.Fragment, null,
@@ -20,14 +20,14 @@ const PromoCodeComp = ({ isPromoCode = true, promoCodeHandler, usePromoCode, 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, usePromoCode ? (React.createElement("div", { className: `promo-code-success-block` },
24
- React.createElement(Text, { className: 'account-p account-p4 account-primary-color2 account-font-medium promo-code-success-text' }, usePromoCode),
25
- React.createElement(Text, { text: 'remove', className: 'account-p account-p4 account-primary-color2 account-font-medium promo-code-remove-text', onClick: () => {
26
- promoCodeHandler(null);
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
+ React.createElement(Text, { className: 'account-p account-p4 account-primary-color2 account-font-medium promo-code-success-text' }, usePromotion),
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
+ 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)));
@@ -16,12 +16,12 @@ const TotalCheckout = memo(({ isShipping, children, confirmation, buttonProps })
16
16
  const { fillCheckoutData, fillCart, checkoutBtnDisabled, isCheckoutPage } = useCheckoutContext();
17
17
  const { addressLoading } = useAddressContext();
18
18
  const { user } = useUser();
19
- const { itemsCount, shippingCost, freeShippingRange, shippingCostValue, total, subtotal, useBalance, loading, usePromoCode, discountTotal } = useCart();
19
+ const { itemsCount, shippingCost, freeShippingRange, shippingCostValue, total, subtotal, useBalance, loading, usePromotion, discount } = useCart();
20
20
  const handleBalance = (amount) => {
21
21
  fillCart('useBalance', amount);
22
22
  };
23
- const handlePromoCode = (code) => {
24
- fillCart('promoCode', code);
23
+ const handlePromotion = (promotion) => {
24
+ fillCart('usePromotion', promotion);
25
25
  };
26
26
  const innerCollapseRef = useRef(null);
27
27
  //! disable keypress on input
@@ -57,29 +57,29 @@ 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
- user && discountTotal ? (React.createElement("div", { className: `od-item-wrap` },
72
- React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1`, text: `discount` }),
73
- React.createElement(Text, { className: `account-p account-p2 account-font-regular account-primary-color1 balance-text-block`, text: `-${handlePriceCheckFunc(discountTotal, currency)}` }))) : null,
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: `account.order_balance.discount` }),
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' },
79
79
  React.createElement("div", { ref: innerCollapseRef },
80
80
  React.createElement(BalanceComp, { getItemCount: itemsCount, balance: user?.balance || 0, currency: currency, balanceHandler: handleBalance, useBalance: useBalance }),
81
- React.createElement(PromoCodeComp, { getItemCount: itemsCount, promoCodeHandler: handlePromoCode, usePromoCode: usePromoCode }))),
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, { loading: buttonProps.loadingButton, url: buttonProps.url, btnType: `full-width`, text: buttonProps.text, type: buttonProps.type, className: `sticky-wrap-btn`, disabled: checkoutBtnDisabled, onClick: () => buttonProps.handleClick && buttonProps.handleClick() }))) : (React.createElement(SkeletonTotalCheckout, null))))));
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, { text: `cancel`, onClick: closePopup, btnType: `green-large-text`, className: 'warning-message-popup-close' }),
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, { text: `done`, onClick: closePopup, btnType: `full-width`, className: 'warning-message-popup-done' })))));
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;
@@ -1,9 +1,10 @@
1
1
  export default ProgressBalance;
2
- declare function ProgressBalance({ progress, balance, nextStatusValue, nextStatusTitle, iconValue }: {
2
+ declare function ProgressBalance({ progress, balance, nextStatusValue, nextStatusTitle, iconValue, currency }: {
3
3
  progress: any;
4
4
  balance: any;
5
5
  nextStatusValue: any;
6
6
  nextStatusTitle: any;
7
7
  iconValue: any;
8
+ currency: any;
8
9
  }): React.JSX.Element;
9
10
  import React from 'react';
@@ -4,24 +4,24 @@ import { handlePriceCheckFunc, Text, useTranslation } from '@weareconceptstudio/
4
4
  import ProgressComponent from './ProgressComponent';
5
5
  //* Styles
6
6
  import ProgressBalanceStyle from './style';
7
- const ProgressBalance = ({ progress, balance, nextStatusValue, nextStatusTitle, iconValue }) => {
7
+ const ProgressBalance = ({ progress, balance, nextStatusValue, nextStatusTitle, iconValue, currency }) => {
8
8
  const { translate } = useTranslation();
9
9
  return (React.createElement(ProgressBalanceStyle, null,
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' }, translate('progressBalanceTitle')),
14
- React.createElement(Text, { className: 'account-primary-color1 account-h5 first-letter balance-value' }, typeof balance == 'number' ? handlePriceCheckFunc(balance, translate('priceValue')) : balance))) : null),
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, { className: 'account-secondary-color9 account-font-medium next-status-title', tag: 'span' }, 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;
@@ -31,6 +31,10 @@ const ProgressBalanceStyle = styled.div `
31
31
  padding: 0 var(--account_next_status_padLR);
32
32
  }
33
33
 
34
+ .next-status-title {
35
+ text-transform: capitalize;
36
+ }
37
+
34
38
  /* //! 1920 */
35
39
  @media only screen and (max-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeXLMin}) and (min-width: ${(props) => props.theme.account.mediaQuery.account_DesktopSizeL}) {
36
40
  /* --sizeProgress: var(--sp51x); */
@@ -1,5 +1,5 @@
1
1
  export default HeroBalance;
2
- declare function HeroBalance({ iconValue, balance, cashback, progress, totalSpent, nextStatusValue, description, title, nextStatusTitle }: {
2
+ declare function HeroBalance({ iconValue, balance, cashback, progress, totalSpent, nextStatusValue, description, title, nextStatusTitle, currency }: {
3
3
  iconValue: any;
4
4
  balance: any;
5
5
  cashback: any;
@@ -9,5 +9,6 @@ declare function HeroBalance({ iconValue, balance, cashback, progress, totalSpen
9
9
  description: any;
10
10
  title: any;
11
11
  nextStatusTitle: any;
12
+ currency: any;
12
13
  }): React.JSX.Element;
13
14
  import React from 'react';
@@ -4,30 +4,30 @@ import { handlePriceCheckFunc, Text, useTranslation } from '@weareconceptstudio/
4
4
  import HeroBalanceStyle from './style';
5
5
  //* Component
6
6
  import ProgressBalance from './ProgressBalance';
7
- const HeroBalance = ({ iconValue, balance, cashback, progress, totalSpent, nextStatusValue, description, title, nextStatusTitle }) => {
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', 'specialNameBalance'];
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' }, 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
- description.description1,
18
+ translate(description.description1),
19
19
  " ",
20
20
  cashback + '%',
21
21
  " ",
22
- description.description2)),
22
+ translate(description.description2))),
23
23
  React.createElement("div", { className: 'wrapper-information-payment' }, dataInformation.map((item, i, arr) => {
24
24
  return ((item || item == 0) && (React.createElement(Text, { key: i, className: 'account-primary-color1 account-p account-p3 first-letter account-font-medium info-text' },
25
25
  translate(dataInformationTitle[i]),
26
26
  ":",
27
27
  ' ',
28
- React.createElement(Text, { tag: 'span', className: 'account-primary-color1 account-p account-p3 first-letter account-font-regular info-value-text' }, arr[0] == item ? item + '%' : typeof item == 'number' ? handlePriceCheckFunc(item, translate('priceValue')) : item))));
28
+ React.createElement(Text, { tag: 'span', className: 'account-primary-color1 account-p account-p3 first-letter account-font-regular info-value-text' }, arr[0] == item ? item + '%' : typeof item == 'number' ? handlePriceCheckFunc(item, currency) : item))));
29
29
  })))),
30
30
  React.createElement("div", { className: 'empty' }),
31
- React.createElement(ProgressBalance, { iconValue: iconValue, balance: balance, progress: progress, nextStatusValue: nextStatusValue, nextStatusTitle: nextStatusTitle }))));
31
+ React.createElement(ProgressBalance, { balance: balance, progress: progress, currency: currency, iconValue: iconValue, nextStatusValue: nextStatusValue, nextStatusTitle: nextStatusTitle }))));
32
32
  };
33
33
  export default HeroBalance;