@woosmap/ui 4.162.12 → 4.162.13
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
|
@@ -42,7 +42,6 @@ class PricingSimulator extends Component {
|
|
|
42
42
|
const { discountEligible } = PricingData[category].pricings[pricingKey];
|
|
43
43
|
const { amount, computedQueries, queries } = sliders[category][pricingKey];
|
|
44
44
|
if (typeof amount !== 'number' || typeof computedQueries !== 'number') {
|
|
45
|
-
console.log('REJECT', pricingKey, amount, computedQueries);
|
|
46
45
|
if (queries === '∞') {
|
|
47
46
|
contactSale = true;
|
|
48
47
|
}
|
|
@@ -52,12 +51,10 @@ class PricingSimulator extends Component {
|
|
|
52
51
|
if (typeof freeQueriesTotal === 'number') {
|
|
53
52
|
freeQueriesTotal += computedQueries;
|
|
54
53
|
}
|
|
55
|
-
console.log('Eligible', pricingKey, eligibleTotal, amount, computedQueries, freeQueriesTotal);
|
|
56
54
|
eligibleTotal += amount;
|
|
57
55
|
} else if (computedQueries > 0) {
|
|
58
56
|
freeQueriesTotal = false;
|
|
59
57
|
notEligibleTotal += amount;
|
|
60
|
-
console.log('Not Eligible', pricingKey, notEligibleTotal, amount);
|
|
61
58
|
}
|
|
62
59
|
});
|
|
63
60
|
});
|
|
@@ -71,11 +68,14 @@ class PricingSimulator extends Component {
|
|
|
71
68
|
const { sliders } = this.state;
|
|
72
69
|
const { publicMode, currency } = this.props;
|
|
73
70
|
const { total, freeQueriesTotal, notEligibleTotal, contactSale } = this.computeTotal();
|
|
74
|
-
let totalDisplayed = total;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
} else if (contactSale) {
|
|
71
|
+
let totalDisplayed = total + currency;
|
|
72
|
+
let suggestedPlan = 'Pro';
|
|
73
|
+
if (contactSale) {
|
|
78
74
|
totalDisplayed = 'Contact Sale';
|
|
75
|
+
suggestedPlan = 'Enterprise';
|
|
76
|
+
} else if (notEligibleTotal === 0 && freeQueriesTotal && freeQueriesTotal < 10000) {
|
|
77
|
+
totalDisplayed = `0${currency}`;
|
|
78
|
+
suggestedPlan = 'Free';
|
|
79
79
|
}
|
|
80
80
|
return (
|
|
81
81
|
<>
|
|
@@ -89,7 +89,7 @@ class PricingSimulator extends Component {
|
|
|
89
89
|
</ul>
|
|
90
90
|
<div className="pricing-total">
|
|
91
91
|
<div className="pricing-total__label">Monthly price</div>
|
|
92
|
-
<div className="pricing-total__amount">{totalDisplayed
|
|
92
|
+
<div className="pricing-total__amount">{`${totalDisplayed} (${suggestedPlan})`}</div>
|
|
93
93
|
</div>
|
|
94
94
|
</div>
|
|
95
95
|
<div className="pricing-simulator__wrapper">
|