pcm-shared-components 0.0.224 → 0.0.226
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.
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useState, useEffect } from 'react';
|
|
4
2
|
import PropTypes from 'prop-types';
|
|
5
3
|
import { ThemeProvider } from '@mui/system';
|
|
@@ -29,7 +27,7 @@ export const PlatformPaymentPlans = props => {
|
|
|
29
27
|
platformPlanFeatures,
|
|
30
28
|
platformPricingModels,
|
|
31
29
|
onClickPlanSelection,
|
|
32
|
-
|
|
30
|
+
saveYearlyImgPath,
|
|
33
31
|
theme
|
|
34
32
|
} = props;
|
|
35
33
|
console.log('debug Platform payment plans:', props);
|
|
@@ -197,7 +195,7 @@ export const PlatformPaymentPlans = props => {
|
|
|
197
195
|
}), /*#__PURE__*/React.createElement(PriceDescription, {
|
|
198
196
|
color: color,
|
|
199
197
|
price: per_reservation_fee,
|
|
200
|
-
description: '
|
|
198
|
+
description: i18next.t('common.app.per_reservation'),
|
|
201
199
|
expected_price: expected_per_reservation_fee
|
|
202
200
|
})), /*#__PURE__*/React.createElement("div", {
|
|
203
201
|
className: "w-full text-center my-12"
|
|
@@ -232,48 +230,41 @@ export const PlatformPaymentPlans = props => {
|
|
|
232
230
|
})))));
|
|
233
231
|
};
|
|
234
232
|
|
|
235
|
-
return /*#__PURE__*/React.createElement(
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
setSelectedBillingPeriod(checked ? 2 : 1);
|
|
259
|
-
}
|
|
260
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
261
|
-
className: "flex flex-wrap justify-center max-w-max mx-auto pt-12"
|
|
262
|
-
}, platformPricingModels.filter(price => Number(price.billing_period_id) === selectedBillingPeriod).map((model, idx) => /*#__PURE__*/React.createElement(PriceCard, _extends({
|
|
263
|
-
key: `price_card_${idx}`
|
|
264
|
-
}, model)))), "something here"));
|
|
233
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, "This is a test:", i18next.t('common.app.user')) // <ThemeProvider theme={defaultTheme} >
|
|
234
|
+
// <div className='flex flex-col w-full h-full'>
|
|
235
|
+
// {hasMonthlyAndYearlyBillingPeriod && (
|
|
236
|
+
// <div className='flex flex-col m-auto' >
|
|
237
|
+
// {saveYearlyImgPath && (
|
|
238
|
+
// <div className='flex justify-end w-full '>
|
|
239
|
+
// <img className='mr-24 cursor-pointer hover:rotate-3 hover:scale-105 hover:translate-y-1 hover:skew-y-3 transition-all' src={saveYearlyImgPath} alt='save on yr plans' style={{ height: 80 }} onClick={() => { setSelectedBillingPeriod(2) }} />
|
|
240
|
+
// </div>
|
|
241
|
+
// )}
|
|
242
|
+
// <div className='mb-12' >
|
|
243
|
+
// <PriceToggleButton isChecked={selectedBillingPeriod === 2} onCheck={(checked) => { setSelectedBillingPeriod(checked ? 2 : 1) }} />
|
|
244
|
+
// </div>
|
|
245
|
+
// </div>
|
|
246
|
+
// )}
|
|
247
|
+
// <div className='flex flex-wrap justify-center max-w-max mx-auto pt-12'>
|
|
248
|
+
// {platformPricingModels.filter((price) => Number(price.billing_period_id) === selectedBillingPeriod).map((model, idx) => (
|
|
249
|
+
// <PriceCard key={`price_card_${idx}`} {...model} />
|
|
250
|
+
// ))}
|
|
251
|
+
// </div>
|
|
252
|
+
// something here
|
|
253
|
+
// </div>
|
|
254
|
+
// </ThemeProvider>
|
|
255
|
+
;
|
|
265
256
|
};
|
|
266
257
|
export default PlatformPaymentPlans;
|
|
267
258
|
PlatformPaymentPlans.defaultProps = {
|
|
268
259
|
platformPlanFeatures: [],
|
|
269
260
|
platformPricingModels: [],
|
|
270
261
|
onClickPlanSelection: () => {},
|
|
271
|
-
|
|
262
|
+
saveYearlyImgPath: undefined,
|
|
272
263
|
theme: undefined
|
|
273
264
|
};
|
|
274
265
|
PlatformPaymentPlans.propTypes = {
|
|
275
266
|
/** Displays the save up to image above the yearly toggle */
|
|
276
|
-
|
|
267
|
+
saveYearlyImgPath: PropTypes.string,
|
|
277
268
|
|
|
278
269
|
/** This is the platform features that are activated for each pricing model tier */
|
|
279
270
|
platformPlanFeatures: PropTypes.array,
|
|
@@ -454,6 +454,7 @@
|
|
|
454
454
|
"payment_method_not_complete": "The payment information is not complete.",
|
|
455
455
|
"payment_policies_not_checked": "Please accept and read the terms and policies before preceding.",
|
|
456
456
|
"per_night": "Per Night",
|
|
457
|
+
"per_reservation": "per reservation",
|
|
457
458
|
"personal_information": "Personal Information",
|
|
458
459
|
"pictures": "Pictures",
|
|
459
460
|
"port_number": "Port Number",
|
|
@@ -454,6 +454,7 @@
|
|
|
454
454
|
"payment_method_not_complete": "La información de pago no está completa.",
|
|
455
455
|
"payment_policies_not_checked": "Acepte y lea los términos y políticas antes de proceder.",
|
|
456
456
|
"per_night": "por noche",
|
|
457
|
+
"per_reservation": "Por reserva",
|
|
457
458
|
"personal_information": "Informacion personal",
|
|
458
459
|
"pictures": "Fotos",
|
|
459
460
|
"port_number": "Número de puerto",
|
|
@@ -454,6 +454,7 @@
|
|
|
454
454
|
"payment_method_not_complete": "Le mode de paiement n'est pas complet.",
|
|
455
455
|
"payment_policies_not_checked": "Veuillez accepter et lire les termes et politiques avant d'avancer.",
|
|
456
456
|
"per_night": "Par nuit",
|
|
457
|
+
"per_reservation": "Par réservation",
|
|
457
458
|
"personal_information": "Informations personnelles",
|
|
458
459
|
"pictures": "Photos",
|
|
459
460
|
"port_number": "Numéro de port",
|