@pelcro/react-pelcro-js 3.26.0-sandbox.25 → 3.26.0-sandbox.26
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/index.cjs.js +11 -10
- package/dist/index.esm.js +11 -10
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3452,7 +3452,7 @@ var labels$11 = {
|
|
|
3452
3452
|
code: "Coupon code",
|
|
3453
3453
|
"for": "for",
|
|
3454
3454
|
interval: "{{count}} {{interval}}",
|
|
3455
|
-
interval_plural: "{{count}} {{interval}}
|
|
3455
|
+
interval_plural: "{{count}} {{interval}}",
|
|
3456
3456
|
tax: "Tax",
|
|
3457
3457
|
removeCoupon: "REMOVE",
|
|
3458
3458
|
firstName: "First name",
|
|
@@ -4323,7 +4323,7 @@ var labels$M = {
|
|
|
4323
4323
|
code: "Code promo",
|
|
4324
4324
|
"for": "pour",
|
|
4325
4325
|
interval: "{{count}} {{interval}}",
|
|
4326
|
-
interval_plural: "{{count}} {{interval}}
|
|
4326
|
+
interval_plural: "{{count}} {{interval}}",
|
|
4327
4327
|
tax: "Taxe",
|
|
4328
4328
|
removeCoupon: "RETIRER",
|
|
4329
4329
|
firstName: "Prénom",
|
|
@@ -6169,7 +6169,7 @@ var labels$e = {
|
|
|
6169
6169
|
code: "Código de cupón",
|
|
6170
6170
|
"for": "por",
|
|
6171
6171
|
interval: "{{count}} {{interval}}",
|
|
6172
|
-
interval_plural: "{{count}} {{interval}}
|
|
6172
|
+
interval_plural: "{{count}} {{interval}}",
|
|
6173
6173
|
tax: "Impuesto",
|
|
6174
6174
|
removeCoupon: "ELIMINAR",
|
|
6175
6175
|
firstName: "Nombre",
|
|
@@ -14812,7 +14812,7 @@ class SelectModal extends React.Component {
|
|
|
14812
14812
|
startingPlan = plan;
|
|
14813
14813
|
}
|
|
14814
14814
|
}
|
|
14815
|
-
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.
|
|
14815
|
+
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval_translated}` : `${startingPlan.interval_translated}`}`;
|
|
14816
14816
|
});
|
|
14817
14817
|
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
14818
14818
|
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
@@ -20724,11 +20724,11 @@ const SubscriptionRenewView = _ref => {
|
|
|
20724
20724
|
const getPricingText = plan => {
|
|
20725
20725
|
const autoRenewed = plan.auto_renew;
|
|
20726
20726
|
const {
|
|
20727
|
-
|
|
20727
|
+
interval_translated,
|
|
20728
20728
|
interval_count
|
|
20729
20729
|
} = plan;
|
|
20730
20730
|
const intervalText = t("labels.interval", {
|
|
20731
|
-
interval,
|
|
20731
|
+
interval: interval_translated,
|
|
20732
20732
|
count: interval_count
|
|
20733
20733
|
});
|
|
20734
20734
|
return /*#__PURE__*/React__default['default'].createElement("p", {
|
|
@@ -21058,6 +21058,7 @@ const SubscriptionCancelButton = _ref => {
|
|
|
21058
21058
|
}, t("labels.cancel"));
|
|
21059
21059
|
};
|
|
21060
21060
|
|
|
21061
|
+
// New cancellation option modal
|
|
21061
21062
|
const SubscriptionCancelOptions = _ref => {
|
|
21062
21063
|
var _subscription$schedul;
|
|
21063
21064
|
let {
|
|
@@ -21087,7 +21088,7 @@ const SubscriptionCancelOptions = _ref => {
|
|
|
21087
21088
|
className: "plc-text-left plc-mr-auto plc-mb-6"
|
|
21088
21089
|
}, /*#__PURE__*/React__default['default'].createElement("p", {
|
|
21089
21090
|
className: "plc-mb-3"
|
|
21090
|
-
}, t("messages.cancelWhen")), hasPhases && /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
21091
|
+
}, t("messages.cancelWhen")), subscription.cancel_at_period_end === 0 && hasPhases && /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
21091
21092
|
onChange: handleOptionSelect,
|
|
21092
21093
|
checked: cancelationOption === "period_end",
|
|
21093
21094
|
value: "period_end"
|
|
@@ -21095,7 +21096,7 @@ const SubscriptionCancelOptions = _ref => {
|
|
|
21095
21096
|
year: "numeric",
|
|
21096
21097
|
month: "short",
|
|
21097
21098
|
day: "numeric"
|
|
21098
|
-
})), /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
21099
|
+
})), subscription.cancel_at_period_end === 0 && /*#__PURE__*/React__default['default'].createElement(Radio, {
|
|
21099
21100
|
onChange: handleOptionSelect,
|
|
21100
21101
|
checked: cancelationOption === "current_period_end",
|
|
21101
21102
|
value: "current_period_end"
|
|
@@ -22094,11 +22095,11 @@ const SubscriptionCreateView = _ref => {
|
|
|
22094
22095
|
var _plan$quantity;
|
|
22095
22096
|
const autoRenewed = plan.auto_renew;
|
|
22096
22097
|
const {
|
|
22097
|
-
|
|
22098
|
+
interval_translated,
|
|
22098
22099
|
interval_count
|
|
22099
22100
|
} = plan;
|
|
22100
22101
|
const intervalText = t("labels.interval", {
|
|
22101
|
-
interval,
|
|
22102
|
+
interval: interval_translated,
|
|
22102
22103
|
count: interval_count
|
|
22103
22104
|
});
|
|
22104
22105
|
const priceFormatted = getFormattedPriceByLocal((plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
package/dist/index.esm.js
CHANGED
|
@@ -3422,7 +3422,7 @@ var labels$11 = {
|
|
|
3422
3422
|
code: "Coupon code",
|
|
3423
3423
|
"for": "for",
|
|
3424
3424
|
interval: "{{count}} {{interval}}",
|
|
3425
|
-
interval_plural: "{{count}} {{interval}}
|
|
3425
|
+
interval_plural: "{{count}} {{interval}}",
|
|
3426
3426
|
tax: "Tax",
|
|
3427
3427
|
removeCoupon: "REMOVE",
|
|
3428
3428
|
firstName: "First name",
|
|
@@ -4293,7 +4293,7 @@ var labels$M = {
|
|
|
4293
4293
|
code: "Code promo",
|
|
4294
4294
|
"for": "pour",
|
|
4295
4295
|
interval: "{{count}} {{interval}}",
|
|
4296
|
-
interval_plural: "{{count}} {{interval}}
|
|
4296
|
+
interval_plural: "{{count}} {{interval}}",
|
|
4297
4297
|
tax: "Taxe",
|
|
4298
4298
|
removeCoupon: "RETIRER",
|
|
4299
4299
|
firstName: "Prénom",
|
|
@@ -6139,7 +6139,7 @@ var labels$e = {
|
|
|
6139
6139
|
code: "Código de cupón",
|
|
6140
6140
|
"for": "por",
|
|
6141
6141
|
interval: "{{count}} {{interval}}",
|
|
6142
|
-
interval_plural: "{{count}} {{interval}}
|
|
6142
|
+
interval_plural: "{{count}} {{interval}}",
|
|
6143
6143
|
tax: "Impuesto",
|
|
6144
6144
|
removeCoupon: "ELIMINAR",
|
|
6145
6145
|
firstName: "Nombre",
|
|
@@ -14782,7 +14782,7 @@ class SelectModal extends Component {
|
|
|
14782
14782
|
startingPlan = plan;
|
|
14783
14783
|
}
|
|
14784
14784
|
}
|
|
14785
|
-
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.
|
|
14785
|
+
return `${startingPlan.amount_formatted}/${startingPlan.interval_count > 1 ? `${startingPlan.interval_count} ${startingPlan.interval_translated}` : `${startingPlan.interval_translated}`}`;
|
|
14786
14786
|
});
|
|
14787
14787
|
_defineProperty$3(this, "renderOneProduct", (product, index, options) => {
|
|
14788
14788
|
const isPlanMode = Boolean(this.state.mode === "plan");
|
|
@@ -20694,11 +20694,11 @@ const SubscriptionRenewView = _ref => {
|
|
|
20694
20694
|
const getPricingText = plan => {
|
|
20695
20695
|
const autoRenewed = plan.auto_renew;
|
|
20696
20696
|
const {
|
|
20697
|
-
|
|
20697
|
+
interval_translated,
|
|
20698
20698
|
interval_count
|
|
20699
20699
|
} = plan;
|
|
20700
20700
|
const intervalText = t("labels.interval", {
|
|
20701
|
-
interval,
|
|
20701
|
+
interval: interval_translated,
|
|
20702
20702
|
count: interval_count
|
|
20703
20703
|
});
|
|
20704
20704
|
return /*#__PURE__*/React__default.createElement("p", {
|
|
@@ -21028,6 +21028,7 @@ const SubscriptionCancelButton = _ref => {
|
|
|
21028
21028
|
}, t("labels.cancel"));
|
|
21029
21029
|
};
|
|
21030
21030
|
|
|
21031
|
+
// New cancellation option modal
|
|
21031
21032
|
const SubscriptionCancelOptions = _ref => {
|
|
21032
21033
|
var _subscription$schedul;
|
|
21033
21034
|
let {
|
|
@@ -21057,7 +21058,7 @@ const SubscriptionCancelOptions = _ref => {
|
|
|
21057
21058
|
className: "plc-text-left plc-mr-auto plc-mb-6"
|
|
21058
21059
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
21059
21060
|
className: "plc-mb-3"
|
|
21060
|
-
}, t("messages.cancelWhen")), hasPhases && /*#__PURE__*/React__default.createElement(Radio, {
|
|
21061
|
+
}, t("messages.cancelWhen")), subscription.cancel_at_period_end === 0 && hasPhases && /*#__PURE__*/React__default.createElement(Radio, {
|
|
21061
21062
|
onChange: handleOptionSelect,
|
|
21062
21063
|
checked: cancelationOption === "period_end",
|
|
21063
21064
|
value: "period_end"
|
|
@@ -21065,7 +21066,7 @@ const SubscriptionCancelOptions = _ref => {
|
|
|
21065
21066
|
year: "numeric",
|
|
21066
21067
|
month: "short",
|
|
21067
21068
|
day: "numeric"
|
|
21068
|
-
})), /*#__PURE__*/React__default.createElement(Radio, {
|
|
21069
|
+
})), subscription.cancel_at_period_end === 0 && /*#__PURE__*/React__default.createElement(Radio, {
|
|
21069
21070
|
onChange: handleOptionSelect,
|
|
21070
21071
|
checked: cancelationOption === "current_period_end",
|
|
21071
21072
|
value: "current_period_end"
|
|
@@ -22064,11 +22065,11 @@ const SubscriptionCreateView = _ref => {
|
|
|
22064
22065
|
var _plan$quantity;
|
|
22065
22066
|
const autoRenewed = plan.auto_renew;
|
|
22066
22067
|
const {
|
|
22067
|
-
|
|
22068
|
+
interval_translated,
|
|
22068
22069
|
interval_count
|
|
22069
22070
|
} = plan;
|
|
22070
22071
|
const intervalText = t("labels.interval", {
|
|
22071
|
-
interval,
|
|
22072
|
+
interval: interval_translated,
|
|
22072
22073
|
count: interval_count
|
|
22073
22074
|
});
|
|
22074
22075
|
const priceFormatted = getFormattedPriceByLocal((plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|