@redneckz/wildless-cms-uni-blocks 0.14.696 → 0.14.698
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/bin/migrate.js +2 -5
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +28 -18
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/RollupItem/getIconName.d.ts +1 -1
- package/bundle/icons/IconName.d.ts +218 -218
- package/bundle/model/LinkProps.d.ts +3 -3
- package/bundle/ui-kit/Input/getValidStyle.d.ts +1 -0
- package/bundle/utils/safeJsonParse.d.ts +1 -0
- package/cosmos-static/icons/sprites.svg +101 -101
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +2 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.js +1 -2
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.js +1 -2
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/dist/components/RollupItem/getIconName.d.ts +1 -1
- package/dist/components/StepsBlock/renderStep.js +1 -1
- package/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/dist/components/StepsBlock/renderStepMobile.js +1 -1
- package/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +2 -2
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/content-page-repository/ContentPageRepository.js +2 -3
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/hooks/useLocalStorage.js +2 -1
- package/dist/hooks/useLocalStorage.js.map +1 -1
- package/dist/icons/IconName.d.ts +218 -218
- package/dist/icons/IconName.js +217 -217
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/LinkProps.d.ts +3 -3
- package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/dist/ui-kit/DialogManager/Dialog.js +1 -1
- package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CreditCalcField.js +1 -1
- package/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +2 -3
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/getValidStyle.d.ts +1 -0
- package/dist/ui-kit/Input/getValidStyle.js +6 -0
- package/dist/ui-kit/Input/getValidStyle.js.map +1 -0
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js +2 -1
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/utils/safeJsonParse.d.ts +1 -0
- package/dist/utils/safeJsonParse.js +12 -0
- package/dist/utils/safeJsonParse.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.d.ts +1 -0
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +2 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.fixture.mobile.d.ts +5 -0
- package/lib/components/CreditCardForm/CreditCardForm.js +1 -2
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.fixture.mobile.d.ts +5 -0
- package/lib/components/CreditForm/CreditForm.js +1 -2
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/lib/components/RollupItem/getIconName.d.ts +1 -1
- package/lib/components/StepsBlock/renderStep.js +1 -1
- package/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/lib/components/StepsBlock/renderStepMobile.js +1 -1
- package/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +2 -2
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/content-page-repository/ContentPageRepository.js +2 -3
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/hooks/useLocalStorage.js +2 -1
- package/lib/hooks/useLocalStorage.js.map +1 -1
- package/lib/icons/IconName.d.ts +218 -218
- package/lib/icons/IconName.js +217 -217
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/LinkProps.d.ts +3 -3
- package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/lib/ui-kit/DialogManager/Dialog.js +1 -1
- package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CreditCalcField.js +1 -1
- package/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +1 -2
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/getValidStyle.d.ts +1 -0
- package/lib/ui-kit/Input/getValidStyle.js +3 -0
- package/lib/ui-kit/Input/getValidStyle.js.map +1 -0
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js +2 -1
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/utils/safeJsonParse.d.ts +1 -0
- package/lib/utils/safeJsonParse.js +9 -0
- package/lib/utils/safeJsonParse.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +29 -19
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/RollupItem/getIconName.d.ts +1 -1
- package/mobile/bundle/icons/IconName.d.ts +218 -218
- package/mobile/bundle/model/LinkProps.d.ts +3 -3
- package/mobile/bundle/ui-kit/Input/getValidStyle.d.ts +1 -0
- package/mobile/bundle/utils/safeJsonParse.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +2 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +1 -2
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js +1 -2
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/RollupItem/getIconName.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStepMobile.js +1 -1
- package/mobile/dist/components/StepsBlock/renderStepMobile.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +2 -2
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.js +2 -3
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/dist/hooks/useLocalStorage.js +2 -1
- package/mobile/dist/hooks/useLocalStorage.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +218 -218
- package/mobile/dist/icons/IconName.js +217 -217
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/LinkProps.d.ts +3 -3
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.js +1 -1
- package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +2 -3
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/getValidStyle.d.ts +1 -0
- package/mobile/dist/ui-kit/Input/getValidStyle.js +6 -0
- package/mobile/dist/ui-kit/Input/getValidStyle.js.map +1 -0
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js +2 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/utils/safeJsonParse.d.ts +1 -0
- package/mobile/dist/utils/safeJsonParse.js +12 -0
- package/mobile/dist/utils/safeJsonParse.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +2 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +1 -2
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js +1 -2
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/RollupItem/getIconName.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStepMobile.js +1 -1
- package/mobile/lib/components/StepsBlock/renderStepMobile.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +2 -2
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.js +2 -3
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/lib/hooks/useLocalStorage.js +2 -1
- package/mobile/lib/hooks/useLocalStorage.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +218 -218
- package/mobile/lib/icons/IconName.js +217 -217
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/LinkProps.d.ts +3 -3
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.js +1 -1
- package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -2
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/getValidStyle.d.ts +1 -0
- package/mobile/lib/ui-kit/Input/getValidStyle.js +3 -0
- package/mobile/lib/ui-kit/Input/getValidStyle.js.map +1 -0
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js +2 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/utils/safeJsonParse.d.ts +1 -0
- package/mobile/lib/utils/safeJsonParse.js +9 -0
- package/mobile/lib/utils/safeJsonParse.js.map +1 -0
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -1
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +1 -2
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
- package/mobile/src/components/CreditForm/CreditForm.tsx +1 -2
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- package/mobile/src/components/StepsBlock/renderStep.tsx +1 -5
- package/mobile/src/components/StepsBlock/renderStepMobile.tsx +1 -5
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
- package/mobile/src/components/TextBlock/TextBlock.tsx +2 -7
- package/mobile/src/content-page-repository/ContentPageRepository.ts +2 -3
- package/mobile/src/hooks/useLocalStorage.ts +2 -1
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/model/LinkProps.ts +3 -3
- package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +1 -1
- package/mobile/src/ui-kit/DialogManager/Dialog.tsx +1 -5
- package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/CreditCalcField.tsx +1 -0
- package/mobile/src/ui-kit/Input/Input.tsx +1 -3
- package/mobile/src/ui-kit/Input/getValidStyle.tsx +3 -0
- package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +4 -3
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/mobile/src/utils/safeJsonParse.ts +7 -0
- package/package.json +5 -6
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +15 -23
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -1
- package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +25 -0
- package/src/components/CreditCardForm/CreditCardForm.tsx +1 -2
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +1 -1
- package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +30 -0
- package/src/components/CreditForm/CreditForm.tsx +1 -2
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- package/src/components/StepsBlock/renderStep.tsx +1 -5
- package/src/components/StepsBlock/renderStepMobile.tsx +1 -5
- package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +1 -1
- package/src/components/TextBlock/TextBlock.tsx +2 -7
- package/src/content-page-repository/ContentPageRepository.ts +2 -3
- package/src/hooks/useLocalStorage.ts +2 -1
- package/src/icons/IconName.ts +5 -5
- package/src/model/LinkProps.ts +3 -3
- package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +1 -1
- package/src/ui-kit/DialogManager/Dialog.tsx +1 -5
- package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
- package/src/ui-kit/FormField/Fields/CreditCalcField.tsx +1 -0
- package/src/ui-kit/Input/Input.tsx +1 -3
- package/src/ui-kit/Input/getValidStyle.tsx +3 -0
- package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +4 -3
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/src/utils/safeJsonParse.ts +7 -0
|
@@ -26,6 +26,6 @@ export const EsiaLoginDialog = JSX(({ onClose }) => {
|
|
|
26
26
|
}
|
|
27
27
|
onClose?.();
|
|
28
28
|
}, []);
|
|
29
|
-
return (_jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: _jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [_jsxs("div", { className: "flex items-center justify-around w-full", children: [_jsxs("ul", { className: "list-disc", children: [_jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), _jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), _jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), _jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), _jsxs("div", { className: "flex
|
|
29
|
+
return (_jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: _jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [_jsxs("div", { className: "flex items-center justify-around w-full px-m", children: [_jsxs("ul", { className: "list-disc", children: [_jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), _jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), _jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), _jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), _jsxs("div", { className: "flex flex-wrap gap-lg w-full", children: [_jsx(Button, { type: "button", onClick: handleAuth, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), _jsx(Button, { type: "button", version: "secondary", onClick: handleClose, children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
|
|
30
30
|
});
|
|
31
31
|
//# sourceMappingURL=EsiaLoginDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EsiaLoginDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAMjC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAuB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACvE,MAAM,SAAS,GAAG,iBAAiB,EAAE,CAAC;IACtC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,eAAe,CAAY,UAAU,CAAC,CAAC;IACvE,MAAM,UAAU,GA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,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,UAAU,6JAEhC,EACT,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,WAAW,6EAErD,IACL,IACF,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -8,6 +8,6 @@ export const CreditCalcField = JSX(({ field, params }) => {
|
|
|
8
8
|
const handleChange = useCallback((_) => {
|
|
9
9
|
field(FIELD_NAME).onChange?.(_);
|
|
10
10
|
}, []);
|
|
11
|
-
return (_jsx(CalculatorCredit, { ...params?.calcData, defaultParams: defaultValueAdapter(field(FIELD_NAME).value), onChange: handleChange }));
|
|
11
|
+
return (_jsx(CalculatorCredit, { ...params?.calcData, padding: "p-0", defaultParams: defaultValueAdapter(field(FIELD_NAME).value), onChange: handleChange }));
|
|
12
12
|
});
|
|
13
13
|
//# sourceMappingURL=CreditCalcField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCalcField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CreditCalcField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAG/F,MAAM,UAAU,GAAG,YAAY,CAAC;AAEhC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;IACzE,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAkC,EAAE,EAAE;QACtE,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,KAAC,gBAAgB,OACX,MAAM,EAAE,QAAQ,EACpB,aAAa,EAAE,mBAAmB,CAChC,KAAK,CAAC,UAAU,CAAC,CAAC,KAAwC,CAC3D,EACD,QAAQ,EAAE,YAAY,GACtB,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"CreditCalcField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/CreditCalcField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uDAAuD,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0DAA0D,CAAC;AAG/F,MAAM,UAAU,GAAG,YAAY,CAAC;AAEhC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE;IACzE,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAkC,EAAE,EAAE;QACtE,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,KAAC,gBAAgB,OACX,MAAM,EAAE,QAAQ,EACpB,OAAO,EAAC,KAAK,EACb,aAAa,EAAE,mBAAmB,CAChC,KAAK,CAAC,UAAU,CAAC,CAAC,KAAwC,CAC3D,EACD,QAAQ,EAAE,YAAY,GACtB,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useCallback, useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
4
|
import { style } from '../../utils/style.js';
|
|
5
|
-
import {
|
|
5
|
+
import { getValidStyle } from './getValidStyle.js';
|
|
6
6
|
import { renderLabel } from './renderLabel.js';
|
|
7
7
|
export const Input = JSX(
|
|
8
8
|
// eslint-disable-next-line max-lines-per-function
|
|
@@ -21,6 +21,5 @@ export const Input = JSX(
|
|
|
21
21
|
const validStyle = getValidStyle(valid);
|
|
22
22
|
return (_jsxs("div", { className: style('relative', className), children: [_jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (_jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle, validStyle), id: style('textarea', id), name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, disabled: disabled }, key)) : (_jsx("input", { type: type, className: style('h-14', defaultStyle, paddingStyle, validStyle), ref: inputRef, id: id, name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern, disabled: disabled }, key))] }), children] }));
|
|
23
23
|
});
|
|
24
|
-
const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
|
|
25
24
|
const defaultStyle = 'w-full border rounded-md text-primary-text outline-none p-m';
|
|
26
25
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/ui-kit/Input/Input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/ui-kit/Input/Input.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM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AU,EAAE,SAAS,CAAC,aAC1C,iBAAO,SAAS,EAAC,YAAY,aAC1B,WAAW,CAAC,KAAK,CAAC,EAClB,UAAU,CAAC,CAAC,CAAC,CACZ,mBACE,SAAS,EAAE,KAAK,CAAC,yBAAyB,EAAE,YAAY,EAAE,UAAU,CAAC,EAErE,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC,EACzB,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,IARb,GAAG,CASR,CACH,CAAC,CAAC,CAAC,CACF,gBACE,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,CAAC,EAChE,GAAG,EAAE,QAAQ,EAEb,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IATb,GAAG,CAUR,CACH,IACK,EACP,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG,6DAA6D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getValidStyle: (valid: boolean) => "border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded" | "border-error";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getValidStyle.js","sourceRoot":"","sources":["../../../src/ui-kit/Input/getValidStyle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
import { getValidStyle } from '../Input/getValidStyle.js';
|
|
4
5
|
export const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
|
|
5
6
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
6
7
|
const inputRefs = useRef([]);
|
|
@@ -38,6 +39,6 @@ export const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
|
|
|
38
39
|
});
|
|
39
40
|
const getInputStyle = (index, values, hasError = false) => {
|
|
40
41
|
const isInputEmpty = !values[index];
|
|
41
|
-
return `w-20 h-24 text-5xl text-center p-
|
|
42
|
+
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`;
|
|
42
43
|
};
|
|
43
44
|
//# sourceMappingURL=InputCode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputCode.js","sourceRoot":"","sources":["../../../src/ui-kit/VerifyPhoneDialog/InputCode.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"InputCode.js","sourceRoot":"","sources":["../../../src/ui-kit/VerifyPhoneDialog/InputCode.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,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AAK,EACZ,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,EAC7B,OAAO,EAAE,WAAW,EACpB,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;wBACX,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;4BACtB,SAAS,CAAC,OAAO,GAAG,EAAE,CAAC;yBACxB;wBACD,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,GAAuB,CAAC;oBACrD,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,EACzC,SAAS,EAAE,aAAa,CAAC,KAAK,CAAC,EAC/B,SAAS,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,IAd5C,KAAK,CAeV,CACH,CAAC,GACE,EACL,QAAQ,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,YAAY,YAAE,SAAS,GAAO,CAAC,CAAC,CAAC,IAAI,IAC5D,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,MAAgB,EAAE,QAAQ,GAAG,KAAK,EAAE,EAAE;IAC1E,MAAM,YAAY,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAEpC,OAAO,0DAA0D,aAAa,CAC5E,CAAC,QAAQ,IAAI,CAAC,YAAY,CAC3B,4CAA4C,CAAC;AAChD,CAAC,CAAC"}
|
|
@@ -35,7 +35,7 @@ export const VerifyPhoneDialog = JSX(({ title, description, __html, code = true,
|
|
|
35
35
|
useEffect(() => {
|
|
36
36
|
handleSendCode();
|
|
37
37
|
}, []);
|
|
38
|
-
return (_jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl
|
|
38
|
+
return (_jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: _jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [_jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (_jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText(timeNextReq, setTimeNextReq, handleSendCode), _jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? _jsx(Loader, { blur: false }) : null] }) }));
|
|
39
39
|
});
|
|
40
40
|
const renderTextButton = (textButton, isDisabled, handleSubmit) => textButton ? (_jsx(SubmitButton, { isDisabled: isDisabled, onClick: handleSubmit, text: textButton })) : null;
|
|
41
41
|
const renderText = (timeNextReq, setTimeNextReq, handleSendCode) => timeNextReq ? (_jsxs("div", { className: "flex flex-row text-l font-light text-base", 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, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (_jsx(LinkButton, { onClick: handleSendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyPhoneDialog.js","sourceRoot":"","sources":["../../../src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE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nB,cAAuC,EACvC,cAA0B,EAC1B,EAAE,CACF,WAAW,CAAC,CAAC,CAAC,CACZ,eAAK,SAAS,EAAC,2CAA2C,iLAExD,KAAC,KAAK,IAAC,SAAS,EAAC,gBAAgB,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,GAAI,IAC5E,CACP,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IAAC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAC,mBAAmB,mHAErD,CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const safeJsonParse: <T>(data?: string) => T | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safeJsonParse.js","sourceRoot":"","sources":["../../src/utils/safeJsonParse.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAI,IAAa,EAAY,EAAE;IAC1D,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;KACjC;IAAC,OAAO,EAAE,EAAE;QACX,OAAO,IAAI,CAAC;KACb;AACH,CAAC,CAAC"}
|
|
@@ -1270,6 +1270,8 @@
|
|
|
1270
1270
|
|
|
1271
1271
|
const inputValidStyle = 'border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded';
|
|
1272
1272
|
|
|
1273
|
+
const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
|
|
1274
|
+
|
|
1273
1275
|
const renderLabel = (label) => label ? (jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label })) : null;
|
|
1274
1276
|
|
|
1275
1277
|
const Input = JSX(
|
|
@@ -1289,7 +1291,6 @@
|
|
|
1289
1291
|
const validStyle = getValidStyle(valid);
|
|
1290
1292
|
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, disabled: disabled }, key)) : (jsx("input", { type: type, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), ref: inputRef, id: id, name: name || id, placeholder: placeholder, value: value, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern, disabled: disabled }, key))] }), children] }));
|
|
1291
1293
|
});
|
|
1292
|
-
const getValidStyle = (valid) => (valid ? inputValidStyle : 'border-error');
|
|
1293
1294
|
const defaultStyle$1 = 'w-full border rounded-md text-primary-text outline-none p-m';
|
|
1294
1295
|
|
|
1295
1296
|
const renderErrorText = (error) => (jsx("div", { className: "h-6", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null }));
|
|
@@ -2988,9 +2989,18 @@
|
|
|
2988
2989
|
return Array.isArray(data) ? data : [];
|
|
2989
2990
|
};
|
|
2990
2991
|
|
|
2992
|
+
const safeJsonParse = (data) => {
|
|
2993
|
+
try {
|
|
2994
|
+
return JSON.parse(String(data));
|
|
2995
|
+
}
|
|
2996
|
+
catch (ex) {
|
|
2997
|
+
return null;
|
|
2998
|
+
}
|
|
2999
|
+
};
|
|
3000
|
+
|
|
2991
3001
|
function useLocalStorage(key) {
|
|
2992
3002
|
const initialValue = globalThis.localStorage?.getItem(key);
|
|
2993
|
-
const [storedValue, setStoredValue] = useState(initialValue ?
|
|
3003
|
+
const [storedValue, setStoredValue] = useState(initialValue ? safeJsonParse(initialValue) : null);
|
|
2994
3004
|
const setValue = useCallback((value) => {
|
|
2995
3005
|
setStoredValue((oldValue) => {
|
|
2996
3006
|
const newValue = value instanceof Function ? value(oldValue) : value;
|
|
@@ -3104,7 +3114,7 @@
|
|
|
3104
3114
|
|
|
3105
3115
|
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" }) })));
|
|
3106
3116
|
|
|
3107
|
-
const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative
|
|
3117
|
+
const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative bg-white pt-0 p-lg', className), role: "dialog", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
|
|
3108
3118
|
|
|
3109
3119
|
// TODO Перенесено как есть из openDocument. Требует рефакторинга
|
|
3110
3120
|
const DocumentDialog = JSX(({ src, convertToPng, onClose }) => (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [convertToPng ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: onClose, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] })));
|
|
@@ -3138,7 +3148,7 @@
|
|
|
3138
3148
|
|
|
3139
3149
|
const CalculatorStyle = {
|
|
3140
3150
|
wrapper: 'flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl',
|
|
3141
|
-
input: 'flex flex-col lg:
|
|
3151
|
+
input: 'flex flex-col lg:w-1/2 gap-2xl',
|
|
3142
3152
|
result: 'flex flex-col gap-y-xl min-w-52',
|
|
3143
3153
|
};
|
|
3144
3154
|
|
|
@@ -3437,7 +3447,7 @@
|
|
|
3437
3447
|
const handleChange = useCallback((_) => {
|
|
3438
3448
|
field(FIELD_NAME$9).onChange?.(_);
|
|
3439
3449
|
}, []);
|
|
3440
|
-
return (jsx(CalculatorCredit, { ...params?.calcData, defaultParams: defaultValueAdapter(field(FIELD_NAME$9).value), onChange: handleChange }));
|
|
3450
|
+
return (jsx(CalculatorCredit, { ...params?.calcData, padding: "p-0", defaultParams: defaultValueAdapter(field(FIELD_NAME$9).value), onChange: handleChange }));
|
|
3441
3451
|
});
|
|
3442
3452
|
|
|
3443
3453
|
const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
|
|
@@ -4369,7 +4379,7 @@
|
|
|
4369
4379
|
});
|
|
4370
4380
|
const getInputStyle = (index, values, hasError = false) => {
|
|
4371
4381
|
const isInputEmpty = !values[index];
|
|
4372
|
-
return `w-20 h-24 text-5xl text-center p-
|
|
4382
|
+
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`;
|
|
4373
4383
|
};
|
|
4374
4384
|
|
|
4375
4385
|
const SubmitButton = JSX(({ isDisabled, onClick, text }) => {
|
|
@@ -4450,7 +4460,7 @@
|
|
|
4450
4460
|
useEffect(() => {
|
|
4451
4461
|
handleSendCode();
|
|
4452
4462
|
}, []);
|
|
4453
|
-
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl
|
|
4463
|
+
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$2(timeNextReq, setTimeNextReq, handleSendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
4454
4464
|
});
|
|
4455
4465
|
const renderTextButton = (textButton, isDisabled, handleSubmit) => textButton ? (jsx(SubmitButton, { isDisabled: isDisabled, onClick: handleSubmit, text: textButton })) : null;
|
|
4456
4466
|
const renderText$2 = (timeNextReq, setTimeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", 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, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (jsx(LinkButton, { onClick: handleSendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
|
|
@@ -4482,7 +4492,7 @@
|
|
|
4482
4492
|
}
|
|
4483
4493
|
}, []);
|
|
4484
4494
|
const consentText = showRefuseContent ? refuseConsentText : defaultConsentText;
|
|
4485
|
-
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg
|
|
4495
|
+
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg px-5xl", 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$1, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
|
|
4486
4496
|
});
|
|
4487
4497
|
|
|
4488
4498
|
const useConsentBkiDialog = (onClose) => {
|
|
@@ -4550,7 +4560,7 @@
|
|
|
4550
4560
|
}
|
|
4551
4561
|
onClose?.();
|
|
4552
4562
|
}, []);
|
|
4553
|
-
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "flex
|
|
4563
|
+
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full px-m", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "flex flex-wrap gap-lg w-full", children: [jsx(Button, { type: "button", onClick: handleAuth, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
|
|
4554
4564
|
});
|
|
4555
4565
|
|
|
4556
4566
|
const useEsiaLoginDialog = (nextStepLink) => {
|
|
@@ -4836,7 +4846,7 @@
|
|
|
4836
4846
|
}
|
|
4837
4847
|
}, [nextStepLink]);
|
|
4838
4848
|
useEffect(() => {
|
|
4839
|
-
const profileId =
|
|
4849
|
+
const profileId = (safeJsonParse(globalThis.localStorage?.getItem('profileId') ?? ''));
|
|
4840
4850
|
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
4841
4851
|
const code = params.get('code');
|
|
4842
4852
|
const state = params.get('state');
|
|
@@ -6388,7 +6398,7 @@
|
|
|
6388
6398
|
APPROVED: jsx(SuccessStatusContent$1, {}),
|
|
6389
6399
|
REVISION: jsx(ReworkStatusContent$1, {}),
|
|
6390
6400
|
};
|
|
6391
|
-
return statusesMap[status] ||
|
|
6401
|
+
return statusesMap[status] || jsx(ReworkStatusContent$1, {});
|
|
6392
6402
|
};
|
|
6393
6403
|
|
|
6394
6404
|
const formStateMap$1 = [
|
|
@@ -7166,7 +7176,7 @@
|
|
|
7166
7176
|
}, []);
|
|
7167
7177
|
const sections = useMemo(() => stepsSectionsMap$1[step], [step]);
|
|
7168
7178
|
const [isFormFinished, setIsFormFinished] = useState(false);
|
|
7169
|
-
return (jsx(BlockWrapper, { className:
|
|
7179
|
+
return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { ref: formContainerRef, className: "container grid grid-cols-12", children: [isFormFinished ? null : (jsx(CreditCardFormProgress, { stepsTitles: TITLES, step: step, totalSteps: STEPS$1 })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditCardFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished }, String(step)) })] }) }));
|
|
7170
7180
|
});
|
|
7171
7181
|
|
|
7172
7182
|
const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
|
|
@@ -7295,7 +7305,7 @@
|
|
|
7295
7305
|
APPROVED: jsx(SuccessStatusContent, {}),
|
|
7296
7306
|
REVISION: jsx(ReworkStatusContent, {}),
|
|
7297
7307
|
};
|
|
7298
|
-
return statusesMap[status] ||
|
|
7308
|
+
return statusesMap[status] || jsx(ReworkStatusContent, {});
|
|
7299
7309
|
};
|
|
7300
7310
|
|
|
7301
7311
|
const formStateMap = [
|
|
@@ -7981,7 +7991,7 @@
|
|
|
7981
7991
|
const sections = useMemo(() => stepsSectionsMap[step], [step]);
|
|
7982
7992
|
const isStartStep = step === 0;
|
|
7983
7993
|
const [isFormFinished, setIsFormFinished] = useState(false);
|
|
7984
|
-
return (jsx(BlockWrapper, { className:
|
|
7994
|
+
return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { ref: formContainerRef, className: "container grid grid-cols-12", children: [isStartStep || isFormFinished ? null : (jsx(CreditFormProgress, { stepsTitles: STEP_TITLES, step: step, totalSteps: STEPS })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished, programsSource: programsSource }, String(step)) })] }) }));
|
|
7985
7995
|
});
|
|
7986
7996
|
|
|
7987
7997
|
const isRateRow = (rateRow) => typeof rateRow?.minMonths === 'number' && typeof rateRow?.maxMonths === 'number';
|
|
@@ -9251,7 +9261,7 @@
|
|
|
9251
9261
|
const { button } = step;
|
|
9252
9262
|
return (jsx("div", { className: "contents", children: jsxs("div", { className: "flex items-center relative flex-row", children: [jsx("div", { className: "overflow-hidden flex flex-shrink-0 items-center", children: renderIconArea(stepsSize, stepVersion)(step, i) }), jsxs("div", { className: style('flex flex-col justify-center h-fit w-full', {
|
|
9253
9263
|
'min-h-6xl': stepsSize,
|
|
9254
|
-
}), children: [renderText(step), button?.text ? (jsx(LinkButton, { className: "box-border py-s w-full
|
|
9264
|
+
}), children: [renderText(step), button?.text ? (jsx(LinkButton, { className: "box-border py-s w-full mt-lg", version: version, ...button, children: button?.text })) : null] })] }) }, String(i)));
|
|
9255
9265
|
};
|
|
9256
9266
|
const renderIconArea = (stepsSize, stepVersion) => (step, i) => {
|
|
9257
9267
|
const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
|
|
@@ -9275,7 +9285,7 @@
|
|
|
9275
9285
|
|
|
9276
9286
|
const StickyBottomMenuItem = JSX(({ isActive, item, onClick }) => (jsxs("div", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), title: item?.title || '', onClick: onClick, children: [jsx(Icon, { className: "w-6 h-6", name: item?.icon?.icon, iconVersion: isActive ? 'color' : 'black' }), item?.title || ''] })));
|
|
9277
9287
|
|
|
9278
|
-
const StickyBottomMenuDialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { onClick: onClick, className: style('relative
|
|
9288
|
+
const StickyBottomMenuDialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { onClick: onClick, className: style('relative bg-white p-0 rounded-xl top-32', className), role: "dialog", children: [jsxs("div", { className: "sticky py-xl top-0 rounded-xl bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-1.5 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
|
|
9279
9289
|
|
|
9280
9290
|
const useBottomMenuItemDialog = ({ menuRef, dialogRef, leftItems, rightItems, onClose, }) => {
|
|
9281
9291
|
const { open, close } = useDialogManager();
|
|
@@ -9849,8 +9859,8 @@
|
|
|
9849
9859
|
return (jsxs(BlockWrapper, { className: style('relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m overflow-hidden", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
|
|
9850
9860
|
});
|
|
9851
9861
|
|
|
9852
|
-
const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m
|
|
9853
|
-
const renderIcon = () => (jsx("div", { className:
|
|
9862
|
+
const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, richVersion, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { richVersion: richVersion, __html: __html }) : null] })] })));
|
|
9863
|
+
const renderIcon = () => (jsx("div", { className: "rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main", children: "i" }));
|
|
9854
9864
|
const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
9855
9865
|
|
|
9856
9866
|
const Unit = JSX(({ prefix, unit, suffix }) => (jsxs("div", { className: "w-full flex items-end", children: [prefix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: prefix }) })) : null, unit ? (
|
|
@@ -10033,7 +10043,7 @@
|
|
|
10033
10043
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10034
10044
|
});
|
|
10035
10045
|
|
|
10036
|
-
const packageVersion = "0.14.
|
|
10046
|
+
const packageVersion = "0.14.697";
|
|
10037
10047
|
|
|
10038
10048
|
exports.Blocks = Blocks;
|
|
10039
10049
|
exports.ContentPage = ContentPage;
|