@weareconceptstudio/account 0.5.2 → 0.5.4
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/AccountCounter/index.d.ts +3 -1
- package/dist/components/AccountCounter/index.js +6 -4
- package/dist/components/TotalCheckout/BalanceComp/index.d.ts +1 -3
- package/dist/components/TotalCheckout/BalanceComp/index.js +9 -13
- package/dist/components/TotalCheckout/CommentComp/index.d.ts +3 -1
- package/dist/components/TotalCheckout/CommentComp/index.js +4 -4
- package/dist/components/TotalCheckout/FreeShippingComp/index.js +4 -2
- package/dist/components/TotalCheckout/PromoCodeComp/index.d.ts +1 -3
- package/dist/components/TotalCheckout/PromoCodeComp/index.js +7 -12
- package/dist/components/TotalCheckout/index.js +29 -57
- package/dist/components/TotalCheckout/style.js +29 -11
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/ProgressBalance/index.js +5 -9
- package/dist/modules/account/AccountBalanceTemplate/HeroBalance/index.js +1 -6
- package/dist/modules/account/AccountBalanceTemplate/HistoryBalance/index.js +1 -1
- package/dist/modules/account/AccountBalanceTemplate/index.js +3 -3
- package/dist/modules/auth/ForgotPasswordTemplate/index.js +1 -3
- package/dist/modules/cart/CartItems/Item/index.js +38 -0
- package/dist/modules/cart/CartItems/ItemMobile/index.js +38 -0
- package/dist/modules/cart/{SimpleItems → CartItems}/index.js +6 -8
- package/dist/modules/cart/{SimpleItems → CartItems}/style.js +36 -68
- package/dist/modules/cart/CartTemplate/Skeleton/SkeletonItem/index.js +1 -2
- package/dist/modules/cart/CartTemplate/Skeleton/index.js +3 -6
- package/dist/modules/cart/CartTemplate/Skeleton/style.js +11 -10
- package/dist/modules/cart/CartTemplate/index.js +3 -3
- package/dist/modules/cart/index.d.ts +1 -1
- package/dist/modules/cart/index.js +1 -1
- package/dist/modules/checkout/CheckoutProvider.js +14 -1
- package/dist/modules/checkout/CheckoutTemplate/StepReview/index.js +2 -2
- package/dist/modules/order/OrderDetails/index.js +15 -6
- package/dist/modules/order/OrderedItems/Item/index.d.ts +3 -0
- package/dist/modules/order/OrderedItems/Item/index.js +37 -0
- package/dist/modules/order/OrderedItems/ItemMobile/index.d.ts +3 -0
- package/dist/modules/order/OrderedItems/ItemMobile/index.js +39 -0
- package/dist/modules/order/OrderedItems/index.d.ts +1 -2
- package/dist/modules/order/OrderedItems/index.js +7 -57
- package/dist/modules/order/OrderedItems/style.js +67 -8
- package/dist/modules/order/OrderedItems/util.d.ts +2 -0
- package/dist/modules/order/OrderedItems/util.js +3 -0
- package/dist/modules/order/OrdersList/{OrderItem → Item}/index.js +4 -2
- package/dist/modules/order/OrdersList/ItemMobile/index.d.ts +3 -0
- package/dist/modules/order/OrdersList/ItemMobile/index.js +39 -0
- package/dist/modules/order/OrdersList/index.js +10 -41
- package/dist/modules/payment/AddNewCard/style.js +1 -0
- package/dist/styles/theme.js +10 -10
- package/dist/styles/variables.js +2 -0
- package/dist/translations/en.d.ts +6 -8
- package/dist/translations/en.js +7 -9
- package/dist/translations/hy.d.ts +6 -8
- package/dist/translations/hy.js +11 -13
- package/dist/translations/index.d.ts +18 -24
- package/dist/translations/ru.d.ts +6 -8
- package/dist/translations/ru.js +7 -9
- package/package.json +1 -1
- package/dist/modules/cart/SimpleItems/Item/index.js +0 -35
- package/dist/modules/cart/SimpleItems/ItemMobile/index.js +0 -38
- /package/dist/modules/cart/{SimpleItems → CartItems}/Item/index.d.ts +0 -0
- /package/dist/modules/cart/{SimpleItems → CartItems}/ItemMobile/index.d.ts +0 -0
- /package/dist/modules/cart/{SimpleItems → CartItems}/index.d.ts +0 -0
- /package/dist/modules/cart/{SimpleItems → CartItems}/style.d.ts +0 -0
- /package/dist/modules/cart/{SimpleItems → CartItems}/util.d.ts +0 -0
- /package/dist/modules/cart/{SimpleItems → CartItems}/util.js +0 -0
- /package/dist/modules/order/OrdersList/{OrderItem → Item}/index.d.ts +0 -0
package/dist/translations/hy.js
CHANGED
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
deleteYourAccount: 'Ջնջե՞լ ձեր հաշիվը:',
|
|
12
12
|
deleteYourAccountDesc: 'Երբ դուք ջնջում եք ձեր հաշիվը, ձեր տվյալները կջնջվեն մշտապես։',
|
|
13
13
|
welcomeBack: 'Բարի վերադարձ',
|
|
14
|
-
continueWidth: 'կամ շարունակել
|
|
14
|
+
continueWidth: 'կամ շարունակել',
|
|
15
15
|
},
|
|
16
16
|
password_management: {
|
|
17
17
|
password: 'Գաղտնաբառ',
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
40
40
|
resendNewCode: 'Ուղարկել նոր կոդ։',
|
|
41
41
|
codeResendSuccessTitle: 'Ձեր կոդը հաջողությամբ ուղարկվեց կրկին։',
|
|
42
42
|
codeResendSuccessSubtitle: 'Նոր կոդը ուղարկվել է ձեր էլ. փոստի հասցեին։',
|
|
43
|
-
recoveryText: 'Մենք վերականգնման հղում ենք ուղարկել
|
|
43
|
+
recoveryText: 'Մենք վերականգնման հղում ենք ուղարկել ձեր {recoveryEmail}-ին',
|
|
44
44
|
resendNewLink: 'Ուղարկել նոր հղում',
|
|
45
45
|
},
|
|
46
46
|
account_info: {
|
|
@@ -146,17 +146,16 @@ export default {
|
|
|
146
146
|
color: 'Գույն',
|
|
147
147
|
size: 'Չափ',
|
|
148
148
|
restore: 'Վերականգնել',
|
|
149
|
+
free: 'Անվճար',
|
|
150
|
+
outOfStock: 'Պահեստում չկա',
|
|
149
151
|
},
|
|
150
152
|
user_status: {
|
|
151
153
|
tourist: 'տուրիստ',
|
|
152
|
-
|
|
153
|
-
touristDesc2: 'cashback Muramoney-ում յուրաքանչյուր գնումից։',
|
|
154
|
+
touristDesc: 'Տուրիստը կարող է վաստակել մինչև {cashback}% cashback Muramoney-ում յուրաքանչյուր գնումից։',
|
|
154
155
|
resident: 'բնակիչ',
|
|
155
|
-
|
|
156
|
-
residentDesc2: 'cashback Muramoney-ում յուրաքանչյուր գնումից։',
|
|
156
|
+
residentDesc: 'Բնակիչը կարող է վաստակել մինչև {cashback}% cashback Muramoney-ում յուրաքանչյուր գնումից։',
|
|
157
157
|
citizen: 'քաղաքացի',
|
|
158
|
-
|
|
159
|
-
citizenDesc2: 'cashback Muramoney-ում յուրաքանչյուր գնումից։',
|
|
158
|
+
citizenDesc: 'Քաղաքացին կարող է վաստակել մինչև {cashback}% cashback Muramoney-ում յուրաքանչյուր գնումից։',
|
|
160
159
|
},
|
|
161
160
|
legal_policies: {
|
|
162
161
|
privacyPolicy: 'Գաղտնիության քաղաքականություն',
|
|
@@ -182,8 +181,8 @@ export default {
|
|
|
182
181
|
cityPlaceholder: 'Քաղաք',
|
|
183
182
|
entrance: 'Մուտք',
|
|
184
183
|
entrancePlaceholder: 'Մուտք',
|
|
185
|
-
floor: '
|
|
186
|
-
floorPlaceholder: '
|
|
184
|
+
floor: 'Հարկ',
|
|
185
|
+
floorPlaceholder: 'Հարկ',
|
|
187
186
|
apartment: 'Բնակարան',
|
|
188
187
|
apartmentPlaceholder: 'Բնակարան',
|
|
189
188
|
doorBell: 'Դոմոֆոն',
|
|
@@ -200,7 +199,7 @@ export default {
|
|
|
200
199
|
shippedTo: 'Առաքվել է հասցեով',
|
|
201
200
|
addNewAdd: 'Ավելացնել նոր հասցե',
|
|
202
201
|
quantity: 'Քանակ',
|
|
203
|
-
free: '
|
|
202
|
+
free: 'Անվճար',
|
|
204
203
|
shippingCost: 'Առաքման արժեք',
|
|
205
204
|
item: 'Ապրանք',
|
|
206
205
|
price: 'Գին',
|
|
@@ -221,8 +220,7 @@ export default {
|
|
|
221
220
|
balancePlaceholder: 'Մուտքագրեք գումարը',
|
|
222
221
|
balanceCashback: 'cashback',
|
|
223
222
|
balanceTotalSpent: 'ընդհանուր ծախսված',
|
|
224
|
-
|
|
225
|
-
balanceNextStatusDescription2: 'մոտ եք դառնում',
|
|
223
|
+
balanceNextStatusDescription: 'Շարունակե՛ք այդպես: Ձեզ {nextStatusTitle} դառնալու համար պակասում է {nextStatusValue}։',
|
|
226
224
|
balanceHowToEarn: 'Ինչպե՞ս վաստակել',
|
|
227
225
|
gotPromotionCode: 'Ունե՞ք պրոմո կոդ',
|
|
228
226
|
promoCodePlaceholder: 'Մուտքագրեք ձեր կոդը',
|
|
@@ -147,17 +147,16 @@ declare const _default: {
|
|
|
147
147
|
color: string;
|
|
148
148
|
size: string;
|
|
149
149
|
restore: string;
|
|
150
|
+
free: string;
|
|
151
|
+
outOfStock: string;
|
|
150
152
|
};
|
|
151
153
|
user_status: {
|
|
152
154
|
tourist: string;
|
|
153
|
-
|
|
154
|
-
touristDesc2: string;
|
|
155
|
+
touristDesc: string;
|
|
155
156
|
resident: string;
|
|
156
|
-
|
|
157
|
-
residentDesc2: string;
|
|
157
|
+
residentDesc: string;
|
|
158
158
|
citizen: string;
|
|
159
|
-
|
|
160
|
-
citizenDesc2: string;
|
|
159
|
+
citizenDesc: string;
|
|
161
160
|
};
|
|
162
161
|
legal_policies: {
|
|
163
162
|
privacyPolicy: string;
|
|
@@ -222,8 +221,7 @@ declare const _default: {
|
|
|
222
221
|
balancePlaceholder: string;
|
|
223
222
|
balanceCashback: string;
|
|
224
223
|
balanceTotalSpent: string;
|
|
225
|
-
|
|
226
|
-
balanceNextStatusDescription2: string;
|
|
224
|
+
balanceNextStatusDescription: string;
|
|
227
225
|
balanceHowToEarn: string;
|
|
228
226
|
gotPromotionCode: string;
|
|
229
227
|
promoCodePlaceholder: string;
|
|
@@ -388,17 +386,16 @@ declare const _default: {
|
|
|
388
386
|
color: string;
|
|
389
387
|
size: string;
|
|
390
388
|
restore: string;
|
|
389
|
+
free: string;
|
|
390
|
+
outOfStock: string;
|
|
391
391
|
};
|
|
392
392
|
user_status: {
|
|
393
393
|
tourist: string;
|
|
394
|
-
|
|
395
|
-
touristDesc2: string;
|
|
394
|
+
touristDesc: string;
|
|
396
395
|
resident: string;
|
|
397
|
-
|
|
398
|
-
residentDesc2: string;
|
|
396
|
+
residentDesc: string;
|
|
399
397
|
citizen: string;
|
|
400
|
-
|
|
401
|
-
citizenDesc2: string;
|
|
398
|
+
citizenDesc: string;
|
|
402
399
|
};
|
|
403
400
|
legal_policies: {
|
|
404
401
|
privacyPolicy: string;
|
|
@@ -463,8 +460,7 @@ declare const _default: {
|
|
|
463
460
|
balancePlaceholder: string;
|
|
464
461
|
balanceCashback: string;
|
|
465
462
|
balanceTotalSpent: string;
|
|
466
|
-
|
|
467
|
-
balanceNextStatusDescription2: string;
|
|
463
|
+
balanceNextStatusDescription: string;
|
|
468
464
|
balanceHowToEarn: string;
|
|
469
465
|
gotPromotionCode: string;
|
|
470
466
|
promoCodePlaceholder: string;
|
|
@@ -630,17 +626,16 @@ declare const _default: {
|
|
|
630
626
|
color: string;
|
|
631
627
|
size: string;
|
|
632
628
|
restore: string;
|
|
629
|
+
free: string;
|
|
630
|
+
outOfStock: string;
|
|
633
631
|
};
|
|
634
632
|
user_status: {
|
|
635
633
|
tourist: string;
|
|
636
|
-
|
|
637
|
-
touristDesc2: string;
|
|
634
|
+
touristDesc: string;
|
|
638
635
|
resident: string;
|
|
639
|
-
|
|
640
|
-
residentDesc2: string;
|
|
636
|
+
residentDesc: string;
|
|
641
637
|
citizen: string;
|
|
642
|
-
|
|
643
|
-
citizenDesc2: string;
|
|
638
|
+
citizenDesc: string;
|
|
644
639
|
};
|
|
645
640
|
legal_policies: {
|
|
646
641
|
privacyPolicy: string;
|
|
@@ -705,8 +700,7 @@ declare const _default: {
|
|
|
705
700
|
balancePlaceholder: string;
|
|
706
701
|
balanceCashback: string;
|
|
707
702
|
balanceTotalSpent: string;
|
|
708
|
-
|
|
709
|
-
balanceNextStatusDescription2: string;
|
|
703
|
+
balanceNextStatusDescription: string;
|
|
710
704
|
balanceHowToEarn: string;
|
|
711
705
|
gotPromotionCode: string;
|
|
712
706
|
promoCodePlaceholder: string;
|
|
@@ -147,17 +147,16 @@ declare const _default: {
|
|
|
147
147
|
color: string;
|
|
148
148
|
size: string;
|
|
149
149
|
restore: string;
|
|
150
|
+
free: string;
|
|
151
|
+
outOfStock: string;
|
|
150
152
|
};
|
|
151
153
|
user_status: {
|
|
152
154
|
tourist: string;
|
|
153
|
-
|
|
154
|
-
touristDesc2: string;
|
|
155
|
+
touristDesc: string;
|
|
155
156
|
resident: string;
|
|
156
|
-
|
|
157
|
-
residentDesc2: string;
|
|
157
|
+
residentDesc: string;
|
|
158
158
|
citizen: string;
|
|
159
|
-
|
|
160
|
-
citizenDesc2: string;
|
|
159
|
+
citizenDesc: string;
|
|
161
160
|
};
|
|
162
161
|
legal_policies: {
|
|
163
162
|
privacyPolicy: string;
|
|
@@ -222,8 +221,7 @@ declare const _default: {
|
|
|
222
221
|
balancePlaceholder: string;
|
|
223
222
|
balanceCashback: string;
|
|
224
223
|
balanceTotalSpent: string;
|
|
225
|
-
|
|
226
|
-
balanceNextStatusDescription2: string;
|
|
224
|
+
balanceNextStatusDescription: string;
|
|
227
225
|
balanceHowToEarn: string;
|
|
228
226
|
gotPromotionCode: string;
|
|
229
227
|
promoCodePlaceholder: string;
|
package/dist/translations/ru.js
CHANGED
|
@@ -41,7 +41,7 @@ export default {
|
|
|
41
41
|
resendNewCode: 'Отправить новый код.',
|
|
42
42
|
codeResendSuccessTitle: 'Ваш код был успешно отправлен повторно.',
|
|
43
43
|
codeResendSuccessSubtitle: 'Новый код был отправлен на ваш адрес электронной почты.',
|
|
44
|
-
recoveryText: 'Мы отправили ссылку для восстановления на',
|
|
44
|
+
recoveryText: 'Мы отправили ссылку для восстановления на {recoveryEmail}',
|
|
45
45
|
resendNewLink: 'Отправить новую ссылку',
|
|
46
46
|
},
|
|
47
47
|
account_info: {
|
|
@@ -147,17 +147,16 @@ export default {
|
|
|
147
147
|
color: 'Цвет',
|
|
148
148
|
size: 'Размер',
|
|
149
149
|
restore: 'Восстановить',
|
|
150
|
+
free: 'Бесплатно',
|
|
151
|
+
outOfStock: 'Распродано',
|
|
150
152
|
},
|
|
151
153
|
user_status: {
|
|
152
154
|
tourist: 'Турист',
|
|
153
|
-
|
|
154
|
-
touristDesc2: 'кэшбэка в Muramoney на каждую покупку.',
|
|
155
|
+
touristDesc: 'Турист может заработать до {cashbak}% кэшбэка в Muramoney на каждую покупку.',
|
|
155
156
|
resident: 'Резидент',
|
|
156
|
-
|
|
157
|
-
residentDesc2: 'кэшбэка в Muramoney на каждую покупку.',
|
|
157
|
+
residentDesc: 'Резидент может заработать до {cashbak}% кэшбэка в Muramoney на каждую покупку.',
|
|
158
158
|
citizen: 'Гражданин',
|
|
159
|
-
|
|
160
|
-
citizenDesc2: 'кэшбэка в Muramoney на каждую покупку.',
|
|
159
|
+
citizenDesc: 'Гражданин может заработать до {cashbak}% кэшбэка в Muramoney на каждую покупку.',
|
|
161
160
|
},
|
|
162
161
|
legal_policies: {
|
|
163
162
|
privacyPolicy: 'Политика конфиденциальности',
|
|
@@ -222,8 +221,7 @@ export default {
|
|
|
222
221
|
balancePlaceholder: 'Введите сумму',
|
|
223
222
|
balanceCashback: 'кэшбэк',
|
|
224
223
|
balanceTotalSpent: 'общая трата',
|
|
225
|
-
|
|
226
|
-
balanceNextStatusDescription2: 'не хватает, чтобы стать',
|
|
224
|
+
balanceNextStatusDescription: 'Так держать! Вам не хватает {nextStatusValue}, чтобы стать {nextStatusTitle}ом.',
|
|
227
225
|
balanceHowToEarn: 'Как заработать?',
|
|
228
226
|
gotPromotionCode: 'Есть промокод?',
|
|
229
227
|
promoCodePlaceholder: 'Введите ваш код',
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { memo } from 'react';
|
|
2
|
-
import { handlePriceCheckFunc, Image, Text } from '@weareconceptstudio/core';
|
|
3
|
-
import { AccountButton, AccountCounter } from '../../../../components';
|
|
4
|
-
import { useAccountContext } from '../../../../AccountProvider';
|
|
5
|
-
import { defaultIconGift } from '../util';
|
|
6
|
-
const Item = memo(({ data, remove, select, isLast, actions, currency, isGift, giftIcon }) => {
|
|
7
|
-
const { handleProductClick } = useAccountContext();
|
|
8
|
-
return (React.createElement("div", { className: `${isGift ? 'item-gift-wrap' : 'item-wrap'}` },
|
|
9
|
-
React.createElement("div", { className: 'line' }),
|
|
10
|
-
React.createElement("div", { className: `${isGift ? 'item-gift-inner-wrapper' : 'item-inner-wrapper'}` },
|
|
11
|
-
React.createElement("div", { className: `col-item tl-col-1 col-item-1` },
|
|
12
|
-
React.createElement("div", { className: `image-wrapper` },
|
|
13
|
-
isGift ? giftIcon || React.createElement("div", { className: 'wrapper-gift-icon' }, defaultIconGift) : null,
|
|
14
|
-
React.createElement(Image, { src: data.product.image.src, alt: data.product.image.alt })),
|
|
15
|
-
React.createElement("div", { className: `col-1-right-wrap` },
|
|
16
|
-
React.createElement(AccountButton, { text: data.product.name, btnType: `green-large-text`, className: `capitalize title-btn`, onClick: () => handleProductClick(data.product) }),
|
|
17
|
-
React.createElement("div", { className: `right-first-item-wrap` },
|
|
18
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1`, text: data.product.short_info_1 })),
|
|
19
|
-
React.createElement("div", { className: `right-second-item-wrap` },
|
|
20
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1`, text: data.product.short_info_2 })))),
|
|
21
|
-
React.createElement("div", { className: `col-item tl-col-2` }, select && !isGift ? (React.createElement("div", { className: `select-and-out-of-stock-wrap` }, !data.product?.out_of_stock ? (React.createElement(AccountCounter, { productId: data?.product.id })) : (React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: data.qty })))) : isGift ? (React.createElement("div", { className: 'wrapper-gift-button' },
|
|
22
|
-
React.createElement(AccountButton, { text: 'account.general_actions.restore', className: `button-gift` }))) : (React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1`, text: data.qty }))),
|
|
23
|
-
React.createElement("div", { className: `col-item tl-col-3 col-item-3 nowrap` }, data.product?.sale_price ? (React.createElement("div", null,
|
|
24
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-secondary-color2 align-right cart-sale-price`, text: handlePriceCheckFunc(data.product.sale_price, currency) }),
|
|
25
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color2 line-through value align-right cart-price1`, text: handlePriceCheckFunc(data.product.price, currency) }))) : (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 align-right cart-price2`, text: handlePriceCheckFunc(isGift ? 0 : data.product.price, currency) }))),
|
|
26
|
-
React.createElement("div", { className: `col-item tl-col-4 col-item-4 nowrap` },
|
|
27
|
-
React.createElement("div", { className: `col-item-inner-wrap` },
|
|
28
|
-
React.createElement("div", { className: `flex-end-wrap` }, data.product?.sale_price && !isGift ? (React.createElement("div", null,
|
|
29
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-secondary-color2 align-right cart-sale-total`, text: `${data.sale_total} ${currency}` }),
|
|
30
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color2 line-through value align-right cart-total1`, text: handlePriceCheckFunc(data.product.price * data.qty, currency) }))) : (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 align-right cart-total2`, text: `${isGift ? 0 : data.total} ${currency}` }))),
|
|
31
|
-
React.createElement("div", { className: `favorite-and-remove-wrap` }, remove && !isGift && (React.createElement("div", { className: `remove-btn-wrap` },
|
|
32
|
-
React.createElement(AccountButton, { btnType: `green-small-text`, className: 'cart-remove-btn', text: 'account.general_actions.remove', onClick: () => actions.delete({ productId: data.product?.id }) }))))))),
|
|
33
|
-
isLast ? React.createElement("div", { className: 'line' }) : null));
|
|
34
|
-
});
|
|
35
|
-
export default Item;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React, { memo } from 'react';
|
|
2
|
-
import { handlePriceCheckFunc, Image, Text, useTranslation } from '@weareconceptstudio/core';
|
|
3
|
-
import { AccountButton, AccountCounter } from '../../../../components';
|
|
4
|
-
import { useAccountContext } from '../../../../AccountProvider';
|
|
5
|
-
import { defaultIconGift } from '../util';
|
|
6
|
-
const ItemMobile = memo(({ data, select, currency, isGift, giftIcon }) => {
|
|
7
|
-
const { handleProductClick } = useAccountContext();
|
|
8
|
-
const { translate } = useTranslation();
|
|
9
|
-
return (React.createElement(React.Fragment, null,
|
|
10
|
-
React.createElement("div", { className: `${isGift ? 'mobile-order-item-gift-wrap' : 'mobile-order-item-wrap'} user-select-none` },
|
|
11
|
-
React.createElement("div", { className: `${isGift ? 'mobile-order-item-gift-inner-wrap' : 'mobile-order-item-inner-wrap'}` },
|
|
12
|
-
React.createElement("div", { className: `mobile-image-wrap` },
|
|
13
|
-
isGift ? giftIcon || React.createElement("div", { className: 'wrapper-gift-icon' }, defaultIconGift) : null,
|
|
14
|
-
React.createElement(Image, { src: data.product.image.src, alt: data.product.image.alt })),
|
|
15
|
-
React.createElement("div", { className: `mobile-info-wrap` },
|
|
16
|
-
React.createElement(AccountButton, { text: data.product.name, btnType: `green-large-text`, className: `capitalize mobile-info-wrap-title`, onClick: () => handleProductClick(data.product) }),
|
|
17
|
-
React.createElement("div", { className: 'mobile-info-item' },
|
|
18
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color1 mobile-short-info1`, text: data.product.short_info_1 })),
|
|
19
|
-
React.createElement("div", { className: `mobile-total-price-wrap nowrap flex-box` },
|
|
20
|
-
data.product?.sale_price && !isGift ? (React.createElement("div", { className: 'mobile-total-price-flex-block' },
|
|
21
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-bold account-secondary-color2 mobile-total-discounted-price`, text: `${data.sale_total} ${currency}` }),
|
|
22
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-regular account-primary-color2 line-through mobile-total-price`, text: handlePriceCheckFunc(data.product.price * data.qty, currency) }))) : (React.createElement(Text, { className: `account-p account-p3 account-font-bold account-primary-color1 mobile-total-price2`, text: `${isGift ? 0 : data.total} ${currency}` })),
|
|
23
|
-
select ? (React.createElement("div", { className: `inner-container` }, !data.product?.out_of_stock && !isGift ? (React.createElement(AccountCounter, { productId: data?.product.id })) : isGift ? null : (React.createElement("div", { className: `in-block` },
|
|
24
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mobile-quantity-with-symbol` },
|
|
25
|
-
translate('account.order_balance.quantity'),
|
|
26
|
-
":"),
|
|
27
|
-
"\u00A0",
|
|
28
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mobile-quantity`, text: data.qty }))))) : (React.createElement("div", { className: `in-block` },
|
|
29
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mobile-quantity-with-symbol2` },
|
|
30
|
-
translate('account.order_balance.quantity'),
|
|
31
|
-
":"),
|
|
32
|
-
"\u00A0",
|
|
33
|
-
React.createElement(Text, { className: `account-p account-p3 account-font-medium account-primary-color1 mobile-quantity2`, text: data.qty }))),
|
|
34
|
-
isGift ? (React.createElement("div", { className: 'wrapper-gift-button' },
|
|
35
|
-
React.createElement(AccountButton, { text: 'account.general_actions.restore', className: `capitalize button-gift` }))) : null)))),
|
|
36
|
-
React.createElement("div", { className: 'line' })));
|
|
37
|
-
});
|
|
38
|
-
export default ItemMobile;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|