@tripian/react 6.0.39 → 6.0.41
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
|
@@ -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.
|
|
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.
|
|
5734
|
+
hooks.version = '2.29.4';
|
|
5735
5735
|
|
|
5736
5736
|
setHookCallback(createLocal);
|
|
5737
5737
|
|
|
@@ -6234,6 +6234,7 @@ var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
|
6234
6234
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
6235
6235
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
6236
6236
|
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
6237
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
6237
6238
|
|
|
6238
6239
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
6239
6240
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -6289,6 +6290,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
6289
6290
|
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
6290
6291
|
}
|
|
6291
6292
|
|
|
6293
|
+
if ($exec(/^%?[^%]*%?$/g, name) === null) {
|
|
6294
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
6295
|
+
}
|
|
6292
6296
|
var parts = stringToPath(name);
|
|
6293
6297
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
6294
6298
|
|
|
@@ -71518,29 +71522,31 @@ var FormTemplateTripNext = function (_a) {
|
|
|
71518
71522
|
callbackTripProfile(newTripProfile);
|
|
71519
71523
|
}, callbackUserCompanionAdd: callbackUserCompanionAdd, companionLoadingList: companionLoadingList, userCompanionQuestions: userCompanionQuestions, userCompanions: userCompanions, travelerInfoTips: travelerInfoTips })),
|
|
71520
71524
|
stepId > 0 && react_1.default.createElement(StepComponent_1.default, { defaultTip: questionDefaultTip, header: stepHeader.header, stepQuestions: stepQuestions, stepId: stepId, tripProfile: tripProfile, callbackTripAnswers: callbackTripAnswers }),
|
|
71521
|
-
react_1.default.createElement("div", { className: "row
|
|
71522
|
-
react_1.default.createElement("div", { className: "col
|
|
71523
|
-
|
|
71524
|
-
|
|
71525
|
-
|
|
71526
|
-
|
|
71527
|
-
|
|
71528
|
-
|
|
71529
|
-
|
|
71530
|
-
|
|
71531
|
-
|
|
71532
|
-
|
|
71533
|
-
|
|
71534
|
-
|
|
71535
|
-
|
|
71536
|
-
|
|
71537
|
-
|
|
71538
|
-
|
|
71539
|
-
|
|
71540
|
-
|
|
71541
|
-
|
|
71542
|
-
|
|
71543
|
-
|
|
71525
|
+
react_1.default.createElement("div", { className: "row ".concat(FormTemplateTripNext_scss_1.default.formTempButtons) },
|
|
71526
|
+
react_1.default.createElement("div", { className: "col col12 col8-m mb0" },
|
|
71527
|
+
react_1.default.createElement("div", { className: "row center m0" },
|
|
71528
|
+
react_1.default.createElement("div", { className: "col col6 p0" }, stepId === -1 ? (react_1.default.createElement(Button_1.default, { text: "Cancel", color: "primary", onClick: function () {
|
|
71529
|
+
onCancel();
|
|
71530
|
+
} })) : (react_1.default.createElement(Button_1.default, { text: "Previous", color: "primary", onClick: function () {
|
|
71531
|
+
setStepId(function (prevStepId) { return prevStepId - 1; });
|
|
71532
|
+
} }))),
|
|
71533
|
+
react_1.default.createElement("div", { className: "col col6 p0" }, stepId === -1 ? (react_1.default.createElement(Button_1.default, { text: "Continue", color: "primary",
|
|
71534
|
+
// color={isNextButtonDisabled ? 'disabled' : 'primary'}
|
|
71535
|
+
disabled: isNextButtonDisabledStep1, onClick: function () {
|
|
71536
|
+
setStepId(function (prevStepId) { return prevStepId + 1; });
|
|
71537
|
+
} })) : stepId === 0 ? (react_1.default.createElement(Button_1.default, { text: "Continue", color: "primary",
|
|
71538
|
+
// color={isNextButtonDisabled ? 'disabled' : 'primary'}
|
|
71539
|
+
disabled: isNextButtonDisabledStep2, onClick: function () {
|
|
71540
|
+
setStepId(function (prevStepId) { return prevStepId + 1; });
|
|
71541
|
+
} })) : stepId === 2 ? (react_1.default.createElement(Button_1.default, { text: onSubmitText, color: "primary",
|
|
71542
|
+
// color={isNextButtonDisabled ? 'disabled' : 'primary'}
|
|
71543
|
+
disabled: isNextButtonDisabledStep1 || isNextButtonDisabledStep2, onClick: function () {
|
|
71544
|
+
onSubmit();
|
|
71545
|
+
} })) : (react_1.default.createElement(Button_1.default, { text: "Continue", color: "primary",
|
|
71546
|
+
// color={isNextButtonDisabled ? 'disabled' : 'primary'}
|
|
71547
|
+
disabled: isNextButtonDisabledStep1 || isNextButtonDisabledStep2, onClick: function () {
|
|
71548
|
+
setStepId(function (prevStepId) { return prevStepId + 1; });
|
|
71549
|
+
} })))))))));
|
|
71544
71550
|
};
|
|
71545
71551
|
exports.default = FormTemplateTripNext;
|
|
71546
71552
|
|
|
@@ -72454,11 +72460,16 @@ var StepTravelerInfo = function (_a) {
|
|
|
72454
72460
|
var tripProfile = _a.tripProfile, setTripProfile = _a.setTripProfile, bound = _a.bound, cities = _a.cities, setBound = _a.setBound, userCompanionQuestions = _a.userCompanionQuestions, userCompanions = _a.userCompanions, companionLoadingList = _a.companionLoadingList, callbackUserCompanionAdd = _a.callbackUserCompanionAdd, travelerInfoTips = _a.travelerInfoTips;
|
|
72455
72461
|
var _b = (0, react_1.useState)(travelerInfoTips[0]), tip = _b[0], setTip = _b[1];
|
|
72456
72462
|
(0, react_1.useEffect)(function () {
|
|
72457
|
-
var _a;
|
|
72458
72463
|
var currentCity = cities.find(function (city) { return city.id === tripProfile.cityId; });
|
|
72459
72464
|
if (currentCity) {
|
|
72460
|
-
var
|
|
72461
|
-
|
|
72465
|
+
var getTopParentCity_1 = function (c) {
|
|
72466
|
+
var parentCity = cities.find(function (city) { return city.id === c.parentLocationId; });
|
|
72467
|
+
if (parentCity === undefined)
|
|
72468
|
+
return c;
|
|
72469
|
+
return getTopParentCity_1(parentCity);
|
|
72470
|
+
};
|
|
72471
|
+
var topParentCity = getTopParentCity_1(currentCity);
|
|
72472
|
+
var boundary = topParentCity.boundary;
|
|
72462
72473
|
var newBoundary = new google.maps.LatLngBounds(new google.maps.LatLng(boundary[0], boundary[2]), new google.maps.LatLng(boundary[1], boundary[3]));
|
|
72463
72474
|
setBound(newBoundary);
|
|
72464
72475
|
}
|
|
@@ -76747,7 +76758,7 @@ var StepTimeframe = function (_a) {
|
|
|
76747
76758
|
react_1.default.createElement("div", { className: "col col4 mb0 pb0" },
|
|
76748
76759
|
react_1.default.createElement(Dropdown_1.default, { options: timeOptions, defaultValue: timeframe.endTime, selectChange: function (end) { return changeTimeframe('endTime', end); } })),
|
|
76749
76760
|
showUpdateButton ? (react_1.default.createElement("div", { className: "col col2 mb0 pb0 center ".concat(StepTimeframe_scss_1.default.stepTimeFrameCenter) },
|
|
76750
|
-
react_1.default.createElement(Button_1.default, { type: ButtonTypes_1.default.OUTLINED, color: updateButtonDisabled ? 'disabled' : 'primary', iconPath: "m159.988281 318.582031c-3.988281 4.011719-9.429687 6.25-15.082031 6.25s-11.09375-2.238281-15.082031-6.25l-120.449219-120.46875c-12.5-12.5-12.5-32.769531 0-45.246093l15.082031-15.085938c12.503907-12.5 32.75-12.5 45.25 0l75.199219 75.203125 203.199219-203.203125c12.503906-12.5 32.769531-12.5 45.25 0l15.082031 15.085938c12.5 12.5 12.5 32.765624 0 45.246093zm0 0", iconViewBox: "0 -46 417.81333 417",
|
|
76761
|
+
react_1.default.createElement(Button_1.default, { className: StepTimeframe_scss_1.default.stepTimeFrameButton, type: ButtonTypes_1.default.OUTLINED, color: updateButtonDisabled ? 'disabled' : 'primary', iconPath: "m159.988281 318.582031c-3.988281 4.011719-9.429687 6.25-15.082031 6.25s-11.09375-2.238281-15.082031-6.25l-120.449219-120.46875c-12.5-12.5-12.5-32.769531 0-45.246093l15.082031-15.085938c12.503907-12.5 32.75-12.5 45.25 0l75.199219 75.203125 203.199219-203.203125c12.503906-12.5 32.769531-12.5 45.25 0l15.082031 15.085938c12.5 12.5 12.5 32.765624 0 45.246093zm0 0", iconViewBox: "0 -46 417.81333 417",
|
|
76751
76762
|
/* text="Update" */
|
|
76752
76763
|
disabled: updateButtonDisabled, onClick: function () {
|
|
76753
76764
|
callbackStepTimeframe(timeframe);
|
|
@@ -76755,7 +76766,7 @@ var StepTimeframe = function (_a) {
|
|
|
76755
76766
|
setShowTimeframeSelections(false);
|
|
76756
76767
|
}, size: "small" }))) : null,
|
|
76757
76768
|
react_1.default.createElement("div", { className: "".concat(StepTimeframe_scss_1.default.stepTimeFrameCenter, " ").concat(showUpdateButton ? 'col col2 mb0 pb0 center' : 'col col4 mb0 pb0') },
|
|
76758
|
-
react_1.default.createElement(Button_1.default, { type: ButtonTypes_1.default.OUTLINED, color: "primary", iconPath: "M64.1039 50.6494L97.7399 17.0039C98.6487 16.1262 99.3736 15.0762 99.8723 13.9153C100.371 12.7545 100.633 11.5059 100.644 10.2425C100.655 8.97905 100.415 7.72611 99.9362 6.55673C99.4578 5.38736 98.7513 4.32497 97.8579 3.43157C96.9645 2.53817 95.9021 1.83164 94.7327 1.35321C93.5633 0.874783 92.3104 0.634034 91.047 0.645013C89.7836 0.655991 88.535 0.918478 87.3741 1.41716C86.2132 1.91584 85.1633 2.64072 84.2855 3.54951L50.64 37.1855L17.004 3.54951C16.1263 2.64072 15.0763 1.91584 13.9155 1.41716C12.7546 0.918478 11.506 0.655991 10.2426 0.645013C8.97918 0.634034 7.72623 0.874783 6.55685 1.35321C5.38748 1.83164 4.32509 2.53817 3.43169 3.43157C2.53829 4.32497 1.83176 5.38736 1.35333 6.55673C0.874905 7.72611 0.634156 8.97905 0.645135 10.2425C0.656113 11.5059 0.918601 12.7545 1.41728 13.9153C1.91596 15.0762 2.64084 16.1262 3.54963 17.0039L37.1856 50.6399L3.54963 84.2854C2.64084 85.1632 1.91596 86.2131 1.41728 87.374C0.918601 88.5349 0.656113 89.7834 0.645135 91.0468C0.634156 92.3103 0.874905 93.5632 1.35333 94.7326C1.83176 95.902 2.53829 96.9643 3.43169 97.8577C4.32509 98.7511 5.38748 99.4577 6.55685 99.9361C7.72623 100.415 8.97918 100.655 10.2426 100.644C11.506 100.633 12.7546 100.371 13.9155 99.8722C15.0763 99.3735 16.1263 98.6486 17.004 97.7398L50.64 64.1038L84.2855 97.7398C85.1633 98.6486 86.2132 99.3735 87.3741 99.8722C88.535 100.371 89.7836 100.633 91.047 100.644C92.3104 100.655 93.5633 100.415 94.7327 99.9361C95.9021 99.4577 96.9645 98.7511 97.8579 97.8577C98.7513 96.9643 99.4578 95.902 99.9362 94.7326C100.415 93.5632 100.655 92.3103 100.644 91.0468C100.633 89.7834 100.371 88.5349 99.8723 87.374C99.3736 86.2131 98.6487 85.1632 97.7399 84.2854L64.1039 50.6399V50.6494Z", iconViewBox: "0 0 101 101",
|
|
76769
|
+
react_1.default.createElement(Button_1.default, { className: StepTimeframe_scss_1.default.stepTimeFrameButton, type: ButtonTypes_1.default.OUTLINED, color: "primary", iconPath: "M64.1039 50.6494L97.7399 17.0039C98.6487 16.1262 99.3736 15.0762 99.8723 13.9153C100.371 12.7545 100.633 11.5059 100.644 10.2425C100.655 8.97905 100.415 7.72611 99.9362 6.55673C99.4578 5.38736 98.7513 4.32497 97.8579 3.43157C96.9645 2.53817 95.9021 1.83164 94.7327 1.35321C93.5633 0.874783 92.3104 0.634034 91.047 0.645013C89.7836 0.655991 88.535 0.918478 87.3741 1.41716C86.2132 1.91584 85.1633 2.64072 84.2855 3.54951L50.64 37.1855L17.004 3.54951C16.1263 2.64072 15.0763 1.91584 13.9155 1.41716C12.7546 0.918478 11.506 0.655991 10.2426 0.645013C8.97918 0.634034 7.72623 0.874783 6.55685 1.35321C5.38748 1.83164 4.32509 2.53817 3.43169 3.43157C2.53829 4.32497 1.83176 5.38736 1.35333 6.55673C0.874905 7.72611 0.634156 8.97905 0.645135 10.2425C0.656113 11.5059 0.918601 12.7545 1.41728 13.9153C1.91596 15.0762 2.64084 16.1262 3.54963 17.0039L37.1856 50.6399L3.54963 84.2854C2.64084 85.1632 1.91596 86.2131 1.41728 87.374C0.918601 88.5349 0.656113 89.7834 0.645135 91.0468C0.634156 92.3103 0.874905 93.5632 1.35333 94.7326C1.83176 95.902 2.53829 96.9643 3.43169 97.8577C4.32509 98.7511 5.38748 99.4577 6.55685 99.9361C7.72623 100.415 8.97918 100.655 10.2426 100.644C11.506 100.633 12.7546 100.371 13.9155 99.8722C15.0763 99.3735 16.1263 98.6486 17.004 97.7398L50.64 64.1038L84.2855 97.7398C85.1633 98.6486 86.2132 99.3735 87.3741 99.8722C88.535 100.371 89.7836 100.633 91.047 100.644C92.3104 100.655 93.5633 100.415 94.7327 99.9361C95.9021 99.4577 96.9645 98.7511 97.8579 97.8577C98.7513 96.9643 99.4578 95.902 99.9362 94.7326C100.415 93.5632 100.655 92.3103 100.644 91.0468C100.633 89.7834 100.371 88.5349 99.8723 87.374C99.3736 86.2131 98.6487 85.1632 97.7399 84.2854L64.1039 50.6399V50.6494Z", iconViewBox: "0 0 101 101",
|
|
76759
76770
|
/* text="Cancel" */
|
|
76760
76771
|
onClick: function () {
|
|
76761
76772
|
setShowTimeframeSelections(false);
|
|
@@ -76777,7 +76788,7 @@ exports.default = StepTimeframe;
|
|
|
76777
76788
|
/***/ (function(module, exports, __webpack_require__) {
|
|
76778
76789
|
|
|
76779
76790
|
// extracted by mini-css-extract-plugin
|
|
76780
|
-
module.exports = {"timeframe":"components-StepTimeframe-StepTimeframe__timeframe--36M-x","stepTimeFrameCenter":"components-StepTimeframe-StepTimeframe__stepTimeFrameCenter--2ztrw","timeFrameSelections":"components-StepTimeframe-StepTimeframe__timeFrameSelections--cQjWE","hourText":"components-StepTimeframe-StepTimeframe__hourText---oVCI"};
|
|
76791
|
+
module.exports = {"timeframe":"components-StepTimeframe-StepTimeframe__timeframe--36M-x","stepTimeFrameCenter":"components-StepTimeframe-StepTimeframe__stepTimeFrameCenter--2ztrw","stepTimeFrameButton":"components-StepTimeframe-StepTimeframe__stepTimeFrameButton--wdGVM","timeFrameSelections":"components-StepTimeframe-StepTimeframe__timeFrameSelections--cQjWE","hourText":"components-StepTimeframe-StepTimeframe__hourText---oVCI"};
|
|
76781
76792
|
|
|
76782
76793
|
/***/ }),
|
|
76783
76794
|
/* 807 */
|
|
@@ -76799,7 +76810,7 @@ var Switch = function (_a) {
|
|
|
76799
76810
|
// const [action, setAction] = useState<boolean>(value);
|
|
76800
76811
|
var onchange = _a.onchange, _b = _a.value, value = _b === void 0 ? false : _b;
|
|
76801
76812
|
if (value) {
|
|
76802
|
-
return (react_1.default.createElement(Button_1.default, { text: "DONE", color: "
|
|
76813
|
+
return (react_1.default.createElement(Button_1.default, { text: "DONE", color: "default", style: { fontWeight: 'bold' }, type: ButtonTypes_1.default.OUTLINED, onClick: function () {
|
|
76803
76814
|
onchange(false);
|
|
76804
76815
|
} }));
|
|
76805
76816
|
}
|