@weareconceptstudio/account 0.0.7 → 0.0.9
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/AccountProvider.d.ts +4 -1
- package/dist/AccountProvider.js +9 -7
- package/dist/components/EmptyOrders/index.js +5 -4
- package/dist/components/OrderedItems/index.d.ts +1 -1
- package/dist/components/OrderedItems/index.js +4 -37
- package/dist/components/TotalCheckout/index.js +13 -18
- package/dist/components/TotalCheckout/style.js +0 -7
- package/dist/components/cart/EmptyCart/index.js +3 -3
- package/dist/components/cart/EmptyCart/style.js +1 -1
- package/dist/components/cart/Items/Simple/Item/index.js +12 -20
- package/dist/components/cart/Items/Simple/ItemMobile/index.js +13 -36
- package/dist/components/cart/Items/Simple/index.js +10 -9
- package/dist/components/cart/Items/Simple/style.js +14 -7
- package/dist/components/index.d.ts +0 -6
- package/dist/components/index.js +0 -6
- package/dist/components/ui/AccountButton/index.js +5 -2
- package/dist/components/ui/AccountButton/style.js +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/modules/address/AddressForm/index.js +44 -0
- package/dist/{components → modules/address}/AddressItem/index.d.ts +2 -4
- package/dist/{components → modules/address}/AddressItem/index.js +11 -11
- package/dist/modules/address/AddressProvider.d.ts +7 -0
- package/dist/modules/address/AddressProvider.js +57 -0
- package/dist/{components → modules/address}/AddressWrap/index.d.ts +3 -2
- package/dist/{components → modules/address}/AddressWrap/index.js +7 -7
- package/dist/modules/address/AddressesTemplate/index.d.ts +3 -0
- package/dist/modules/address/AddressesTemplate/index.js +11 -0
- package/dist/modules/address/SelectAddress/index.d.ts +6 -0
- package/dist/modules/address/SelectAddress/index.js +22 -0
- package/dist/modules/address/SelectAddress/style.d.ts +2 -0
- package/dist/modules/address/SelectAddress/style.js +68 -0
- package/dist/modules/address/SelectShippingBilling/index.d.ts +3 -0
- package/dist/modules/address/SelectShippingBilling/index.js +29 -0
- package/dist/modules/address/SelectShippingBillingPopup/index.d.ts +3 -0
- package/dist/modules/address/SelectShippingBillingPopup/index.js +25 -0
- package/dist/{components/SelectShippingBilling → modules/address/SelectShippingBillingPopup}/style.js +0 -43
- package/dist/modules/address/ShippingBillingForm/index.js +15 -0
- package/dist/modules/address/index.d.ts +9 -0
- package/dist/modules/address/index.js +9 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/templates/AccountSettingsTemplate/AccountInfo/index.js +1 -1
- package/dist/templates/AccountTemplate/index.js +1 -1
- package/dist/templates/AccountTemplate/style.js +0 -6
- package/dist/templates/CartTemplate/index.d.ts +1 -2
- package/dist/templates/CartTemplate/index.js +11 -8
- package/dist/templates/CheckoutTemplate/StepReview/index.d.ts +5 -0
- package/dist/templates/CheckoutTemplate/StepReview/index.js +16 -0
- package/dist/templates/CheckoutTemplate/StepShipping/index.d.ts +5 -0
- package/dist/templates/CheckoutTemplate/StepShipping/index.js +9 -0
- package/dist/templates/CheckoutTemplate/index.d.ts +2 -1
- package/dist/templates/CheckoutTemplate/index.js +29 -149
- package/dist/templates/CheckoutTemplate/style.js +9 -9
- package/dist/templates/OrderIndividualTemplate/index.js +1 -1
- package/dist/templates/index.d.ts +0 -1
- package/dist/templates/index.js +0 -1
- package/dist/translations/en.d.ts +72 -133
- package/dist/translations/en.js +84 -133
- package/dist/translations/hy.d.ts +74 -64
- package/dist/translations/hy.js +177 -155
- package/dist/translations/index.d.ts +218 -289
- package/dist/translations/ru.d.ts +72 -92
- package/dist/translations/ru.js +177 -185
- package/dist/utils/_functions.d.ts +0 -3
- package/dist/utils/_functions.js +0 -10
- package/package.json +1 -1
- package/dist/components/AddressForm/index.js +0 -99
- package/dist/components/FavoriteButton/index.d.ts +0 -3
- package/dist/components/FavoriteButton/index.js +0 -42
- package/dist/components/OrderedItems/ReviewPopup/index.d.ts +0 -0
- package/dist/components/OrderedItems/ReviewPopup/index.js +0 -202
- package/dist/components/OrderedItems/ReviewPopup/style.d.ts +0 -2
- package/dist/components/OrderedItems/ReviewPopup/style.js +0 -329
- package/dist/components/SelectShippingBilling/index.d.ts +0 -3
- package/dist/components/SelectShippingBilling/index.js +0 -31
- package/dist/components/ShippingBillingForm/index.js +0 -96
- package/dist/templates/AddressesTemplate/index.d.ts +0 -6
- package/dist/templates/AddressesTemplate/index.js +0 -9
- /package/dist/{components → modules/address}/AddressForm/index.d.ts +0 -0
- /package/dist/{components → modules/address}/AddressForm/style.d.ts +0 -0
- /package/dist/{components → modules/address}/AddressForm/style.js +0 -0
- /package/dist/{components → modules/address}/AddressItem/style.d.ts +0 -0
- /package/dist/{components → modules/address}/AddressItem/style.js +0 -0
- /package/dist/{templates → modules/address}/AddressesTemplate/style.d.ts +0 -0
- /package/dist/{templates → modules/address}/AddressesTemplate/style.js +0 -0
- /package/dist/{components → modules/address}/EmptyAddress/index.d.ts +0 -0
- /package/dist/{components → modules/address}/EmptyAddress/index.js +0 -0
- /package/dist/{components/SelectShippingBilling → modules/address/SelectShippingBillingPopup}/style.d.ts +0 -0
- /package/dist/{components → modules/address}/ShippingBillingForm/index.d.ts +0 -0
- /package/dist/{components → modules/address}/ShippingBillingForm/style.d.ts +0 -0
- /package/dist/{components → modules/address}/ShippingBillingForm/style.js +0 -0
- /package/dist/{components → modules/address}/ShippingBillingInfo/index.d.ts +0 -0
- /package/dist/{components → modules/address}/ShippingBillingInfo/index.js +0 -0
- /package/dist/{components → modules/address}/ShippingBillingInfo/style.d.ts +0 -0
- /package/dist/{components → modules/address}/ShippingBillingInfo/style.js +0 -0
package/package.json
CHANGED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import React, { memo as Memo, useState, useCallback, useRef } from 'react';
|
|
2
|
-
import { useUi, Text } from '@weareconceptstudio/core';
|
|
3
|
-
import { Form, Input, PhoneNumber, Select } from '@weareconceptstudio/form';
|
|
4
|
-
import AccountButton from '../ui/AccountButton';
|
|
5
|
-
import { useTheme } from 'styled-components';
|
|
6
|
-
import theme from '../../styles/theme';
|
|
7
|
-
//* Icons
|
|
8
|
-
import { CheckboxIcon, CheckboxCheckedIcon } from '../../utils/icons';
|
|
9
|
-
//* Style
|
|
10
|
-
import AddressFormStyle from './style';
|
|
11
|
-
//TODO: Form -> ref, onChange, Select, Form Item -> options,Global Data
|
|
12
|
-
const globalData = {
|
|
13
|
-
countries: [],
|
|
14
|
-
cities: [],
|
|
15
|
-
regions: [
|
|
16
|
-
{ value: 'yerevan', label: 'Yerevan' },
|
|
17
|
-
{ value: 'shirak', label: 'Shirak' },
|
|
18
|
-
{ value: 'aragatsotn', label: 'Aragatsotn' },
|
|
19
|
-
{ value: 'lori', label: 'Lori' },
|
|
20
|
-
{ value: 'kotayq', label: 'Kotayq' },
|
|
21
|
-
{ value: 'tavush', label: 'Tavush' },
|
|
22
|
-
{ value: 'vayots-dzor', label: 'Vayots Dzor' },
|
|
23
|
-
{ value: 'syuniq', label: 'Syuniq' },
|
|
24
|
-
{ value: 'ararat', label: 'Ararat' },
|
|
25
|
-
{ value: 'armavir', label: 'Armavir' },
|
|
26
|
-
{ value: 'gegharquniq', label: 'Gegharquniq' },
|
|
27
|
-
],
|
|
28
|
-
};
|
|
29
|
-
const AddressForm = Memo(({ title, data, selected, createAddress, updateAddress }) => {
|
|
30
|
-
const globalTheme = useTheme();
|
|
31
|
-
const { closePopup } = useUi();
|
|
32
|
-
//! Ref
|
|
33
|
-
const form = useRef();
|
|
34
|
-
//! States
|
|
35
|
-
const [isChecked, setIsChecked] = useState(data?.is_default);
|
|
36
|
-
const [countryId, setCountryId] = useState(globalData.countries.length > 1 ? data?.country_id : 1);
|
|
37
|
-
const [regionId, setRegionId] = useState(data?.region_id);
|
|
38
|
-
const [isDisabled, setIsDisabled] = useState(false);
|
|
39
|
-
//! On Finish
|
|
40
|
-
const onFinish = useCallback((values) => {
|
|
41
|
-
// const newData = { ...values, is_default: isChecked };
|
|
42
|
-
// setIsDisabled(true);
|
|
43
|
-
// return (
|
|
44
|
-
// !isDisabled &&
|
|
45
|
-
// eval(data?.id ? `updateAddress(newData, data.id)` : `createAddress(newData)`).then(
|
|
46
|
-
// () => {
|
|
47
|
-
// closePopup();
|
|
48
|
-
// }
|
|
49
|
-
// )
|
|
50
|
-
// );
|
|
51
|
-
}, [data, isChecked, createAddress, updateAddress, isDisabled]);
|
|
52
|
-
const handleFormChange = useCallback((val) => {
|
|
53
|
-
const name = Object.keys(val)[0];
|
|
54
|
-
if (name === 'country_id') {
|
|
55
|
-
setCountryId(val[name]);
|
|
56
|
-
setRegionId('');
|
|
57
|
-
form.current.setFieldsValue({ region_id: '', city_id: '' });
|
|
58
|
-
}
|
|
59
|
-
else if (name === 'region_id') {
|
|
60
|
-
setRegionId(val[name]);
|
|
61
|
-
form.current.setFieldsValue({ city_id: '' });
|
|
62
|
-
}
|
|
63
|
-
}, []);
|
|
64
|
-
return (React.createElement(AddressFormStyle, { theme: theme(globalTheme), className: 'address-form-block' },
|
|
65
|
-
React.createElement(Text, { tag: `h6`, text: title, className: `account-h6 account-font-bold account-primary-color1 address-form-block-title` }),
|
|
66
|
-
React.createElement(Form, { ref: form, onSubmit: onFinish, onChange: handleFormChange, initialValues: data },
|
|
67
|
-
React.createElement("div", { className: `form-wrapper` },
|
|
68
|
-
React.createElement(Form.Item, { name: 'country_id', label: 'country' },
|
|
69
|
-
React.createElement(Select, { placeholder: 'Armenia',
|
|
70
|
-
// options={globalData.regions}
|
|
71
|
-
disabled: true })),
|
|
72
|
-
React.createElement(Form.Item, { name: 'type', required: false },
|
|
73
|
-
React.createElement(Input, { type: 'hidden' })),
|
|
74
|
-
React.createElement(Form.Item, { name: 'first_name', label: 'firstName' },
|
|
75
|
-
React.createElement(Input, { placeholder: 'firstNamePlaceholder' })),
|
|
76
|
-
React.createElement(Form.Item, { name: 'last_name', label: 'lastName' },
|
|
77
|
-
React.createElement(Input, { placeholder: 'lastNamePlaceholder' })),
|
|
78
|
-
React.createElement(Form.Item, { name: 'region_id', label: 'region', className: !countryId ? 'disabled' : '' },
|
|
79
|
-
React.createElement(Select, { placeholder: 'Select Region', options: globalData.regions })),
|
|
80
|
-
React.createElement(Form.Item, { name: 'city_id', label: 'city' },
|
|
81
|
-
React.createElement(Select, { placeholder: 'cityPlaceholder', disabled: !regionId })),
|
|
82
|
-
React.createElement(Form.Item, { name: 'address_1', label: 'address_1' },
|
|
83
|
-
React.createElement(Input, { placeholder: 'address_1Placeholder' })),
|
|
84
|
-
React.createElement(Form.Item, { name: 'address_2', label: 'address_2' },
|
|
85
|
-
React.createElement(Input, { placeholder: 'address_2Placeholder' })),
|
|
86
|
-
React.createElement(Form.Item, { name: 'zip_code', label: 'zipCode' },
|
|
87
|
-
React.createElement(Input.Number, { placeholder: 'zipCodePlaceholder' })),
|
|
88
|
-
React.createElement(Form.Item, { name: 'phone', label: 'phone' },
|
|
89
|
-
React.createElement(PhoneNumber, null))),
|
|
90
|
-
React.createElement("div", { className: `default-info-wrap` }, !data?.is_default ? (React.createElement("div", { className: `banner-wrap cursor-pointer`, onClick: () => setIsChecked(!isChecked) },
|
|
91
|
-
isChecked ? (React.createElement("div", { className: 'checkbox-wrap', role: 'button' },
|
|
92
|
-
React.createElement(CheckboxCheckedIcon, null))) : (React.createElement("div", { className: 'checkbox-wrap', role: 'button' },
|
|
93
|
-
React.createElement(CheckboxIcon, null))),
|
|
94
|
-
React.createElement(Text, { className: `account-p account-p2 account-font-medium account-primary-color1 address-form-is-default-checkbox`, text: `${selected.type === 'shipping' ? 'makeYourDefaultShippingAddress' : 'makeYourDefaultBillingAddress'}` }))) : (React.createElement(Text, { className: `account-p account-p2 account-font-medium account-primary-color1 address-form-is-default`, text: `${selected.type === 'shipping' ? 'thisYourDefaultShippingAddress' : 'thisYourDefaultBillingAddress'}` }))),
|
|
95
|
-
React.createElement("div", { className: `cancel-and-save-wrap` },
|
|
96
|
-
React.createElement(AccountButton, { text: `cancel`, onClick: closePopup, btnType: `green-large-text`, className: `address-form-cancel-btn` }),
|
|
97
|
-
React.createElement(AccountButton, { type: 'submit', text: `saveAndApply`, btnType: `full-width`, className: `address-form-cancel-submit ${isDisabled ? 'disabled' : ''}` })))));
|
|
98
|
-
});
|
|
99
|
-
export default AddressForm;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React, { memo, useCallback, useMemo } from 'react';
|
|
2
|
-
import Button from '../ui/AccountButton';
|
|
3
|
-
const addToFavorite = () => { };
|
|
4
|
-
const removeFavorite = () => { };
|
|
5
|
-
//* Icons
|
|
6
|
-
const favoriteIcon = (React.createElement("svg", { version: '1.1', viewBox: '0 0 32 32', xmlns: 'http://www.w3.org/2000/svg' },
|
|
7
|
-
React.createElement("path", { id: 'path-1', fill: '#ecefec', d: 'M14.622 0l-12.889 7.911-1.733 13.867 7.822 8.8 13.911 1.422 10.267-11.689-3.6-16.711-13.778-3.6z' }),
|
|
8
|
-
React.createElement("path", { id: 'path-2', fill: '#8c9b8b', d: 'M17.066 24.8c-0.178 0-0.267-0.044-0.356-0.178l-10.667-9.911c-0.222-0.222-0.222-0.533-0.044-0.756l4.622-5.511c0.178-0.222 0.444-0.267 0.622-0.089l5.689 3.111 3.733-4.089c0.089-0.089 0.267-0.178 0.444-0.178s0.311 0.044 0.356 0.222l4.489 5.467c0.178 0.222 0.178 0.489 0 0.622l-8.533 11.067c-0.044 0.133-0.133 0.222-0.356 0.222z' }),
|
|
9
|
-
React.createElement("path", { id: 'path-3', fill: '#b2bdb1', d: 'M17.067 24.978c-0.178 0-0.311-0.044-0.444-0.178l-10.667-9.956c-0.267-0.222-0.267-0.622-0.044-0.933l4.578-5.511c0.222-0.267 0.533-0.311 0.844-0.178l5.556 3.067 3.689-4.044c0.133-0.133 0.311-0.222 0.533-0.222 0.178 0 0.356 0.089 0.489 0.267l4.489 5.511c0.178 0.222 0.178 0.578 0 0.844l-8.533 11.067c-0.133 0.133-0.267 0.222-0.489 0.267zM7.289 14.267l9.689 9.022 7.778-10.044-3.689-4.533-3.511 3.867c-0.222 0.222-0.533 0.267-0.8 0.133l-5.6-3.067-3.867 4.622z' })));
|
|
10
|
-
const FavoriteButton = memo(({ type, favorites, productId, optionId, variantId, qty }) => {
|
|
11
|
-
//! Check Active Favorite
|
|
12
|
-
const isFavorite = useMemo(() => {
|
|
13
|
-
return favorites.some((favorite) => favorite.product.id === productId && favorite.selectedOption.id === optionId && favorite.selectedVariant.id === variantId);
|
|
14
|
-
}, [favorites, productId, variantId, optionId]);
|
|
15
|
-
//! Add to favorite
|
|
16
|
-
const addFavoriteHandleClick = useCallback(() => {
|
|
17
|
-
isFavorite
|
|
18
|
-
? removeFavorite({
|
|
19
|
-
productId,
|
|
20
|
-
variantId,
|
|
21
|
-
optionId,
|
|
22
|
-
})
|
|
23
|
-
: addToFavorite({
|
|
24
|
-
productId,
|
|
25
|
-
variantId,
|
|
26
|
-
optionId,
|
|
27
|
-
qty,
|
|
28
|
-
update: true,
|
|
29
|
-
});
|
|
30
|
-
}, [productId, variantId, optionId, qty, isFavorite]);
|
|
31
|
-
return type === 'withIcon' ? (
|
|
32
|
-
// <Icon
|
|
33
|
-
// name={`favorite`}
|
|
34
|
-
// className={`pi-favorite ${isFavorite ? 'pi-active' : ''}`}
|
|
35
|
-
// onClick={addFavoriteHandleClick}>
|
|
36
|
-
// <span className='path1' />
|
|
37
|
-
// <span className='path2' />
|
|
38
|
-
// <span className='path3' />
|
|
39
|
-
// </Icon>
|
|
40
|
-
React.createElement("div", { onClick: addFavoriteHandleClick, className: `pi-favorite ${isFavorite ? 'pi-active' : ''}` }, favoriteIcon)) : (React.createElement(Button, { text: 'addToWishlist', btnType: `green-small-text`, onClick: addFavoriteHandleClick, className: `wishlist-btn ${isFavorite ? 'active' : ''}` }));
|
|
41
|
-
});
|
|
42
|
-
export default FavoriteButton;
|
|
File without changes
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
// import { memo, useCallback, useMemo, useRef } from 'react';
|
|
2
|
-
// import { Form, Input, Radio } from '@weareconceptstudio/form';
|
|
3
|
-
// //* Contexts
|
|
4
|
-
// import withUIContext from '@/account-authentication/contexts/consumers/UIConsumer';
|
|
5
|
-
// import withLanguageContext from '@/account-authentication/contexts/consumers/LanguageConsumer';
|
|
6
|
-
// //* Helpers
|
|
7
|
-
// import _config from '@/account-authentication/helpers/_config';
|
|
8
|
-
// import { fileToUploadObj } from '@/account-authentication/helpers/_functions';
|
|
9
|
-
// //* Components
|
|
10
|
-
// import Text from '../../Text';
|
|
11
|
-
// import Rate from '../../Rate';
|
|
12
|
-
// import Icon from '../../Icon';
|
|
13
|
-
// import Image from '../../Image';
|
|
14
|
-
// import FormUpload from '../../FormUpload';
|
|
15
|
-
// import CustomLink from '../../CustomLink';
|
|
16
|
-
// import AccountButton from '../../AccountButton';
|
|
17
|
-
// import WarningMessageForPopup from '../../WarningMessageForPopup';
|
|
18
|
-
// //* Style
|
|
19
|
-
// import ReviewPopupStyle from './style';
|
|
20
|
-
// //TODO: Form (ref -> logic), Upload, Radio
|
|
21
|
-
// const ReviewPopup = memo(({ className, orderItemId, product, review, createReview, updateReview, addOrUpdateReview, translate, closePopup, winWidth, openPopup }) => {
|
|
22
|
-
// //! Ref
|
|
23
|
-
// const form = useRef();
|
|
24
|
-
// //! Handle Finish Function
|
|
25
|
-
// const onFinish = useCallback(
|
|
26
|
-
// (values) => {
|
|
27
|
-
// let newValues = {
|
|
28
|
-
// ...values,
|
|
29
|
-
// order_item_id: orderItemId,
|
|
30
|
-
// product_id: product.id,
|
|
31
|
-
// };
|
|
32
|
-
// return (review ? updateReview(review.id, newValues) : createReview(newValues)).then(({ data }) => {
|
|
33
|
-
// addOrUpdateReview(orderItemId, data);
|
|
34
|
-
// closePopup();
|
|
35
|
-
// !review &&
|
|
36
|
-
// openPopup(
|
|
37
|
-
// <WarningMessageForPopup
|
|
38
|
-
// isThankYou
|
|
39
|
-
// title={'thankYouPopupTitle'}
|
|
40
|
-
// description={'thankYouPopupDesc'}
|
|
41
|
-
// />,
|
|
42
|
-
// { className: 'messagePopup' }
|
|
43
|
-
// );
|
|
44
|
-
// });
|
|
45
|
-
// },
|
|
46
|
-
// [orderItemId, product, review]
|
|
47
|
-
// );
|
|
48
|
-
// const initialValues = useMemo(() => {
|
|
49
|
-
// return review
|
|
50
|
-
// ? {
|
|
51
|
-
// ...review,
|
|
52
|
-
// is_recommended: review.is_recommended || '0',
|
|
53
|
-
// images: review.images.map((item) => fileToUploadObj(item)),
|
|
54
|
-
// }
|
|
55
|
-
// : {
|
|
56
|
-
// is_recommended: 1,
|
|
57
|
-
// };
|
|
58
|
-
// }, [review]);
|
|
59
|
-
// return (
|
|
60
|
-
// <ReviewPopupStyle className={`review-popup-wrapper ${className || ''}`}>
|
|
61
|
-
// <Text
|
|
62
|
-
// tag={`h6`}
|
|
63
|
-
// className={`account-h6 account-font-bold account-primary-color1`}
|
|
64
|
-
// text={`writeYourReview`}
|
|
65
|
-
// />
|
|
66
|
-
// <div className={`info-wrap`}>
|
|
67
|
-
// {!(winWidth <= 768) ? (
|
|
68
|
-
// <>
|
|
69
|
-
// <Text className={`account-p account-p3 account-font-regular account-primary-color1`}>
|
|
70
|
-
// {translate('writeYourReviewDesc1')}
|
|
71
|
-
// <CustomLink
|
|
72
|
-
// className={`info-link`}
|
|
73
|
-
// onClick={() => closePopup()}
|
|
74
|
-
// url={_config.routes.productReviewGuidelines.path}
|
|
75
|
-
// content={translate('reviewGuidelinesWithSymbol')}
|
|
76
|
-
// />
|
|
77
|
-
// </Text>
|
|
78
|
-
// <Text className={`account-p account-p3 account-font-regular account-primary-color1`}>
|
|
79
|
-
// {translate('writeYourReviewDesc2')}
|
|
80
|
-
// <CustomLink
|
|
81
|
-
// className={`info-link`}
|
|
82
|
-
// onClick={() => closePopup()}
|
|
83
|
-
// url={_config.routes.contactUs.path}
|
|
84
|
-
// content={translate('contactUsWithSymbol')}
|
|
85
|
-
// />
|
|
86
|
-
// </Text>
|
|
87
|
-
// </>
|
|
88
|
-
// ) : (
|
|
89
|
-
// <Text className={`account-p account-p3 account-font-regular account-primary-color1`}>
|
|
90
|
-
// {translate('writeYourReviewDesc1')}
|
|
91
|
-
// <CustomLink
|
|
92
|
-
// className={`info-link`}
|
|
93
|
-
// onClick={() => closePopup()}
|
|
94
|
-
// url={_config.routes.productReviewGuidelines.path}
|
|
95
|
-
// content={translate('reviewGuidelinesWithSymbol')}
|
|
96
|
-
// />
|
|
97
|
-
// {translate('writeYourReviewDesc2')}
|
|
98
|
-
// <CustomLink
|
|
99
|
-
// className={`info-link`}
|
|
100
|
-
// onClick={() => closePopup()}
|
|
101
|
-
// url={_config.routes.contactUs.path}
|
|
102
|
-
// content={translate('contactUsWithSymbol')}
|
|
103
|
-
// />
|
|
104
|
-
// </Text>
|
|
105
|
-
// )}
|
|
106
|
-
// </div>
|
|
107
|
-
// <Image
|
|
108
|
-
// src={product.images?.[0]?.src}
|
|
109
|
-
// alt={product.images?.[0]?.alt}
|
|
110
|
-
// className={`banner-image`}
|
|
111
|
-
// />
|
|
112
|
-
// <div className={`name-text`}>
|
|
113
|
-
// <AccountButton
|
|
114
|
-
// url={product.url}
|
|
115
|
-
// target={`_blank`}
|
|
116
|
-
// text={product.name}
|
|
117
|
-
// btnType={`green-small-text`}
|
|
118
|
-
// customLinkProps={{
|
|
119
|
-
// rel: 'noopener noreferrer',
|
|
120
|
-
// }}
|
|
121
|
-
// />
|
|
122
|
-
// </div>
|
|
123
|
-
// <div className='review-popup-form-container'>
|
|
124
|
-
// <Form
|
|
125
|
-
// ref={form}
|
|
126
|
-
// onSubmit={onFinish}
|
|
127
|
-
// initialValues={initialValues}>
|
|
128
|
-
// <Form.Item
|
|
129
|
-
// name={'rating'}
|
|
130
|
-
// className={`rate-field-wrap`}
|
|
131
|
-
// label={'yourOverallRating'}
|
|
132
|
-
// >
|
|
133
|
-
// <Rate />
|
|
134
|
-
// </Form.Item>
|
|
135
|
-
// <Form.Item
|
|
136
|
-
// name={'is_recommended'}
|
|
137
|
-
// className={`radio-field-wrap`}
|
|
138
|
-
// label={'wouldYouRecommend'}
|
|
139
|
-
// >
|
|
140
|
-
// <Radio.Group>
|
|
141
|
-
// <Radio value={1}>
|
|
142
|
-
// <div className={`icon-circle-wrapper distance`}>
|
|
143
|
-
// <Icon name={`checkbox`} />
|
|
144
|
-
// </div>
|
|
145
|
-
// <Text
|
|
146
|
-
// className={`account-p account-p3 account-font-medium account-primary-color1`}
|
|
147
|
-
// text={`yes`}
|
|
148
|
-
// />
|
|
149
|
-
// </Radio>
|
|
150
|
-
// <Radio value={`${0}`}>
|
|
151
|
-
// <div className={`icon-circle-wrapper distance`}>
|
|
152
|
-
// <Icon name={`checkbox`} />
|
|
153
|
-
// </div>
|
|
154
|
-
// <Text
|
|
155
|
-
// className={`account-p account-p3 account-font-medium account-primary-color1`}
|
|
156
|
-
// text={`no`}
|
|
157
|
-
// />
|
|
158
|
-
// </Radio>
|
|
159
|
-
// </Radio.Group>
|
|
160
|
-
// </Form.Item>
|
|
161
|
-
// <Form.Item
|
|
162
|
-
// name={'title'}
|
|
163
|
-
// className={`text-field-wrap`}
|
|
164
|
-
// label={'reviewTitle'}
|
|
165
|
-
// >
|
|
166
|
-
// <Input placeholder={'type'} />
|
|
167
|
-
// </Form.Item>
|
|
168
|
-
// <Form.Item
|
|
169
|
-
// name={'content'}
|
|
170
|
-
// className={`text-field-wrap`}
|
|
171
|
-
// label={'yourReview'}
|
|
172
|
-
// >
|
|
173
|
-
// <Input.TextArea placeholder={'type'} />
|
|
174
|
-
// </Form.Item>
|
|
175
|
-
// <div className={`uploader-wrapper`}>
|
|
176
|
-
// <FormUpload
|
|
177
|
-
// multiple
|
|
178
|
-
// form={form}
|
|
179
|
-
// maxCount={6}
|
|
180
|
-
// name={'images'}
|
|
181
|
-
// translate={translate}
|
|
182
|
-
// defaultFiles={review ? review.images : []}
|
|
183
|
-
// />
|
|
184
|
-
// </div>
|
|
185
|
-
// <div className={`popup-buttons-wrapper`}>
|
|
186
|
-
// <AccountButton
|
|
187
|
-
// text={`cancel`}
|
|
188
|
-
// btnType={`green-large-text`}
|
|
189
|
-
// onClick={() => closePopup()}
|
|
190
|
-
// />
|
|
191
|
-
// <AccountButton
|
|
192
|
-
// type={'submit'}
|
|
193
|
-
// text={`submitReview`}
|
|
194
|
-
// btnType={`full-width`}
|
|
195
|
-
// />
|
|
196
|
-
// </div>
|
|
197
|
-
// </Form>
|
|
198
|
-
// </div>
|
|
199
|
-
// </ReviewPopupStyle>
|
|
200
|
-
// );
|
|
201
|
-
// });
|
|
202
|
-
// export default withLanguageContext(withUIContext(ReviewPopup, ['closePopup', 'winWidth', 'openPopup']), ['translate']);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export default ReviewPopupStyle;
|
|
2
|
-
declare const ReviewPopupStyle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|