ordering-ui-external 1.2.3 → 1.3.0

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.
Files changed (97) hide show
  1. package/_bundles/{0.ordering-ui.fc62fe574704c7c4d033.js → 0.ordering-ui.aee3f88f00476e436e39.js} +1 -1
  2. package/_bundles/{1.ordering-ui.fc62fe574704c7c4d033.js → 1.ordering-ui.aee3f88f00476e436e39.js} +1 -1
  3. package/_bundles/{3.ordering-ui.fc62fe574704c7c4d033.js → 3.ordering-ui.aee3f88f00476e436e39.js} +1 -1
  4. package/_bundles/{4.ordering-ui.fc62fe574704c7c4d033.js → 4.ordering-ui.aee3f88f00476e436e39.js} +1 -1
  5. package/_bundles/5.ordering-ui.aee3f88f00476e436e39.js +1 -0
  6. package/_bundles/{6.ordering-ui.fc62fe574704c7c4d033.js → 6.ordering-ui.aee3f88f00476e436e39.js} +1 -1
  7. package/_bundles/7.ordering-ui.aee3f88f00476e436e39.js +2 -0
  8. package/_bundles/{7.ordering-ui.fc62fe574704c7c4d033.js.LICENSE.txt → 7.ordering-ui.aee3f88f00476e436e39.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.fc62fe574704c7c4d033.js → 8.ordering-ui.aee3f88f00476e436e39.js} +1 -1
  10. package/_bundles/{9.ordering-ui.fc62fe574704c7c4d033.js → 9.ordering-ui.aee3f88f00476e436e39.js} +1 -1
  11. package/_bundles/ordering-ui.aee3f88f00476e436e39.js +2 -0
  12. package/_bundles/{ordering-ui.fc62fe574704c7c4d033.js.LICENSE.txt → ordering-ui.aee3f88f00476e436e39.js.LICENSE.txt} +0 -0
  13. package/_modules/components/AutoScroll/styles.js +3 -3
  14. package/_modules/hooks/useIsMounted.js +24 -0
  15. package/_modules/index.js +8 -0
  16. package/_modules/themes/five/index.js +33 -1
  17. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +2 -2
  18. package/_modules/themes/five/src/components/BusinessController/styles.js +42 -42
  19. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +12 -2
  20. package/_modules/themes/five/src/components/BusinessProductsCategories/styles.js +5 -2
  21. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +10 -3
  22. package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +7 -3
  23. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +1 -0
  24. package/_modules/themes/five/src/components/MultiCheckout/styles.js +1 -1
  25. package/_modules/themes/five/src/components/MyOrders/index.js +9 -3
  26. package/_modules/themes/five/src/components/NavigationBar/index.js +159 -0
  27. package/_modules/themes/five/src/components/NavigationBar/styles.js +33 -0
  28. package/_modules/themes/five/src/components/OrderDetails/index.js +71 -41
  29. package/_modules/themes/five/src/components/ProfessionalBusinessFilter/index.js +96 -0
  30. package/_modules/themes/five/src/components/ProfessionalBusinessFilter/styles.js +48 -0
  31. package/_modules/themes/five/src/components/ProfessionalFilter/index.js +35 -7
  32. package/_modules/themes/five/src/components/ProfessionalFilter/styles.js +10 -4
  33. package/_modules/themes/five/src/components/ProfessionalInfo/index.js +120 -0
  34. package/_modules/themes/five/src/components/ProfessionalInfo/styles.js +100 -0
  35. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +36 -13
  36. package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +21 -18
  37. package/_modules/themes/five/src/components/ReviewProfessional/index.js +314 -0
  38. package/_modules/themes/five/src/components/ReviewProfessional/styles.js +137 -0
  39. package/_modules/themes/five/src/components/SignUpApproval/index.js +106 -0
  40. package/_modules/themes/five/src/components/SignUpApproval/styles.js +71 -0
  41. package/_modules/themes/five/src/components/SignUpBusiness/index.js +7 -383
  42. package/_modules/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/index.js +405 -0
  43. package/_modules/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/styles.js +110 -0
  44. package/_modules/themes/five/src/components/SignUpBusiness/layouts/OldSignUpBusiness/index.js +400 -0
  45. package/_modules/themes/five/src/components/SignUpBusiness/{styles.js → layouts/OldSignUpBusiness/styles.js} +0 -0
  46. package/_modules/themes/five/src/components/SignUpDriver/index.js +7 -383
  47. package/_modules/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/index.js +405 -0
  48. package/_modules/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/styles.js +106 -0
  49. package/_modules/themes/five/src/components/SignUpDriver/layouts/OldSignUpDriver/index.js +400 -0
  50. package/_modules/themes/five/src/components/SignUpDriver/{styles.js → layouts/OldSignUpDriver/styles.js} +0 -0
  51. package/_modules/themes/five/src/components/SingleProductCard/styles.js +1 -1
  52. package/_modules/utils/index.js +103 -0
  53. package/package.json +2 -2
  54. package/src/components/AutoScroll/styles.js +11 -12
  55. package/src/hooks/useIsMounted.js +18 -0
  56. package/src/index.js +2 -0
  57. package/src/themes/five/index.js +9 -1
  58. package/src/themes/five/src/components/BusinessBasicInformation/index.js +1 -1
  59. package/src/themes/five/src/components/BusinessController/styles.js +3 -6
  60. package/src/themes/five/src/components/BusinessProductsCategories/index.js +10 -2
  61. package/src/themes/five/src/components/BusinessProductsCategories/styles.js +5 -0
  62. package/src/themes/five/src/components/BusinessProductsListing/index.js +8 -2
  63. package/src/themes/five/src/components/BusinessProductsListing/styles.js +1 -1
  64. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +2 -0
  65. package/src/themes/five/src/components/MultiCheckout/index.js +1 -0
  66. package/src/themes/five/src/components/MultiCheckout/styles.js +1 -0
  67. package/src/themes/five/src/components/MyOrders/index.js +6 -3
  68. package/src/themes/five/src/components/NavigationBar/index.js +104 -0
  69. package/src/themes/five/src/components/NavigationBar/styles.js +44 -0
  70. package/src/themes/five/src/components/OrderDetails/index.js +19 -11
  71. package/src/themes/five/src/components/ProfessionalBusinessFilter/index.js +82 -0
  72. package/src/themes/five/src/components/ProfessionalBusinessFilter/styles.js +71 -0
  73. package/src/themes/five/src/components/ProfessionalFilter/index.js +30 -7
  74. package/src/themes/five/src/components/ProfessionalFilter/styles.js +15 -2
  75. package/src/themes/five/src/components/ProfessionalInfo/index.js +133 -0
  76. package/src/themes/five/src/components/ProfessionalInfo/styles.js +140 -0
  77. package/src/themes/five/src/components/RenderProductsLayout/index.js +37 -16
  78. package/src/themes/five/src/components/RenderProductsLayout/styles.js +6 -1
  79. package/src/themes/five/src/components/ReviewProfessional/index.js +239 -0
  80. package/src/themes/five/src/components/ReviewProfessional/styles.js +233 -0
  81. package/src/themes/five/src/components/SignUpApproval/index.js +108 -0
  82. package/src/themes/five/src/components/SignUpApproval/styles.js +98 -0
  83. package/src/themes/five/src/components/SignUpBusiness/index.js +10 -374
  84. package/src/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/index.js +382 -0
  85. package/src/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/styles.js +256 -0
  86. package/src/themes/five/src/components/SignUpBusiness/layouts/OldSignUpBusiness/index.js +378 -0
  87. package/src/themes/five/src/components/SignUpBusiness/{styles.js → layouts/OldSignUpBusiness/styles.js} +0 -0
  88. package/src/themes/five/src/components/SignUpDriver/index.js +10 -374
  89. package/src/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/index.js +382 -0
  90. package/src/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/styles.js +262 -0
  91. package/src/themes/five/src/components/SignUpDriver/layouts/OldSignUpDriver/index.js +378 -0
  92. package/src/themes/five/src/components/SignUpDriver/{styles.js → layouts/OldSignUpDriver/styles.js} +0 -0
  93. package/src/themes/five/src/components/SingleProductCard/styles.js +3 -1
  94. package/src/utils/index.js +54 -0
  95. package/_bundles/5.ordering-ui.fc62fe574704c7c4d033.js +0 -1
  96. package/_bundles/7.ordering-ui.fc62fe574704c7c4d033.js +0 -2
  97. package/_bundles/ordering-ui.fc62fe574704c7c4d033.js +0 -2
