@tripian/react 6.0.20 → 6.0.21

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.
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" viewBox="0 0 122.88 122.88">
2
+ <path d="M13.7,49.54,8,33.63a3.47,3.47,0,0,1,2.1-4.44,3.93,3.93,0,0,1,.81-.18L27.3,27.3,29,10.79a3.47,3.47,0,0,1,3.81-3.1,2.9,2.9,0,0,1,.71.15l16,4.11L58.8,1.21A3.49,3.49,0,0,1,63.7.83a3.91,3.91,0,0,1,.61.68l9,12.17,15.91-5.8A3.48,3.48,0,0,1,93.69,10a3.44,3.44,0,0,1,.19.83l1.7,16.51L112.09,29a3.47,3.47,0,0,1,2.71,5.09l-7.3,13.77,14,10.83a3.46,3.46,0,0,1,.62,4.87,3.18,3.18,0,0,1-.72.7L109.2,73.33,115,89.24a3.48,3.48,0,0,1-2.08,4.45,3.44,3.44,0,0,1-.83.19l-16.51,1.7L93.88,112a3.48,3.48,0,0,1-3.81,3.1,3.61,3.61,0,0,1-1.27-.38L75,107.49l-10.85,14a3.46,3.46,0,0,1-5.57-.1l-9.08-12.25-15.91,5.74A3.47,3.47,0,0,1,29,112.05L27.3,97.29,10.53,93.82a3.46,3.46,0,0,1-2.7-4.09A2.62,2.62,0,0,1,8,89.11L13.7,73.34,1.4,64.23a3.48,3.48,0,0,1-.72-4.86,3.42,3.42,0,0,1,.77-.75L13.7,49.54Zm62.39-6.2L55.66,78.86a6.86,6.86,0,0,1-.67,1,2.76,2.76,0,0,1-.82.71,3.14,3.14,0,0,1-1.1.31,10.25,10.25,0,0,1-1.31.07H47.9a1.16,1.16,0,0,1-1.16-1.15,1.18,1.18,0,0,1,.21-.67L67.39,43.57a7.2,7.2,0,0,1,.65-1l0-.06a2.84,2.84,0,0,1,.78-.65A3.15,3.15,0,0,1,70,41.59h0a10,10,0,0,1,1.29-.07h3.85a1.16,1.16,0,0,1,1.16,1.15,1.18,1.18,0,0,1-.21.67Zm-7.4,36.07c-1.72-1.8-2.59-4.56-2.59-8.28s.87-6.48,2.59-8.28,4.52-2.7,8.4-2.7,6.68.9,8.4,2.7,2.58,4.56,2.58,8.28-.86,6.48-2.58,8.28-4.52,2.7-8.4,2.7-6.68-.9-8.4-2.7Zm6-11.44v8h1.3a16.21,16.21,0,0,0,3.27-.26c.22-.18.33-.67.33-1.46v-8h-3a3,3,0,0,0-1.58.26c-.21.18-.32.67-.32,1.46ZM37.39,60q-2.58-2.7-2.58-8.28t2.58-8.28q2.58-2.7,8.4-2.7t8.4,2.7q2.58,2.7,2.58,8.28T54.19,60q-2.58,2.7-8.4,2.7T37.39,60Zm6-11.44v8h3a2.93,2.93,0,0,0,1.57-.27c.22-.18.33-.67.33-1.46v-8H46.93a15.28,15.28,0,0,0-3.26.27c-.22.17-.33.66-.33,1.45ZM16,35.46l5,14a3.48,3.48,0,0,1-1.14,4.13L9.3,61.44,19.9,69.3a3.48,3.48,0,0,1,1.2,4L15.84,87.84,31,91a3.48,3.48,0,0,1,3,3.05l1.49,12.9,14.05-5.06A3.47,3.47,0,0,1,53.59,103l7.91,10.68,9.74-12.61A3.48,3.48,0,0,1,75.69,100l11.81,6.21L89,92.1A3.47,3.47,0,0,1,92.06,89L107,87.43,101.8,73.32a3.46,3.46,0,0,1,1.18-4l10.67-7.92-12.52-9.67A3.5,3.5,0,0,1,100,47.18l6.26-11.8L92.1,33.93A3.48,3.48,0,0,1,89,30.82L87.43,15.93,73.32,21.08a3.48,3.48,0,0,1-4-1.18L61.24,9l-7.8,9.07a3.48,3.48,0,0,1-3.5,1.1L35.5,15.5,33.92,30.78a3.47,3.47,0,0,1-3.1,3.14L16,35.46Z" />
3
+ </svg>
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 511.997 511.997" style="enable-background:new 0 0 511.997 511.997;" xml:space="preserve">
5
+ <g>
6
+ <g>
7
+ <path d="M511.228,134.699c-1.615-4.052-5.542-6.698-9.896-6.698h-42.667c-2.729,0-5.354,1.042-7.333,2.927L255.999,315.97
8
+ L60.665,130.928c-1.979-1.885-4.604-2.927-7.333-2.927H10.665c-4.354,0-8.281,2.646-9.896,6.698
9
+ c-1.625,4.042-0.625,8.667,2.521,11.677l245.333,234.667c4.125,3.938,10.625,3.938,14.75,0l245.333-234.667
10
+ C511.853,143.366,512.853,138.741,511.228,134.699z"/>
11
+ </g>
12
+ </g>
13
+ <g>
14
+ </g>
15
+ <g>
16
+ </g>
17
+ <g>
18
+ </g>
19
+ <g>
20
+ </g>
21
+ <g>
22
+ </g>
23
+ <g>
24
+ </g>
25
+ <g>
26
+ </g>
27
+ <g>
28
+ </g>
29
+ <g>
30
+ </g>
31
+ <g>
32
+ </g>
33
+ <g>
34
+ </g>
35
+ <g>
36
+ </g>
37
+ <g>
38
+ </g>
39
+ <g>
40
+ </g>
41
+ <g>
42
+ </g>
43
+ </svg>
package/index.js CHANGED
@@ -96,7 +96,7 @@ module.exports = require("react");
96
96
  /***/ (function(module, exports, __webpack_require__) {
97
97
 
98
98
  /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
99
- //! version : 2.29.3
99
+ //! version : 2.29.4
100
100
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
101
101
  //! license : MIT
102
102
  //! momentjs.com
@@ -2550,7 +2550,7 @@ module.exports = require("react");
2550
2550
  function preprocessRFC2822(s) {
2551
2551
  // Remove comments and folding whitespace and replace multiple-spaces with a single space
2552
2552
  return s
2553
- .replace(/\([^)]*\)|[\n\t]/g, ' ')
2553
+ .replace(/\([^()]*\)|[\n\t]/g, ' ')
2554
2554
  .replace(/(\s\s+)/g, ' ')
2555
2555
  .replace(/^\s\s*/, '')
2556
2556
  .replace(/\s\s*$/, '');
@@ -5731,7 +5731,7 @@ module.exports = require("react");
5731
5731
 
5732
5732
  //! moment.js
5733
5733
 
5734
- hooks.version = '2.29.3';
5734
+ hooks.version = '2.29.4';
5735
5735
 
5736
5736
  setHookCallback(createLocal);
5737
5737
 
@@ -6233,6 +6233,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
6233
6233
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
6234
6234
  var $replace = bind.call(Function.call, String.prototype.replace);
6235
6235
  var $strSlice = bind.call(Function.call, String.prototype.slice);
6236
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
6236
6237
 
6237
6238
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
6238
6239
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -6288,6 +6289,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
6288
6289
  throw new $TypeError('"allowMissing" argument must be a boolean');
6289
6290
  }
6290
6291
 
6292
+ if ($exec(/^%?[^%]*%?$/g, name) === null) {
6293
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
6294
+ }
6291
6295
  var parts = stringToPath(name);
6292
6296
  var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
6293
6297
 
@@ -44833,10 +44837,10 @@ var PoiInfo = function (_a) {
44833
44837
  }, stepOrder: stepOrder, replace: replace, addRemoveReplacePoi: addRemoveReplacePoi, hideActionButtons: hideActionButtons, dayNumbers: dayNumbers, planDate: planDate, reservationUrl: reservationUrl, hideBookingButton: hideBookingButton, bookingButtonClick: bookingButtonClick, RESTAURANT_RESERVATION_PROVIDER_IDS: RESTAURANT_RESERVATION_PROVIDER_IDS }),
