@redneckz/wildless-cms-uni-blocks 0.14.1000 → 0.14.1002
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/api/LeadServiceAPI.d.ts +2 -1
- package/bundle/bundle.umd.js +31 -26
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/bundle/ui-kit/Button/Button.d.ts +1 -0
- package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/bundle/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/dist/api/LeadServiceAPI.d.ts +2 -1
- package/dist/api/LeadServiceAPI.js +3 -3
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/dist/components/ApplicationForm/constants.js +5 -1
- package/dist/components/ApplicationForm/constants.js.map +1 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
- package/dist/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/Fields/ConsentField.js +1 -1
- package/dist/retail/components/Fields/ConsentField.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
- package/dist/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/dist/ui-kit/Button/Button.d.ts +1 -0
- package/dist/ui-kit/Button/Button.js +2 -2
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/dist/ui-kit/DatePicker/DatePicker.js +2 -1
- package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/dist/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/dist/ui-kit/DatePicker/DatePickerInput.js +2 -2
- package/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
- package/dist/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/dist/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/dist/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
- package/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
- package/lib/api/LeadServiceAPI.d.ts +2 -1
- package/lib/api/LeadServiceAPI.js +3 -3
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/lib/components/ApplicationForm/constants.js +5 -1
- package/lib/components/ApplicationForm/constants.js.map +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
- package/lib/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/Fields/ConsentField.js +1 -1
- package/lib/retail/components/Fields/ConsentField.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
- package/lib/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/lib/ui-kit/Button/Button.d.ts +1 -0
- package/lib/ui-kit/Button/Button.js +2 -2
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/lib/ui-kit/DatePicker/DatePicker.js +2 -1
- package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/lib/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/lib/ui-kit/DatePicker/DatePickerInput.js +2 -2
- package/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
- package/lib/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/lib/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/lib/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
- package/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
- package/mobile/bundle/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/bundle/bundle.umd.js +31 -26
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/mobile/bundle/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/mobile/dist/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/dist/api/LeadServiceAPI.js +3 -3
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/constants.js +5 -1
- package/mobile/dist/components/ApplicationForm/constants.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
- package/mobile/dist/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/Fields/ConsentField.js +1 -1
- package/mobile/dist/retail/components/Fields/ConsentField.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/dist/ui-kit/Button/Button.js +2 -2
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +2 -2
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/mobile/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js +2 -1
- package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js +2 -2
- package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.d.ts +2 -1
- package/mobile/lib/api/LeadServiceAPI.js +3 -3
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/constants.js +5 -1
- package/mobile/lib/components/ApplicationForm/constants.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
- package/mobile/lib/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/Fields/ConsentField.js +1 -1
- package/mobile/lib/retail/components/Fields/ConsentField.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.d.ts +1 -0
- package/mobile/lib/ui-kit/Button/Button.js +2 -2
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +2 -2
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
- package/mobile/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js +2 -1
- package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
- package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js +2 -2
- package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
- package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
- package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +4 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
- package/mobile/src/components/ApplicationForm/constants.ts +5 -1
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -0
- package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +1 -1
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +7 -2
- package/mobile/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +6 -1
- package/mobile/src/retail/components/DaDataInputControl/DaDataInputControl.tsx +1 -0
- package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +3 -1
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +2 -0
- package/mobile/src/retail/components/Fields/ConsentField.tsx +1 -0
- package/mobile/src/retail/components/VerifyPhoneDialog/InputCode.tsx +1 -0
- package/mobile/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +1 -1
- package/mobile/src/ui-kit/Button/Button.tsx +3 -0
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +2 -1
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +1 -0
- package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +3 -0
- package/mobile/src/ui-kit/DatePicker/DatePickerInput.tsx +3 -1
- package/mobile/src/ui-kit/DatePicker/renderDatePickerForm.tsx +3 -0
- package/mobile/src/ui-kit/Input/Input.tsx +1 -0
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
- package/mobile/src/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.tsx +1 -1
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +4 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
- package/src/components/ApplicationForm/constants.ts +5 -1
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -0
- package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +1 -1
- package/src/components/CreditForm/StepsNavigationButtons.tsx +7 -2
- package/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +6 -1
- package/src/retail/components/DaDataInputControl/DaDataInputControl.tsx +1 -0
- package/src/retail/components/DraftDialog/DraftActionButton.tsx +3 -1
- package/src/retail/components/DraftDialog/DraftDialog.tsx +2 -0
- package/src/retail/components/Fields/ConsentField.tsx +1 -0
- package/src/retail/components/VerifyPhoneDialog/InputCode.tsx +1 -0
- package/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +1 -1
- package/src/ui-kit/Button/Button.tsx +3 -0
- package/src/ui-kit/Checkbox/Checkbox.tsx +2 -1
- package/src/ui-kit/Checkbox/CheckboxProps.ts +1 -0
- package/src/ui-kit/DatePicker/DatePicker.tsx +3 -0
- package/src/ui-kit/DatePicker/DatePickerInput.tsx +3 -1
- package/src/ui-kit/DatePicker/renderDatePickerForm.tsx +3 -0
- package/src/ui-kit/Input/Input.tsx +1 -0
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
- package/src/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.tsx +1 -1
|
@@ -20,6 +20,7 @@ export declare type CheckCodeProps = {
|
|
|
20
20
|
code: string;
|
|
21
21
|
body: LeadRequest;
|
|
22
22
|
router: Router;
|
|
23
|
+
endpoint?: EndpointType;
|
|
23
24
|
};
|
|
24
25
|
declare type CheckCodeResponse = {
|
|
25
26
|
errorCode?: string;
|
|
@@ -38,7 +39,7 @@ export declare type sendProps = {
|
|
|
38
39
|
export declare function LeadServiceAPI(): {
|
|
39
40
|
send: ({ body, router, endpoint }: sendProps) => Promise<any>;
|
|
40
41
|
sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
|
|
41
|
-
checkCode: ({ reqId, code, body, router, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
42
|
+
checkCode: ({ reqId, code, body, router, endpoint, }: CheckCodeProps) => Promise<CheckCodeResponse>;
|
|
42
43
|
sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise<any>;
|
|
43
44
|
};
|
|
44
45
|
export {};
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -1323,7 +1323,7 @@
|
|
|
1323
1323
|
};
|
|
1324
1324
|
const embeddedStyle = style('group/btn-embedded', 'bg-transparent border border-transparent outline-none');
|
|
1325
1325
|
const disabledStyle = style('bg-main-gray text-main-disabled cursor-not-allowed');
|
|
1326
|
-
const Button = JSX(({ className, type = 'button', version = 'primary', shape = 'default', embedded, disabled, role, ariaLabel, data, dataTheme, children, wcmsIgnore, onClick = noop, }) => {
|
|
1326
|
+
const Button = JSX(({ className, type = 'button', version = 'primary', shape = 'default', embedded, disabled, role, ariaLabel, data, dataTheme, children, wcmsIgnore, onClick = noop, testId, }) => {
|
|
1327
1327
|
const handleClick = useCallback(role !== 'tab' ? handlerDecorator(onClick) : onClick, [
|
|
1328
1328
|
role,
|
|
1329
1329
|
onClick,
|
|
@@ -1337,7 +1337,7 @@
|
|
|
1337
1337
|
}, embedded ? 'justify-between' : 'justify-center', embedded || isRound ? 'p-0' : 'px-9 py-4', {
|
|
1338
1338
|
'rounded-md': shape === 'default',
|
|
1339
1339
|
'rounded-full': isRound,
|
|
1340
|
-
}, className), type: type, role: role, "aria-label": ariaLabel, disabled: disabled, "aria-disabled": disabled ? 'true' : undefined, "data-theme": dataTheme, "data-wcms-ignore": wcmsIgnore, ...aspectsAttrs, onClick: handleClick, children: children }));
|
|
1340
|
+
}, className), type: type, role: role, "aria-label": ariaLabel, disabled: disabled, "aria-disabled": disabled ? 'true' : undefined, "data-theme": dataTheme, "data-wcms-ignore": wcmsIgnore, ...aspectsAttrs, onClick: handleClick, "data-test-id": testId, children: children }));
|
|
1341
1341
|
});
|
|
1342
1342
|
|
|
1343
1343
|
const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
|
|
@@ -1547,7 +1547,7 @@
|
|
|
1547
1547
|
const paddingStyle = children ? 'pr-3xl' : '';
|
|
1548
1548
|
const validStyle = getValidStyle(valid);
|
|
1549
1549
|
const ariaLabel = label ?? name ?? id;
|
|
1550
|
-
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel$1(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key))] }), children] }));
|
|
1550
|
+
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel$1(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, "data-test-id": name }, key))] }), children] }));
|
|
1551
1551
|
});
|
|
1552
1552
|
|
|
1553
1553
|
const InputWrapper = JSX(({ className, label, value = '', error, errors, type, isInteger, placeholder, maxLength, inputRef, isOpen, onOpen, onClose, required, onChange = noop, ...rest }) => {
|
|
@@ -1803,7 +1803,11 @@
|
|
|
1803
1803
|
isNaturalEndpoint: true,
|
|
1804
1804
|
},
|
|
1805
1805
|
initcorporatelead: {
|
|
1806
|
-
withTypeForm:
|
|
1806
|
+
withTypeForm: true,
|
|
1807
|
+
isNaturalEndpoint: false,
|
|
1808
|
+
},
|
|
1809
|
+
confirmCorporateLead: {
|
|
1810
|
+
withTypeForm: true,
|
|
1807
1811
|
isNaturalEndpoint: false,
|
|
1808
1812
|
},
|
|
1809
1813
|
callback: {
|
|
@@ -1930,14 +1934,14 @@
|
|
|
1930
1934
|
return null;
|
|
1931
1935
|
}
|
|
1932
1936
|
}
|
|
1933
|
-
async function checkCode({ reqId, code, body, router, }) {
|
|
1937
|
+
async function checkCode({ reqId, code, body, router, endpoint = 'confirmCorporateLead', }) {
|
|
1934
1938
|
const submitBody = {
|
|
1935
1939
|
requestId: reqId,
|
|
1936
1940
|
confimationCode: code,
|
|
1937
|
-
leadRequest: getSubmitBody({ body, router }),
|
|
1941
|
+
leadRequest: getSubmitBody({ body, endpoint, router }),
|
|
1938
1942
|
};
|
|
1939
1943
|
try {
|
|
1940
|
-
const response = await LeadServiceFetch(`${API_BASE_URI}
|
|
1944
|
+
const response = await LeadServiceFetch(`${API_BASE_URI}/${endpoint}`, submitBody);
|
|
1941
1945
|
return await response.json();
|
|
1942
1946
|
}
|
|
1943
1947
|
catch (e) {
|
|
@@ -2085,7 +2089,7 @@
|
|
|
2085
2089
|
fill: 'white',
|
|
2086
2090
|
},
|
|
2087
2091
|
];
|
|
2088
|
-
const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
|
|
2092
|
+
const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange, name }) => {
|
|
2089
2093
|
const handleChange = useCallback((e) => {
|
|
2090
2094
|
if (disabled) {
|
|
2091
2095
|
return;
|
|
@@ -2094,7 +2098,7 @@
|
|
|
2094
2098
|
onChange && onChange(!value);
|
|
2095
2099
|
}, [onChange, disabled, value]);
|
|
2096
2100
|
const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
|
|
2097
|
-
return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled), "aria-label": text }), value ? icon : null, renderText$3(text)] }) }));
|
|
2101
|
+
return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), "data-test-id": name, onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled), "aria-label": text }), value ? icon : null, renderText$3(text)] }) }));
|
|
2098
2102
|
});
|
|
2099
2103
|
const renderText$3 = (text) => text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null;
|
|
2100
2104
|
const getCursorStyle = (disabled = false) => (disabled ? 'cursor-not-allowed' : 'cursor-pointer');
|
|
@@ -2438,7 +2442,7 @@
|
|
|
2438
2442
|
width: '24',
|
|
2439
2443
|
height: '24',
|
|
2440
2444
|
};
|
|
2441
|
-
const DatePickerInput = JSX(({ setSelectedMonth, setSelectedYear, className, value, disabled, onChange, onClick }) => {
|
|
2445
|
+
const DatePickerInput = JSX(({ setSelectedMonth, setSelectedYear, className, value, disabled, onChange, onClick, name }) => {
|
|
2442
2446
|
const ref = useRef(null);
|
|
2443
2447
|
const [inputValue, setInputValue] = useState(value || '');
|
|
2444
2448
|
const handleChange = (ev) => {
|
|
@@ -2467,7 +2471,7 @@
|
|
|
2467
2471
|
useEffect(() => {
|
|
2468
2472
|
updateSelectedDate({ inputValue, setSelectedMonth, setSelectedYear, onChange });
|
|
2469
2473
|
}, [inputValue]);
|
|
2470
|
-
return (jsxs("div", { onClick: onInputClick, className: style('relative', className), children: [jsx("input", { ref: ref, className: "h-full w-full px-m text-l text-black focus-visible:outline-none rounded-none", value: inputValue, type: "text", onChange: handleChange, onBlur: onBlur, disabled: disabled }), disabled ? null : jsx(Icon, { className: "mr-s", ...ICON_PROPS$2 })] }));
|
|
2474
|
+
return (jsxs("div", { onClick: onInputClick, className: style('relative', className), children: [jsx("input", { ref: ref, className: "h-full w-full px-m text-l text-black focus-visible:outline-none rounded-none", value: inputValue, type: "text", onChange: handleChange, onBlur: onBlur, disabled: disabled, "data-test-id": name }), disabled ? null : jsx(Icon, { className: "mr-s", ...ICON_PROPS$2 })] }));
|
|
2471
2475
|
});
|
|
2472
2476
|
const isValidYear = (year) => Number(year) >= START_YEAR && Number(year) <= new Date().getFullYear();
|
|
2473
2477
|
const isValidMonth = (month) => Number(month) > 0 && Number(month) < 13;
|
|
@@ -2505,7 +2509,7 @@
|
|
|
2505
2509
|
|
|
2506
2510
|
const formStyle = 'flex justify-between items-center h-14 border rounded-md cursor-pointer ' +
|
|
2507
2511
|
'hover:border-black active:border-black focus:border-black';
|
|
2508
|
-
const renderDatePickerForm = ({ handleChangeVisibleCalendar, value, valid, onChange, setSelectedMonth, setSelectedYear, disabled = false, }) => (jsx(DatePickerInput, { onChange: onChange, disabled: disabled, onClick: handleChangeVisibleCalendar, value: value && formatDate(value), setSelectedMonth: setSelectedMonth, setSelectedYear: setSelectedYear, className: style(formStyle, valid ? 'border-gray' : 'border-error') }));
|
|
2512
|
+
const renderDatePickerForm = ({ handleChangeVisibleCalendar, value, valid, onChange, setSelectedMonth, setSelectedYear, disabled = false, name, }) => (jsx(DatePickerInput, { onChange: onChange, disabled: disabled, onClick: handleChangeVisibleCalendar, value: value && formatDate(value), setSelectedMonth: setSelectedMonth, setSelectedYear: setSelectedYear, className: style(formStyle, valid ? 'border-gray' : 'border-error'), name: name }));
|
|
2509
2513
|
|
|
2510
2514
|
const MONTHS_COUNT = 11;
|
|
2511
2515
|
const MONTHS_OPTIONS = months.map((key) => ({ key }));
|
|
@@ -2587,7 +2591,7 @@
|
|
|
2587
2591
|
};
|
|
2588
2592
|
const DatePicker = JSX(
|
|
2589
2593
|
// eslint-disable-next-line max-lines-per-function
|
|
2590
|
-
({ className = '', label = '', value, valid = true, minDate, maxDate, disabled, weekends, onChange, }) => {
|
|
2594
|
+
({ className = '', label = '', value, valid = true, minDate, maxDate, disabled, weekends, onChange, name, }) => {
|
|
2591
2595
|
const [isCalendarVisible, { setValue, setFalse: hideCalendar }] = useBool(false);
|
|
2592
2596
|
const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
|
|
2593
2597
|
const [selectedYear, setSelectedYear] = useState(value?.getFullYear() ?? new Date().getFullYear());
|
|
@@ -2614,6 +2618,7 @@
|
|
|
2614
2618
|
disabled,
|
|
2615
2619
|
setSelectedMonth,
|
|
2616
2620
|
setSelectedYear,
|
|
2621
|
+
name,
|
|
2617
2622
|
}), isCalendarVisible && !disabled ? (jsxs("div", { className: style('absolute bg-white z-20 select-none', {
|
|
2618
2623
|
'bottom-full': spaceAbove,
|
|
2619
2624
|
}), children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS$1, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS$1, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, min: minDate, max: maxDate, weekends: weekends, onDateSelect: handleDateSelect })] })) : null] })] }));
|
|
@@ -3317,7 +3322,7 @@
|
|
|
3317
3322
|
horizontal: '@lg:flex-row',
|
|
3318
3323
|
vertical: '',
|
|
3319
3324
|
};
|
|
3320
|
-
const RadioButtonGroup = JSX(({ label, items, value, className, disabled = false, orientation = 'horizontal', onChange: onChangeCheckedItem, }) => (jsxs("div", { className: "grid gap-xs whitespace-nowrap", children: [label ? (jsx("div", { role: "radiogroup", "aria-label": label, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: label }) })) : null, jsx("div", { className: style('flex flex-col gap-s', orientationStyleMap[orientation], className), role: "radiogroup", "aria-label": "\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u043D\u043E\u043F\u043E\u043A", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: value === id, onChange: () => onChangeCheckedItem?.(id), disabled: disabled }, String(id)))) })] })));
|
|
3325
|
+
const RadioButtonGroup = JSX(({ label, items, value, className, disabled = false, orientation = 'horizontal', onChange: onChangeCheckedItem, }) => (jsxs("div", { className: "grid gap-xs whitespace-nowrap", children: [label ? (jsx("div", { role: "radiogroup", "aria-label": label, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: label }) })) : null, jsx("div", { className: style('flex flex-col gap-s', orientationStyleMap[orientation], className), role: "radiogroup", "aria-label": "\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u043D\u043E\u043F\u043E\u043A", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: value === id, onChange: () => onChangeCheckedItem?.(id), disabled: disabled, name: id }, String(id)))) })] })));
|
|
3321
3326
|
|
|
3322
3327
|
const VedField = JSX(({ field, input }) => {
|
|
3323
3328
|
const handleChange = useCallback((_) => {
|
|
@@ -3498,14 +3503,14 @@
|
|
|
3498
3503
|
inputRefs.current = [];
|
|
3499
3504
|
}
|
|
3500
3505
|
inputRefs.current[index] = ref;
|
|
3501
|
-
}, onFocus: (event) => event.target.select(), onKeyDown: handleKeyDown(index), className: getInputStyle(index, values, hasError) }, index))) }), hasError ? jsx("div", { className: "text-error", children: errorText }) : null] }));
|
|
3506
|
+
}, onFocus: (event) => event.target.select(), onKeyDown: handleKeyDown(index), className: getInputStyle(index, values, hasError), "data-test-id": `sms-code-${index}` }, index))) }), hasError ? jsx("div", { className: "text-error", children: errorText }) : null] }));
|
|
3502
3507
|
});
|
|
3503
3508
|
const getInputStyle = (index, values, hasError = false) => {
|
|
3504
3509
|
const isInputEmpty = !values[index];
|
|
3505
3510
|
return `w-16 sm:w-20 h-24 text-5xl text-center p-md m-2 border ${getValidStyle(!hasError || !isInputEmpty)} rounded-md caret-transparent outline-none`;
|
|
3506
3511
|
};
|
|
3507
3512
|
|
|
3508
|
-
const SubmitButton = JSX(({ disabled = false, onClick, text }) => (jsx(Button, { type: "button", onClick: onClick, disabled: disabled, children: jsx(Text, { font: "font-normal", children: text }) })));
|
|
3513
|
+
const SubmitButton = JSX(({ disabled = false, onClick, text }) => (jsx(Button, { type: "button", onClick: onClick, disabled: disabled, testId: "sms-code-submit-button", children: jsx(Text, { font: "font-normal", children: text }) })));
|
|
3509
3514
|
|
|
3510
3515
|
const ButtonTitle = JSX(({ className, labelColor, children }) => (jsx("span", { className: style('inline-flex items-center text-start gap-s', labelColor === 'white' ? 'text-white' : 'group-[]/btn-embedded:text-primary-main', className), children: children })));
|
|
3511
3516
|
|
|
@@ -3518,7 +3523,7 @@
|
|
|
3518
3523
|
const VerifyPhoneDialogLayout = JSX(({ children, isLoading, isSubmitButtonDisabled, timeNextReq, onSubmit, onSendCode, values, onChange, errorText, hasError, phone, onClose, }) => (jsx(Dialog, { maxWidth: "lg", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [renderHeadline(phone), jsx(InputCode, { values: values, setValues: onChange, errorText: errorText, hasError: hasError }), renderText$1(timeNextReq, onSendCode), children, renderNextButton(isSubmitButtonDisabled, onSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) })));
|
|
3519
3524
|
const renderHeadline = (phone) => (jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }));
|
|
3520
3525
|
const renderNextButton = (disabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", disabled: disabled, onClick: onClick }));
|
|
3521
|
-
const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base gap-2xs", children: [jsx("span", { children: " \u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437" }), jsx(Timer, { seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
|
|
3526
|
+
const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base gap-2xs", children: [jsx("span", { children: " \u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437" }), jsx(Timer, { seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, testId: "send-new-code-button", children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
|
|
3522
3527
|
|
|
3523
3528
|
const TIME_TO_RESEND$2 = 180;
|
|
3524
3529
|
const getTimer = (sendTime) => TIME_TO_RESEND$2 - Math.floor((Date.now() - sendTime) / 1000);
|
|
@@ -4416,7 +4421,7 @@
|
|
|
4416
4421
|
}
|
|
4417
4422
|
onChange?.(formattedValue);
|
|
4418
4423
|
}, [onChange]);
|
|
4419
|
-
return (jsx(InputWrapper, { value: value, onChange: handleChange, inputRef: inputRef, isOpen: isOpen, onOpen: open, onClose: close, ...rest }));
|
|
4424
|
+
return (jsx(InputWrapper, { value: value, onChange: handleChange, inputRef: inputRef, isOpen: isOpen, onOpen: open, onClose: close, name: name, ...rest }));
|
|
4420
4425
|
});
|
|
4421
4426
|
|
|
4422
4427
|
const AddressField = JSX(({ field, input }) => {
|
|
@@ -5319,7 +5324,7 @@
|
|
|
5319
5324
|
const ConsentField = JSX(({ field, input }) => {
|
|
5320
5325
|
const { productType } = useLeadFormStore();
|
|
5321
5326
|
const consents = productTypeToConsentsMap[productType ?? ''];
|
|
5322
|
-
return input && input.name ? (jsx(CheckboxWithDoc, { text: consents?.[input.name]?.text, docId: consents?.[input.name]?.docId, ...field(input.name) })) : null;
|
|
5327
|
+
return input && input.name ? (jsx(CheckboxWithDoc, { text: consents?.[input.name]?.text, docId: consents?.[input.name]?.docId, ...field(input.name), ...input })) : null;
|
|
5323
5328
|
});
|
|
5324
5329
|
|
|
5325
5330
|
const CalculatorLayout = JSX(({ className, title, children, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-xl', className), defaultPadding: "p-4xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title }) : null, children] })));
|
|
@@ -6564,7 +6569,7 @@
|
|
|
6564
6569
|
?.filter((_) => _.required)
|
|
6565
6570
|
?.some((_) => Boolean(withValidator(field(_?.name), agreementValidator).error)), [inputs]);
|
|
6566
6571
|
const [isUnfolded, { toggle }] = useBool(true);
|
|
6567
|
-
return (jsx("div", { className: "w-fit", children: jsxs(Foldable, { children: [jsxs("div", { className: "flex items-start", children: [jsxs("div", { children: [jsx(Checkbox, { text: CONSENT_ALL_DOCS_TEXT, value: isChecked, onChange: handleGeneralToggle }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] }), jsx(Button, { embedded: true, ariaLabel: CONSENT_ALL_DOCS_TEXT, onClick: toggle, children: jsx(ToggleIcon, { className: "p-2xs", iconVersion: "color", isUnfolded: isUnfolded }) })] }), jsx(FoldableSection, { className: "flex flex-col pl-2xl", isUnfolded: isUnfolded, children: inputs.map(getField(field, {}, InputsConsentsMap)) })] }) }));
|
|
6572
|
+
return (jsx("div", { className: "w-fit", children: jsxs(Foldable, { children: [jsxs("div", { className: "flex items-start", children: [jsxs("div", { children: [jsx(Checkbox, { text: CONSENT_ALL_DOCS_TEXT, value: isChecked, onChange: handleGeneralToggle, name: "all-consents" }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] }), jsx(Button, { embedded: true, ariaLabel: CONSENT_ALL_DOCS_TEXT, onClick: toggle, children: jsx(ToggleIcon, { className: "p-2xs", iconVersion: "color", isUnfolded: isUnfolded }) })] }), jsx(FoldableSection, { className: "flex flex-col pl-2xl", isUnfolded: isUnfolded, children: inputs.map(getField(field, {}, InputsConsentsMap)) })] }) }));
|
|
6568
6573
|
});
|
|
6569
6574
|
|
|
6570
6575
|
const renderInputs$1 = ({ field, inputs }, productType) => {
|
|
@@ -6576,7 +6581,7 @@
|
|
|
6576
6581
|
restInputs: inputs.filter(({ name }) => !Object.keys(productTypeToConsentsMap[productType]).includes(String(name))),
|
|
6577
6582
|
});
|
|
6578
6583
|
|
|
6579
|
-
const renderSubmitButton = (button, isSending = false) => (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending, children: button?.text ? button.text : 'Отправить заявку' }));
|
|
6584
|
+
const renderSubmitButton = (button, isSending = false) => (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending, testId: "LeadSubmitButton", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
6580
6585
|
|
|
6581
6586
|
const createDraftTask = async (body) => {
|
|
6582
6587
|
const res = await fetchRetailJSON('/user-data/createDraftTask', 'POST', body);
|
|
@@ -6840,7 +6845,7 @@
|
|
|
6840
6845
|
setShowRefuseContent(value === 'REFUSE');
|
|
6841
6846
|
}, []);
|
|
6842
6847
|
const consentText = showRefuseContent ? refuseConsentText : defaultConsentText;
|
|
6843
|
-
return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx("div", { role: "button", onClick: openDocument, children: jsx(Heading, { className: "text-center text-balance", headingType: "h2", title: consentText.title }) }), jsx(Paragraph, { align: "text-center", children: consentText.description }), jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: ITEMS, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
|
|
6848
|
+
return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx("div", { role: "button", onClick: openDocument, children: jsx(Heading, { className: "text-center text-balance", headingType: "h2", title: consentText.title }) }), jsx(Paragraph, { align: "text-center", children: consentText.description }), jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: ITEMS, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, testId: "bki-button", children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
|
|
6844
6849
|
});
|
|
6845
6850
|
|
|
6846
6851
|
const useConsentBkiDialog = (onClose) => {
|
|
@@ -6941,7 +6946,7 @@
|
|
|
6941
6946
|
...debitCardCodesToProgrammIdMap,
|
|
6942
6947
|
};
|
|
6943
6948
|
|
|
6944
|
-
const DraftActionButton = JSX(({ title, icon, description, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? (jsx(Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
6949
|
+
const DraftActionButton = JSX(({ title, icon, description, name, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, "data-test-id": name, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? (jsx(Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
6945
6950
|
|
|
6946
6951
|
const fieldsNamesToContactKeysMap = {
|
|
6947
6952
|
email: 'EMAIL',
|
|
@@ -7203,7 +7208,7 @@
|
|
|
7203
7208
|
const handleGoToNewTask = useCallback(() => {
|
|
7204
7209
|
navigator.assign(productData.newTaskLink);
|
|
7205
7210
|
}, []);
|
|
7206
|
-
return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
|
|
7211
|
+
return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft, name: "go-to-draft-button" }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask, name: "go-to-current-task-button" })] })] }) }));
|
|
7207
7212
|
});
|
|
7208
7213
|
|
|
7209
7214
|
const EmptyDraftDialog = JSX(function ({ isDebit, onClose = noop }) {
|
|
@@ -11179,7 +11184,7 @@
|
|
|
11179
11184
|
const StepsNavigationButtons$1 = JSX(({ step, onPrevStep, isSending }) => {
|
|
11180
11185
|
const isFirstStep = step === 0;
|
|
11181
11186
|
const isFinalStep = step === 5;
|
|
11182
|
-
return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
11187
|
+
return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, testId: "back-button", children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, testId: "next-button", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
11183
11188
|
});
|
|
11184
11189
|
|
|
11185
11190
|
const PAYMENT_TYPE_DATA = {
|
|
@@ -14138,7 +14143,7 @@
|
|
|
14138
14143
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14139
14144
|
});
|
|
14140
14145
|
|
|
14141
|
-
const packageVersion = "0.14.
|
|
14146
|
+
const packageVersion = "0.14.1001";
|
|
14142
14147
|
|
|
14143
14148
|
exports.Blocks = Blocks;
|
|
14144
14149
|
exports.ContentPage = ContentPage;
|