@woosmap/ui 4.152.0 → 4.154.0
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/package.json
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import localitiesImgSq from '../../images/products/product-localities-sq.png';
|
|
2
|
+
import geolocationImgSq from '../../images/products/product-geolocation-sq.png';
|
|
3
|
+
import storesImgSq from '../../images/products/product-stores-sq.png';
|
|
4
|
+
import distanceImgSq from '../../images/products/product-distance-sq.png';
|
|
5
|
+
import mapImgSq from '../../images/products/product-map-sq.png';
|
|
6
|
+
import indoorImgSq from '../../images/products/product-indoor-sq.png';
|
|
7
|
+
import geofencingImgSq from '../../images/products/product-geofencing-sq.png';
|
|
8
|
+
|
|
1
9
|
/* eslint-disable */
|
|
2
10
|
|
|
11
|
+
|
|
3
12
|
const Pricing = {
|
|
4
13
|
Geolocation: {
|
|
5
|
-
image :
|
|
14
|
+
image : geolocationImgSq,
|
|
6
15
|
pricings: {
|
|
7
16
|
'Geolocation (Position) API': {
|
|
8
17
|
publicTierCount: 2,
|
|
@@ -35,7 +44,7 @@ const Pricing = {
|
|
|
35
44
|
},
|
|
36
45
|
},
|
|
37
46
|
Localities: {
|
|
38
|
-
image :
|
|
47
|
+
image : localitiesImgSq,
|
|
39
48
|
pricings: {
|
|
40
49
|
'Localities Autocomplete API': {
|
|
41
50
|
publicTierCount: 1,
|
|
@@ -106,7 +115,7 @@ const Pricing = {
|
|
|
106
115
|
},
|
|
107
116
|
},
|
|
108
117
|
Distance: {
|
|
109
|
-
image :
|
|
118
|
+
image : distanceImgSq,
|
|
110
119
|
pricings: {
|
|
111
120
|
'Distance (Route) API (/q)': {
|
|
112
121
|
publicTierCount: 2,
|
|
@@ -167,7 +176,7 @@ const Pricing = {
|
|
|
167
176
|
},
|
|
168
177
|
},
|
|
169
178
|
'Map-Js': {
|
|
170
|
-
image :
|
|
179
|
+
image : mapImgSq,
|
|
171
180
|
pricings: {
|
|
172
181
|
'Map API': {
|
|
173
182
|
publicTierCount: 2,
|
|
@@ -186,7 +195,7 @@ const Pricing = {
|
|
|
186
195
|
},
|
|
187
196
|
},
|
|
188
197
|
Indoor: {
|
|
189
|
-
image :
|
|
198
|
+
image : indoorImgSq,
|
|
190
199
|
pricings: {
|
|
191
200
|
'Indoor (Search) API': {
|
|
192
201
|
publicTierCount: 2,
|
|
@@ -247,7 +256,7 @@ const Pricing = {
|
|
|
247
256
|
},
|
|
248
257
|
},
|
|
249
258
|
Geofencing: {
|
|
250
|
-
image :
|
|
259
|
+
image : geofencingImgSq,
|
|
251
260
|
pricings: {
|
|
252
261
|
'Geofencing Store (Search)': {
|
|
253
262
|
publicTierCount: 2,
|
|
@@ -294,7 +303,7 @@ const Pricing = {
|
|
|
294
303
|
},
|
|
295
304
|
},
|
|
296
305
|
Stores: {
|
|
297
|
-
image :
|
|
306
|
+
image : storesImgSq,
|
|
298
307
|
pricings: {
|
|
299
308
|
'Store (Search) API': {
|
|
300
309
|
publicTierCount: 2,
|
|
@@ -20,25 +20,27 @@ class PricingSlider extends Component {
|
|
|
20
20
|
if (queries === '∞') {
|
|
21
21
|
return this.contactSalesButton();
|
|
22
22
|
}
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
return (
|
|
24
|
+
<span className="amount">{`${parseInt(
|
|
25
|
+
pricing.reduce((amount, tier, index) => {
|
|
26
|
+
previousPricingTier = index > 0 ? pricing[index - 1] : null;
|
|
27
|
+
|
|
28
|
+
if (previousPricingTier !== null) {
|
|
29
|
+
const valueToRemove = Math.min(tier[0] - previousPricingTier[0], q);
|
|
30
|
+
if (valueToRemove > 0) {
|
|
31
|
+
q -= valueToRemove;
|
|
32
|
+
return amount + (valueToRemove / 1000) * tier[1] * coef;
|
|
33
|
+
}
|
|
34
|
+
} else {
|
|
35
|
+
const valueToRemove = Math.min(tier[0], q);
|
|
30
36
|
q -= valueToRemove;
|
|
31
37
|
return amount + (valueToRemove / 1000) * tier[1] * coef;
|
|
32
38
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return amount;
|
|
39
|
-
}, 0),
|
|
40
|
-
10
|
|
41
|
-
)} ${currency}`;
|
|
39
|
+
return amount;
|
|
40
|
+
}, 0),
|
|
41
|
+
10
|
|
42
|
+
)} ${currency}`}</span>
|
|
43
|
+
);
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
computeQueries = (valueNow) => {
|
|
@@ -72,7 +74,11 @@ class PricingSlider extends Component {
|
|
|
72
74
|
}
|
|
73
75
|
};
|
|
74
76
|
|
|
75
|
-
contactSalesButton = () =>
|
|
77
|
+
contactSalesButton = () => (
|
|
78
|
+
<span className="button-contac">
|
|
79
|
+
<Button size="small" label={tr('Contact Sales')} />
|
|
80
|
+
</span>
|
|
81
|
+
);
|
|
76
82
|
|
|
77
83
|
renderMarks = (props) => {
|
|
78
84
|
const { productPricing, publicMode } = this.props;
|
|
@@ -149,7 +155,7 @@ class PricingSlider extends Component {
|
|
|
149
155
|
</div>
|
|
150
156
|
<div className="pricing-slider__price">
|
|
151
157
|
<span>{productPricing.unit}</span>
|
|
152
|
-
|
|
158
|
+
{amount}
|
|
153
159
|
</div>
|
|
154
160
|
</div>
|
|
155
161
|
);
|