@@ -0,0 +1,405 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.SignUpDriver = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _reactHookForm = require("react-hook-form");
13
+
14
+ var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skeleton"));
15
+
16
+ var _Confirm = require("../../../Confirm");
17
+
18
+ var _InputPhoneNumber = require("../../../../../../../components/InputPhoneNumber");
19
+
20
+ var _libphonenumberJs = _interopRequireDefault(require("libphonenumber-js"));
21
+
22
+ var _styledComponents = require("styled-components");
23
+
24
+ var _Inputs = require("../../../../styles/Inputs");
25
+
26
+ var _Buttons = require("../../../../styles/Buttons");
27
+
28
+ var _Checkbox = require("../../../../../../../styles/Checkbox");
29
+
30
+ var _utils = require("../../../../../../../utils");
31
+
32
+ var _AiOutlineEye = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineEye"));
33
+
34
+ var _AiOutlineEyeInvisible = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineEyeInvisible"));
35
+
36
+ var _orderingComponentsExternal = require("ordering-components-external");
37
+
38
+ var _styles = require("./styles");
39
+
40
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41
+
42
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
43
+
44
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
45
+
46
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
47
+
48
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
49
+
50
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
51
+
52
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
53
+
54
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
55
+
56
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
57
+
58
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
59
+
60
+ 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); }
61
+
62
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
63
+
64
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
65
+
66
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
67
+
68
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
69
+
70
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
71
+
72
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
73
+
74
+ var notValidationFields = ['coupon', 'driver_tip', 'mobile_phone', 'address', 'address_notes'];
75
+
76
+ var SignUpDriverUI = function SignUpDriverUI(props) {
77
+ var _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _configs$verification, _theme$images, _theme$images$general, _props$beforeMidEleme, _props$beforeMidCompo, _validationFields$fie12, _validationFields$fie13, _props$afterMidElemen, _props$afterMidCompon, _configs$terms_and_co, _configs$terms_and_co2;
78
+
79
+ var handleChangeInput = props.handleChangeInput,
80
+ handleButtonSignupClick = props.handleButtonSignupClick,
81
+ handleReCaptcha = props.handleReCaptcha,
82
+ useChekoutFileds = props.useChekoutFileds,
83
+ validationFields = props.validationFields,
84
+ showField = props.showField,
85
+ isRequiredField = props.isRequiredField,
86
+ formState = props.formState,
87
+ handleSuccessSignup = props.handleSuccessSignup,
88
+ isPopup = props.isPopup,
89
+ externalPhoneNumber = props.externalPhoneNumber,
90
+ saveCustomerUser = props.saveCustomerUser,
91
+ fieldsNotValid = props.fieldsNotValid,
92
+ signupData = props.signupData,
93
+ enableReCaptcha = props.enableReCaptcha;
94
+ var theme = (0, _styledComponents.useTheme)();
95
+
96
+ var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
97
+ _useLanguage2 = _slicedToArray(_useLanguage, 2),
98
+ t = _useLanguage2[1];
99
+
100
+ var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
101
+ _useConfig2 = _slicedToArray(_useConfig, 1),
102
+ configs = _useConfig2[0].configs;
103
+
104
+ var formMethods = (0, _reactHookForm.useForm)();
105
+
106
+ var _useState = (0, _react.useState)({
107
+ open: false,
108
+ content: []
109
+ }),
110
+ _useState2 = _slicedToArray(_useState, 2),
111
+ alertState = _useState2[0],
112
+ setAlertState = _useState2[1];
113
+
114
+ var emailInput = (0, _react.useRef)(null);
115
+
116
+ var _useState3 = (0, _react.useState)(''),
117
+ _useState4 = _slicedToArray(_useState3, 2),
118
+ userPhoneNumber = _useState4[0],
119
+ setUserPhoneNumber = _useState4[1];
120
+
121
+ var _useState5 = (0, _react.useState)(null),
122
+ _useState6 = _slicedToArray(_useState5, 2),
123
+ isValidPhoneNumber = _useState6[0],
124
+ setIsValidPhoneNumber = _useState6[1];
125
+
126
+ var _useState7 = (0, _react.useState)(false),
127
+ _useState8 = _slicedToArray(_useState7, 2),
128
+ passwordSee = _useState8[0],
129
+ setPasswordSee = _useState8[1];
130
+
131
+ var showInputPhoneNumber = ((_validationFields$fie = validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie2 = validationFields.fields) === null || _validationFields$fie2 === void 0 ? void 0 : (_validationFields$fie3 = _validationFields$fie2.checkout) === null || _validationFields$fie3 === void 0 ? void 0 : (_validationFields$fie4 = _validationFields$fie3.cellphone) === null || _validationFields$fie4 === void 0 ? void 0 : _validationFields$fie4.enabled) !== null && _validationFields$fie !== void 0 ? _validationFields$fie : false) || (configs === null || configs === void 0 ? void 0 : (_configs$verification = configs.verification_phone_required) === null || _configs$verification === void 0 ? void 0 : _configs$verification.value) === '1';
132
+
133
+ var togglePasswordView = function togglePasswordView() {
134
+ setPasswordSee(!passwordSee);
135
+ };
136
+
137
+ var closeAlert = function closeAlert() {
138
+ setAlertState({
139
+ open: false,
140
+ content: []
141
+ });
142
+ };
143
+
144
+ var onSubmit = function onSubmit() {
145
+ var _validationFields$fie5, _validationFields$fie6, _validationFields$fie7, _validationFields$fie8, _validationFields$fie9, _validationFields$fie10, _configs$verification2;
146
+
147
+ var isPhoneNumberValid = userPhoneNumber ? isValidPhoneNumber : true;
148
+
149
+ if (!userPhoneNumber && (validationFields !== null && validationFields !== void 0 && (_validationFields$fie5 = validationFields.fields) !== null && _validationFields$fie5 !== void 0 && (_validationFields$fie6 = _validationFields$fie5.checkout) !== null && _validationFields$fie6 !== void 0 && (_validationFields$fie7 = _validationFields$fie6.cellphone) !== null && _validationFields$fie7 !== void 0 && _validationFields$fie7.enabled && validationFields !== null && validationFields !== void 0 && (_validationFields$fie8 = validationFields.fields) !== null && _validationFields$fie8 !== void 0 && (_validationFields$fie9 = _validationFields$fie8.checkout) !== null && _validationFields$fie9 !== void 0 && (_validationFields$fie10 = _validationFields$fie9.cellphone) !== null && _validationFields$fie10 !== void 0 && _validationFields$fie10.required || (configs === null || configs === void 0 ? void 0 : (_configs$verification2 = configs.verification_phone_required) === null || _configs$verification2 === void 0 ? void 0 : _configs$verification2.value) === '1')) {
150
+ setAlertState({
151
+ open: true,
152
+ content: [t('VALIDATION_ERROR_MOBILE_PHONE_REQUIRED', 'The field Mobile phone is required.')]
153
+ });
154
+ return;
155
+ }
156
+
157
+ if (!isPhoneNumberValid) {
158
+ setAlertState({
159
+ open: true,
160
+ content: [t('INVALID_ERROR_PHONE_NUMBER', 'The Phone Number field is invalid')]
161
+ });
162
+ return;
163
+ }
164
+
165
+ handleButtonSignupClick && handleButtonSignupClick();
166
+
167
+ if (!formState.loading && formState.result.result && !formState.result.error) {
168
+ handleSuccessSignup(formState.result.result);
169
+ }
170
+ };
171
+
172
+ var handleChangePhoneNumber = function handleChangePhoneNumber(number, isValid) {
173
+ setUserPhoneNumber(number);
174
+ var phoneNumberParser = null;
175
+ var phoneNumber = {
176
+ country_phone_code: {
177
+ name: 'country_phone_code',
178
+ value: ''
179
+ },
180
+ cellphone: {
181
+ name: 'cellphone',
182
+ value: ''
183
+ }
184
+ };
185
+
186
+ if (isValid) {
187
+ phoneNumberParser = (0, _libphonenumberJs.default)(number);
188
+ }
189
+
190
+ if (phoneNumberParser) {
191
+ phoneNumber = {
192
+ country_phone_code: {
193
+ name: 'country_phone_code',
194
+ value: phoneNumberParser.countryCallingCode
195
+ },
196
+ cellphone: {
197
+ name: 'cellphone',
198
+ value: phoneNumberParser.nationalNumber
199
+ }
200
+ };
201
+ }
202
+
203
+ handleChangeInput(phoneNumber, true);
204
+ };
205
+
206
+ var handleChangeInputEmail = function handleChangeInputEmail(e) {
207
+ handleChangeInput({
208
+ target: {
209
+ name: 'email',
210
+ value: e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '')
211
+ }
212
+ });
213
+ formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
214
+
215
+ if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
216
+ emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
217
+ }
218
+ };
219
+
220
+ (0, _react.useEffect)(function () {
221
+ var _formState$result, _formState$result3, _formState$result4;
222
+
223
+ if (!formState.loading && (_formState$result = formState.result) !== null && _formState$result !== void 0 && _formState$result.error) {
224
+ var _formState$result2;
225
+
226
+ setAlertState({
227
+ open: true,
228
+ content: ((_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result) || [t('ERROR', 'Error')]
229
+ });
230
+ } else if (!formState.loading && !((_formState$result3 = formState.result) !== null && _formState$result3 !== void 0 && _formState$result3.error) && (_formState$result4 = formState.result) !== null && _formState$result4 !== void 0 && _formState$result4.result) {
231
+ var _formState$result5;
232
+
233
+ saveCustomerUser && saveCustomerUser((_formState$result5 = formState.result) === null || _formState$result5 === void 0 ? void 0 : _formState$result5.result);
234
+ }
235
+ }, [formState]);
236
+ (0, _react.useEffect)(function () {
237
+ if (Object.keys(formMethods.errors).length > 0) {
238
+ setAlertState({
239
+ open: true,
240
+ content: Object.values(formMethods.errors).map(function (error) {
241
+ return error.message;
242
+ })
243
+ });
244
+ }
245
+ }, [formMethods.errors]);
246
+ (0, _react.useEffect)(function () {
247
+ if (!validationFields.loading) {
248
+ var _validationFields$fie11;
249
+
250
+ Object.values(validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie11 = validationFields.fields) === null || _validationFields$fie11 === void 0 ? void 0 : _validationFields$fie11.checkout).map(function (field) {
251
+ return !notValidationFields.includes(field.code) && (field.code === 'email' ? formMethods.register('email', {
252
+ required: isRequiredField(field.code) ? t('VALIDATION_ERROR_EMAIL_REQUIRED', 'The field Email is required').replace('_attribute_', t('EMAIL', 'Email')) : null,
253
+ pattern: {
254
+ value: /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,
255
+ message: t('INVALID_ERROR_EMAIL', 'Invalid email address').replace('_attribute_', t('EMAIL', 'Email'))
256
+ }
257
+ }) : formMethods.register(field.code, {
258
+ required: isRequiredField(field.code) ? t("VALIDATION_ERROR_".concat(field.code.toUpperCase(), "_REQUIRED"), "".concat(field.name, " is required")).replace('_attribute_', t(field.name, field.code)) : null
259
+ }));
260
+ });
261
+ }
262
+ }, [formMethods]);
263
+ (0, _react.useEffect)(function () {
264
+ Object.keys(signupData).map(function (fieldName) {
265
+ formMethods.setValue(fieldName, signupData[fieldName]);
266
+ });
267
+ }, [signupData]);
268
+ (0, _react.useEffect)(function () {
269
+ if (externalPhoneNumber) {
270
+ setUserPhoneNumber(externalPhoneNumber);
271
+ handleChangePhoneNumber(externalPhoneNumber, true);
272
+ }
273
+ }, [externalPhoneNumber]);
274
+ (0, _react.useEffect)(function () {
275
+ handleChangeInput({
276
+ target: {
277
+ name: 'level',
278
+ value: 4
279
+ }
280
+ });
281
+ }, []);
282
+ return /*#__PURE__*/_react.default.createElement(_styles.SignUpDriverContainer, {
283
+ bgImage: (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$general = _theme$images.general) === null || _theme$images$general === void 0 ? void 0 : _theme$images$general.driverSignUpBG
284
+ }, /*#__PURE__*/_react.default.createElement(_styles.SignupDescriptionContainer, null, /*#__PURE__*/_react.default.createElement(_styles.SignupDescriptionTitle, null, t('JOIN_OUR_FLEET_TODAY', 'Join our fleet today')), /*#__PURE__*/_react.default.createElement(_styles.SignupDescriptionContent, null, t('REGISTER_AS_NEW_DRIVER', 'Register as a new driver and start delivering asap. After registering, you’ll download a driver app for iOS or Android, the orders will get assigned to you, and the driver will guide you through the process.'))), /*#__PURE__*/_react.default.createElement(_styles.FormSide, null, /*#__PURE__*/_react.default.createElement(_styles.SignUpTitle, null, t('SIGN_UP_NOW', 'Sign up now')), /*#__PURE__*/_react.default.createElement(_styles.FormInput, {
285
+ noValidate: true,
286
+ isPopup: isPopup,
287
+ onSubmit: formMethods.handleSubmit(onSubmit),
288
+ isSkeleton: useChekoutFileds && (validationFields === null || validationFields === void 0 ? void 0 : validationFields.loading)
289
+ }, (_props$beforeMidEleme = props.beforeMidElements) === null || _props$beforeMidEleme === void 0 ? void 0 : _props$beforeMidEleme.map(function (BeforeMidElements, i) {
290
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
291
+ key: i
292
+ }, BeforeMidElements);
293
+ }), (_props$beforeMidCompo = props.beforeMidComponents) === null || _props$beforeMidCompo === void 0 ? void 0 : _props$beforeMidCompo.map(function (BeforeMidComponents, i) {
294
+ return /*#__PURE__*/_react.default.createElement(BeforeMidComponents, _extends({
295
+ key: i
296
+ }, props));
297
+ }), !(useChekoutFileds && validationFields !== null && validationFields !== void 0 && validationFields.loading) ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie12 = validationFields.fields) === null || _validationFields$fie12 === void 0 ? void 0 : _validationFields$fie12.checkout) && (0, _utils.sortInputFields)({
298
+ values: validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie13 = validationFields.fields) === null || _validationFields$fie13 === void 0 ? void 0 : _validationFields$fie13.checkout
299
+ }).map(function (field) {
300
+ return showField && showField(field.code) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
301
+ key: field.id
302
+ }, field.code === 'email' ? /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
303
+ type: field.type,
304
+ name: field.code,
305
+ "aria-label": field.code,
306
+ className: "form",
307
+ placeholder: t(field.code.toUpperCase(), field.name),
308
+ onChange: handleChangeInputEmail,
309
+ ref: function ref(e) {
310
+ emailInput.current = e;
311
+ },
312
+ required: !!field.required,
313
+ autoComplete: "off"
314
+ }) : /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
315
+ type: field.type,
316
+ name: field.code,
317
+ "aria-label": field.code,
318
+ className: "form",
319
+ placeholder: t(field.code.toUpperCase(), field.name),
320
+ onChange: handleChangeInput,
321
+ required: field.required,
322
+ autoComplete: "off"
323
+ }));
324
+ }), !!showInputPhoneNumber && /*#__PURE__*/_react.default.createElement(_styles.PhoneNumberWrapper, {
325
+ className: "formStyle"
326
+ }, /*#__PURE__*/_react.default.createElement(_InputPhoneNumber.InputPhoneNumber, {
327
+ value: userPhoneNumber,
328
+ setValue: handleChangePhoneNumber,
329
+ handleIsValid: setIsValidPhoneNumber
330
+ })), (!fieldsNotValid || fieldsNotValid && !fieldsNotValid.includes('password')) && /*#__PURE__*/_react.default.createElement(_styles.WrapperPassword, {
331
+ className: "formStyle"
332
+ }, /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
333
+ type: !passwordSee ? 'password' : 'text',
334
+ name: "password",
335
+ "aria-label": "password",
336
+ className: "form",
337
+ placeholder: t('PASSWORD', 'Password'),
338
+ onChange: handleChangeInput,
339
+ required: true,
340
+ ref: formMethods.register({
341
+ required: isRequiredField('password') ? t('VALIDATION_ERROR_PASSWORD_REQUIRED', 'The field Password is required').replace('_attribute_', t('PASSWORD', 'password')) : null,
342
+ minLength: {
343
+ value: 8,
344
+ message: t('VALIDATION_ERROR_PASSWORD_MIN_STRING', 'The Password must be at least 8 characters.').replace('_attribute_', t('PASSWORD', 'Password')).replace('_min_', 8)
345
+ }
346
+ })
347
+ }), /*#__PURE__*/_react.default.createElement(_styles.TogglePassword, {
348
+ onClick: togglePasswordView
349
+ }, !passwordSee ? /*#__PURE__*/_react.default.createElement(_AiOutlineEye.default, null) : /*#__PURE__*/_react.default.createElement(_AiOutlineEyeInvisible.default, null))), (_props$afterMidElemen = props.afterMidElements) === null || _props$afterMidElemen === void 0 ? void 0 : _props$afterMidElemen.map(function (MidElement, i) {
350
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
351
+ key: i
352
+ }, MidElement);
353
+ }), (_props$afterMidCompon = props.afterMidComponents) === null || _props$afterMidCompon === void 0 ? void 0 : _props$afterMidCompon.map(function (MidComponent, i) {
354
+ return /*#__PURE__*/_react.default.createElement(MidComponent, _extends({
355
+ key: i
356
+ }, props));
357
+ })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, _toConsumableArray(Array(5)).map(function (_, i) {
358
+ return /*#__PURE__*/_react.default.createElement(_styles.SkeletonWrapper, {
359
+ key: i
360
+ }, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
361
+ height: 43
362
+ }));
363
+ })), props.isRecaptchaEnable && enableReCaptcha && /*#__PURE__*/_react.default.createElement(_styles.ReCaptchaWrapper, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.ReCaptcha, {
364
+ handleReCaptcha: handleReCaptcha
365
+ })), (configs === null || configs === void 0 ? void 0 : (_configs$terms_and_co = configs.terms_and_conditions) === null || _configs$terms_and_co === void 0 ? void 0 : _configs$terms_and_co.value) === 'true' && /*#__PURE__*/_react.default.createElement(_styles.TermsConditionWrapper, null, /*#__PURE__*/_react.default.createElement(_Checkbox.Checkbox, {
366
+ name: "acceptTerms",
367
+ ref: formMethods.register({
368
+ required: t('ERROR_ACCEPT_TERMS', 'You must accept the Terms & Conditions.')
369
+ }),
370
+ id: "acceptTerms"
371
+ }), /*#__PURE__*/_react.default.createElement("label", {
372
+ htmlFor: "acceptTerms"
373
+ }, /*#__PURE__*/_react.default.createElement("span", null, t('TERMS_AND_CONDITIONS_TEXT', 'I’m agree with')), /*#__PURE__*/_react.default.createElement("a", {
374
+ href: configs === null || configs === void 0 ? void 0 : (_configs$terms_and_co2 = configs.terms_and_conditions_url) === null || _configs$terms_and_co2 === void 0 ? void 0 : _configs$terms_and_co2.value,
375
+ target: "_blank",
376
+ rel: "noopener noreferrer"
377
+ }, t('TERMS_AND_CONDITIONS', 'Terms & Conditions')))), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
378
+ color: "primary",
379
+ type: "submit",
380
+ className: "formButton",
381
+ disabled: formState.loading || (validationFields === null || validationFields === void 0 ? void 0 : validationFields.loading)
382
+ }, formState.loading ? "".concat(t('LOADING', 'Loading'), "...") : t('SUBMIT', 'Submit')))), /*#__PURE__*/_react.default.createElement(_Confirm.Alert, {
383
+ title: t('SIGN_UP_FOR_BUSINESS', 'Sign up for business'),
384
+ content: alertState.content,
385
+ acceptText: t('ACCEPT', 'Accept'),
386
+ open: alertState.open,
387
+ onClose: function onClose() {
388
+ return closeAlert();
389
+ },
390
+ onAccept: function onAccept() {
391
+ return closeAlert();
392
+ },
393
+ closeOnBackdrop: false
394
+ }));
395
+ };
396
+
397
+ var SignUpDriver = function SignUpDriver(props) {
398
+ var signUpDriverProps = _objectSpread(_objectSpread({}, props), {}, {
399
+ UIComponent: SignUpDriverUI
400
+ });
401
+
402
+ return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.SignupForm, signUpDriverProps);
403
+ };
404
+
405
+ exports.SignUpDriver = SignUpDriver;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.WrapperPassword = exports.TogglePassword = exports.TermsConditionWrapper = exports.SkeletonWrapper = exports.SignupDescriptionTitle = exports.SignupDescriptionContent = exports.SignupDescriptionContainer = exports.SignUpTitle = exports.SignUpDriverContainer = exports.ReCaptchaWrapper = exports.PhoneNumberWrapper = exports.FormSide = exports.FormInput = void 0;
9
+
10
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
+
12
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
13
+
14
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
+
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+
18
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
+
20
+ var SignUpDriverContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-direction: column-reverse;\n padding: 25px 30px 30px;\n\n > div {\n width: 100%;\n max-width: 580px;\n box-sizing: border-box;\n }\n\n @media (min-width: 993px) {\n flex-direction: row;\n align-items: center;\n padding: 120px 130px;\n > div {\n width: calc(50% - 12px);\n }\n }\n"])), function (_ref) {
21
+ var bgImage = _ref.bgImage;
22
+ return bgImage && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-image: url(", ");\n background-repeat: no-repeat;\n background-size: cover;\n object-fit: cover;\n background-position: center;\n "])), bgImage);
23
+ });
24
+
25
+ exports.SignUpDriverContainer = SignUpDriverContainer;
26
+
27
+ var SignupDescriptionContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-right: 0;\n margin-top: 45px;\n\n @media (min-width: 993px) {\n margin-right: 24px;\n margin-top: 0;\n }\n"])));
28
+
29
+ exports.SignupDescriptionContainer = SignupDescriptionContainer;
30
+
31
+ var SignupDescriptionTitle = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-style: normal;\n font-weight: 600;\n font-size: 28px;\n line-height: 60px;\n color: ", ";\n\n @media (min-width: 430px) {\n font-size: 37px;\n }\n\n @media (min-width: 1275px) {\n font-size: 48px;\n }\n"])), function (props) {
32
+ return props.theme.colors.colorTextSignForm;
33
+ });
34
+
35
+ exports.SignupDescriptionTitle = SignupDescriptionTitle;
36
+
37
+ var SignupDescriptionContent = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-top: 0;\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n line-height: 36px;\n color: ", ";\n\n @media (min-width: 430px) {\n font-size: 20px;\n }\n\n @media (min-width: 993px) {\n margin-top: 15px;\n }\n\n @media (min-width: 1275px) {\n font-size: 24px;\n }\n"])), function (props) {
38
+ return props.theme.colors.colorTextSignForm;
39
+ });
40
+
41
+ exports.SignupDescriptionContent = SignupDescriptionContent;
42
+
43
+ var FormInput = _styledComponents.default.form(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: 100%;\n display: flex;\n flex-direction: column;\n\n div.phone_number {\n margin: 10px 0px;\n width: 100%;\n }\n\n input.form:not(:last-child) {\n margin: 10px 0px;\n padding: 8px 20px;\n }\n\n button {\n margin-top: 10px;\n padding: 5px;\n }\n\n > input {\n font-size: 20px;\n box-shadow: 0px 8px 35px rgba(0, 0, 0, 0.16);\n }\n \n > .formStyle {\n & > .phone_number {\n border-radius: 7.6px;\n font-size: 20px;\n box-shadow: 0px 8px 35px rgba(0, 0, 0, 0.16);\n }\n & > input {\n border-radius: 7.6px;\n font-size: 20px;\n box-shadow: 0px 8px 35px rgba(0, 0, 0, 0.16);\n }\n }\n\n > .formButton {\n width: 128px;\n padding: 15px 0;\n font-style: normal;\n font-weight: 600;\n font-size: 24px;\n line-height: 30px;\n }\n"])));
44
+
45
+ exports.FormInput = FormInput;
46
+
47
+ var PhoneNumberWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n .PhoneInput {\n border: 1px solid #DEE2E6;\n box-sizing: border-box;\n border-radius: 7.6px;\n background: white;\n\n .PhoneInputCountry {\n padding-left: 20px;\n ", "\n }\n\n input {\n border: none;\n }\n }\n"])), function (props) {
48
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n padding-left: 0;\n padding-right: 20px;\n "])));
49
+ });
50
+
51
+ exports.PhoneNumberWrapper = PhoneNumberWrapper;
52
+
53
+ var ReCaptchaWrapper = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n margin: 12px auto;\n"])));
54
+
55
+ exports.ReCaptchaWrapper = ReCaptchaWrapper;
56
+
57
+ var WrapperPassword = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n position: relative;\n width: 100%;\n input{\n box-sizing: border-box;\n width: 100%;\n padding-right: 40px;\n }\n"])));
58
+
59
+ exports.WrapperPassword = WrapperPassword;
60
+
61
+ var TogglePassword = _styledComponents.default.span(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n position: absolute;\n font-weight: 300;\n padding: 10px 0;\n color: #333;\n font-size: 26px;\n transform: translate(-150%, 10%);\n max-height: 100%;\n ", "\n span{\n cursor: pointer;\n }\n"])), function (props) {
62
+ var _props$theme;
63
+
64
+ return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n transform: translate(150%, 10%);\n "])));
65
+ });
66
+
67
+ exports.TogglePassword = TogglePassword;
68
+
69
+ var TermsConditionWrapper = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: 10px 0;\n\n > label {\n font-size: 14px;\n ", "\n\n > span:first-child {\n font-weight: 500;\n ", "\n }\n\n > a {\n color: ", " !important;\n }\n }\n\n @media (min-width: 768px) {\n > label {\n font-size: 16px;\n }\n }\n"])), function (props) {
70
+ var _props$theme2;
71
+
72
+ return (_props$theme2 = props.theme) !== null && _props$theme2 !== void 0 && _props$theme2.rtl ? (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n margin-right: 20px;\n "]))) : (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-left: 20px;\n "])));
73
+ }, function (props) {
74
+ var _props$theme3;
75
+
76
+ return (_props$theme3 = props.theme) !== null && _props$theme3 !== void 0 && _props$theme3.rtl ? (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n margin-left: 7px;\n "]))) : (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n margin-right: 7px;\n "])));
77
+ }, function (props) {
78
+ return props.theme.colors.primary;
79
+ });
80
+
81
+ exports.TermsConditionWrapper = TermsConditionWrapper;
82
+
83
+ var SkeletonWrapper = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n span{\n margin: 10px 0;\n border-radius: 7.6px;\n }\n"])));
84
+
85
+ exports.SkeletonWrapper = SkeletonWrapper;
86
+
87
+ var FormSide = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n background-color: ", ";\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);\n border-radius: 31px;\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n margin: auto;\n padding: 25px 30px 25px;\n\n > h1 {\n width: 100%;\n margin-bottom: 25px;\n margin-top: 15;\n font-weight: 500;\n font-size: 24px;\n }\n\n @media (min-width: 769px) {\n padding: 42px 58px 65px;\n ", "\n }\n\n @media (min-width: 992px) {\n width: 45%;\n font-size: ", ";\n }\n\n @media (min-width: 1200px){\n font-size: ", ";\n }\n"])), function (props) {
88
+ return props.theme.colors.colorTextSignForm;
89
+ }, function (_ref2) {
90
+ var isPopup = _ref2.isPopup;
91
+ return isPopup && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin: 20px 0px;\n "])));
92
+ }, function (_ref3) {
93
+ var isPopup = _ref3.isPopup;
94
+ return isPopup ? '12px' : '1em';
95
+ }, function (_ref4) {
96
+ var isPopup = _ref4.isPopup;
97
+ return isPopup ? '0.9em' : '1em';
98
+ });
99
+
100
+ exports.FormSide = FormSide;
101
+
102
+ var SignUpTitle = _styledComponents.default.h1(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n margin-top: 0;\n margin-bottom: 10px !important;\n font-style: normal;\n font-weight: 600;\n font-size: 36px;\n line-height: 65px;\n color: ", ";\n"])), function (props) {
103
+ return props.theme.colors.black;
104
+ });
105
+
106
+ exports.SignUpTitle = SignUpTitle;