@experium/findy-form 1.2.30 → 1.2.35
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/dist/app.js +11 -11
- package/lib/components/Fields.js +1 -1
- package/lib/components/Form.js +4 -2
- package/lib/components/formComponents/Select.js +1 -1
- package/lib/constants/translations.js +35 -26
- package/lib/styles/index.css +1 -6
- package/lib/utils/errors.js +14 -0
- package/package.json +1 -1
- package/src/components/Fields.js +3 -1
- package/src/components/Form.js +4 -3
- package/src/components/formComponents/PersonalDataAgreement.js +0 -3
- package/src/components/formComponents/Select.js +1 -1
- package/src/constants/translations.js +35 -26
- package/src/styles/index.css +1 -6
- package/src/utils/errors.js +7 -0
package/lib/components/Fields.js
CHANGED
|
@@ -143,7 +143,7 @@ var getFieldComponent = function getFieldComponent(field, components) {
|
|
|
143
143
|
dictionary: (0, _ramda.prop)('checkboxes', settings) ? (0, _ramda.prop)('multiple', settings) ? _Checkbox["default"] : _Radio["default"] : _Select["default"],
|
|
144
144
|
phone: _MaskedInput.PhoneInput,
|
|
145
145
|
"boolean": _Checkbox.Boolean,
|
|
146
|
-
choice: _Select["default"],
|
|
146
|
+
choice: (0, _ramda.prop)('checkboxes', settings) ? (0, _ramda.prop)('multiple', settings) ? _Checkbox["default"] : _Radio["default"] : _Select["default"],
|
|
147
147
|
country: _Select.LocationSelect,
|
|
148
148
|
region: _Select.LocationSelect,
|
|
149
149
|
city: _Select.LocationSelect,
|
package/lib/components/Form.js
CHANGED
|
@@ -45,6 +45,8 @@ var _questions = require("../utils/questions");
|
|
|
45
45
|
|
|
46
46
|
var _attrs = require("../utils/attrs");
|
|
47
47
|
|
|
48
|
+
var _errors = require("../utils/errors");
|
|
49
|
+
|
|
48
50
|
var _CompanyDictionary = require("../context/CompanyDictionary");
|
|
49
51
|
|
|
50
52
|
var _FormContext = require("../context/FormContext");
|
|
@@ -389,7 +391,7 @@ var Form = /*#__PURE__*/function (_Component) {
|
|
|
389
391
|
},
|
|
390
392
|
language: language,
|
|
391
393
|
options: captchaOptions,
|
|
392
|
-
invalidCaptcha:
|
|
394
|
+
invalidCaptcha: (0, _errors.isError)('Invalid captcha', serverErrors)
|
|
393
395
|
}), /*#__PURE__*/_react["default"].createElement(_reactFinalForm.Field, {
|
|
394
396
|
name: "personalDataAgreement",
|
|
395
397
|
subscription: {
|
|
@@ -404,7 +406,7 @@ var Form = /*#__PURE__*/function (_Component) {
|
|
|
404
406
|
}, (0, _attrs.getAttrs)('submit', htmlAttrs)), submitted && /*#__PURE__*/_react["default"].createElement(_Spinner["default"], null), /*#__PURE__*/_react["default"].createElement("span", {
|
|
405
407
|
className: "button-text"
|
|
406
408
|
}, t('send')));
|
|
407
|
-
}))), (0,
|
|
409
|
+
}))), (0, _errors.isError)('Access to applicant create restricted for current company license', serverErrors) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
408
410
|
style: {
|
|
409
411
|
marginTop: 15
|
|
410
412
|
},
|
|
@@ -99,7 +99,8 @@ var TRANSLATIONS = {
|
|
|
99
99
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
100
100
|
},
|
|
101
101
|
'invalidCaptcha': 'Invalid captcha',
|
|
102
|
-
'licenseError': 'The maximum number of responses has been reached for test access. Contact the Sales Department of Geliosoft LLC and the contacts of the sales department (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Moscow time), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
102
|
+
'licenseError': 'The maximum number of responses has been reached for test access. Contact the Sales Department of Geliosoft LLC and the contacts of the sales department (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Moscow time), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
103
|
+
'licenseExpired': 'The test access period "30 days" has expired. Contact the Sales Department of "Heliosoft" LLC and the contacts of the sales department (<a href="mailto:help@findy.ru"> help@findy.ru </a>, <a href="tel:+74957836603"> +7 (495) 783-66-03 </a> (9:00-18:00 Moscow time), <a href="tel: +79150216424"> + 7 (915) 021-64-24 </a>)'
|
|
103
104
|
}
|
|
104
105
|
},
|
|
105
106
|
ru: {
|
|
@@ -195,7 +196,8 @@ var TRANSLATIONS = {
|
|
|
195
196
|
'incorrectBirthDate': 'Дата не может быть меньше даты рождения'
|
|
196
197
|
},
|
|
197
198
|
'invalidCaptcha': 'Неверно введена капча',
|
|
198
|
-
'licenseError': 'В рамках тестового доступа достигнуто максимальное количество откликов. Обратитесь в Отдел продаж ООО "Гелиософт" и контакты отдела продаж (<a href=\"mailto:help@findy.ru\">help@findy.ru</a>, <a href=\"tel:+74957836603\">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href=\"tel:+79150216424\">+7 (915) 021-64-24</a>)'
|
|
199
|
+
'licenseError': 'В рамках тестового доступа достигнуто максимальное количество откликов. Обратитесь в Отдел продаж ООО "Гелиософт" и контакты отдела продаж (<a href=\"mailto:help@findy.ru\">help@findy.ru</a>, <a href=\"tel:+74957836603\">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href=\"tel:+79150216424\">+7 (915) 021-64-24</a>)',
|
|
200
|
+
'licenseExpired': 'Срок тестового доступа "30 дней" завершен. Обратитесь в Отдел продаж ООО "Гелиософт" и контакты отдела продаж (<a href="mailto:help@findy.ru">help@findy.ru</a>, <a href="tel:+74957836603">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href="tel:+79150216424">+7 (915) 021-64-24</a>)'
|
|
199
201
|
}
|
|
200
202
|
},
|
|
201
203
|
ua: {
|
|
@@ -291,7 +293,8 @@ var TRANSLATIONS = {
|
|
|
291
293
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
292
294
|
},
|
|
293
295
|
'invalidCaptcha': 'Невірно введена капча',
|
|
294
|
-
'licenseError': 'В рамках тестового доступу досягнуто максимальну кількість відгуків. Зверніться до Відділу продажу ТОВ "Геліософт" і контакти відділу продажів (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 за київським часом), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
296
|
+
'licenseError': 'В рамках тестового доступу досягнуто максимальну кількість відгуків. Зверніться до Відділу продажу ТОВ "Геліософт" і контакти відділу продажів (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 за київським часом), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
297
|
+
'licenseExpired': 'Термін тестового доступу "30 днів" завершено. Зверніться до Відділу продаж ТОВ "Геліософт" (<a href="mailto:help@findy.ru">help@findy.ru</a>, <a href="tel:+74957836603">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href="tel:+79150216424">+7 (915) 021-64-24</a>)'
|
|
295
298
|
}
|
|
296
299
|
},
|
|
297
300
|
et: {
|
|
@@ -386,21 +389,22 @@ var TRANSLATIONS = {
|
|
|
386
389
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
387
390
|
},
|
|
388
391
|
'invalidCaptcha': 'Sisestati sobimatu captcha',
|
|
389
|
-
'licenseError': 'Testjuurdepääsuks on saavutatud maksimaalne vastuste arv. Võtke ühendust Heliosoft LLC müügiosakonnaga ja müügiosakonna kontaktidega (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00
|
|
392
|
+
'licenseError': 'Testjuurdepääsuks on saavutatud maksimaalne vastuste arv. Võtke ühendust Heliosoft LLC müügiosakonnaga ja müügiosakonna kontaktidega (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 MSK), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24</a>)',
|
|
393
|
+
'licenseExpired': 'Testjuurdepääsu periood "30 päeva" on möödas. Võtke ühendust "Heliosoft" LLC müügiosakonnaga ja müügiosakonna kontaktidega (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 MSK), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24</a>)'
|
|
390
394
|
}
|
|
391
395
|
},
|
|
392
396
|
lt: {
|
|
393
397
|
translation: {
|
|
394
|
-
'send': '
|
|
398
|
+
'send': 'Pateikti',
|
|
395
399
|
'addQuestionBlock': 'Pievienot',
|
|
396
|
-
'remove': '
|
|
400
|
+
'remove': 'Pašalinti',
|
|
397
401
|
'optional': ' (neobligāti)',
|
|
398
402
|
'cancel': 'Atcelt',
|
|
399
403
|
'save': 'Saglabāt',
|
|
400
404
|
'stopRecording': 'Pārtraukt ierakstīšanu',
|
|
401
405
|
'startRecording': 'Sākt ierakstīšanu',
|
|
402
|
-
'upload': '
|
|
403
|
-
'download': '
|
|
406
|
+
'upload': 'Įkelti',
|
|
407
|
+
'download': 'Parsisiųsti',
|
|
404
408
|
'recordAudio': 'Ierakstīt audio',
|
|
405
409
|
'recordVideo': 'Ierakstīt video',
|
|
406
410
|
'takePhoto': 'Uzņemt attēlu',
|
|
@@ -411,40 +415,40 @@ var TRANSLATIONS = {
|
|
|
411
415
|
'opdOffertaLink': 'publiskais piedāvājums',
|
|
412
416
|
'MONTHS': [{
|
|
413
417
|
value: 1,
|
|
414
|
-
label: '
|
|
418
|
+
label: 'Sausis'
|
|
415
419
|
}, {
|
|
416
420
|
value: 2,
|
|
417
|
-
label: '
|
|
421
|
+
label: 'Vasaris'
|
|
418
422
|
}, {
|
|
419
423
|
value: 3,
|
|
420
|
-
label: '
|
|
424
|
+
label: 'Kovas'
|
|
421
425
|
}, {
|
|
422
426
|
value: 4,
|
|
423
|
-
label: '
|
|
427
|
+
label: 'Balandis'
|
|
424
428
|
}, {
|
|
425
429
|
value: 5,
|
|
426
|
-
label: '
|
|
430
|
+
label: 'Gegužė'
|
|
427
431
|
}, {
|
|
428
432
|
value: 6,
|
|
429
|
-
label: '
|
|
433
|
+
label: 'Birželis'
|
|
430
434
|
}, {
|
|
431
435
|
value: 7,
|
|
432
|
-
label: '
|
|
436
|
+
label: 'Liepa'
|
|
433
437
|
}, {
|
|
434
438
|
value: 8,
|
|
435
|
-
label: '
|
|
439
|
+
label: 'Rugpjūtis'
|
|
436
440
|
}, {
|
|
437
441
|
value: 9,
|
|
438
|
-
label: '
|
|
442
|
+
label: 'Rugsėjis'
|
|
439
443
|
}, {
|
|
440
444
|
value: 10,
|
|
441
|
-
label: '
|
|
445
|
+
label: 'Spalis'
|
|
442
446
|
}, {
|
|
443
447
|
value: 11,
|
|
444
|
-
label: '
|
|
448
|
+
label: 'Lapkritis'
|
|
445
449
|
}, {
|
|
446
450
|
value: 12,
|
|
447
|
-
label: '
|
|
451
|
+
label: 'Gruodis'
|
|
448
452
|
}],
|
|
449
453
|
'loading': 'Notiek ielāde...',
|
|
450
454
|
'noOptionsMessage': 'Nav datu',
|
|
@@ -453,7 +457,7 @@ var TRANSLATIONS = {
|
|
|
453
457
|
'datePicker': {
|
|
454
458
|
'day': 'Diena',
|
|
455
459
|
'month': 'Mēnesis',
|
|
456
|
-
'year': '
|
|
460
|
+
'year': 'Metai'
|
|
457
461
|
},
|
|
458
462
|
'salaryCurrency': 'Atlasiet valūtu...'
|
|
459
463
|
},
|
|
@@ -481,7 +485,8 @@ var TRANSLATIONS = {
|
|
|
481
485
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
482
486
|
},
|
|
483
487
|
'invalidCaptcha': 'Ievadīta nederīga captcha',
|
|
484
|
-
'licenseError': 'Testa piekļūšanai ir sasniegts maksimālais atbilžu skaits. Sazinieties ar Heliosoft LLC pārdošanas nodaļu un pārdošanas nodaļas kontaktpersonām (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 pēc Maskavas laika), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)'
|
|
488
|
+
'licenseError': 'Testa piekļūšanai ir sasniegts maksimālais atbilžu skaits. Sazinieties ar Heliosoft LLC pārdošanas nodaļu un pārdošanas nodaļas kontaktpersonām (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 pēc Maskavas laika), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)',
|
|
489
|
+
'licenseExpired': 'Bandymo prieigos laikotarpis „30 dienų“ baigėsi. Susisiekite su „Heliosoft“ LLC pardavimų skyriumi ir pardavimo skyriaus kontaktais (<a href="mailto:help@findy.ru"> help@findy.ru </a>, <a href = "tel: +74957836603 "> +7 (495) 783-66-03 </a> (9:00-18:00 Maskvos laiku), <a href="tel: +79150216424"> + 7 (915) 021-64-24 < /a>)'
|
|
485
490
|
}
|
|
486
491
|
},
|
|
487
492
|
lv: {
|
|
@@ -576,7 +581,8 @@ var TRANSLATIONS = {
|
|
|
576
581
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
577
582
|
},
|
|
578
583
|
'invalidCaptcha': 'Įvesta netinkama captcha',
|
|
579
|
-
'licenseError': 'Pasiektas maksimalus bandymų prieigos atsakymų skaičius. Susisiekite su „Heliosoft LLC“ pardavimo skyriumi ir pardavimo skyriaus kontaktais (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Maskvos laiku), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)'
|
|
584
|
+
'licenseError': 'Pasiektas maksimalus bandymų prieigos atsakymų skaičius. Susisiekite su „Heliosoft LLC“ pardavimo skyriumi ir pardavimo skyriaus kontaktais (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Maskvos laiku), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)',
|
|
585
|
+
'licenseExpired': 'Pārbaudes piekļuves periods "30 dienas" ir beidzies. Sazinieties ar "Heliosoft" LLC Pārdošanas Nodaļu un pārdošanas nodaļas kontaktiem (<a href="mailto:help@findy.ru"> help@findy.ru </a>, <a href="tel:+74957836603"> +7 (495) 783-66-03 </a> (9:00-18:00 Maskavas laiks), <a href="tel: +79150216424"> + 7 (915) 021-64-24 </a>) '
|
|
580
586
|
}
|
|
581
587
|
},
|
|
582
588
|
kz: {
|
|
@@ -672,7 +678,8 @@ var TRANSLATIONS = {
|
|
|
672
678
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
673
679
|
},
|
|
674
680
|
'invalidCaptcha': 'Жарамсыз captcha енгізілді',
|
|
675
|
-
'licenseError': 'Тестке кіру үшін жауаптардың максималды санына жетті. Heliosoft LLC сату бөліміне және сату бөлімінің байланыстарына хабарласыңыз (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (Мәскеу уақытымен 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
681
|
+
'licenseError': 'Тестке кіру үшін жауаптардың максималды санына жетті. Heliosoft LLC сату бөліміне және сату бөлімінің байланыстарына хабарласыңыз (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (Мәскеу уақытымен 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
682
|
+
'licenseExpired': ''
|
|
676
683
|
}
|
|
677
684
|
},
|
|
678
685
|
th: {
|
|
@@ -768,7 +775,8 @@ var TRANSLATIONS = {
|
|
|
768
775
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
769
776
|
},
|
|
770
777
|
'validCaptcha': 'ป้อน captcha ไม่ถูกต้อง',
|
|
771
|
-
'licenseError': 'มีการตอบกลับถึงจำนวนสูงสุดสำหรับการเข้าถึงการทดสอบแล้ว ติดต่อฝ่ายขายของ Heliosoft LLC และผู้ติดต่อของฝ่ายขาย (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 น. เวลามอสโก), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
778
|
+
'licenseError': 'มีการตอบกลับถึงจำนวนสูงสุดสำหรับการเข้าถึงการทดสอบแล้ว ติดต่อฝ่ายขายของ Heliosoft LLC และผู้ติดต่อของฝ่ายขาย (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 น. เวลามอสโก), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
779
|
+
'licenseExpired': ''
|
|
772
780
|
}
|
|
773
781
|
},
|
|
774
782
|
uz: {
|
|
@@ -864,7 +872,8 @@ var TRANSLATIONS = {
|
|
|
864
872
|
'incorrectBirthDate': 'Date cant be earlier then birth date'
|
|
865
873
|
},
|
|
866
874
|
'invalidCaptcha': "Noto'g'ri captcha kiritildi",
|
|
867
|
-
'licenseError': 'Testlarga kirish uchun maksimal javoblar soniga erishildi. "Heliosoft" MChJ savdo bo\'limi va savdo bo\'limi bilan bog\'laning (< ahref=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+ 74957836603\"> +7 (495) 783-66-03 </a> (Moskva vaqti bilan 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>)'
|
|
875
|
+
'licenseError': 'Testlarga kirish uchun maksimal javoblar soniga erishildi. "Heliosoft" MChJ savdo bo\'limi va savdo bo\'limi bilan bog\'laning (< ahref=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+ 74957836603\"> +7 (495) 783-66-03 </a> (Moskva vaqti bilan 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>)',
|
|
876
|
+
'licenseExpired': ''
|
|
868
877
|
}
|
|
869
878
|
}
|
|
870
879
|
};
|
package/lib/styles/index.css
CHANGED
|
@@ -371,11 +371,6 @@
|
|
|
371
371
|
box-sizing: content-box;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
.radio-wrapper .rc-checkbox-inner:after {
|
|
375
|
-
margin-top: -1px;
|
|
376
|
-
margin-left: -1px;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
374
|
.radio-wrapper .rc-checkbox-inner {
|
|
380
375
|
border-radius: 50%;
|
|
381
376
|
}
|
|
@@ -420,7 +415,7 @@ body .rc-checkbox:hover .rc-checkbox-inner, body .rc-checkbox-input:focus + .rc-
|
|
|
420
415
|
border-color: #3a70ba;
|
|
421
416
|
}
|
|
422
417
|
|
|
423
|
-
.checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
|
|
418
|
+
.pda-modal .checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
|
|
424
419
|
left: 4px;
|
|
425
420
|
top: 1px;
|
|
426
421
|
width: 4px;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isError = void 0;
|
|
7
|
+
|
|
8
|
+
var _ramda = require("ramda");
|
|
9
|
+
|
|
10
|
+
var isError = function isError(error, serverErrors) {
|
|
11
|
+
return !!(0, _ramda.pathEq)(['graphQLErrors', 0, 'message'], error, serverErrors) || !!(0, _ramda.pathEq)(['data', 'message'], error, serverErrors) || !!(0, _ramda.pathEq)(['message'], error, serverErrors);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.isError = isError;
|
package/package.json
CHANGED
package/src/components/Fields.js
CHANGED
|
@@ -47,7 +47,9 @@ const getFieldComponent = (field, components) => {
|
|
|
47
47
|
) : Select,
|
|
48
48
|
phone: PhoneInput,
|
|
49
49
|
boolean: Boolean,
|
|
50
|
-
choice:
|
|
50
|
+
choice: prop('checkboxes', settings) ? (
|
|
51
|
+
prop('multiple', settings) ? Checkbox : Radio
|
|
52
|
+
) : Select,
|
|
51
53
|
country: LocationSelect,
|
|
52
54
|
region: LocationSelect,
|
|
53
55
|
city: LocationSelect,
|
package/src/components/Form.js
CHANGED
|
@@ -5,7 +5,7 @@ import i18n from '../utils/i18n';
|
|
|
5
5
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import { Form as FinalFormForm, Field, FormSpy } from 'react-final-form';
|
|
8
|
-
import { pathOr, prop, equals, isEmpty, forEach, path, includes, assocPath
|
|
8
|
+
import { pathOr, prop, equals, isEmpty, forEach, path, includes, assocPath } from 'ramda';
|
|
9
9
|
import arrayMutators from 'final-form-arrays';
|
|
10
10
|
import { withTranslation } from 'react-i18next';
|
|
11
11
|
import cx from 'classnames';
|
|
@@ -16,6 +16,7 @@ import styles from '../styles/index.module.css';
|
|
|
16
16
|
import { RU } from '../constants/translations';
|
|
17
17
|
import { isLinkedQuestion, findChildGeoQuestionsNames } from '../utils/questions';
|
|
18
18
|
import { getAttrs } from '../utils/attrs';
|
|
19
|
+
import { isError } from '../utils/errors';
|
|
19
20
|
import { CompanyDictionaryContext } from '../context/CompanyDictionary';
|
|
20
21
|
import { FormContext } from '../context/FormContext';
|
|
21
22
|
import Fields from './Fields';
|
|
@@ -280,7 +281,7 @@ class Form extends Component {
|
|
|
280
281
|
validate={value => value ? undefined : i18n.t('errors.captchaRequired')}
|
|
281
282
|
language={language}
|
|
282
283
|
options={captchaOptions}
|
|
283
|
-
invalidCaptcha={
|
|
284
|
+
invalidCaptcha={isError('Invalid captcha', serverErrors)} />
|
|
284
285
|
}
|
|
285
286
|
<Field name='personalDataAgreement' subscription={{ value: true }}>
|
|
286
287
|
{({ input: { value } }) => (
|
|
@@ -299,7 +300,7 @@ class Form extends Component {
|
|
|
299
300
|
</Field>
|
|
300
301
|
</div>
|
|
301
302
|
</FormContext.Provider>
|
|
302
|
-
{
|
|
303
|
+
{ isError('Access to applicant create restricted for current company license', serverErrors) &&
|
|
303
304
|
<div style={{ marginTop: 15 }} className={styles.error} dangerouslySetInnerHTML={{ __html: t('licenseError') }} />
|
|
304
305
|
}
|
|
305
306
|
</form>;
|
|
@@ -4,9 +4,6 @@ import { withTranslation } from 'react-i18next';
|
|
|
4
4
|
import { FormSpy } from 'react-final-form';
|
|
5
5
|
import { filter, find, map, path, pathOr, prop, propEq, pick } from 'ramda';
|
|
6
6
|
|
|
7
|
-
import 'rc-checkbox/assets/index.css';
|
|
8
|
-
import 'react-responsive-modal/styles.css';
|
|
9
|
-
|
|
10
7
|
import { Checkbox } from './Checkbox';
|
|
11
8
|
import styles from '../../styles/index.module.css';
|
|
12
9
|
import HtmlOpdForm, { HtmlOpdFormClear } from './HtmlOpdForm';
|
|
@@ -166,7 +166,7 @@ class Select extends Component {
|
|
|
166
166
|
options={options}
|
|
167
167
|
mode={multiple ? 'multiple' : 'single'}
|
|
168
168
|
{...(isError ? { open: false } : {})}
|
|
169
|
-
virtual
|
|
169
|
+
virtual={false}
|
|
170
170
|
allowClear
|
|
171
171
|
showArrow
|
|
172
172
|
getPopupContainer={() => this.selectContainer.current}
|
|
@@ -69,7 +69,8 @@ export const TRANSLATIONS = {
|
|
|
69
69
|
'incorrectBirthDate': 'Date cant be earlier then birth date',
|
|
70
70
|
},
|
|
71
71
|
'invalidCaptcha': 'Invalid captcha',
|
|
72
|
-
'licenseError': 'The maximum number of responses has been reached for test access. Contact the Sales Department of Geliosoft LLC and the contacts of the sales department (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Moscow time), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
72
|
+
'licenseError': 'The maximum number of responses has been reached for test access. Contact the Sales Department of Geliosoft LLC and the contacts of the sales department (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Moscow time), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
73
|
+
'licenseExpired': 'The test access period "30 days" has expired. Contact the Sales Department of "Heliosoft" LLC and the contacts of the sales department (<a href="mailto:help@findy.ru"> help@findy.ru </a>, <a href="tel:+74957836603"> +7 (495) 783-66-03 </a> (9:00-18:00 Moscow time), <a href="tel: +79150216424"> + 7 (915) 021-64-24 </a>)',
|
|
73
74
|
},
|
|
74
75
|
},
|
|
75
76
|
ru: {
|
|
@@ -142,7 +143,8 @@ export const TRANSLATIONS = {
|
|
|
142
143
|
'incorrectBirthDate': 'Дата не может быть меньше даты рождения',
|
|
143
144
|
},
|
|
144
145
|
'invalidCaptcha': 'Неверно введена капча',
|
|
145
|
-
'licenseError': 'В рамках тестового доступа достигнуто максимальное количество откликов. Обратитесь в Отдел продаж ООО "Гелиософт" и контакты отдела продаж (<a href=\"mailto:help@findy.ru\">help@findy.ru</a>, <a href=\"tel:+74957836603\">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href=\"tel:+79150216424\">+7 (915) 021-64-24</a>)'
|
|
146
|
+
'licenseError': 'В рамках тестового доступа достигнуто максимальное количество откликов. Обратитесь в Отдел продаж ООО "Гелиософт" и контакты отдела продаж (<a href=\"mailto:help@findy.ru\">help@findy.ru</a>, <a href=\"tel:+74957836603\">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href=\"tel:+79150216424\">+7 (915) 021-64-24</a>)',
|
|
147
|
+
'licenseExpired': 'Срок тестового доступа "30 дней" завершен. Обратитесь в Отдел продаж ООО "Гелиософт" и контакты отдела продаж (<a href="mailto:help@findy.ru">help@findy.ru</a>, <a href="tel:+74957836603">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href="tel:+79150216424">+7 (915) 021-64-24</a>)',
|
|
146
148
|
},
|
|
147
149
|
},
|
|
148
150
|
ua: {
|
|
@@ -215,7 +217,8 @@ export const TRANSLATIONS = {
|
|
|
215
217
|
'incorrectBirthDate': 'Date cant be earlier then birth date',
|
|
216
218
|
},
|
|
217
219
|
'invalidCaptcha': 'Невірно введена капча',
|
|
218
|
-
'licenseError': 'В рамках тестового доступу досягнуто максимальну кількість відгуків. Зверніться до Відділу продажу ТОВ "Геліософт" і контакти відділу продажів (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 за київським часом), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
220
|
+
'licenseError': 'В рамках тестового доступу досягнуто максимальну кількість відгуків. Зверніться до Відділу продажу ТОВ "Геліософт" і контакти відділу продажів (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 за київським часом), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
221
|
+
'licenseExpired': 'Термін тестового доступу "30 днів" завершено. Зверніться до Відділу продаж ТОВ "Геліософт" (<a href="mailto:help@findy.ru">help@findy.ru</a>, <a href="tel:+74957836603">+7 (495) 783-66-03</a> (9:00-18:00 МСК), <a href="tel:+79150216424">+7 (915) 021-64-24</a>)',
|
|
219
222
|
},
|
|
220
223
|
},
|
|
221
224
|
et: {
|
|
@@ -287,21 +290,22 @@ export const TRANSLATIONS = {
|
|
|
287
290
|
'incorrectBirthDate': 'Date cant be earlier then birth date',
|
|
288
291
|
},
|
|
289
292
|
'invalidCaptcha': 'Sisestati sobimatu captcha',
|
|
290
|
-
'licenseError': 'Testjuurdepääsuks on saavutatud maksimaalne vastuste arv. Võtke ühendust Heliosoft LLC müügiosakonnaga ja müügiosakonna kontaktidega (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00
|
|
293
|
+
'licenseError': 'Testjuurdepääsuks on saavutatud maksimaalne vastuste arv. Võtke ühendust Heliosoft LLC müügiosakonnaga ja müügiosakonna kontaktidega (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 MSK), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24</a>)',
|
|
294
|
+
'licenseExpired': 'Testjuurdepääsu periood "30 päeva" on möödas. Võtke ühendust "Heliosoft" LLC müügiosakonnaga ja müügiosakonna kontaktidega (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 MSK), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24</a>)',
|
|
291
295
|
},
|
|
292
296
|
},
|
|
293
297
|
lt: {
|
|
294
298
|
translation: {
|
|
295
|
-
'send': '
|
|
299
|
+
'send': 'Pateikti',
|
|
296
300
|
'addQuestionBlock': 'Pievienot',
|
|
297
|
-
'remove': '
|
|
301
|
+
'remove': 'Pašalinti',
|
|
298
302
|
'optional': ' (neobligāti)',
|
|
299
303
|
'cancel': 'Atcelt',
|
|
300
304
|
'save': 'Saglabāt',
|
|
301
305
|
'stopRecording': 'Pārtraukt ierakstīšanu',
|
|
302
306
|
'startRecording': 'Sākt ierakstīšanu',
|
|
303
|
-
'upload': '
|
|
304
|
-
'download': '
|
|
307
|
+
'upload': 'Įkelti',
|
|
308
|
+
'download': 'Parsisiųsti',
|
|
305
309
|
'recordAudio': 'Ierakstīt audio',
|
|
306
310
|
'recordVideo': 'Ierakstīt video',
|
|
307
311
|
'takePhoto': 'Uzņemt attēlu',
|
|
@@ -311,18 +315,18 @@ export const TRANSLATIONS = {
|
|
|
311
315
|
'opdOffertaLabel': 'Es piekrītu noteikumiem',
|
|
312
316
|
'opdOffertaLink': 'publiskais piedāvājums',
|
|
313
317
|
'MONTHS': [
|
|
314
|
-
{ value: 1, label: '
|
|
315
|
-
{ value: 2, label: '
|
|
316
|
-
{ value: 3, label: '
|
|
317
|
-
{ value: 4, label: '
|
|
318
|
-
{ value: 5, label: '
|
|
319
|
-
{ value: 6, label: '
|
|
320
|
-
{ value: 7, label: '
|
|
321
|
-
{ value: 8, label: '
|
|
322
|
-
{ value: 9, label: '
|
|
323
|
-
{ value: 10, label: '
|
|
324
|
-
{ value: 11, label: '
|
|
325
|
-
{ value: 12, label: '
|
|
318
|
+
{ value: 1, label: 'Sausis' },
|
|
319
|
+
{ value: 2, label: 'Vasaris' },
|
|
320
|
+
{ value: 3, label: 'Kovas' },
|
|
321
|
+
{ value: 4, label: 'Balandis' },
|
|
322
|
+
{ value: 5, label: 'Gegužė' },
|
|
323
|
+
{ value: 6, label: 'Birželis' },
|
|
324
|
+
{ value: 7, label: 'Liepa' },
|
|
325
|
+
{ value: 8, label: 'Rugpjūtis' },
|
|
326
|
+
{ value: 9, label: 'Rugsėjis' },
|
|
327
|
+
{ value: 10, label: 'Spalis' },
|
|
328
|
+
{ value: 11, label: 'Lapkritis' },
|
|
329
|
+
{ value: 12, label: 'Gruodis' }
|
|
326
330
|
],
|
|
327
331
|
'loading': 'Notiek ielāde...',
|
|
328
332
|
'noOptionsMessage': 'Nav datu',
|
|
@@ -331,7 +335,7 @@ export const TRANSLATIONS = {
|
|
|
331
335
|
'datePicker': {
|
|
332
336
|
'day': 'Diena',
|
|
333
337
|
'month': 'Mēnesis',
|
|
334
|
-
'year': '
|
|
338
|
+
'year': 'Metai',
|
|
335
339
|
},
|
|
336
340
|
'salaryCurrency': 'Atlasiet valūtu...',
|
|
337
341
|
},
|
|
@@ -359,7 +363,8 @@ export const TRANSLATIONS = {
|
|
|
359
363
|
'incorrectBirthDate': 'Date cant be earlier then birth date',
|
|
360
364
|
},
|
|
361
365
|
'invalidCaptcha': 'Ievadīta nederīga captcha',
|
|
362
|
-
'licenseError': 'Testa piekļūšanai ir sasniegts maksimālais atbilžu skaits. Sazinieties ar Heliosoft LLC pārdošanas nodaļu un pārdošanas nodaļas kontaktpersonām (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 pēc Maskavas laika), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)'
|
|
366
|
+
'licenseError': 'Testa piekļūšanai ir sasniegts maksimālais atbilžu skaits. Sazinieties ar Heliosoft LLC pārdošanas nodaļu un pārdošanas nodaļas kontaktpersonām (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 pēc Maskavas laika), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)',
|
|
367
|
+
'licenseExpired': 'Bandymo prieigos laikotarpis „30 dienų“ baigėsi. Susisiekite su „Heliosoft“ LLC pardavimų skyriumi ir pardavimo skyriaus kontaktais (<a href="mailto:help@findy.ru"> help@findy.ru </a>, <a href = "tel: +74957836603 "> +7 (495) 783-66-03 </a> (9:00-18:00 Maskvos laiku), <a href="tel: +79150216424"> + 7 (915) 021-64-24 < /a>)',
|
|
363
368
|
},
|
|
364
369
|
},
|
|
365
370
|
lv: {
|
|
@@ -431,7 +436,8 @@ export const TRANSLATIONS = {
|
|
|
431
436
|
'incorrectBirthDate': 'Date cant be earlier then birth date',
|
|
432
437
|
},
|
|
433
438
|
'invalidCaptcha': 'Įvesta netinkama captcha',
|
|
434
|
-
'licenseError': 'Pasiektas maksimalus bandymų prieigos atsakymų skaičius. Susisiekite su „Heliosoft LLC“ pardavimo skyriumi ir pardavimo skyriaus kontaktais (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Maskvos laiku), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)'
|
|
439
|
+
'licenseError': 'Pasiektas maksimalus bandymų prieigos atsakymų skaičius. Susisiekite su „Heliosoft LLC“ pardavimo skyriumi ir pardavimo skyriaus kontaktais (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 Maskvos laiku), <a href=\"tel:+79150216424\"> +7 (915) 021-64–24 </a>)',
|
|
440
|
+
'licenseExpired': 'Pārbaudes piekļuves periods "30 dienas" ir beidzies. Sazinieties ar "Heliosoft" LLC Pārdošanas Nodaļu un pārdošanas nodaļas kontaktiem (<a href="mailto:help@findy.ru"> help@findy.ru </a>, <a href="tel:+74957836603"> +7 (495) 783-66-03 </a> (9:00-18:00 Maskavas laiks), <a href="tel: +79150216424"> + 7 (915) 021-64-24 </a>) ',
|
|
435
441
|
},
|
|
436
442
|
},
|
|
437
443
|
kz: {
|
|
@@ -504,7 +510,8 @@ export const TRANSLATIONS = {
|
|
|
504
510
|
'incorrectBirthDate': 'Date cant be earlier then birth date',
|
|
505
511
|
},
|
|
506
512
|
'invalidCaptcha': 'Жарамсыз captcha енгізілді',
|
|
507
|
-
'licenseError': 'Тестке кіру үшін жауаптардың максималды санына жетті. Heliosoft LLC сату бөліміне және сату бөлімінің байланыстарына хабарласыңыз (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (Мәскеу уақытымен 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
513
|
+
'licenseError': 'Тестке кіру үшін жауаптардың максималды санына жетті. Heliosoft LLC сату бөліміне және сату бөлімінің байланыстарына хабарласыңыз (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (Мәскеу уақытымен 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
514
|
+
'licenseExpired': '',
|
|
508
515
|
},
|
|
509
516
|
},
|
|
510
517
|
th: {
|
|
@@ -577,7 +584,8 @@ export const TRANSLATIONS = {
|
|
|
577
584
|
'incorrectBirthDate': 'Date cant be earlier then birth date',
|
|
578
585
|
},
|
|
579
586
|
'validCaptcha': 'ป้อน captcha ไม่ถูกต้อง',
|
|
580
|
-
'licenseError': 'มีการตอบกลับถึงจำนวนสูงสุดสำหรับการเข้าถึงการทดสอบแล้ว ติดต่อฝ่ายขายของ Heliosoft LLC และผู้ติดต่อของฝ่ายขาย (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 น. เวลามอสโก), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) '
|
|
587
|
+
'licenseError': 'มีการตอบกลับถึงจำนวนสูงสุดสำหรับการเข้าถึงการทดสอบแล้ว ติดต่อฝ่ายขายของ Heliosoft LLC และผู้ติดต่อของฝ่ายขาย (<a href=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href=\"tel:+74957836603\"> +7 (495) 783-66-03 </a> (9:00-18:00 น. เวลามอสโก), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>) ',
|
|
588
|
+
'licenseExpired': '',
|
|
581
589
|
},
|
|
582
590
|
},
|
|
583
591
|
uz: {
|
|
@@ -650,7 +658,8 @@ export const TRANSLATIONS = {
|
|
|
650
658
|
'incorrectBirthDate': 'Date cant be earlier then birth date',
|
|
651
659
|
},
|
|
652
660
|
'invalidCaptcha': "Noto'g'ri captcha kiritildi",
|
|
653
|
-
'licenseError': 'Testlarga kirish uchun maksimal javoblar soniga erishildi. "Heliosoft" MChJ savdo bo\'limi va savdo bo\'limi bilan bog\'laning (< ahref=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+ 74957836603\"> +7 (495) 783-66-03 </a> (Moskva vaqti bilan 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>)'
|
|
661
|
+
'licenseError': 'Testlarga kirish uchun maksimal javoblar soniga erishildi. "Heliosoft" MChJ savdo bo\'limi va savdo bo\'limi bilan bog\'laning (< ahref=\"mailto:help@findy.ru\"> help@findy.ru </a>, <a href =\"tel:+ 74957836603\"> +7 (495) 783-66-03 </a> (Moskva vaqti bilan 9:00-18:00), <a href=\"tel:+79150216424\"> +7 (915) 021-64-24 </a>)',
|
|
662
|
+
'licenseExpired': '',
|
|
654
663
|
},
|
|
655
664
|
}
|
|
656
665
|
};
|
package/src/styles/index.css
CHANGED
|
@@ -40,11 +40,6 @@
|
|
|
40
40
|
box-sizing: content-box;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.radio-wrapper .rc-checkbox-inner:after {
|
|
44
|
-
margin-top: -1px;
|
|
45
|
-
margin-left: -1px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
43
|
.radio-wrapper .rc-checkbox-inner {
|
|
49
44
|
border-radius: 50%;
|
|
50
45
|
}
|
|
@@ -89,7 +84,7 @@ body .rc-checkbox:hover .rc-checkbox-inner, body .rc-checkbox-input:focus + .rc-
|
|
|
89
84
|
border-color: #3a70ba;
|
|
90
85
|
}
|
|
91
86
|
|
|
92
|
-
.checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
|
|
87
|
+
.pda-modal .checkbox-wrapper .rc-checkbox.rc-checkbox-checked .rc-checkbox-inner:after {
|
|
93
88
|
left: 4px;
|
|
94
89
|
top: 1px;
|
|
95
90
|
width: 4px;
|