vdb-ai-chat 1.0.21 → 1.0.22
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/chat-widget.js +1 -1
- package/lib/commonjs/api.js +20 -1
- package/lib/commonjs/api.js.map +1 -1
- package/lib/commonjs/components/BetaNotice.js +0 -1
- package/lib/commonjs/components/BetaNotice.js.map +1 -1
- package/lib/commonjs/components/Button.js +95 -0
- package/lib/commonjs/components/Button.js.map +1 -0
- package/lib/commonjs/components/ChatWidget.js +79 -3
- package/lib/commonjs/components/ChatWidget.js.map +1 -1
- package/lib/commonjs/components/LabelContainer.js +50 -0
- package/lib/commonjs/components/LabelContainer.js.map +1 -0
- package/lib/commonjs/components/MessageBubble.js +50 -11
- package/lib/commonjs/components/MessageBubble.js.map +1 -1
- package/lib/commonjs/components/MessageMetaRow.js +22 -6
- package/lib/commonjs/components/MessageMetaRow.js.map +1 -1
- package/lib/commonjs/components/ProductsList.js +10 -2
- package/lib/commonjs/components/ProductsList.js.map +1 -1
- package/lib/commonjs/components/ProductsListView.js +116 -311
- package/lib/commonjs/components/ProductsListView.js.map +1 -1
- package/lib/commonjs/components/utils.js +152 -4
- package/lib/commonjs/components/utils.js.map +1 -1
- package/lib/commonjs/types.js +4 -0
- package/lib/module/api.js +20 -2
- package/lib/module/api.js.map +1 -1
- package/lib/module/components/BetaNotice.js +0 -1
- package/lib/module/components/BetaNotice.js.map +1 -1
- package/lib/module/components/Button.js +88 -0
- package/lib/module/components/Button.js.map +1 -0
- package/lib/module/components/ChatWidget.js +81 -5
- package/lib/module/components/ChatWidget.js.map +1 -1
- package/lib/module/components/LabelContainer.js +43 -0
- package/lib/module/components/LabelContainer.js.map +1 -0
- package/lib/module/components/MessageBubble.js +51 -12
- package/lib/module/components/MessageBubble.js.map +1 -1
- package/lib/module/components/MessageMetaRow.js +22 -6
- package/lib/module/components/MessageMetaRow.js.map +1 -1
- package/lib/module/components/ProductsList.js +10 -2
- package/lib/module/components/ProductsList.js.map +1 -1
- package/lib/module/components/ProductsListView.js +116 -312
- package/lib/module/components/ProductsListView.js.map +1 -1
- package/lib/module/components/utils.js +147 -2
- package/lib/module/components/utils.js.map +1 -1
- package/lib/module/types.js +1 -1
- package/lib/typescript/api.d.ts +1 -0
- package/lib/typescript/api.d.ts.map +1 -1
- package/lib/typescript/components/BetaNotice.d.ts.map +1 -1
- package/lib/typescript/components/Button.d.ts +5 -0
- package/lib/typescript/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/ChatWidget.d.ts.map +1 -1
- package/lib/typescript/components/LabelContainer.d.ts +10 -0
- package/lib/typescript/components/LabelContainer.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble.d.ts.map +1 -1
- package/lib/typescript/components/MessageMetaRow.d.ts.map +1 -1
- package/lib/typescript/components/ProductsList.d.ts +4 -0
- package/lib/typescript/components/ProductsList.d.ts.map +1 -1
- package/lib/typescript/components/ProductsListView.d.ts +4 -0
- package/lib/typescript/components/ProductsListView.d.ts.map +1 -1
- package/lib/typescript/components/utils.d.ts +24 -1
- package/lib/typescript/components/utils.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +27 -0
- package/lib/typescript/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api.ts +30 -2
- package/src/components/BetaNotice.tsx +0 -1
- package/src/components/Button.tsx +85 -0
- package/src/components/ChatWidget.tsx +88 -2
- package/src/components/LabelContainer.tsx +50 -0
- package/src/components/MessageBubble.tsx +50 -36
- package/src/components/MessageMetaRow.tsx +26 -9
- package/src/components/ProductsList.tsx +12 -0
- package/src/components/ProductsListView.tsx +227 -302
- package/src/components/utils.ts +164 -2
- package/src/types.ts +30 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { memo, useEffect, useState } from "react";
|
|
2
2
|
import { View, StyleSheet, ScrollView, Platform, Image, Pressable } from "react-native";
|
|
3
|
-
import { getUserCurrencySymbol, formatPriceValue, roundUpPrices, AnalyticsEventNames } from "./utils";
|
|
3
|
+
import { getUserCurrencySymbol, formatPriceValue, roundUpPrices, AnalyticsEventNames, ProductCategory, ButtonCategory, ButtonType } from "./utils";
|
|
4
4
|
import { useTheme } from "styled-components/native";
|
|
5
5
|
import styled from "styled-components/native";
|
|
6
6
|
import { useUserAnalytics } from "../hooks/useAnalytics";
|
|
7
|
+
import Button from "./Button";
|
|
7
8
|
let ImageComponent = Image;
|
|
8
9
|
if (Platform.OS !== "web") {
|
|
9
10
|
try {
|
|
@@ -13,280 +14,15 @@ if (Platform.OS !== "web") {
|
|
|
13
14
|
// expo-image not installed, use React Native Image
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
// Token configuration for diamond details display
|
|
18
|
-
|
|
19
|
-
const DIAMOND_TOKENS_MOBILE_WEB = [
|
|
20
|
-
// Row 1: Basic specs
|
|
21
|
-
{
|
|
22
|
-
type: "field",
|
|
23
|
-
field: "shape_long",
|
|
24
|
-
style: "primary"
|
|
25
|
-
}, {
|
|
26
|
-
type: "fieldWithSuffix",
|
|
27
|
-
field: "size",
|
|
28
|
-
style: "secondary",
|
|
29
|
-
suffix: "ct",
|
|
30
|
-
showCurrencyIf: "price_per_carat"
|
|
31
|
-
}, {
|
|
32
|
-
type: "field",
|
|
33
|
-
field: "color",
|
|
34
|
-
style: "primary"
|
|
35
|
-
}, {
|
|
36
|
-
type: "field",
|
|
37
|
-
field: "clarity_short",
|
|
38
|
-
style: "primary"
|
|
39
|
-
}, {
|
|
40
|
-
type: "separator"
|
|
41
|
-
}, {
|
|
42
|
-
type: "group",
|
|
43
|
-
items: [{
|
|
44
|
-
type: "field",
|
|
45
|
-
field: "cut_short",
|
|
46
|
-
style: "primary"
|
|
47
|
-
}, {
|
|
48
|
-
type: "field",
|
|
49
|
-
field: "polish_short",
|
|
50
|
-
style: "primary",
|
|
51
|
-
prefix: "/"
|
|
52
|
-
}, {
|
|
53
|
-
type: "field",
|
|
54
|
-
field: "symmetry_short",
|
|
55
|
-
style: "primary",
|
|
56
|
-
prefix: "/"
|
|
57
|
-
}]
|
|
58
|
-
}, {
|
|
59
|
-
type: "separator"
|
|
60
|
-
}, {
|
|
61
|
-
type: "field",
|
|
62
|
-
field: "fluorescence_intensity_short",
|
|
63
|
-
style: "primary"
|
|
64
|
-
}, {
|
|
65
|
-
type: "separator"
|
|
66
|
-
}, {
|
|
67
|
-
type: "field",
|
|
68
|
-
field: "lab_short",
|
|
69
|
-
style: "primary"
|
|
70
|
-
}, {
|
|
71
|
-
type: "separator"
|
|
72
|
-
}, {
|
|
73
|
-
type: "field",
|
|
74
|
-
field: "discount_percent",
|
|
75
|
-
style: "secondary",
|
|
76
|
-
format: "percent"
|
|
77
|
-
},
|
|
78
|
-
// Row 2: Measurements & Pricing
|
|
79
|
-
{
|
|
80
|
-
type: "lineBreak"
|
|
81
|
-
}, {
|
|
82
|
-
type: "field",
|
|
83
|
-
field: "depth_percent",
|
|
84
|
-
style: "secondary",
|
|
85
|
-
prefixStyle: "primary",
|
|
86
|
-
prefix: "D",
|
|
87
|
-
format: "percent"
|
|
88
|
-
}, {
|
|
89
|
-
type: "separator"
|
|
90
|
-
}, {
|
|
91
|
-
type: "field",
|
|
92
|
-
field: "table_percent",
|
|
93
|
-
style: "secondary",
|
|
94
|
-
prefixStyle: "primary",
|
|
95
|
-
prefix: "T",
|
|
96
|
-
format: "percent"
|
|
97
|
-
}, {
|
|
98
|
-
type: "separator"
|
|
99
|
-
}, {
|
|
100
|
-
type: "field",
|
|
101
|
-
field: "measurement",
|
|
102
|
-
style: "secondary"
|
|
103
|
-
}, {
|
|
104
|
-
type: "separator"
|
|
105
|
-
}, {
|
|
106
|
-
type: "priceField",
|
|
107
|
-
field: "price_per_carat",
|
|
108
|
-
style: "secondary",
|
|
109
|
-
suffixStyle: "primary",
|
|
110
|
-
suffix: "PC"
|
|
111
|
-
}, {
|
|
112
|
-
type: "priceField",
|
|
113
|
-
field: "total_sales_price",
|
|
114
|
-
style: "secondary",
|
|
115
|
-
prefix: " ="
|
|
116
|
-
}];
|
|
117
|
-
const DIAMOND_TOKENS_TABLET = [
|
|
118
|
-
// Row 1: Basic specs
|
|
119
|
-
{
|
|
120
|
-
type: "field",
|
|
121
|
-
field: "shape_long",
|
|
122
|
-
style: "primary"
|
|
123
|
-
}, {
|
|
124
|
-
type: "fieldWithSuffix",
|
|
125
|
-
field: "size",
|
|
126
|
-
style: "secondary",
|
|
127
|
-
suffix: "ct",
|
|
128
|
-
showCurrencyIf: "price_per_carat"
|
|
129
|
-
}, {
|
|
130
|
-
type: "field",
|
|
131
|
-
field: "color",
|
|
132
|
-
style: "primary"
|
|
133
|
-
}, {
|
|
134
|
-
type: "field",
|
|
135
|
-
field: "clarity_short",
|
|
136
|
-
style: "primary"
|
|
137
|
-
}, {
|
|
138
|
-
type: "separator"
|
|
139
|
-
}, {
|
|
140
|
-
type: "group",
|
|
141
|
-
items: [{
|
|
142
|
-
type: "field",
|
|
143
|
-
field: "cut_short",
|
|
144
|
-
style: "primary"
|
|
145
|
-
}, {
|
|
146
|
-
type: "field",
|
|
147
|
-
field: "polish_short",
|
|
148
|
-
style: "primary",
|
|
149
|
-
prefix: "/"
|
|
150
|
-
}, {
|
|
151
|
-
type: "field",
|
|
152
|
-
field: "symmetry_short",
|
|
153
|
-
style: "primary",
|
|
154
|
-
prefix: "/"
|
|
155
|
-
}]
|
|
156
|
-
}, {
|
|
157
|
-
type: "separator"
|
|
158
|
-
}, {
|
|
159
|
-
type: "field",
|
|
160
|
-
field: "fluorescence_intensity_short",
|
|
161
|
-
style: "primary"
|
|
162
|
-
}, {
|
|
163
|
-
type: "separator"
|
|
164
|
-
}, {
|
|
165
|
-
type: "field",
|
|
166
|
-
field: "lab_short",
|
|
167
|
-
style: "primary"
|
|
168
|
-
}, {
|
|
169
|
-
type: "separator"
|
|
170
|
-
}, {
|
|
171
|
-
type: "field",
|
|
172
|
-
field: "depth_percent",
|
|
173
|
-
style: "secondary",
|
|
174
|
-
prefixStyle: "primary",
|
|
175
|
-
prefix: "D",
|
|
176
|
-
format: "percent"
|
|
177
|
-
}, {
|
|
178
|
-
type: "separator"
|
|
179
|
-
}, {
|
|
180
|
-
type: "field",
|
|
181
|
-
field: "table_percent",
|
|
182
|
-
style: "secondary",
|
|
183
|
-
prefixStyle: "primary",
|
|
184
|
-
prefix: "T",
|
|
185
|
-
format: "percent"
|
|
186
|
-
}, {
|
|
187
|
-
type: "separator"
|
|
188
|
-
}, {
|
|
189
|
-
type: "field",
|
|
190
|
-
field: "measurement",
|
|
191
|
-
style: "secondary"
|
|
192
|
-
}, {
|
|
193
|
-
type: "separator"
|
|
194
|
-
}, {
|
|
195
|
-
type: "field",
|
|
196
|
-
field: "discount_percent",
|
|
197
|
-
style: "secondary",
|
|
198
|
-
format: "percent"
|
|
199
|
-
},
|
|
200
|
-
// Row 2: Measurements & Pricing
|
|
201
|
-
{
|
|
202
|
-
type: "lineBreak"
|
|
203
|
-
}, {
|
|
204
|
-
type: "priceField",
|
|
205
|
-
field: "price_per_carat",
|
|
206
|
-
style: "secondary",
|
|
207
|
-
suffixStyle: "primary",
|
|
208
|
-
suffix: "PC"
|
|
209
|
-
}, {
|
|
210
|
-
type: "priceField",
|
|
211
|
-
field: "total_sales_price",
|
|
212
|
-
style: "secondary",
|
|
213
|
-
prefix: " ="
|
|
214
|
-
}];
|
|
215
|
-
const renderToken = (token, item, userCurrency, index, shouldRound = false) => {
|
|
216
|
-
const TextView = token.style === "secondary" ? TextStyleTwo : TextStyleOne;
|
|
217
|
-
const PrefixTextView = token.prefixStyle === "secondary" ? TextStyleTwo : TextStyleOne;
|
|
218
|
-
const SuffixTextView = token.suffixStyle === "secondary" ? TextStyleTwo : TextStyleOne;
|
|
219
|
-
const currency = userCurrency || "$";
|
|
220
|
-
const theme = useTheme();
|
|
221
|
-
switch (token.type) {
|
|
222
|
-
case "separator":
|
|
223
|
-
return /*#__PURE__*/React.createElement(TextView, {
|
|
224
|
-
key: index,
|
|
225
|
-
theme: theme
|
|
226
|
-
}, "·");
|
|
227
|
-
case "lineBreak":
|
|
228
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
229
|
-
key: index,
|
|
230
|
-
style: styles.lineBreak
|
|
231
|
-
});
|
|
232
|
-
case "field":
|
|
233
|
-
{
|
|
234
|
-
let value = item[token.field] ?? "-";
|
|
235
|
-
if (token.format === "percent" && value !== "-") {
|
|
236
|
-
value = `${value}%`;
|
|
237
|
-
}
|
|
238
|
-
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
239
|
-
key: index
|
|
240
|
-
}, token.prefix && /*#__PURE__*/React.createElement(PrefixTextView, {
|
|
241
|
-
theme: theme
|
|
242
|
-
}, token.prefix), /*#__PURE__*/React.createElement(TextView, {
|
|
243
|
-
theme: theme
|
|
244
|
-
}, value));
|
|
245
|
-
}
|
|
246
|
-
case "fieldWithSuffix":
|
|
247
|
-
{
|
|
248
|
-
const value = item[token.field] ?? "-";
|
|
249
|
-
const showSuffix = token.showCurrencyIf ? item[token.showCurrencyIf] : true;
|
|
250
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
251
|
-
key: index,
|
|
252
|
-
style: styles.rowCenter
|
|
253
|
-
}, /*#__PURE__*/React.createElement(TextView, {
|
|
254
|
-
theme: theme
|
|
255
|
-
}, value), showSuffix && token.suffix && /*#__PURE__*/React.createElement(TextView, {
|
|
256
|
-
theme: theme
|
|
257
|
-
}, token.suffix));
|
|
258
|
-
}
|
|
259
|
-
case "priceField":
|
|
260
|
-
{
|
|
261
|
-
const value = item[token.field];
|
|
262
|
-
const formattedPrice = formatPriceValue(token.field, value, shouldRound);
|
|
263
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
264
|
-
key: index,
|
|
265
|
-
style: styles.rowCenter
|
|
266
|
-
}, token.prefix && /*#__PURE__*/React.createElement(TextView, {
|
|
267
|
-
theme: theme
|
|
268
|
-
}, token.prefix), value && /*#__PURE__*/React.createElement(TextView, {
|
|
269
|
-
theme: theme
|
|
270
|
-
}, currency), /*#__PURE__*/React.createElement(TextView, {
|
|
271
|
-
theme: theme
|
|
272
|
-
}, formattedPrice ?? "-"), token.suffix && /*#__PURE__*/React.createElement(SuffixTextView, {
|
|
273
|
-
theme: theme
|
|
274
|
-
}, token.suffix));
|
|
275
|
-
}
|
|
276
|
-
case "group":
|
|
277
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
278
|
-
key: index,
|
|
279
|
-
style: styles.rowCenter
|
|
280
|
-
}, token.items?.map((subToken, subIndex) => renderToken(subToken, item, userCurrency, subIndex, shouldRound)));
|
|
281
|
-
default:
|
|
282
|
-
return null;
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
17
|
const ProductsListViewComponent = ({
|
|
286
18
|
data,
|
|
287
19
|
totalResults,
|
|
288
20
|
onViewAll,
|
|
289
21
|
onItemPress,
|
|
22
|
+
showMoreResults,
|
|
23
|
+
showLessResults,
|
|
24
|
+
currentPage = 1,
|
|
25
|
+
isLoadingMore = false,
|
|
290
26
|
item
|
|
291
27
|
}) => {
|
|
292
28
|
if (!data || !data.length) return null;
|
|
@@ -296,8 +32,9 @@ const ProductsListViewComponent = ({
|
|
|
296
32
|
const {
|
|
297
33
|
trackEvent
|
|
298
34
|
} = useUserAnalytics();
|
|
299
|
-
const
|
|
300
|
-
const
|
|
35
|
+
const payload = item?.search_payload;
|
|
36
|
+
const isLabgrown = typeof payload.lab_grown === "string" ? payload.lab_grown === "true" : typeof payload.lab_grown === "boolean" ? payload.lab_grown : false;
|
|
37
|
+
const productType = isLabgrown ? ProductCategory.LAB_GROWN_DIAMOND : ProductCategory.DIAMOND;
|
|
301
38
|
useEffect(() => {
|
|
302
39
|
const fetchCurrency = async () => {
|
|
303
40
|
const currency = await getUserCurrencySymbol();
|
|
@@ -321,8 +58,7 @@ const ProductsListViewComponent = ({
|
|
|
321
58
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
322
59
|
theme: theme
|
|
323
60
|
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
324
|
-
showsVerticalScrollIndicator: false
|
|
325
|
-
contentContainerStyle: styles.listContent
|
|
61
|
+
showsVerticalScrollIndicator: false
|
|
326
62
|
}, data.map((dataItem, index) => /*#__PURE__*/React.createElement(Pressable, {
|
|
327
63
|
key: dataItem.id,
|
|
328
64
|
onPress: () => handleItemPress(dataItem)
|
|
@@ -332,39 +68,52 @@ const ProductsListViewComponent = ({
|
|
|
332
68
|
React.createElement(ListItemParent, {
|
|
333
69
|
theme: theme,
|
|
334
70
|
hovered: state.hovered
|
|
335
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
71
|
+
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
|
|
336
72
|
style: styles.left
|
|
337
73
|
}, /*#__PURE__*/React.createElement(View, {
|
|
338
|
-
style: styles.serialContainer
|
|
339
|
-
}, /*#__PURE__*/React.createElement(Serial, null, index + 1, ".")), /*#__PURE__*/React.createElement(View, {
|
|
340
74
|
style: styles.tokens
|
|
341
|
-
},
|
|
342
|
-
activeOpacity: 0.8,
|
|
343
|
-
onPress: () => handleViewAllPress(item)
|
|
344
|
-
}, /*#__PURE__*/React.createElement(ButtonText, null, `View All ${totalResults} diamonds`), /*#__PURE__*/React.createElement(ImageComponent, {
|
|
345
|
-
source: {
|
|
346
|
-
uri: "https://cdn.vdbapp.com/ai/chat-widget/assets/img/right.svg"
|
|
347
|
-
},
|
|
348
|
-
resizeMode: "contain",
|
|
75
|
+
}, /*#__PURE__*/React.createElement(TopContainer, null, /*#__PURE__*/React.createElement(TopLeftContainer, null, /*#__PURE__*/React.createElement(ExtraSmallGapContainer, null, /*#__PURE__*/React.createElement(TextStyleBold, null, `${dataItem.shape_short ?? "-"}`), /*#__PURE__*/React.createElement(TextStyleBold, null, `${dataItem.size ?? "-"}ct`), /*#__PURE__*/React.createElement(TextStyleBold, null, `${dataItem.color_short ?? "-"}`), /*#__PURE__*/React.createElement(TextStyleBold, null, `${dataItem.clarity_short ?? "-"}`), /*#__PURE__*/React.createElement(TextStyleBold, null, `${dataItem.lab_short ?? "-"}`)), /*#__PURE__*/React.createElement(View, {
|
|
349
76
|
style: {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
tintColor: theme["primary-cont"] || "#ffffff"
|
|
77
|
+
flexDirection: "row",
|
|
78
|
+
alignItems: "center"
|
|
353
79
|
}
|
|
354
|
-
})))
|
|
80
|
+
}, /*#__PURE__*/React.createElement(TextStyleRegular, null, dataItem.cut_short ?? "-"), /*#__PURE__*/React.createElement(TextStyleRegular, null, "/"), /*#__PURE__*/React.createElement(TextStyleRegular, null, dataItem.polish_short ?? "-"), /*#__PURE__*/React.createElement(TextStyleRegular, null, "/"), /*#__PURE__*/React.createElement(TextStyleRegular, null, dataItem.symmetry_short ?? "-")), /*#__PURE__*/React.createElement(TextStyleRegular, null, dataItem.fluorescence_intensity_short ?? "-")), /*#__PURE__*/React.createElement(TopRightContainer, null, /*#__PURE__*/React.createElement(PricePerCaratContainer, null, dataItem.price_per_carat ? /*#__PURE__*/React.createElement(TextStyleBold, null, userCurrency ? userCurrency : "$") : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(TextStyleBold, null, formatPriceValue("price_per_carat", dataItem.price_per_carat, shouldRound) ?? "-")), /*#__PURE__*/React.createElement(TextStyleRegular, null, "p/ct"))), /*#__PURE__*/React.createElement(BottomContainer, null, /*#__PURE__*/React.createElement(BottomLeftContainer, null, /*#__PURE__*/React.createElement(DepthContainer, null, /*#__PURE__*/React.createElement(TextStyleRegular, null, "D"), /*#__PURE__*/React.createElement(TextStyleBold, null, dataItem.depth_percent ? dataItem.depth_percent + "%" : "-")), /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(TextStyleRegular, null, "T"), /*#__PURE__*/React.createElement(TextStyleBold, null, dataItem.table_percent ? dataItem.table_percent + "%" : "-")), /*#__PURE__*/React.createElement(MeasurementsContainer, null, /*#__PURE__*/React.createElement(TextStyleRegular, null, dataItem.measurement ?? "-"))), /*#__PURE__*/React.createElement(BottomRightContainer, null, isLabgrown ? /*#__PURE__*/React.createElement(React.Fragment, null) : /*#__PURE__*/React.createElement(TextStyleBold, null, dataItem.discount_percent ? dataItem.discount_percent + "%" : "-"), /*#__PURE__*/React.createElement(TotalPriceContainer, null, /*#__PURE__*/React.createElement(TotalPriceChildContainer, null, dataItem.total_sales_price ? /*#__PURE__*/React.createElement(TextStyleBold, null, userCurrency ? userCurrency : "$") : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(TextStyleBold, null, formatPriceValue("total_sales_price", dataItem.total_sales_price, shouldRound) ?? "-")), /*#__PURE__*/React.createElement(TextStyleRegular, null, "total"))))))))))), showMoreResults && currentPage < 3 && /*#__PURE__*/React.createElement(ShowMoreContainer, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
81
|
+
onPress: showMoreResults,
|
|
82
|
+
disabled: isLoadingMore
|
|
83
|
+
}, /*#__PURE__*/React.createElement(ShowMoreText, {
|
|
84
|
+
theme: theme
|
|
85
|
+
}, isLoadingMore ? 'Loading...' : `Show more`))), showLessResults && (currentPage === 3 || data.length >= 15) && /*#__PURE__*/React.createElement(ShowMoreContainer, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
86
|
+
onPress: showLessResults
|
|
87
|
+
}, /*#__PURE__*/React.createElement(ShowMoreText, {
|
|
88
|
+
theme: theme
|
|
89
|
+
}, "Show less"))), /*#__PURE__*/React.createElement(Button, {
|
|
90
|
+
category: isLabgrown ? ButtonCategory.lab : ButtonCategory.diam,
|
|
91
|
+
height: 32,
|
|
92
|
+
type: ButtonType.primary,
|
|
93
|
+
borderRadius: 8,
|
|
94
|
+
style: {
|
|
95
|
+
marginTop: 12
|
|
96
|
+
},
|
|
97
|
+
onPress: () => handleViewAllPress(item)
|
|
98
|
+
}, /*#__PURE__*/React.createElement(ButtonText, null, `View All ${Number(totalResults).toLocaleString()} diamonds`)));
|
|
355
99
|
};
|
|
356
100
|
const Wrapper = styled.View`
|
|
357
101
|
padding-horizontal: 8px;
|
|
358
102
|
`;
|
|
359
|
-
const
|
|
360
|
-
|
|
103
|
+
const ShowMoreContainer = styled.View`
|
|
104
|
+
margin-top: 8px;
|
|
105
|
+
align-items: flex-start;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
`;
|
|
108
|
+
const ShowMoreText = styled.Text`
|
|
361
109
|
color: ${({
|
|
362
110
|
theme
|
|
363
|
-
}) => theme["
|
|
111
|
+
}) => theme["link-static"] || "#3378F6"};
|
|
112
|
+
font-size: 14px;
|
|
364
113
|
font-weight: 500;
|
|
365
114
|
font-family: 'Roboto-Medium';
|
|
366
115
|
`;
|
|
367
|
-
const
|
|
116
|
+
const TextStyleRegular = styled.Text`
|
|
368
117
|
font-size: 13px;
|
|
369
118
|
color: ${({
|
|
370
119
|
theme
|
|
@@ -373,7 +122,7 @@ const TextStyleOne = styled.Text`
|
|
|
373
122
|
font-family: 'Roboto-Regular';
|
|
374
123
|
font-style: normal;
|
|
375
124
|
`;
|
|
376
|
-
const
|
|
125
|
+
const TextStyleBold = styled.Text`
|
|
377
126
|
font-size: 13px;
|
|
378
127
|
color: ${({
|
|
379
128
|
theme
|
|
@@ -382,23 +131,6 @@ const TextStyleTwo = styled.Text`
|
|
|
382
131
|
font-family: 'Roboto-Medium';
|
|
383
132
|
font-style: normal;
|
|
384
133
|
`;
|
|
385
|
-
const ButtonView = styled.TouchableOpacity`
|
|
386
|
-
margin-top: 12px;
|
|
387
|
-
margin-horizontal: 12px;
|
|
388
|
-
align-self: center;
|
|
389
|
-
padding-horizontal: 16px;
|
|
390
|
-
padding-vertical: 6px;
|
|
391
|
-
background-color: ${({
|
|
392
|
-
theme
|
|
393
|
-
}) => theme["primary-bg-static"] || "#292735"};
|
|
394
|
-
border-radius: 8px;
|
|
395
|
-
align-items: center;
|
|
396
|
-
gap: 16px;
|
|
397
|
-
width: 100%;
|
|
398
|
-
flex-direction: row;
|
|
399
|
-
justify-content: center;
|
|
400
|
-
align-content: center;
|
|
401
|
-
`;
|
|
402
134
|
const ButtonText = styled.Text`
|
|
403
135
|
color: ${({
|
|
404
136
|
theme
|
|
@@ -408,12 +140,84 @@ const ButtonText = styled.Text`
|
|
|
408
140
|
font-family: 'Roboto-Medium';
|
|
409
141
|
`;
|
|
410
142
|
const ListItemParent = styled.View`
|
|
411
|
-
padding-vertical:
|
|
143
|
+
padding-vertical: 12px;
|
|
144
|
+
border-bottom-width: 1px;
|
|
145
|
+
border-bottom-color: ${({
|
|
146
|
+
theme
|
|
147
|
+
}) => theme["core-03"] || "#D5D5DC"};
|
|
412
148
|
background-color: ${({
|
|
413
149
|
theme,
|
|
414
150
|
hovered
|
|
415
151
|
}) => hovered ? theme["secondary-bg-hover"] || "#EDEDF2" : "transparent"};
|
|
416
152
|
`;
|
|
153
|
+
const TopContainer = styled.View`
|
|
154
|
+
flex-direction: row;
|
|
155
|
+
justify-content: space-between;
|
|
156
|
+
align-items: center;
|
|
157
|
+
width: 100%;
|
|
158
|
+
`;
|
|
159
|
+
const TopLeftContainer = styled.View`
|
|
160
|
+
flex-direction: row;
|
|
161
|
+
justify-content: space-between;
|
|
162
|
+
align-items: center;
|
|
163
|
+
gap: 8px;
|
|
164
|
+
`;
|
|
165
|
+
const TopRightContainer = styled.View`
|
|
166
|
+
flex-direction: row;
|
|
167
|
+
justify-content: space-between;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: 4px;
|
|
170
|
+
`;
|
|
171
|
+
const BottomContainer = styled.View`
|
|
172
|
+
flex-direction: row;
|
|
173
|
+
justify-content: space-between;
|
|
174
|
+
align-items: center;
|
|
175
|
+
width: 100%;
|
|
176
|
+
`;
|
|
177
|
+
const BottomLeftContainer = styled.View`
|
|
178
|
+
flex-direction: row;
|
|
179
|
+
justify-content: space-between;
|
|
180
|
+
align-items: center;
|
|
181
|
+
gap: 8px;
|
|
182
|
+
`;
|
|
183
|
+
const BottomRightContainer = styled.View`
|
|
184
|
+
flex-direction: row;
|
|
185
|
+
justify-content: space-between;
|
|
186
|
+
align-items: center;
|
|
187
|
+
gap: 4px;
|
|
188
|
+
`;
|
|
189
|
+
const PricePerCaratContainer = styled.View`
|
|
190
|
+
flex-direction: row;
|
|
191
|
+
align-items: center;
|
|
192
|
+
`;
|
|
193
|
+
const TotalPriceContainer = styled.View`
|
|
194
|
+
flex-direction: row;
|
|
195
|
+
justify-content: space-between;
|
|
196
|
+
align-items: center;
|
|
197
|
+
gap: 4px;
|
|
198
|
+
`;
|
|
199
|
+
const TotalPriceChildContainer = styled.View`
|
|
200
|
+
flex-direction: row;
|
|
201
|
+
align-items: center;
|
|
202
|
+
width: 65px;
|
|
203
|
+
justify-content: flex-end;
|
|
204
|
+
`;
|
|
205
|
+
const DepthContainer = styled.View`
|
|
206
|
+
flex-direction: row;
|
|
207
|
+
align-items: center;
|
|
208
|
+
gap: 2px;
|
|
209
|
+
`;
|
|
210
|
+
const TableContainer = styled.View`
|
|
211
|
+
flex-direction: row;
|
|
212
|
+
align-items: center;
|
|
213
|
+
gap: 2px;
|
|
214
|
+
`;
|
|
215
|
+
const ExtraSmallGapContainer = styled.View`
|
|
216
|
+
flex-direction: row;
|
|
217
|
+
align-items: center;
|
|
218
|
+
gap: 2px;
|
|
219
|
+
`;
|
|
220
|
+
const MeasurementsContainer = styled.View``;
|
|
417
221
|
const styles = StyleSheet.create({
|
|
418
222
|
listContent: {
|
|
419
223
|
gap: 8
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useEffect","useState","View","StyleSheet","ScrollView","Platform","Image","Pressable","getUserCurrencySymbol","formatPriceValue","roundUpPrices","AnalyticsEventNames","useTheme","styled","useUserAnalytics","ImageComponent","OS","ExpoImage","require","DIAMOND_TOKENS_MOBILE_WEB","type","field","style","suffix","showCurrencyIf","items","prefix","format","prefixStyle","suffixStyle","DIAMOND_TOKENS_TABLET","renderToken","token","item","userCurrency","index","shouldRound","TextView","TextStyleTwo","TextStyleOne","PrefixTextView","SuffixTextView","currency","theme","createElement","key","styles","lineBreak","value","Fragment","showSuffix","rowCenter","formattedPrice","map","subToken","subIndex","ProductsListViewComponent","data","totalResults","onViewAll","onItemPress","length","setUserCurrency","setShouldRound","trackEvent","isTablet","DIAMOND_TOKENS","fetchCurrency","getRoundOffPrices","roundOff","handleItemPress","dataItem","PRODUCT_PREVIEW_CLICKED","handleViewAllPress","SHOW_ALL_RESULTS_CLICKED","Wrapper","showsVerticalScrollIndicator","contentContainerStyle","listContent","id","onPress","state","ListItemParent","hovered","left","serialContainer","Serial","tokens","tokenIndex","ButtonView","activeOpacity","ButtonText","source","uri","resizeMode","width","height","tintColor","Text","TouchableOpacity","create","gap","flexDirection","alignItems","minWidth","justifyContent","marginRight","flexWrap","flex","ProductsListView"],"sourceRoot":"../../../src","sources":["components/ProductsListView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACxD,SACEC,IAAI,EACJC,UAAU,EAGVC,UAAU,EACVC,QAAQ,EACRC,KAAK,EACLC,SAAS,QACJ,cAAc;AACrB,SACEC,qBAAqB,EACrBC,gBAAgB,EAChBC,aAAa,EACbC,mBAAmB,QACd,SAAS;AAChB,SAASC,QAAQ,QAAQ,0BAA0B;AAEnD,OAAOC,MAAM,MAAM,0BAA0B;AAC7C,SAASC,gBAAgB,QAAQ,uBAAuB;AAExD,IAAIC,cAA4B,GAAGT,KAAK;AACxC,IAAID,QAAQ,CAACW,EAAE,KAAK,KAAK,EAAE;EACzB,IAAI;IACF,MAAMC,SAAS,GAAGC,OAAO,CAAC,YAAY,CAAC,CAACZ,KAAK;IAC7C,IAAIW,SAAS,EAAEF,cAAc,GAAGE,SAAS;EAC3C,CAAC,CAAC,MAAM;IACN;EAAA;AAEJ;;AAEA;;AAuBA,MAAME,yBAAwC,GAAG;AAC/C;AACA;EAAEC,IAAI,EAAE,OAAO;EAAEC,KAAK,EAAE,YAAY;EAAEC,KAAK,EAAE;AAAU,CAAC,EACxD;EACEF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YAAY;IACxBC,QAAQ,EAAE;EACZ,CAAC;EAEDnB,eAAe,EAAE;IACfkB,UAAU,EAAE,YAAY;IACxBE,cAAc,EAAE,QAAQ;IACxBC,WAAW,EAAE;EACf,CAAC;EAEDnB,MAAM,EAAE;IACNe,aAAa,EAAE,KAAK;IACpBK,QAAQ,EAAE,MAAM;IAChBN,GAAG,EAAE,CAAC;IACNO,IAAI,EAAE,CAAC;IACPJ,QAAQ,EAAE;EACZ,CAAC;EACDzD,SAAS,EAAE;IACTgD,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACD7C,SAAS,EAAE;IACTmD,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,MAAMM,gBAAgB,gBAAG9G,IAAI,CAACyD,yBAAyB,CAAC;AACxD,eAAeqD,gBAAgB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","memo","useEffect","useState","View","StyleSheet","ScrollView","Platform","Image","Pressable","getUserCurrencySymbol","formatPriceValue","roundUpPrices","AnalyticsEventNames","ProductCategory","ButtonCategory","ButtonType","useTheme","styled","useUserAnalytics","Button","ImageComponent","OS","ExpoImage","require","ProductsListViewComponent","data","totalResults","onViewAll","onItemPress","showMoreResults","showLessResults","currentPage","isLoadingMore","item","length","theme","userCurrency","setUserCurrency","shouldRound","setShouldRound","trackEvent","payload","search_payload","isLabgrown","lab_grown","productType","LAB_GROWN_DIAMOND","DIAMOND","fetchCurrency","currency","getRoundOffPrices","roundOff","handleItemPress","dataItem","PRODUCT_PREVIEW_CLICKED","handleViewAllPress","SHOW_ALL_RESULTS_CLICKED","createElement","Wrapper","showsVerticalScrollIndicator","map","index","key","id","onPress","state","ListItemParent","hovered","style","styles","left","tokens","TopContainer","TopLeftContainer","ExtraSmallGapContainer","TextStyleBold","shape_short","size","color_short","clarity_short","lab_short","flexDirection","alignItems","TextStyleRegular","cut_short","polish_short","symmetry_short","fluorescence_intensity_short","TopRightContainer","PricePerCaratContainer","price_per_carat","Fragment","BottomContainer","BottomLeftContainer","DepthContainer","depth_percent","TableContainer","table_percent","MeasurementsContainer","measurement","BottomRightContainer","discount_percent","TotalPriceContainer","TotalPriceChildContainer","total_sales_price","ShowMoreContainer","disabled","ShowMoreText","category","lab","diam","height","type","primary","borderRadius","marginTop","ButtonText","Number","toLocaleString","Text","create","listContent","gap","minWidth","serialContainer","justifyContent","marginRight","flexWrap","flex","lineBreak","width","rowCenter","ProductsListView"],"sourceRoot":"../../../src","sources":["components/ProductsListView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AACxD,SACEC,IAAI,EACJC,UAAU,EACVC,UAAU,EACVC,QAAQ,EACRC,KAAK,EACLC,SAAS,QACJ,cAAc;AACrB,SACEC,qBAAqB,EACrBC,gBAAgB,EAChBC,aAAa,EACbC,mBAAmB,EACnBC,eAAe,EACfC,cAAc,EACdC,UAAU,QACL,SAAS;AAChB,SAASC,QAAQ,QAAQ,0BAA0B;AAEnD,OAAOC,MAAM,MAAM,0BAA0B;AAC7C,SAASC,gBAAgB,QAAQ,uBAAuB;AACxD,OAAOC,MAAM,MAAM,UAAU;AAE7B,IAAIC,cAA4B,GAAGb,KAAK;AACxC,IAAID,QAAQ,CAACe,EAAE,KAAK,KAAK,EAAE;EACzB,IAAI;IACF,MAAMC,SAAS,GAAGC,OAAO,CAAC,YAAY,CAAC,CAAChB,KAAK;IAC7C,IAAIe,SAAS,EAAEF,cAAc,GAAGE,SAAS;EAC3C,CAAC,CAAC,MAAM;IACN;EAAA;AAEJ;AAaA,MAAME,yBAA0D,GAAGA,CAAC;EAClEC,IAAI;EACJC,YAAY;EACZC,SAAS;EACTC,WAAW;EACXC,eAAe;EACfC,eAAe;EACfC,WAAW,GAAG,CAAC;EACfC,aAAa,GAAG,KAAK;EACrBC;AACF,CAAC,KAAK;EACJ,IAAI,CAACR,IAAI,IAAI,CAACA,IAAI,CAACS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