@tripian/react 9.1.42 → 9.1.44
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/components/base/Input/Input.d.ts +1 -1
- package/index.js +103 -22
- package/index.js.map +1 -1
- package/min.css +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -19660,13 +19660,36 @@ module.exports = function isObject(x) {
|
|
|
19660
19660
|
|
|
19661
19661
|
"use strict";
|
|
19662
19662
|
|
|
19663
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
19664
|
+
if (k2 === undefined) k2 = k;
|
|
19665
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
19666
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19667
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19668
|
+
}
|
|
19669
|
+
Object.defineProperty(o, k2, desc);
|
|
19670
|
+
}) : (function(o, m, k, k2) {
|
|
19671
|
+
if (k2 === undefined) k2 = k;
|
|
19672
|
+
o[k2] = m[k];
|
|
19673
|
+
}));
|
|
19674
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19675
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19676
|
+
}) : function(o, v) {
|
|
19677
|
+
o["default"] = v;
|
|
19678
|
+
});
|
|
19679
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19680
|
+
if (mod && mod.__esModule) return mod;
|
|
19681
|
+
var result = {};
|
|
19682
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
19683
|
+
__setModuleDefault(result, mod);
|
|
19684
|
+
return result;
|
|
19685
|
+
};
|
|
19663
19686
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19664
19687
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19665
19688
|
};
|
|
19666
19689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19667
|
-
const react_1 =
|
|
19690
|
+
const react_1 = __importStar(__webpack_require__(0));
|
|
19668
19691
|
const Input_scss_1 = __importDefault(__webpack_require__(792));
|
|
19669
|
-
const Input = ({ id, className, name, value, size = 'default', style = {}, onChange, onKeyDown, type = 'text', min, max, disabled, placeholder, autocomplete, onFocus, onBlur, children }) => {
|
|
19692
|
+
const Input = (0, react_1.forwardRef)(({ id, className, name, value, size = 'default', style = {}, onChange, onKeyDown, type = 'text', min, max, disabled, placeholder, autocomplete, onFocus, onBlur, children }, ref) => {
|
|
19670
19693
|
const inputClasses = [className, Input_scss_1.default.inputBase];
|
|
19671
19694
|
if (size === 'small') {
|
|
19672
19695
|
inputClasses.push(Input_scss_1.default.small);
|
|
@@ -19678,7 +19701,7 @@ const Input = ({ id, className, name, value, size = 'default', style = {}, onCha
|
|
|
19678
19701
|
inputClasses.push(Input_scss_1.default.default);
|
|
19679
19702
|
}
|
|
19680
19703
|
return (react_1.default.createElement("div", { className: Input_scss_1.default.inputBaseRoot, style: { ...style } },
|
|
19681
|
-
react_1.default.createElement("input", { id: id, autoComplete: autocomplete, type: type, placeholder: placeholder, onFocus: () => {
|
|
19704
|
+
react_1.default.createElement("input", { ref: ref, id: id, autoComplete: autocomplete, type: type, placeholder: placeholder, onFocus: () => {
|
|
19682
19705
|
if (onFocus)
|
|
19683
19706
|
onFocus();
|
|
19684
19707
|
}, onBlur: () => {
|
|
@@ -19686,7 +19709,7 @@ const Input = ({ id, className, name, value, size = 'default', style = {}, onCha
|
|
|
19686
19709
|
onBlur();
|
|
19687
19710
|
}, onKeyDown: onKeyDown, name: name, min: min, max: max, disabled: disabled, className: inputClasses.join(' '), value: value, onChange: onChange }),
|
|
19688
19711
|
children));
|
|
19689
|
-
};
|
|
19712
|
+
});
|
|
19690
19713
|
exports.default = Input;
|
|
19691
19714
|
|
|
19692
19715
|
|
|
@@ -56234,12 +56257,35 @@ exports.default = CompanionModal;
|
|
|
56234
56257
|
|
|
56235
56258
|
"use strict";
|
|
56236
56259
|
|
|
56260
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
56261
|
+
if (k2 === undefined) k2 = k;
|
|
56262
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
56263
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
56264
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
56265
|
+
}
|
|
56266
|
+
Object.defineProperty(o, k2, desc);
|
|
56267
|
+
}) : (function(o, m, k, k2) {
|
|
56268
|
+
if (k2 === undefined) k2 = k;
|
|
56269
|
+
o[k2] = m[k];
|
|
56270
|
+
}));
|
|
56271
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
56272
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
56273
|
+
}) : function(o, v) {
|
|
56274
|
+
o["default"] = v;
|
|
56275
|
+
});
|
|
56276
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
56277
|
+
if (mod && mod.__esModule) return mod;
|
|
56278
|
+
var result = {};
|
|
56279
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
56280
|
+
__setModuleDefault(result, mod);
|
|
56281
|
+
return result;
|
|
56282
|
+
};
|
|
56237
56283
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
56238
56284
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
56239
56285
|
};
|
|
56240
56286
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56241
56287
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
56242
|
-
const react_1 =
|
|
56288
|
+
const react_1 = __importStar(__webpack_require__(0));
|
|
56243
56289
|
const model_1 = __webpack_require__(9);
|
|
56244
56290
|
const NumberInput_1 = __importDefault(__webpack_require__(407));
|
|
56245
56291
|
const Dropdown_1 = __importDefault(__webpack_require__(46));
|
|
@@ -56247,6 +56293,11 @@ const QuestionTemplate_1 = __importDefault(__webpack_require__(154));
|
|
|
56247
56293
|
const FormTemplateCompanion_scss_1 = __importDefault(__webpack_require__(791));
|
|
56248
56294
|
const Input_1 = __importDefault(__webpack_require__(39));
|
|
56249
56295
|
const FormTemplateCompanion = ({ questions, userCompanion, callbackFormTemplateCompanion, t }) => {
|
|
56296
|
+
const nameInputRef = (0, react_1.useRef)(null);
|
|
56297
|
+
(0, react_1.useEffect)(() => {
|
|
56298
|
+
var _a;
|
|
56299
|
+
(_a = nameInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
56300
|
+
}, []);
|
|
56250
56301
|
const callbackName = (event) => {
|
|
56251
56302
|
const newCompanionState = model_1.helper.deepCopy(userCompanion);
|
|
56252
56303
|
newCompanionState.name = event.target.value;
|
|
@@ -56277,7 +56328,7 @@ const FormTemplateCompanion = ({ questions, userCompanion, callbackFormTemplateC
|
|
|
56277
56328
|
react_1.default.createElement("div", { className: "col col12 my2" },
|
|
56278
56329
|
react_1.default.createElement("h4", { className: FormTemplateCompanion_scss_1.default.header }, t('user.travelCompanions.companionName'))),
|
|
56279
56330
|
react_1.default.createElement("div", { className: "col col12" },
|
|
56280
|
-
react_1.default.createElement(Input_1.default, { type: "text", placeholder: t('user.travelCompanions.companionName'), name: "name", value: userCompanion.name, onChange: callbackName }))),
|
|
56331
|
+
react_1.default.createElement(Input_1.default, { ref: nameInputRef, type: "text", placeholder: t('user.travelCompanions.companionName'), name: "name", value: userCompanion.name, onChange: callbackName }))),
|
|
56281
56332
|
react_1.default.createElement("div", { className: "col col12 col6-m p0" },
|
|
56282
56333
|
react_1.default.createElement("div", { className: "col col12 my2" },
|
|
56283
56334
|
react_1.default.createElement("h4", { className: FormTemplateCompanion_scss_1.default.header }, t('user.travelCompanions.companionAge'))),
|
|
@@ -58589,13 +58640,14 @@ const PoiInfoText = ({ poi, hideFeatures, hideCuisine, reservationUrl, hideBooki
|
|
|
58589
58640
|
react_1.default.createElement("span", { className: PoiInfoText_scss_1.default.bookableTabSubtext }, "Covering this POI")))),
|
|
58590
58641
|
!hideTours && activeBookableTab === 'tickets' && ticketProducts.length > 0 && (react_1.default.createElement("div", { className: "col col12 pb4" }, ticketProducts.map((bookingProduct) => (react_1.default.createElement("div", { key: bookingProduct.id, className: "pt4" },
|
|
58591
58642
|
react_1.default.createElement(TourCard_1.default, { key: bookingProduct.id, title: bookingProduct.title, tags: bookingProduct.info, images: [bookingProduct.image || ''], provider: bookingProduct.provider, onBook: () => {
|
|
58592
|
-
if (
|
|
58643
|
+
if (getTourInfo)
|
|
58593
58644
|
getTourInfo(bookingProduct.id.toString(), poi);
|
|
58594
|
-
}
|
|
58595
|
-
window.open(bookingProduct.url || '', '_blank');
|
|
58596
58645
|
} })))))),
|
|
58597
58646
|
!hideTours && activeBookableTab === 'tours' && tourProducts.length > 0 && (react_1.default.createElement("div", { className: `col col12 pb4 ${tourTicketProductsLoading ? 'pointer-events-none' : ''}` }, tourProducts.map((bookingProduct) => (react_1.default.createElement("div", { key: bookingProduct.id, className: "pt4" },
|
|
58598
|
-
react_1.default.createElement(TourCard_1.default, { key: bookingProduct.id, title: bookingProduct.title, tags: bookingProduct.info, images: [bookingProduct.image || ''], provider: bookingProduct.provider, onBook: () =>
|
|
58647
|
+
react_1.default.createElement(TourCard_1.default, { key: bookingProduct.id, title: bookingProduct.title, tags: bookingProduct.info, images: [bookingProduct.image || ''], provider: bookingProduct.provider, onBook: () => {
|
|
58648
|
+
if (getTourInfo)
|
|
58649
|
+
getTourInfo(bookingProduct.id.toString(), poi);
|
|
58650
|
+
} }))))))))))))));
|
|
58599
58651
|
};
|
|
58600
58652
|
exports.default = PoiInfoText;
|
|
58601
58653
|
|
|
@@ -78458,6 +78510,12 @@ const FormTemplateLogin = ({ login, successLogin, reCaptchaSiteKey, showCaptcha
|
|
|
78458
78510
|
const [warningMessage, setWarningMessage] = (0, react_1.useState)('');
|
|
78459
78511
|
const [isRecaptchaActive, setIsRecaptchaActive] = (0, react_1.useState)(false);
|
|
78460
78512
|
const [showPassword, setShowPassword] = (0, react_1.useState)(false);
|
|
78513
|
+
const passwordInputRef = (0, react_1.useRef)(null);
|
|
78514
|
+
const emailInputRef = (0, react_1.useRef)(null);
|
|
78515
|
+
(0, react_1.useEffect)(() => {
|
|
78516
|
+
var _a;
|
|
78517
|
+
(_a = emailInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
78518
|
+
}, []);
|
|
78461
78519
|
const handleChange = (event) => {
|
|
78462
78520
|
const newUser = { ...user };
|
|
78463
78521
|
if (event.target.name === 'email') {
|
|
@@ -78468,6 +78526,13 @@ const FormTemplateLogin = ({ login, successLogin, reCaptchaSiteKey, showCaptcha
|
|
|
78468
78526
|
}
|
|
78469
78527
|
setUser(newUser);
|
|
78470
78528
|
};
|
|
78529
|
+
const handleEmailKeyDown = (event) => {
|
|
78530
|
+
var _a;
|
|
78531
|
+
if (event.key === 'Tab' && !event.shiftKey) {
|
|
78532
|
+
event.preventDefault();
|
|
78533
|
+
(_a = passwordInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
78534
|
+
}
|
|
78535
|
+
};
|
|
78471
78536
|
const isValid = () => {
|
|
78472
78537
|
const emailValid = model_1.helper.emailFormatValid(user.email);
|
|
78473
78538
|
let newWarningMessage = '';
|
|
@@ -78530,13 +78595,13 @@ const FormTemplateLogin = ({ login, successLogin, reCaptchaSiteKey, showCaptcha
|
|
|
78530
78595
|
react_1.default.createElement("div", { className: "col col12 my2" },
|
|
78531
78596
|
react_1.default.createElement("h4", { className: FormTemplateLogin_scss_1.default.header }, t('auth.login.email.label'))),
|
|
78532
78597
|
react_1.default.createElement("div", { className: "col col12" },
|
|
78533
|
-
react_1.default.createElement(Input_1.default, { type: "email", placeholder: t('auth.login.email.placeholder'), name: "email", value: user.email, onChange: handleChange, autocomplete: "username" }))),
|
|
78598
|
+
react_1.default.createElement(Input_1.default, { ref: emailInputRef, type: "email", placeholder: t('auth.login.email.placeholder'), name: "email", value: user.email, onChange: handleChange, autocomplete: "username", onKeyDown: handleEmailKeyDown }))),
|
|
78534
78599
|
react_1.default.createElement("div", { className: "row mb0" },
|
|
78535
78600
|
react_1.default.createElement("div", { className: `col col12 my2 ${FormTemplateLogin_scss_1.default.passwordContent}` },
|
|
78536
78601
|
react_1.default.createElement("h4", { className: FormTemplateLogin_scss_1.default.header }, t('auth.login.password.label')),
|
|
78537
78602
|
react_1.default.createElement(Button_1.default, { className: FormTemplateLogin_scss_1.default.forgotPasswordButton, text: t('auth.login.forgotPassword'), color: "primary", type: ButtonTypes_1.default.TEXT, onClick: forgotPassword })),
|
|
78538
78603
|
react_1.default.createElement("div", { className: "col col12" },
|
|
78539
|
-
react_1.default.createElement(Input_1.default, { type: showPassword ? 'text' : 'password', placeholder: t('auth.login.password.placeholder'), name: "password", value: user.password, onChange: handleChange, autocomplete: "current-password" },
|
|
78604
|
+
react_1.default.createElement(Input_1.default, { ref: passwordInputRef, type: showPassword ? 'text' : 'password', placeholder: t('auth.login.password.placeholder'), name: "password", value: user.password, onChange: handleChange, autocomplete: "current-password" },
|
|
78540
78605
|
react_1.default.createElement(EyeIconButton_1.default, { show: showPassword, clicked: () => setShowPassword(!showPassword) }))),
|
|
78541
78606
|
showCaptcha && isRecaptchaActive ? (react_1.default.createElement("div", { className: `row center mb0 ${FormTemplateLogin_scss_1.default.recaptcha}` },
|
|
78542
78607
|
react_1.default.createElement(react_google_recaptcha_1.default, { badge: "inline", sitekey: reCaptchaSiteKey, onChange: verifyCallback }))) : null,
|
|
@@ -78681,6 +78746,11 @@ const FormTemplateNewPassword = ({ passwordCallBack, success, t }) => {
|
|
|
78681
78746
|
const [error, setError] = (0, react_1.useState)(undefined);
|
|
78682
78747
|
const [showPassword, setShowPassword] = (0, react_1.useState)(false);
|
|
78683
78748
|
const [showPasswordConfirm, setShowPasswordConfirm] = (0, react_1.useState)(false);
|
|
78749
|
+
const passwordInputRef = (0, react_1.useRef)(null);
|
|
78750
|
+
(0, react_1.useEffect)(() => {
|
|
78751
|
+
var _a;
|
|
78752
|
+
(_a = passwordInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
78753
|
+
}, []);
|
|
78684
78754
|
const handleChange = (event) => {
|
|
78685
78755
|
if (event.target.name === 'password') {
|
|
78686
78756
|
setPassword(event.target.value.trim());
|
|
@@ -78736,7 +78806,7 @@ const FormTemplateNewPassword = ({ passwordCallBack, success, t }) => {
|
|
|
78736
78806
|
react_1.default.createElement("div", { className: `col col12 my2 ${FormTemplateNewPassword_scss_1.default.content}` },
|
|
78737
78807
|
react_1.default.createElement("h4", { className: FormTemplateNewPassword_scss_1.default.header }, t('auth.resetPassword.password.label'))),
|
|
78738
78808
|
react_1.default.createElement("div", { className: "col col12" },
|
|
78739
|
-
react_1.default.createElement(Input_1.default, { type: showPassword ? 'text' : 'password', placeholder: t('auth.resetPassword.password.placeholder'), name: "password", value: password, onChange: handleChange, autocomplete: "password" },
|
|
78809
|
+
react_1.default.createElement(Input_1.default, { ref: passwordInputRef, type: showPassword ? 'text' : 'password', placeholder: t('auth.resetPassword.password.placeholder'), name: "password", value: password, onChange: handleChange, autocomplete: "password" },
|
|
78740
78810
|
react_1.default.createElement(EyeIconButton_1.default, { show: showPassword, clicked: () => setShowPassword(!showPassword) })))),
|
|
78741
78811
|
react_1.default.createElement("div", { className: "row mb0" },
|
|
78742
78812
|
react_1.default.createElement("div", { className: `col col12 my2 ${FormTemplateNewPassword_scss_1.default.content}` },
|
|
@@ -78833,6 +78903,7 @@ const FormTemplateProfile = ({ user, profileQuestions, updateUser, updateCallbac
|
|
|
78833
78903
|
answers: [...user.answers].sort((a, b) => a - b),
|
|
78834
78904
|
password: undefined,
|
|
78835
78905
|
});
|
|
78906
|
+
const firstNameInputRef = (0, react_1.useRef)(null);
|
|
78836
78907
|
moment_1.default.locale(window.twindow.langCode);
|
|
78837
78908
|
const areDiffObject = (prevObject, currentObject) => {
|
|
78838
78909
|
const prevObjectString = JSON.stringify(prevObject);
|
|
@@ -78852,6 +78923,10 @@ const FormTemplateProfile = ({ user, profileQuestions, updateUser, updateCallbac
|
|
|
78852
78923
|
const areObjectsDifferent = areDiffObject(initialUser, userUpdateRequest);
|
|
78853
78924
|
setIsFormChanged(areObjectsDifferent);
|
|
78854
78925
|
}, [userUpdateRequest, initialUser]);
|
|
78926
|
+
(0, react_1.useEffect)(() => {
|
|
78927
|
+
var _a;
|
|
78928
|
+
(_a = firstNameInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
78929
|
+
}, []);
|
|
78855
78930
|
const handleChange = (event) => {
|
|
78856
78931
|
const newUserUpdateRequest = model_1.helper.deepCopy(userUpdateRequest);
|
|
78857
78932
|
switch (event.target.name) {
|
|
@@ -78941,7 +79016,7 @@ const FormTemplateProfile = ({ user, profileQuestions, updateUser, updateCallbac
|
|
|
78941
79016
|
react_1.default.createElement("div", { className: "col col12" },
|
|
78942
79017
|
react_1.default.createElement("h4", { className: FormTemplateProfile_scss_1.default.header }, t('auth.register.name.label'))),
|
|
78943
79018
|
react_1.default.createElement("div", { className: "col col12" },
|
|
78944
|
-
react_1.default.createElement(Input_1.default, { type: "text", placeholder: t('auth.register.name.placeholder'), name: "firstName", value: userUpdateRequest.firstName || '', onChange: handleChange, autocomplete: "first-name" }))),
|
|
79019
|
+
react_1.default.createElement(Input_1.default, { ref: firstNameInputRef, type: "text", placeholder: t('auth.register.name.placeholder'), name: "firstName", value: userUpdateRequest.firstName || '', onChange: handleChange, autocomplete: "first-name" }))),
|
|
78945
79020
|
react_1.default.createElement("div", { className: "col col12 col6-m my2 p0" },
|
|
78946
79021
|
react_1.default.createElement("div", { className: "col col12" },
|
|
78947
79022
|
react_1.default.createElement("h4", { className: FormTemplateProfile_scss_1.default.header }, t('auth.register.surname.label'))),
|
|
@@ -79037,6 +79112,11 @@ const UserPasswordChange = ({ updateUser, updateCallback, forgotPassword, close,
|
|
|
79037
79112
|
const [showCurrentPassword, setShowCurrentPassword] = (0, react_1.useState)(false);
|
|
79038
79113
|
const [showPassword, setShowPassword] = (0, react_1.useState)(false);
|
|
79039
79114
|
const [showPasswordConfirm, setShowPasswordConfirm] = (0, react_1.useState)(false);
|
|
79115
|
+
const currentPasswordInputRef = (0, react_1.useRef)(null);
|
|
79116
|
+
(0, react_1.useEffect)(() => {
|
|
79117
|
+
var _a;
|
|
79118
|
+
(_a = currentPasswordInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
79119
|
+
}, []);
|
|
79040
79120
|
const handleChange = (event) => {
|
|
79041
79121
|
if (event.target.name === 'currentPassword') {
|
|
79042
79122
|
setCurrentPassword(event.target.value.trim());
|
|
@@ -79112,7 +79192,7 @@ const UserPasswordChange = ({ updateUser, updateCallback, forgotPassword, close,
|
|
|
79112
79192
|
react_1.default.createElement("h4", { className: UserPasswordChange_scss_1.default.header }, t('user.profile.changePassword.modal.currentPassword.label')),
|
|
79113
79193
|
react_1.default.createElement(Button_1.default, { className: UserPasswordChange_scss_1.default.forgotPasswordButton, text: t('user.profile.changePassword.modal.forgotPassword'), color: "primary", type: ButtonTypes_1.default.TEXT, onClick: forgotPassword })),
|
|
79114
79194
|
react_1.default.createElement("div", { className: "col col12" },
|
|
79115
|
-
react_1.default.createElement(Input_1.default, { type: showCurrentPassword ? 'text' : 'password', placeholder: t('user.profile.changePassword.modal.currentPassword.placeholder'), name: "currentPassword", value: currentPassword, onChange: handleChange, autocomplete: "password" },
|
|
79195
|
+
react_1.default.createElement(Input_1.default, { ref: currentPasswordInputRef, type: showCurrentPassword ? 'text' : 'password', placeholder: t('user.profile.changePassword.modal.currentPassword.placeholder'), name: "currentPassword", value: currentPassword, onChange: handleChange, autocomplete: "password" },
|
|
79116
79196
|
react_1.default.createElement(EyeIconButton_1.default, { show: showCurrentPassword, clicked: () => setShowCurrentPassword(!showCurrentPassword) })))),
|
|
79117
79197
|
react_1.default.createElement("div", { className: "row mb0" },
|
|
79118
79198
|
react_1.default.createElement("div", { className: `col col12 ${UserPasswordChange_scss_1.default.content}` },
|
|
@@ -79220,6 +79300,11 @@ const FormTemplateRegister = ({ /* profileQuestions, */ register, successRegiste
|
|
|
79220
79300
|
// const [showPasswordConfirm, setShowPasswordConfirm] = useState(false);
|
|
79221
79301
|
const [tosAccepted, setTosAccepted] = (0, react_1.useState)(false);
|
|
79222
79302
|
const [tosRead, setTosRead] = (0, react_1.useState)(false);
|
|
79303
|
+
const firstNameInputRef = (0, react_1.useRef)(null);
|
|
79304
|
+
(0, react_1.useEffect)(() => {
|
|
79305
|
+
var _a;
|
|
79306
|
+
(_a = firstNameInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
79307
|
+
}, []);
|
|
79223
79308
|
const handleChange = (event) => {
|
|
79224
79309
|
const newUser = model_1.helper.deepCopy(user);
|
|
79225
79310
|
if (event.target.name === 'firstName') {
|
|
@@ -79320,7 +79405,7 @@ const FormTemplateRegister = ({ /* profileQuestions, */ register, successRegiste
|
|
|
79320
79405
|
react_1.default.createElement("div", { className: "col col12" },
|
|
79321
79406
|
react_1.default.createElement("h4", { className: FormTemplateRegister_scss_1.default.header }, t('auth.register.name.label'))),
|
|
79322
79407
|
react_1.default.createElement("div", { className: "col col12" },
|
|
79323
|
-
react_1.default.createElement(Input_1.default, { type: "text", placeholder: t('auth.register.name.placeholder'), name: "firstName", value: user.firstName ? user.firstName : '', onChange: handleChange, autocomplete: "first-name" }))),
|
|
79408
|
+
react_1.default.createElement(Input_1.default, { ref: firstNameInputRef, type: "text", placeholder: t('auth.register.name.placeholder'), name: "firstName", value: user.firstName ? user.firstName : '', onChange: handleChange, autocomplete: "first-name" }))),
|
|
79324
79409
|
react_1.default.createElement("div", { className: "col col12 col6-m my2 p0" },
|
|
79325
79410
|
react_1.default.createElement("div", { className: "col col12" },
|
|
79326
79411
|
react_1.default.createElement("h4", { className: FormTemplateRegister_scss_1.default.header }, t('auth.register.surname.label'))),
|
|
@@ -88273,7 +88358,7 @@ gygTourIds, bbTourIds, viatorTourIds, toristyTourIds, alternativeReplace, timesC
|
|
|
88273
88358
|
react_1.default.createElement(Price_1.default, { price: step.poi.price }))) : null)));
|
|
88274
88359
|
}
|
|
88275
88360
|
return (react_1.default.createElement("div", { style: { marginLeft: isWidget ? '1.5rem' : '0' }, className: `${StepCard_scss_1.default.stepCardMain} ${step.warningMessage.length > 0 ? StepCard_scss_1.default.redBorder : ''}` },
|
|
88276
|
-
react_1.default.createElement("div", { className:
|
|
88361
|
+
react_1.default.createElement("div", { className: StepCard_scss_1.default.stepCard, onKeyDown: () => { }, role: "button", tabIndex: 0, onClick: () => {
|
|
88277
88362
|
clicked(step);
|
|
88278
88363
|
} },
|
|
88279
88364
|
step.warningMessage.length > 0 && (react_1.default.createElement("div", { className: StepCard_scss_1.default.tooltip, "data-tooltip": step.warningMessage.join(' '), "data-tooltip-position": "bottom" },
|
|
@@ -88299,11 +88384,7 @@ gygTourIds, bbTourIds, viatorTourIds, toristyTourIds, alternativeReplace, timesC
|
|
|
88299
88384
|
} },
|
|
88300
88385
|
react_1.default.createElement(Icons_1.X, { fill: "var(--primary-color)" }))),
|
|
88301
88386
|
react_1.default.createElement("div", { className: StepCard_scss_1.default.iconButtonsMobile }, replaceRemoveButtons),
|
|
88302
|
-
tourTicketProductsLoading && step.poi.category.some((c) => c.id === 1) && (react_1.default.createElement("div", { className: StepCard_scss_1.default.loadingIndicator,
|
|
88303
|
-
e.stopPropagation();
|
|
88304
|
-
}, onKeyDown: (e) => {
|
|
88305
|
-
e.stopPropagation();
|
|
88306
|
-
}, role: "presentation" },
|
|
88387
|
+
tourTicketProductsLoading && step.poi.category.some((c) => c.id === 1) && (react_1.default.createElement("div", { className: StepCard_scss_1.default.loadingIndicator },
|
|
88307
88388
|
react_1.default.createElement(TourTicketLazyLoading_1.default, null))),
|
|
88308
88389
|
!tourTicketProductsLoading && (react_1.default.createElement(react_1.default.Fragment, null, ((!hideTourTicketIcons &&
|
|
88309
88390
|
(model_1.helper.tourAvailable(step.poi.bookings, TOUR_PROVIDER_IDS, gygTourIds, bbTourIds, viatorTourIds, toristyTourIds) ||
|