44834
44838
  !hideOffers && poi.offers && poi.offers.length > 0 && (react_1.default.createElement("div", { className: "col col12 px5 pb5" }, poi.offers.map(function (offer, i) {
44835
44839
  var _a, _b;
44836
- var offerStartDate = (0, moment_1.default)((_a = offer.timeframe) === null || _a === void 0 ? void 0 : _a.start);
44837
- var offerEndDate = (0, moment_1.default)((_b = offer.timeframe) === null || _b === void 0 ? void 0 : _b.end);
44840
+ var offerStartDate = (0, moment_1.default)((0, moment_1.default)((_a = offer.timeframe) === null || _a === void 0 ? void 0 : _a.start).format('YYYY-MM-DD'));
44841
+ var offerEndDate = (0, moment_1.default)((0, moment_1.default)((_b = offer.timeframe) === null || _b === void 0 ? void 0 : _b.end).format('YYYY-MM-DD'));
44838
44842
  var planDateTimeNow = (0, moment_1.default)(planDate);
44839
- if (planDateTimeNow.isBetween(offerStartDate, offerEndDate, null, '[]')) {
44843
+ if (planDateTimeNow.isBetween(offerStartDate, offerEndDate, undefined, '[]')) {
44840
44844
  var offerClaimDate_1 = (0, moment_1.default)(planDate).format('YYYY-MM-DD');
44841
44845
  return (react_1.default.createElement("div", { key: "offer-".concat(i), className: "py2" },
44842
44846
  react_1.default.createElement(OfferCard_1.default, { offer: offer, optedIn: myOffers.some(function (p) { return p.offers.some(function (x) { return x.id === offer.id; }); }), isLoadingOffer: isLoadingOffer, clicked: function (optIn, id) {