@redneckz/wildless-cms-uni-blocks 0.14.121 → 0.14.122
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/bundle/bundle.umd.js +25 -19
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +7 -0
- package/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +9 -0
- package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderErrorText.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderWedTextarea.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +7 -0
- package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +7 -0
- package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +9 -0
- package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +11 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/DatePickerControl.js +2 -1
- package/dist/components/ApplicationForm/DatePickerControl.js.map +1 -1
- package/dist/components/ApplicationForm/InputControl.js +2 -2
- package/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.js +2 -2
- package/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js +2 -1
- package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/dist/components/ApplicationForm/SelectControl.js +2 -2
- package/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +2 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +2 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +2 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderErrorText.d.ts +2 -0
- package/dist/components/ApplicationForm/renderErrorText.js +7 -0
- package/dist/components/ApplicationForm/renderErrorText.js.map +1 -0
- package/dist/components/ApplicationForm/renderIndividualsFields.d.ts +1 -1
- package/dist/components/ApplicationForm/renderIndividualsFields.js +2 -1
- package/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +5 -4
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedTextarea.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +7 -0
- package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +5 -0
- package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +9 -0
- package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +11 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/DatePickerControl.js +2 -1
- package/lib/components/ApplicationForm/DatePickerControl.js.map +1 -1
- package/lib/components/ApplicationForm/InputControl.js +2 -2
- package/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.js +2 -2
- package/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js +2 -1
- package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/lib/components/ApplicationForm/SelectControl.js +2 -2
- package/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +2 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +2 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +2 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderErrorText.d.ts +1 -0
- package/lib/components/ApplicationForm/renderErrorText.js +4 -0
- package/lib/components/ApplicationForm/renderErrorText.js.map +1 -0
- package/lib/components/ApplicationForm/renderIndividualsFields.d.ts +1 -1
- package/lib/components/ApplicationForm/renderIndividualsFields.js +2 -1
- package/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +6 -5
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedTextarea.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +23 -17
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +7 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +9 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderErrorText.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderWedTextarea.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +7 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +9 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/DatePickerControl.js +2 -1
- package/mobile/dist/components/ApplicationForm/DatePickerControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/InputControl.js +2 -2
- package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +2 -2
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +2 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/SelectControl.js +2 -2
- package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderErrorText.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/renderErrorText.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderErrorText.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +5 -4
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedTextarea.d.ts +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +7 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +5 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +9 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/DatePickerControl.js +2 -1
- package/mobile/lib/components/ApplicationForm/DatePickerControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/InputControl.js +2 -2
- package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +2 -2
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +2 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/SelectControl.js +2 -2
- package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderErrorText.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/renderErrorText.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderErrorText.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +6 -5
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedTextarea.d.ts +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +18 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +5 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +10 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +13 -2
- package/mobile/src/components/ApplicationForm/DatePickerControl.tsx +2 -7
- package/mobile/src/components/ApplicationForm/InputControl.tsx +2 -8
- package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +2 -8
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +7 -5
- package/mobile/src/components/ApplicationForm/SelectControl.tsx +2 -8
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +23 -18
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +31 -26
- package/mobile/src/components/ApplicationForm/renderErrorText.tsx +11 -0
- package/mobile/src/components/ApplicationForm/renderIndividualsFields.tsx +42 -37
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -7
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +27 -22
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderWedTextarea.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +18 -0
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +5 -1
- package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +10 -1
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +13 -2
- package/src/components/ApplicationForm/DatePickerControl.tsx +2 -7
- package/src/components/ApplicationForm/InputControl.tsx +2 -8
- package/src/components/ApplicationForm/PhoneInputControl.tsx +2 -8
- package/src/components/ApplicationForm/ResponseNotification.tsx +7 -5
- package/src/components/ApplicationForm/SelectControl.tsx +2 -8
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +31 -26
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +23 -18
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +31 -26
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +37 -32
- package/src/components/ApplicationForm/renderErrorText.tsx +11 -0
- package/src/components/ApplicationForm/renderIndividualsFields.tsx +42 -37
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -7
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +27 -22
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +1 -1
- package/src/components/ApplicationForm/renderWedTextarea.tsx +1 -1
- package/bundle/components/ApplicationForm/DepositFormState.d.ts +0 -4
- package/bundle/components/ApplicationForm/IndividualsFormState.d.ts +0 -9
- package/bundle/components/ApplicationForm/WedFormState.d.ts +0 -11
- package/dist/components/ApplicationForm/DepositFormState.d.ts +0 -4
- package/dist/components/ApplicationForm/DepositFormState.js +0 -2
- package/dist/components/ApplicationForm/DepositFormState.js.map +0 -1
- package/dist/components/ApplicationForm/IndividualsFormState.d.ts +0 -9
- package/dist/components/ApplicationForm/IndividualsFormState.js +0 -2
- package/dist/components/ApplicationForm/IndividualsFormState.js.map +0 -1
- package/dist/components/ApplicationForm/WedFormState.d.ts +0 -11
- package/dist/components/ApplicationForm/WedFormState.js +0 -2
- package/dist/components/ApplicationForm/WedFormState.js.map +0 -1
- package/lib/components/ApplicationForm/DepositFormState.d.ts +0 -4
- package/lib/components/ApplicationForm/DepositFormState.js +0 -2
- package/lib/components/ApplicationForm/DepositFormState.js.map +0 -1
- package/lib/components/ApplicationForm/IndividualsFormState.d.ts +0 -9
- package/lib/components/ApplicationForm/IndividualsFormState.js +0 -2
- package/lib/components/ApplicationForm/IndividualsFormState.js.map +0 -1
- package/lib/components/ApplicationForm/WedFormState.d.ts +0 -11
- package/lib/components/ApplicationForm/WedFormState.js +0 -2
- package/lib/components/ApplicationForm/WedFormState.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/DepositFormState.d.ts +0 -4
- package/mobile/bundle/components/ApplicationForm/IndividualsFormState.d.ts +0 -9
- package/mobile/bundle/components/ApplicationForm/WedFormState.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/DepositFormState.d.ts +0 -4
- package/mobile/dist/components/ApplicationForm/DepositFormState.js +0 -2
- package/mobile/dist/components/ApplicationForm/DepositFormState.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/IndividualsFormState.d.ts +0 -9
- package/mobile/dist/components/ApplicationForm/IndividualsFormState.js +0 -2
- package/mobile/dist/components/ApplicationForm/IndividualsFormState.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/WedFormState.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/WedFormState.js +0 -2
- package/mobile/dist/components/ApplicationForm/WedFormState.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/DepositFormState.d.ts +0 -4
- package/mobile/lib/components/ApplicationForm/DepositFormState.js +0 -2
- package/mobile/lib/components/ApplicationForm/DepositFormState.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/IndividualsFormState.d.ts +0 -9
- package/mobile/lib/components/ApplicationForm/IndividualsFormState.js +0 -2
- package/mobile/lib/components/ApplicationForm/IndividualsFormState.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/WedFormState.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/WedFormState.js +0 -2
- package/mobile/lib/components/ApplicationForm/WedFormState.js.map +0 -1
- package/mobile/src/components/ApplicationForm/DepositFormState.ts +0 -4
- package/mobile/src/components/ApplicationForm/IndividualsFormState.ts +0 -9
- package/mobile/src/components/ApplicationForm/WedFormState.ts +0 -12
- package/src/components/ApplicationForm/DepositFormState.ts +0 -4
- package/src/components/ApplicationForm/IndividualsFormState.ts +0 -9
- package/src/components/ApplicationForm/WedFormState.ts +0 -12
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { withValidator } from '../../validation/withValidator.js';
|
|
3
|
+
import { ApplicationFieldsetLayout, childrenClassName } from './ApplicationFieldsetLayout.js';
|
|
3
4
|
import { InputControl } from './InputControl.js';
|
|
4
5
|
import { PhoneInputControl } from './PhoneInputControl.js';
|
|
5
6
|
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators.js';
|
|
6
|
-
export const renderBusinessCardDataOrganization = (field) => (
|
|
7
|
+
export const renderBusinessCardDataOrganization = (field) => (_jsx(ApplicationFieldsetLayout, { firstChildren: _jsxs("div", { className: childrenClassName, children: [_jsx(InputControl, { className: "shrink-0 w-full", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), _jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), secondChildren: _jsxs("div", { className: childrenClassName, children: [_jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), _jsx(InputControl, { className: "shrink-0 w-full", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] }) }));
|
|
7
8
|
//# sourceMappingURL=renderBusinessCardDataOrganization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"renderBusinessCardDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7F,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,KAAiD,EACjD,EAAE,CAAC,CACH,KAAC,yBAAyB,IACxB,aAAa,EACX,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,uFAAiB,KACnB,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,GAC/C,EACF,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,oBAAK,KACP,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,GAC7C,IACE,EAER,cAAc,EACZ,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,iBAAiB,IAChB,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,4CAAS,KACX,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,GACjD,EACF,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,mGAAmB,KACrB,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,GAClD,IACE,GAER,CACH,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { withValidator } from '../../validation/withValidator.js';
|
|
3
|
+
import { ApplicationFieldsetLayout, childrenClassName } from './ApplicationFieldsetLayout.js';
|
|
3
4
|
import { InputControl } from './InputControl.js';
|
|
4
5
|
import { PhoneInputControl } from './PhoneInputControl.js';
|
|
5
6
|
import { defaultValidator, innValidator, nameValidator, phoneValidator } from './validators.js';
|
|
6
|
-
export const renderCreditDataOrganization = (field) => (
|
|
7
|
+
export const renderCreditDataOrganization = (field) => (_jsx(ApplicationFieldsetLayout, { firstChildren: _jsxs("div", { className: childrenClassName, children: [_jsx(InputControl, { className: "shrink-0 w-full", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), _jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), _jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), secondChildren: _jsxs("div", { className: childrenClassName, children: [_jsx(InputControl, { className: "shrink-0 w-full", label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...withValidator(field('annualRevenue'), defaultValidator) }), _jsx(InputControl, { className: "shrink-0 w-full", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), _jsx(InputControl, { className: "shrink-0 w-full", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...field('mail') })] }) }));
|
|
7
8
|
//# sourceMappingURL=renderCreditDataOrganization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderCreditDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderCreditDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"renderCreditDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderCreditDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7F,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,KAA2C,EAAE,EAAE,CAAC,CAC3F,KAAC,yBAAyB,IACxB,aAAa,EACX,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,6IAA0B,KAC5B,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,GACtD,EACF,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,oBAAK,KACP,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,GAC7C,EACF,KAAC,iBAAiB,IAChB,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,4CAAS,KACX,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,GACjD,IACE,EAER,cAAc,EACZ,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,+FAAoB,KACtB,aAAa,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,gBAAgB,CAAC,GAC3D,EACF,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,uFAAiB,KACnB,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,GAC/C,EACF,KAAC,YAAY,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAC,mGAAmB,KAAK,KAAK,CAAC,MAAM,CAAC,GAAI,IACrF,GAER,CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const renderErrorText: (error: string | undefined) => JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
3
|
+
export const renderErrorText = (error) => (_jsx("div", { className: "h-4", children: error ? (_jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null }));
|
|
4
|
+
//# sourceMappingURL=renderErrorText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderErrorText.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderErrorText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAyB,EAAE,EAAE,CAAC,CAC5D,cAAK,SAAS,EAAC,KAAK,YACjB,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,YAAY,YACtD,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
-
import { type IndividualsFormState } from './
|
|
2
|
+
import { type IndividualsFormState } from './ApplicationFormIndividuals';
|
|
3
3
|
export declare const renderIndividualsFields: (field: FormFieldRegisterer<IndividualsFormState>) => JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { withValidator } from '../../validation/withValidator.js';
|
|
3
|
+
import { ApplicationFieldsetLayout, childrenClassName } from './ApplicationFieldsetLayout.js';
|
|
3
4
|
import { DatePickerControl } from './DatePickerControl.js';
|
|
4
5
|
import { InputControl } from './InputControl.js';
|
|
5
6
|
import { PhoneInputControl } from './PhoneInputControl.js';
|
|
6
7
|
import { defaultValidator, nameValidator, phoneValidator } from './validators.js';
|
|
7
|
-
export const renderIndividualsFields = (field) => (
|
|
8
|
+
export const renderIndividualsFields = (field) => (_jsx(ApplicationFieldsetLayout, { firstChildren: _jsxs("div", { className: childrenClassName, children: [_jsx(InputControl, { className: "shrink-0 w-full", label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), nameValidator) }), _jsx(InputControl, { className: "shrink-0 w-full", label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E", ...withValidator(field('middleName'), nameValidator) }), _jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), secondChildren: _jsxs("div", { className: childrenClassName, children: [_jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), _jsx(DatePickerControl, { className: "shrink-0 w-full", label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...withValidator(field('date'), defaultValidator) }), _jsx(InputControl, { className: "shrink-0 w-full", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] }) }));
|
|
8
9
|
//# sourceMappingURL=renderIndividualsFields.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderIndividualsFields.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderIndividualsFields.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderIndividualsFields.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderIndividualsFields.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAE3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE/E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAgD,EAAE,EAAE,CAAC,CAC3F,KAAC,yBAAyB,IACxB,aAAa,EACX,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,4CAAS,KACX,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,GAClD,EACF,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,kDAAU,KACZ,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,GACrD,EACF,KAAC,iBAAiB,IAChB,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,4CAAS,KACX,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,GACjD,IACE,EAER,cAAc,EACZ,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,oBAAK,KACP,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,GAC/C,EACF,KAAC,iBAAiB,IAChB,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,2EAAe,KACjB,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,GAClD,EACF,KAAC,YAAY,IACX,SAAS,EAAC,iBAAiB,EAC3B,KAAK,EAAC,mGAAmB,KACrB,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,GAClD,IACE,GAER,CACH,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
-
import { type WedFormState } from './
|
|
2
|
+
import { type WedFormState } from './ApplicationFormWed';
|
|
3
3
|
export declare const renderQuestionsInterested: (field: FormFieldRegisterer<WedFormState>) => JSX.Element;
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { Radio } from '../../ui-kit/Radio/Radio.js';
|
|
3
3
|
export const renderQuestionsInterested = (field) => {
|
|
4
4
|
const { value, onChange } = field('vedTypes');
|
|
5
|
-
return (_jsx("div", { className: "space-y-
|
|
5
|
+
return (_jsx("div", { className: "space-y-lg", children: _jsxs("div", { className: "space-y-xs @xl:flex @xl:items-center @xl:gap-xl", children: [_jsx(Radio, { name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: (_) => onChange && onChange(_) }), _jsx(Radio, { name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: (_) => onChange && onChange(_) }), _jsx(Radio, { name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: (_) => onChange && onChange(_) }), _jsx(Radio, { name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: (_) => onChange && onChange(_) })] }) }));
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=renderQuestionsInterested.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderQuestionsInterested.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderQuestionsInterested.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAwC,EAAE,EAAE;IACpF,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAE9C,OAAO,CACL,cAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"renderQuestionsInterested.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderQuestionsInterested.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAwC,EAAE,EAAE;IACpF,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAE9C,OAAO,CACL,cAAK,SAAS,EAAC,YAAY,YACzB,eAAK,SAAS,EAAC,iDAAiD,aAC9D,KAAC,KAAK,IACJ,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,mGAAmB,EACxB,KAAK,EAAC,iBAAiB,EACvB,OAAO,EAAE,KAAK,KAAK,iBAAiB,EACpC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,GACxC,EACF,KAAC,KAAK,IACJ,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,iIAAwB,EAC7B,KAAK,EAAC,oBAAoB,EAC1B,OAAO,EAAE,KAAK,KAAK,oBAAoB,EACvC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,GACxC,EACF,KAAC,KAAK,IACJ,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,iIAAwB,EAC7B,KAAK,EAAC,wBAAwB,EAC9B,OAAO,EAAE,KAAK,KAAK,wBAAwB,EAC3C,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,GACxC,EACF,KAAC,KAAK,IACJ,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,wFAAkB,EACvB,KAAK,EAAC,aAAa,EACnB,OAAO,EAAE,KAAK,KAAK,aAAa,EAChC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,GACxC,IACE,GACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { withValidator } from '../../validation/withValidator.js';
|
|
3
|
+
import { ApplicationFieldsetLayout, childrenClassName } from './ApplicationFieldsetLayout.js';
|
|
3
4
|
import { SelectControl } from './SelectControl.js';
|
|
4
5
|
import { defaultValidator } from './validators.js';
|
|
5
|
-
export const renderRegionDepartment = ({ regions, branches, field }) => (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export const renderRegionDepartment = ({ regions, branches, field }) => (_jsx(ApplicationFieldsetLayout, { firstChildren: _jsx("div", { className: childrenClassName, children: _jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }), secondChildren: _jsx("div", { className: childrenClassName, children: _jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
|
|
7
|
+
key: branchCode,
|
|
8
|
+
text: address,
|
|
9
|
+
})), ...withValidator(field('department'), defaultValidator) }) }) }));
|
|
9
10
|
//# sourceMappingURL=renderRegionDepartment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderRegionDepartment.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderRegionDepartment.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"renderRegionDepartment.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderRegionDepartment.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAG3F,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAQhD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAyB,EAAE,EAAE,CAAC,CAC7F,KAAC,yBAAyB,IACxB,aAAa,EACX,cAAK,SAAS,EAAE,iBAAiB,YAC/B,KAAC,aAAa,IACZ,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,uFAAiB,EAC7B,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,KAC3E,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,GACpD,GACE,EAER,cAAc,EACZ,cAAK,SAAS,EAAE,iBAAiB,YAC/B,KAAC,aAAa,IACZ,KAAK,EAAC,gCAAO,EACb,WAAW,EAAC,iFAAgB,EAC5B,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,GAAG,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;gBAC5D,GAAG,EAAE,UAAU;gBACf,IAAI,EAAE,OAAO;aACd,CAAC,CAAC,KACC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAC,GACxD,GACE,GAER,CACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
+
import { type WedFormState } from './ApplicationFormWed';
|
|
2
3
|
import { type Select } from './models';
|
|
3
|
-
import { type WedFormState } from './WedFormState';
|
|
4
4
|
export declare const renderWedDataOrganization: (field: FormFieldRegisterer<WedFormState>, regions: Select[]) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderWedDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderWedDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"renderWedDataOrganization.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/renderWedDataOrganization.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7F,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,KAAwC,EACxC,OAAiB,EACjB,EAAE;IACF,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,KAAK,iBAAiB,CAAC;IAExE,OAAO,CACL,0BACG,iBAAiB,CAAC,CAAC,CAAC,CACnB,KAAC,aAAa,IACZ,SAAS,EAAC,MAAM,EAChB,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,uFAAiB,EAC7B,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,KAC3E,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,GACpD,CACH,CAAC,CAAC,CAAC,IAAI,EACR,eAAK,SAAS,EAAC,uCAAuC,aACnD,iBAAiB,CAAC,CAAC,CAAC,CACnB,KAAC,YAAY,IACX,SAAS,EAAC,aAAa,EACvB,KAAK,EAAC,oBAAK,KACP,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,GAC7C,CACH,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,YAAY,IACX,SAAS,EAAC,aAAa,EACvB,KAAK,EAAC,6IAA0B,KAC5B,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,GACtD,EACF,KAAC,YAAY,IACX,SAAS,EAAC,aAAa,EACvB,KAAK,EAAC,oBAAK,KACP,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,GAC/C,EACF,KAAC,iBAAiB,IAChB,SAAS,EAAC,aAAa,EACvB,KAAK,EAAC,4CAAS,KACX,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,GACjD,EACD,CAAC,iBAAiB,CAAC,CAAC,CAAC,CACpB,KAAC,YAAY,IACX,SAAS,EAAC,aAAa,EACvB,KAAK,EAAC,mGAAmB,KACrB,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,GAClD,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
|
-
import { type WedFormState } from './
|
|
2
|
+
import { type WedFormState } from './ApplicationFormWed';
|
|
3
3
|
export declare const renderWedTextarea: (field: FormFieldRegisterer<WedFormState>) => JSX.Element;
|
|
@@ -1001,7 +1001,9 @@
|
|
|
1001
1001
|
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx("input", { ref: inputRef, className: style('w-full h-14 border rounded-md text-primary-text outline-none p-m', paddingStyle, validStyle, inputClassName), id: id, name: name || id, placeholder: placeholder, type: type, value: value, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key)] }), children] }));
|
|
1002
1002
|
});
|
|
1003
1003
|
|
|
1004
|
-
const
|
|
1004
|
+
const renderErrorText = (error) => (jsx("div", { className: "h-4", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null }));
|
|
1005
|
+
|
|
1006
|
+
const InputControl = JSX(({ className, label, value = '', error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(Input, { type: "text", "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur }), renderErrorText(error)] })));
|
|
1005
1007
|
|
|
1006
1008
|
const isPlaceholder = (_) => _ === '_';
|
|
1007
1009
|
const isDigit = (_) => /\d/.test(_);
|
|
@@ -1022,7 +1024,7 @@
|
|
|
1022
1024
|
return (jsx(Input, { onChange: handleChange, onFocus: (event) => handleChange(event?.target?.value || ''), ...inputProps, children: children }));
|
|
1023
1025
|
});
|
|
1024
1026
|
|
|
1025
|
-
const PhoneInputControl = JSX(({ className, label, value, error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(PhoneInput, { "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur, placeholder: "+7 (___) ___-__-__" }),
|
|
1027
|
+
const PhoneInputControl = JSX(({ className, label, value, error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(PhoneInput, { "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur, placeholder: "+7 (___) ___-__-__" }), renderErrorText(error)] })));
|
|
1026
1028
|
|
|
1027
1029
|
const pattern = (regexp) => validator((_) => typeof _ === 'string' && regexp.test(_));
|
|
1028
1030
|
|
|
@@ -1054,6 +1056,9 @@
|
|
|
1054
1056
|
},
|
|
1055
1057
|
];
|
|
1056
1058
|
|
|
1059
|
+
const ApplicationFieldsetLayout = JSX(({ firstChildren, secondChildren }) => (jsxs("fieldset", { className: "grig @xl:flex @xl:justify-between gap-lg border-b border-b-main-divider @xl:border-none", children: [firstChildren, secondChildren] })));
|
|
1060
|
+
const childrenClassName = '@xl:w-1/2 space-y-s';
|
|
1061
|
+
|
|
1057
1062
|
function useBool(defaultValue = false) {
|
|
1058
1063
|
const [value, setValue] = useState(defaultValue);
|
|
1059
1064
|
const setTrue = useCallback(() => setValue(true), []);
|
|
@@ -1156,9 +1161,9 @@
|
|
|
1156
1161
|
const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
|
|
1157
1162
|
const getBorderStyle$1 = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
|
|
1158
1163
|
|
|
1159
|
-
const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }),
|
|
1164
|
+
const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), renderErrorText(error)] })));
|
|
1160
1165
|
|
|
1161
|
-
const renderAcquiringRegion = ({ regions, field }) => (
|
|
1166
|
+
const renderAcquiringRegion = ({ regions, field }) => (jsx(ApplicationFieldsetLayout, { firstChildren: jsx("div", { className: childrenClassName, children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key })), ...withValidator(field('acquiringType'), defaultValidator) }) }), secondChildren: jsx("div", { className: childrenClassName, children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }) }));
|
|
1162
1167
|
|
|
1163
1168
|
const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), text ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })) : null] })));
|
|
1164
1169
|
|
|
@@ -1230,10 +1235,10 @@
|
|
|
1230
1235
|
}, [onSubmit]);
|
|
1231
1236
|
const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
|
|
1232
1237
|
const regions = useGetRegions();
|
|
1233
|
-
return (jsxs("form", { className: "container space-y-
|
|
1238
|
+
return (jsxs("form", { className: "container space-y-lg", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430 \u0438 \u0440\u0435\u0433\u0438\u043E\u043D", className: "@xl:text-center" }), renderAcquiringRegion({ regions, field }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderAcquiringDataOrganization(field), renderSlideCheckboxes(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1234
1239
|
});
|
|
1235
1240
|
|
|
1236
|
-
const renderBusinessCardDataOrganization = (field) => (
|
|
1241
|
+
const renderBusinessCardDataOrganization = (field) => (jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: childrenClassName, children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), secondChildren: jsxs("div", { className: childrenClassName, children: [jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] }) }));
|
|
1237
1242
|
|
|
1238
1243
|
const renderRegion$1 = ({ regions, field }) => (jsx(SelectControl, { className: "w-full", label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }));
|
|
1239
1244
|
|
|
@@ -1349,10 +1354,10 @@
|
|
|
1349
1354
|
|
|
1350
1355
|
const renderCreditParameters = (field) => (jsxs("div", { className: "border-b border-b-main-divider @xl:border-none @xl:flex @xl:justify-between gap-lg", children: [jsxs("div", { className: "@xl:w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0443\u043C\u043C\u0430, \u20BD" }) }), jsx(InputRange, { items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') })] }), jsxs("div", { className: "@xl:w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0440\u043E\u043A, \u043C\u0435\u0441\u044F\u0446\u0435\u0432" }) }), jsx(InputRange, { items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') })] })] }));
|
|
1351
1356
|
|
|
1352
|
-
const renderRegionDepartment = ({ regions, branches, field }) => (
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1357
|
+
const renderRegionDepartment = ({ regions, branches, field }) => (jsx(ApplicationFieldsetLayout, { firstChildren: jsx("div", { className: childrenClassName, children: jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }), secondChildren: jsx("div", { className: childrenClassName, children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
|
|
1358
|
+
key: branchCode,
|
|
1359
|
+
text: address,
|
|
1360
|
+
})), ...withValidator(field('department'), defaultValidator) }) }) }));
|
|
1356
1361
|
|
|
1357
1362
|
const initialFormState$3 = {
|
|
1358
1363
|
amount: MIN_CREDIT_AMOUNT,
|
|
@@ -1392,7 +1397,7 @@
|
|
|
1392
1397
|
const [formState, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
|
|
1393
1398
|
const regions = useGetRegions();
|
|
1394
1399
|
const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
|
|
1395
|
-
return (jsxs("form", { className: "container space-y-
|
|
1400
|
+
return (jsxs("form", { className: "container space-y-lg", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B", className: "@xl:text-center" }), renderCreditParameters(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderCreditDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "@xl:text-center" }), renderRegionDepartment({ regions, branches, field }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1396
1401
|
});
|
|
1397
1402
|
|
|
1398
1403
|
const initialFormState$2 = {
|
|
@@ -1610,9 +1615,9 @@
|
|
|
1610
1615
|
});
|
|
1611
1616
|
const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle, valid ? 'border-gray' : 'border-error'), children: [jsx(Paragraph, { children: value && formatDate(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
|
|
1612
1617
|
|
|
1613
|
-
const DatePickerControl = JSX(({ className, label, value = undefined, error, onChange }) => (jsxs("div", { className: className, children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx(DatePicker, { value: value, onChange: onChange, valid: Boolean(!error) }),
|
|
1618
|
+
const DatePickerControl = JSX(({ className, label, value = undefined, error, onChange }) => (jsxs("div", { className: className, children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx(DatePicker, { value: value, onChange: onChange, valid: Boolean(!error) }), renderErrorText(error)] })));
|
|
1614
1619
|
|
|
1615
|
-
const renderIndividualsFields = (field) => (
|
|
1620
|
+
const renderIndividualsFields = (field) => (jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: childrenClassName, children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E", ...withValidator(field('middleName'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), secondChildren: jsxs("div", { className: childrenClassName, children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(DatePickerControl, { className: "shrink-0 w-full", label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...withValidator(field('date'), defaultValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] }) }));
|
|
1616
1621
|
|
|
1617
1622
|
const initialFormState$1 = {
|
|
1618
1623
|
surname: '',
|
|
@@ -1658,7 +1663,7 @@
|
|
|
1658
1663
|
|
|
1659
1664
|
const renderQuestionsInterested = (field) => {
|
|
1660
1665
|
const { value, onChange } = field('vedTypes');
|
|
1661
|
-
return (jsx("div", { className: "space-y-
|
|
1666
|
+
return (jsx("div", { className: "space-y-lg", children: jsxs("div", { className: "space-y-xs @xl:flex @xl:items-center @xl:gap-xl", children: [jsx(Radio, { name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: (_) => onChange && onChange(_) })] }) }));
|
|
1662
1667
|
};
|
|
1663
1668
|
|
|
1664
1669
|
const renderWedDataOrganization = (field, regions) => {
|
|
@@ -1720,7 +1725,7 @@
|
|
|
1720
1725
|
}, [onSubmit]);
|
|
1721
1726
|
const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
1722
1727
|
const regions = useGetRegions();
|
|
1723
|
-
return (jsxs("form", { className: "container space-y-
|
|
1728
|
+
return (jsxs("form", { className: "container space-y-lg", onSubmit: formProps.onSubmit, children: [renderQuestionsInterested(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderWedDataOrganization(field, regions), renderWedTextarea(field), jsxs("div", { className: "flex flex-col gap-m border-b border-main-divider pb-lg @xl:items-center @xl:flex-row @xl:pb-4xl", children: [renderSubmitButton(button), jsx(Footnote, { link: link })] }), jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), renderContacts()] }));
|
|
1724
1729
|
});
|
|
1725
1730
|
|
|
1726
1731
|
const EmbeddableForms = {
|
|
@@ -1736,7 +1741,8 @@
|
|
|
1736
1741
|
const ResponseNotification = JSX(({ responseType }) => {
|
|
1737
1742
|
const responseOK = responseType === 'OK';
|
|
1738
1743
|
const backgroundColor = responseOK ? 'bg-ok' : 'bg-fail';
|
|
1739
|
-
|
|
1744
|
+
const statusIcon = responseOK ? 'ResponseOKIcon' : 'ResponseFailIcon';
|
|
1745
|
+
return (jsxs("div", { className: `flex items-center p-lg rounded-md space-x-m ${backgroundColor}`, children: [jsx(Img, { image: { icon: statusIcon ? 'ResponseOKIcon' : 'ResponseFailIcon', iconVersion: 'normal' }, width: "42", height: "42" }), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-2xs" }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
|
|
1740
1746
|
});
|
|
1741
1747
|
|
|
1742
1748
|
const API = LeadServiceAPI();
|
|
@@ -5410,7 +5416,7 @@
|
|
|
5410
5416
|
|
|
5411
5417
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5412
5418
|
|
|
5413
|
-
const packageVersion = "0.14.
|
|
5419
|
+
const packageVersion = "0.14.121";
|
|
5414
5420
|
|
|
5415
5421
|
exports.Blocks = Blocks;
|
|
5416
5422
|
exports.ContentPage = ContentPage;
|