@tripian/react 9.1.13 → 9.1.14

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/index.js CHANGED
@@ -57532,9 +57532,7 @@ var PoiInfoText = function (_a) {
57532
57532
  poiMustTries));
57533
57533
  var bookaTable;
57534
57534
  if (!hideBookingButton) {
57535
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
57536
- var isBookingYelp = poi.bookings.find(function (provider) { return provider.providerId === model_1.default.PROVIDER_ID.YELP; });
57537
- var isBookingOpenTable = poi.bookings.find(function (provider) { return provider.providerId === model_1.default.PROVIDER_ID.OPEN_TABLE; });
57535
+ // const isBooking = poi.booking.find((provider) => provider.provider_id === Model.PROVIDER_ID.YELP);
57538
57536
  if (isRestaurant) {
57539
57537
  bookaTable = (react_1.default.createElement("div", { className: PoiInfoText_scss_1.default.bookaTable },
57540
57538
  react_1.default.createElement(Button_1.default, { text: reservationUrl ? t('trips.myTrips.itinerary.step.poi.bookATable.viewCancel') : t('trips.myTrips.itinerary.step.poi.bookATable.reserve'), color: "danger", onClick: function () {
@@ -82284,12 +82282,13 @@ var RSelect_1 = __importDefault(__webpack_require__(59));
82284
82282
  var Button_1 = __importDefault(__webpack_require__(10));
82285
82283
  var GygTourShoppingForm_scss_1 = __importDefault(__webpack_require__(843));
82286
82284
  var GygTourShoppingForm = function (_a) {
82285
+ var _b;
82287
82286
  var user = _a.user, clicked = _a.clicked, goBack = _a.goBack, t = _a.t;
82288
- var _b = (0, react_1.useState)({
82287
+ var _c = (0, react_1.useState)({
82289
82288
  user: {
82290
82289
  first_name: (user === null || user === void 0 ? void 0 : user.firstName) || '',
82291
82290
  last_name: (user === null || user === void 0 ? void 0 : user.lastName) || '',
82292
- email: (user === null || user === void 0 ? void 0 : user.email) || '',
82291
+ email: ((_b = user === null || user === void 0 ? void 0 : user.email) === null || _b === void 0 ? void 0 : _b.includes('light-tripian.com')) ? '' : (user === null || user === void 0 ? void 0 : user.email) || '',
82293
82292
  country_code: '',
82294
82293
  phone_number: '',
82295
82294
  address_line_1: '',
@@ -82297,7 +82296,7 @@ var GygTourShoppingForm = function (_a) {
82297
82296
  city: '',
82298
82297
  },
82299
82298
  creditCard: { holderName: '', number: '', cvc: '', expiryMonth: '', expiryYear: '', generationtime: (0, moment_1.default)().format('YYYY-MM-DDTHH:mm:ss') },
82300
- }), formData = _b[0], setFormData = _b[1];
82299
+ }), formData = _c[0], setFormData = _c[1];
82301
82300
  moment_1.default.locale(window.twindow.langCode);
82302
82301
  var isButtonDisabled = Object.values(formData.user).some(function (x) { return x === null || x === ''; }) || Object.values(formData.creditCard).some(function (x) { return x === null || x === ''; });
82303
82302
  return (react_1.default.createElement("div", { className: GygTourShoppingForm_scss_1.default.tourShoppingForm },