@ashtuka/react-lib 1.0.40 → 1.0.42
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/README.md +13 -2
- package/dist/chunks/LoadAbleImg-jaQDlIaY.mjs +75 -0
- package/dist/chunks/Service-uGKXRZVE.mjs +47 -0
- package/dist/chunks/breakpoints-BOwHOeQN.mjs +8 -0
- package/dist/chunks/file-C_N83pgK.mjs +5 -0
- package/dist/chunks/index-BDjvzGbZ.mjs +44 -0
- package/dist/chunks/spinner-By2573Fq.mjs +10 -0
- package/dist/components/LoadAbleImg/LoadAbleImg.d.ts +1 -1
- package/dist/constants/breakpoints.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.es.js +7 -3
- package/dist/hooks/useBreakPoint-C-91njOc.mjs +13 -0
- package/dist/hooks/useBreakPoint.d.ts +24 -0
- package/dist/hooks/useOutsideClick-DPN2gHf5.mjs +15 -0
- package/dist/hooks/useOutsideClick.d.ts +22 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.es.js +18 -4
- package/dist/modules/AuthModule/AuthModule-wq1Xt6Op.mjs +1001 -0
- package/dist/modules/AuthModule/AuthModule.css +1 -0
- package/dist/modules/AuthModule/AuthModule.d.ts +3 -0
- package/dist/modules/AuthModule/AuthModule.types.d.ts +82 -0
- package/dist/modules/AuthModule/ButtonSpinner/ButtonSpinner.d.ts +2 -0
- package/dist/modules/AuthModule/EmailSent/EmailSent.d.ts +9 -0
- package/dist/modules/AuthModule/ErrorMessage/ErrorMessage.d.ts +11 -0
- package/dist/modules/AuthModule/InputItem/InputItem.d.ts +16 -0
- package/dist/modules/AuthModule/InputItem/PhoneInput.d.ts +13 -0
- package/dist/modules/AuthModule/LoginForm/LoginForm.d.ts +12 -0
- package/dist/modules/AuthModule/OtpInputItem/OtpInputItem.d.ts +17 -0
- package/dist/modules/AuthModule/PasswordRestoreForm/PasswordRestoreForm.d.ts +12 -0
- package/dist/modules/AuthModule/PrivacyPolicy/PrivacyPolicy.d.ts +6 -0
- package/dist/modules/AuthModule/RegistrationForm/RegistrationForm.d.ts +7 -0
- package/dist/modules/AuthModule/SocialBlock/SocialBlock.d.ts +10 -0
- package/dist/modules/AuthModule/Tabs/Tabs.d.ts +10 -0
- package/dist/modules/AuthModule/index.d.ts +2 -0
- package/dist/modules/AuthModule/index.es.js +4 -0
- package/dist/modules/AuthModule/localization.d.ts +96 -0
- package/dist/modules/AuthModule/translation.d.ts +98 -0
- package/dist/modules/AuthModule/utils/formValueCheck.d.ts +3 -0
- package/dist/modules/AuthModule/utils/getErrorDescriptionKey.d.ts +3 -0
- package/dist/modules/AuthModule/utils/getFormData.d.ts +4 -0
- package/dist/modules/AuthModule/utils/getProductDataExtraVarValue.d.ts +3 -0
- package/dist/modules/AuthModule/utils/getRegexPattern.d.ts +3 -0
- package/dist/modules/AuthModule/utils/handleKeyDown.d.ts +3 -0
- package/dist/modules/AuthModule/utils/inputClearError.d.ts +4 -0
- package/dist/modules/AuthModule/utils/inputValueCheck.d.ts +4 -0
- package/dist/modules/AuthModule/utils/isAppleDevice.d.ts +2 -0
- package/dist/modules/AuthModule/utils/isFormHasError.d.ts +3 -0
- package/dist/modules/AuthModule/utils/parseRequestError.d.ts +7 -0
- package/dist/modules/AuthModule/utils/phoneMaskHandler.d.ts +2 -0
- package/dist/modules/CrumbsModule/Crumb/Crumb.d.ts +8 -0
- package/dist/modules/CrumbsModule/Crumb/index.d.ts +1 -0
- package/dist/modules/CrumbsModule/CrumbsModule-BQIxJcqN.mjs +79 -0
- package/dist/modules/CrumbsModule/CrumbsModule.css +1 -0
- package/dist/modules/CrumbsModule/CrumbsModule.d.ts +2 -0
- package/dist/modules/CrumbsModule/CrumbsModule.types.d.ts +8 -0
- package/dist/modules/CrumbsModule/HiddenCrumbs/HiddenCrumbs.d.ts +6 -0
- package/dist/modules/CrumbsModule/HiddenCrumbs/index.d.ts +1 -0
- package/dist/modules/CrumbsModule/index.d.ts +2 -0
- package/dist/modules/CrumbsModule/index.es.js +4 -0
- package/dist/modules/DiyaModule/DesktopContent.d.ts +6 -0
- package/dist/modules/DiyaModule/DesktopTitle.d.ts +6 -0
- package/dist/modules/DiyaModule/DiyaLink.d.ts +7 -0
- package/dist/modules/DiyaModule/DiyaModule-CR7O-AA3.mjs +2159 -0
- package/dist/modules/DiyaModule/DiyaModule.css +1 -0
- package/dist/modules/DiyaModule/DiyaModule.d.ts +3 -0
- package/dist/modules/DiyaModule/DiyaModule.types.d.ts +16 -0
- package/dist/modules/DiyaModule/DownloadDiya.d.ts +6 -0
- package/dist/modules/DiyaModule/Loader.d.ts +6 -0
- package/dist/modules/DiyaModule/Qr.d.ts +8 -0
- package/dist/modules/DiyaModule/TimeOver.d.ts +6 -0
- package/dist/modules/DiyaModule/Timer.d.ts +8 -0
- package/dist/modules/DiyaModule/UpdateBtn.d.ts +7 -0
- package/dist/modules/DiyaModule/index.d.ts +2 -0
- package/dist/modules/DiyaModule/index.es.js +4 -0
- package/dist/modules/DiyaModule/utils/isMobDevice.d.ts +1 -0
- package/dist/modules/ErrorPaymentModule/ErrorPaymentModule-CyboRcvA.mjs +58 -0
- package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.css +1 -0
- package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.d.ts +3 -0
- package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.types.d.ts +26 -0
- package/dist/modules/ErrorPaymentModule/Header/Header.d.ts +6 -0
- package/dist/modules/ErrorPaymentModule/Header/index.d.ts +2 -0
- package/dist/modules/ErrorPaymentModule/Nav/Nav.d.ts +6 -0
- package/dist/modules/ErrorPaymentModule/Nav/index.d.ts +2 -0
- package/dist/modules/ErrorPaymentModule/Picture/Picture.d.ts +5 -0
- package/dist/modules/ErrorPaymentModule/Picture/index.d.ts +2 -0
- package/dist/modules/ErrorPaymentModule/index.d.ts +2 -0
- package/dist/modules/ErrorPaymentModule/index.es.js +4 -0
- package/dist/modules/FooterV2Module/FooterV2Module-Bk6XRHqm.mjs +279 -0
- package/dist/modules/FooterV2Module/FooterV2Module.css +1 -1
- package/dist/modules/FooterV2Module/index.es.js +1 -1
- package/dist/modules/FooterV2Module/utils/index.d.ts +0 -1
- package/dist/modules/HeaderV5Module/Auth/Auth.d.ts +19 -0
- package/dist/modules/HeaderV5Module/Banner/Banner.d.ts +8 -0
- package/dist/modules/HeaderV5Module/HeaderV5Module-B9tK4bOZ.mjs +576 -0
- package/dist/modules/HeaderV5Module/HeaderV5Module.css +1 -0
- package/dist/modules/HeaderV5Module/HeaderV5Module.d.ts +2 -0
- package/dist/modules/HeaderV5Module/HeaderV5Module.types.d.ts +74 -0
- package/dist/modules/HeaderV5Module/Lang/Lang.d.ts +7 -0
- package/dist/modules/HeaderV5Module/Logo/Logo.d.ts +7 -0
- package/dist/modules/HeaderV5Module/Menu/Menu.d.ts +13 -0
- package/dist/modules/HeaderV5Module/Menu/MenuItemList/MenuItemList.d.ts +7 -0
- package/dist/modules/HeaderV5Module/Menu/MenuItemList/index.d.ts +2 -0
- package/dist/modules/HeaderV5Module/Menu/Tabs/Tabs.d.ts +20 -0
- package/dist/modules/HeaderV5Module/MenuBtn/MenuBtn.d.ts +10 -0
- package/dist/modules/HeaderV5Module/Phone/Phone.d.ts +1 -0
- package/dist/modules/HeaderV5Module/index.d.ts +2 -0
- package/dist/modules/HeaderV5Module/index.es.js +4 -0
- package/dist/modules/HeaderV5Module/useHeader.d.ts +10 -0
- package/dist/modules/HeaderV5Module/utils/bodyScrollHandler.d.ts +2 -0
- package/dist/modules/HeaderV5Module/utils/getParamFromCookie.d.ts +2 -0
- package/dist/modules/HeaderV5Module/utils/setCookieLocale.d.ts +3 -0
- package/dist/modules/HeaderV5Module/utils/setCookieParam.d.ts +2 -0
- package/dist/modules/LoadAbleImg/LoadAbleImg.css +1 -0
- package/dist/modules/OtpModule/ConditionsBlock/ConditionsBlock.d.ts +11 -0
- package/dist/modules/OtpModule/ConditionsBlock/index.d.ts +1 -0
- package/dist/modules/OtpModule/Item/Item.d.ts +11 -0
- package/dist/modules/OtpModule/Item/index.d.ts +1 -0
- package/dist/modules/OtpModule/Navigation/Navigation.d.ts +9 -0
- package/dist/modules/OtpModule/Navigation/index.d.ts +1 -0
- package/dist/modules/OtpModule/NotConfirmPopup/NotConfirmPopup.d.ts +9 -0
- package/dist/modules/OtpModule/NotConfirmPopup/index.d.ts +1 -0
- package/dist/modules/OtpModule/OtpModule-C_J1fNer.mjs +394 -0
- package/dist/modules/OtpModule/OtpModule.css +1 -0
- package/dist/modules/OtpModule/OtpModule.d.ts +2 -0
- package/dist/modules/OtpModule/OtpModule.types.d.ts +56 -0
- package/dist/modules/OtpModule/OtpPopup/OtpPopup.d.ts +9 -0
- package/dist/modules/OtpModule/OtpPopup/index.d.ts +1 -0
- package/dist/modules/OtpModule/index.d.ts +2 -0
- package/dist/modules/OtpModule/index.es.js +4 -0
- package/dist/modules/OtpModule/localization.d.ts +33 -0
- package/dist/modules/OtpModule/utils/setOtpStyleConfig.d.ts +3 -0
- package/dist/modules/PageLoaderModule/PageLoaderModule-qw6Twqhc.mjs +61 -0
- package/dist/modules/PageLoaderModule/index.es.js +1 -1
- package/dist/modules/SuccessPaymentModule/Header/Header.d.ts +6 -0
- package/dist/modules/SuccessPaymentModule/Header/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/InfoList/InfoList.d.ts +8 -0
- package/dist/modules/SuccessPaymentModule/InfoList/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/Nav/Nav.d.ts +6 -0
- package/dist/modules/SuccessPaymentModule/Nav/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/Picture/Picture.d.ts +5 -0
- package/dist/modules/SuccessPaymentModule/Picture/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/Referral/Referral.d.ts +6 -0
- package/dist/modules/SuccessPaymentModule/Referral/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/Referral/localization.d.ts +7 -0
- package/dist/modules/SuccessPaymentModule/SuccessPaymentModule-BizFQek6.mjs +126 -0
- package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.css +1 -0
- package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.types.d.ts +36 -0
- package/dist/modules/SuccessPaymentModule/index.d.ts +2 -0
- package/dist/modules/SuccessPaymentModule/index.es.js +4 -0
- package/dist/services/AuthService.d.ts +16 -0
- package/dist/services/DesignerService.d.ts +7 -0
- package/dist/services/LayoutService.d.ts +1 -1
- package/dist/services/StrapiService.d.ts +7 -0
- package/dist/services/utils/getStrapiHost.d.ts +2 -0
- package/dist/types/Designer.d.ts +28 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/getAbsUrl-C3tTvhge.mjs +9 -0
- package/dist/utils/getAbsUrl.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.es.js +4 -2
- package/package.json +14 -2
- package/dist/modules/FooterV2Module/FooterV2Module-Cd4z2v8y.mjs +0 -387
- package/dist/modules/FooterV2Module/utils/getAbsUrl.d.ts +0 -3
- package/dist/modules/PageLoaderModule/PageLoaderModule-D6yGXr6Z.mjs +0 -100
- package/dist/types/Header.d.ts +0 -34
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuState, NavItem } from '../HeaderV5Module.types';
|
|
3
|
+
type MenuProps = {
|
|
4
|
+
isMenuOpen?: MenuState;
|
|
5
|
+
submenuHandler?: React.Dispatch<React.SetStateAction<string | null>>;
|
|
6
|
+
menuItems: NavItem[];
|
|
7
|
+
isUpBanner?: boolean;
|
|
8
|
+
activeSubMenu?: string | null;
|
|
9
|
+
closeMenu?: () => void;
|
|
10
|
+
isHeaderBanner?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const Menu: ({ isMenuOpen, submenuHandler, menuItems, isUpBanner, activeSubMenu, closeMenu, isHeaderBanner, }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Menu;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuItem } from '@/modules/HeaderV5Module/HeaderV5Module.types';
|
|
2
|
+
declare const MenuItemList: ({ menuItemList, withSubmenu, closeMenu, }: {
|
|
3
|
+
menuItemList: MenuItem[];
|
|
4
|
+
withSubmenu?: boolean;
|
|
5
|
+
closeMenu?: () => void;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default MenuItemList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CategoryItem, MenuItem } from '@/modules/HeaderV5Module/HeaderV5Module.types';
|
|
2
|
+
type TabType = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
onClick: (id: string) => void;
|
|
7
|
+
imgIcon?: string;
|
|
8
|
+
};
|
|
9
|
+
type TabProps = TabType & {
|
|
10
|
+
itemList: MenuItem[];
|
|
11
|
+
closeMenu?: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const Tab: ({ itemList, title, isActive, onClick, id, imgIcon, closeMenu }: TabProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
type TabWithSubmenuProps = TabType & {
|
|
15
|
+
itemList: CategoryItem[];
|
|
16
|
+
closeMenu?: () => void;
|
|
17
|
+
isHeaderBanner?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export declare const TabWithSubmenu: ({ itemList, title, isActive, onClick, id, imgIcon, closeMenu, isHeaderBanner, }: TabWithSubmenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuState } from '@/modules/HeaderV5Module/HeaderV5Module.types';
|
|
3
|
+
type MenuBtnProps = {
|
|
4
|
+
isMenuOpen: MenuState;
|
|
5
|
+
menuHandler: React.Dispatch<React.SetStateAction<MenuState>>;
|
|
6
|
+
closeMenu: () => void;
|
|
7
|
+
isProfileMenuFirst?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const MenuBtn: ({ isMenuOpen, menuHandler, closeMenu, isProfileMenuFirst, }: MenuBtnProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default MenuBtn;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Phone: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Locale } from '@/types';
|
|
2
|
+
import { Cabinet, HeaderBanner, NavItem } from './HeaderV5Module.types';
|
|
3
|
+
declare const useHeader: (lang: Locale, hideHeaderBanner?: boolean, productId?: string) => {
|
|
4
|
+
headerBanner: HeaderBanner | null;
|
|
5
|
+
navMenu: NavItem[];
|
|
6
|
+
authMenu: Cabinet | null;
|
|
7
|
+
activeSubMenu: string | null;
|
|
8
|
+
setActiveSubMenu: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
9
|
+
};
|
|
10
|
+
export default useHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._loadAbleImg_container_1ie9c_1{background:linear-gradient(101.42deg,#dfefff -.04%,#dfefff45 94.2%);box-sizing:border-box;overflow:hidden;width:100%;height:100%;position:relative}._loadAbleImg_container_1ie9c_1:before{content:"";display:block;position:absolute;left:-150px;top:0;height:100%;width:150px;background:linear-gradient(to right,transparent 0%,rgba(38,179,255,.0901960784) 50%,transparent 100%);animation:_load_1ie9c_1 1s cubic-bezier(.4,0,.2,1) infinite}@keyframes _load_1ie9c_1{0%{left:-150px}to{left:100%}}._loadAbleImg_containerLoaded_1ie9c_30:before{animation:none}._loadAbleImg_image_1ie9c_34{opacity:0;width:100%;height:100%;object-fit:cover;transition:opacity .3s ease-in-out}._loadAbleImg_imageLoaded_1ie9c_42{opacity:1}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Locale } from '@/types';
|
|
3
|
+
import { CheckboxState, Conditions } from '../OtpModule.types';
|
|
4
|
+
type ConditionsProps = {
|
|
5
|
+
conditions: Conditions;
|
|
6
|
+
locale: Locale;
|
|
7
|
+
checkboxState: CheckboxState;
|
|
8
|
+
setCheckboxState: React.Dispatch<React.SetStateAction<CheckboxState>>;
|
|
9
|
+
};
|
|
10
|
+
declare const ConditionsBlock: ({ conditions, locale, setCheckboxState, checkboxState, }: ConditionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ConditionsBlock;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ConditionsBlock';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Locale } from '@/types';
|
|
2
|
+
import { ContractItem } from '../OtpModule.types';
|
|
3
|
+
type ItemProps = {
|
|
4
|
+
data: ContractItem;
|
|
5
|
+
applyOtpHandler(id: string, enteredOtp?: string): void;
|
|
6
|
+
setOtp(id: string, otp: string): void;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
locale: Locale;
|
|
9
|
+
};
|
|
10
|
+
declare const Item: ({ data: { id, title, otp, isOtpApply, enteredOtp, contractDownloadCallback, companyInfoLink, productInfoLink, agentInfoLink, }, applyOtpHandler, setOtp, isLoading, locale, }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default Item;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Item';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Locale } from '@/types';
|
|
2
|
+
type NavigationProps = {
|
|
3
|
+
prevStepHandler(): void;
|
|
4
|
+
nextStepHandler(): void;
|
|
5
|
+
isLoader: boolean;
|
|
6
|
+
locale: Locale;
|
|
7
|
+
};
|
|
8
|
+
declare const Navigation: ({ prevStepHandler, nextStepHandler, isLoader, locale }: NavigationProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Navigation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Navigation';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Locale } from '@/types';
|
|
2
|
+
import { ContractItem } from '../OtpModule.types';
|
|
3
|
+
type OtpPopupProps = {
|
|
4
|
+
contractList: ContractItem[];
|
|
5
|
+
notConfirmHandler(): void;
|
|
6
|
+
locale: Locale;
|
|
7
|
+
};
|
|
8
|
+
declare const NotConfirmPopup: ({ contractList, notConfirmHandler, locale }: OtpPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default NotConfirmPopup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './NotConfirmPopup';
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import { jsxs as p, jsx as n, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { useState as x, useEffect as $ } from "react";
|
|
4
|
+
import U from "react-localization";
|
|
5
|
+
import { c as q } from "../../chunks/index-BDjvzGbZ.mjs";
|
|
6
|
+
import { u as W } from "../../hooks/useBreakPoint-C-91njOc.mjs";
|
|
7
|
+
import { M as G } from "../../chunks/breakpoints-BOwHOeQN.mjs";
|
|
8
|
+
import { S as I } from "../../chunks/spinner-By2573Fq.mjs";
|
|
9
|
+
import { L as J } from "../../types/Locale-D0KYJGGt.mjs";
|
|
10
|
+
const K = (t) => {
|
|
11
|
+
const c = document.querySelector(":root");
|
|
12
|
+
c && (t["--A_Page_main_btn_background"] && c.style.setProperty("--A_Page_main_btn_background", t["--A_Page_main_btn_background"]), t["--A_Page_main_btn_hover_background"] && c.style.setProperty("--A_Page_main_btn_hover_background", t["--A_Page_main_btn_hover_background"]), t["--A_Page_main_btn_color"] && c.style.setProperty("--A_Page_main_btn_color", t["--A_Page_main_btn_color"]));
|
|
13
|
+
}, e = new U({
|
|
14
|
+
ru: {
|
|
15
|
+
title: "Одноразовый идентификатор",
|
|
16
|
+
contractBtn: "Ознакомиться с Договором",
|
|
17
|
+
otpBtn: "Отправить еще",
|
|
18
|
+
conditionText1: "Подтверждаю ознакомление с персональным предложением, преддоговорной информацией,",
|
|
19
|
+
conditionText2: "(договором оферты)",
|
|
20
|
+
conditionText3: "",
|
|
21
|
+
conditionText4: "пользовательским соглашением и политикой конфиденциальности.",
|
|
22
|
+
nextBtn: "Подписать",
|
|
23
|
+
otpPopupTitle: "Одноразовый идентификатор для подписания договора",
|
|
24
|
+
otpPopupBtn: "Применить",
|
|
25
|
+
notConfirmPopupTitle: "Одноразовый идентификатор был указан неверно:",
|
|
26
|
+
notConfirmPopupBtn: "Отправить еще раз",
|
|
27
|
+
insurerInfoLink: "Информация о страховщике",
|
|
28
|
+
productInfoLink: "Информационный документ о стандартном страховом продукте",
|
|
29
|
+
insurerAgentInfoLink: "Информация о страховом посреднике"
|
|
30
|
+
},
|
|
31
|
+
uk: {
|
|
32
|
+
title: "Одноразовий ідентифікатор",
|
|
33
|
+
contractBtn: "Ознайомитись з Договором",
|
|
34
|
+
otpBtn: "Надіслати ще",
|
|
35
|
+
conditionText1: "Підтверджую ознайомлення з персональною пропозицією, переддоговірною інформацією,",
|
|
36
|
+
conditionText2: "(договором оферти)",
|
|
37
|
+
conditionText3: " та",
|
|
38
|
+
conditionText4: "угодою користувача і політикою конфіденційності.",
|
|
39
|
+
nextBtn: "Підписати",
|
|
40
|
+
otpPopupTitle: "Одноразовий ідентифікатор для підписання договору",
|
|
41
|
+
otpPopupBtn: "Застосувати",
|
|
42
|
+
notConfirmPopupTitle: "Одноразовий ідентифікатор було вказано невірно:",
|
|
43
|
+
notConfirmPopupBtn: "Надіслати ще раз",
|
|
44
|
+
insurerInfoLink: "Інформація про страховика",
|
|
45
|
+
productInfoLink: "Інформаційний документ про стандартний страховий продукт",
|
|
46
|
+
insurerAgentInfoLink: "Інформація про страхового посередника"
|
|
47
|
+
}
|
|
48
|
+
}), Q = (t) => /* @__PURE__ */ r.createElement("svg", { width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#clip0_39257_100871)" }, /* @__PURE__ */ r.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11 1.49902H3.6C2.169 1.49902 1 2.66902 1 4.10002V20.9C1 22.33 2.169 23.5 3.6 23.5H11.024C11.477 23.882 11.971 24.218 12.498 24.5H3.6C1.618 24.5 0 22.882 0 20.899V4.10002C0 2.11702 1.618 0.499023 3.6 0.499023H11.488H11.5H11.513H12L18 6.49902V8.63202C17.673 8.57302 17.339 8.53402 17 8.51502V7.49902H11.5C11.225 7.49902 11 7.27402 11 6.99902V1.49902ZM16.781 21.625L20.901 17.13C21.004 17.018 21.029 16.864 20.968 16.726C20.906 16.587 20.777 16.502 20.624 16.502H18.75V13.123C18.75 12.917 18.582 12.749 18.376 12.749H14.626C14.42 12.749 14.252 12.917 14.252 13.123V16.502H12.377C12.225 16.502 12.095 16.587 12.033 16.726C11.972 16.865 11.998 17.018 12.1 17.13L16.22 21.625L16.224 21.629L16.227 21.632L16.231 21.636L16.234 21.639L16.238 21.643L16.241 21.646L16.245 21.65L16.248 21.653L16.252 21.657L16.255 21.659L16.259 21.663L16.263 21.666L16.267 21.669L16.27 21.672L16.274 21.675L16.278 21.678L16.282 21.681L16.286 21.683L16.29 21.686L16.294 21.689L16.298 21.692L16.302 21.694L16.306 21.697L16.31 21.699L16.314 21.701L16.322 21.706L16.326 21.708L16.33 21.711L16.335 21.713L16.339 21.715C16.352 21.721 16.363 21.726 16.377 21.731L16.381 21.733L16.386 21.734L16.39 21.735L16.395 21.737L16.399 21.738L16.404 21.739L16.407 21.74L16.416 21.743L16.422 21.744L16.426 21.745L16.431 21.746H16.434L16.44 21.748H16.444L16.449 21.749L16.453 21.75H16.458L16.462 21.751H16.467L16.471 21.752H16.477L16.48 21.753H16.486H16.489H16.495H16.499H16.504H16.508H16.513H16.517H16.523H16.526H16.532L16.535 21.752H16.541L16.545 21.751H16.55L16.554 21.75H16.559L16.563 21.749L16.568 21.748H16.572L16.578 21.746H16.581L16.586 21.745L16.59 21.744L16.596 21.743L16.605 21.74L16.608 21.739L16.613 21.738L16.617 21.737L16.622 21.735L16.626 21.734L16.631 21.733L16.635 21.731C16.648 21.726 16.66 21.721 16.673 21.715L16.677 21.713L16.682 21.711L16.686 21.708L16.69 21.706L16.698 21.701L16.702 21.699L16.706 21.697L16.71 21.694L16.714 21.692L16.718 21.689L16.722 21.686L16.726 21.683L16.73 21.681L16.734 21.678L16.738 21.675L16.742 21.672L16.745 21.669L16.749 21.666L16.753 21.663L16.757 21.659L16.76 21.657L16.764 21.653L16.767 21.65L16.771 21.646L16.774 21.643L16.778 21.639L16.781 21.636L16.785 21.632L16.788 21.629L16.781 21.625ZM19.204 17.502H17.75V13.748H15.25V17.502H13.797L16.5 20.451L19.204 17.502ZM16.583 6.49902L12 1.90902V6.49902H16.583ZM16.5 23.501C20.091 23.501 23.001 20.59 23.001 17C23.001 13.409 20.091 10.499 16.5 10.499C12.909 10.499 10 13.409 10 17C10 20.59 12.91 23.501 16.5 23.501ZM16.5 24.5C20.643 24.5 24 21.143 24 17C24 12.857 20.643 9.49902 16.5 9.49902C12.357 9.49902 9 12.857 9 17C9 21.143 12.358 24.5 16.5 24.5ZM11.025 10.499C11.478 10.117 11.971 9.78102 12.499 9.50002H2.5C2.224 9.50002 2 9.72502 2 9.99902C2 10.274 2.226 10.499 2.5 10.499H11.025ZM8.752 13.499C8.908 13.153 9.089 12.819 9.288 12.5H2.5C2.224 12.5 2 12.725 2 13C2 13.275 2.225 13.499 2.5 13.499H8.752ZM8.015 16.499C8.035 16.161 8.074 15.827 8.132 15.5H2.5C2.224 15.5 2 15.725 2 16C2 16.275 2.225 16.499 2.5 16.499H8.015ZM8.375 19.5C8.274 19.175 8.193 18.841 8.133 18.5H2.5C2.224 18.5 2 18.725 2 19C2 19.275 2.224 19.5 2.5 19.5H8.375Z", fill: "#2D2B2B" })), /* @__PURE__ */ r.createElement("defs", null, /* @__PURE__ */ r.createElement("clipPath", { id: "clip0_39257_100871" }, /* @__PURE__ */ r.createElement("rect", { width: 24, height: 24, fill: "white", transform: "translate(0 0.5)" })))), X = "_item_1i7q7_1", Y = "_withoutList_1i7q7_5", t1 = "_inputContainer_1i7q7_9", n1 = "_linkList_1i7q7_35", e1 = "_link_1i7q7_35", i1 = "_titleBlock_1i7q7_66", o1 = "_title_1i7q7_66", c1 = "_contractBtn_1i7q7_93", r1 = "_contractBtnTitle_1i7q7_98", l1 = "_inputBlock_1i7q7_123", s1 = "_otpInput_1i7q7_128", a1 = "_otpBtn_1i7q7_150", p1 = "_spinner_1i7q7_158", a = {
|
|
49
|
+
item: X,
|
|
50
|
+
withoutList: Y,
|
|
51
|
+
inputContainer: t1,
|
|
52
|
+
linkList: n1,
|
|
53
|
+
link: e1,
|
|
54
|
+
titleBlock: i1,
|
|
55
|
+
title: o1,
|
|
56
|
+
contractBtn: c1,
|
|
57
|
+
contractBtnTitle: r1,
|
|
58
|
+
inputBlock: l1,
|
|
59
|
+
otpInput: s1,
|
|
60
|
+
otpBtn: a1,
|
|
61
|
+
spinner: p1
|
|
62
|
+
}, _1 = ({
|
|
63
|
+
data: {
|
|
64
|
+
id: t,
|
|
65
|
+
title: c,
|
|
66
|
+
otp: d,
|
|
67
|
+
isOtpApply: o,
|
|
68
|
+
enteredOtp: L,
|
|
69
|
+
contractDownloadCallback: N,
|
|
70
|
+
companyInfoLink: H,
|
|
71
|
+
productInfoLink: w,
|
|
72
|
+
agentInfoLink: h
|
|
73
|
+
},
|
|
74
|
+
applyOtpHandler: P,
|
|
75
|
+
setOtp: M,
|
|
76
|
+
isLoading: B,
|
|
77
|
+
locale: O
|
|
78
|
+
}) => {
|
|
79
|
+
e.setLanguage(O);
|
|
80
|
+
const y = W(G), [u, f] = x(""), v = h || w || H, b = () => {
|
|
81
|
+
f(""), P(t);
|
|
82
|
+
}, T = () => {
|
|
83
|
+
u !== d && M(t, u);
|
|
84
|
+
};
|
|
85
|
+
return $(() => {
|
|
86
|
+
o && f(d), L && !o && f(L);
|
|
87
|
+
}, [o, L]), /* @__PURE__ */ p("li", { className: q(a.item, { [a.withoutList]: v }), children: [
|
|
88
|
+
/* @__PURE__ */ p("div", { className: a.inputContainer, children: [
|
|
89
|
+
/* @__PURE__ */ p("div", { className: a.titleBlock, children: [
|
|
90
|
+
/* @__PURE__ */ n("p", { className: a.title, children: `${e.title} ${c}` }),
|
|
91
|
+
/* @__PURE__ */ n("button", { className: a.contractBtn, type: "button", onClick: N, children: B ? /* @__PURE__ */ n(I, { className: a.spinner }) : /* @__PURE__ */ p(Z, { children: [
|
|
92
|
+
!y && /* @__PURE__ */ n(Q, {}),
|
|
93
|
+
/* @__PURE__ */ n(
|
|
94
|
+
"span",
|
|
95
|
+
{
|
|
96
|
+
className: a.contractBtnTitle,
|
|
97
|
+
children: `${e.contractBtn} ${c}`
|
|
98
|
+
}
|
|
99
|
+
)
|
|
100
|
+
] }) })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ p("div", { className: a.inputBlock, children: [
|
|
103
|
+
/* @__PURE__ */ n(
|
|
104
|
+
"input",
|
|
105
|
+
{
|
|
106
|
+
className: a.otpInput,
|
|
107
|
+
type: "text",
|
|
108
|
+
onBlur: T,
|
|
109
|
+
value: u,
|
|
110
|
+
onChange: (A) => f(A.target.value.toUpperCase())
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ n("button", { className: a.otpBtn, type: "button", onClick: b, children: e.otpBtn })
|
|
114
|
+
] })
|
|
115
|
+
] }),
|
|
116
|
+
v && /* @__PURE__ */ p("ul", { className: a.linkList, children: [
|
|
117
|
+
H && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
118
|
+
"a",
|
|
119
|
+
{
|
|
120
|
+
className: a.link,
|
|
121
|
+
href: H,
|
|
122
|
+
rel: "noopener nofollow",
|
|
123
|
+
target: "_blank",
|
|
124
|
+
children: e.insurerInfoLink
|
|
125
|
+
}
|
|
126
|
+
) }),
|
|
127
|
+
w && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
128
|
+
"a",
|
|
129
|
+
{
|
|
130
|
+
className: a.link,
|
|
131
|
+
href: w,
|
|
132
|
+
rel: "noopener nofollow",
|
|
133
|
+
target: "_blank",
|
|
134
|
+
children: e.productInfoLink
|
|
135
|
+
}
|
|
136
|
+
) }),
|
|
137
|
+
h && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
138
|
+
"a",
|
|
139
|
+
{
|
|
140
|
+
className: a.link,
|
|
141
|
+
href: h,
|
|
142
|
+
rel: "noopener nofollow",
|
|
143
|
+
target: "_blank",
|
|
144
|
+
children: e.insurerAgentInfoLink
|
|
145
|
+
}
|
|
146
|
+
) })
|
|
147
|
+
] })
|
|
148
|
+
] });
|
|
149
|
+
};
|
|
150
|
+
var m = /* @__PURE__ */ ((t) => (t[t.unchecked = 0] = "unchecked", t[t.checked = 1] = "checked", t[t.error = 2] = "error", t))(m || {});
|
|
151
|
+
const d1 = "_conditionsBlock_1uylx_1", L1 = "_error_1uylx_12", u1 = "_label_1uylx_21", m1 = "_ru_1uylx_31", h1 = "_conditionLink_1uylx_36", f1 = "_checkbox_1uylx_41", C1 = "_active_1uylx_56", C = {
|
|
152
|
+
conditionsBlock: d1,
|
|
153
|
+
error: L1,
|
|
154
|
+
label: u1,
|
|
155
|
+
ru: m1,
|
|
156
|
+
conditionLink: h1,
|
|
157
|
+
checkbox: f1,
|
|
158
|
+
active: C1
|
|
159
|
+
}, g1 = ({
|
|
160
|
+
conditions: t,
|
|
161
|
+
locale: c,
|
|
162
|
+
setCheckboxState: d,
|
|
163
|
+
checkboxState: o
|
|
164
|
+
}) => {
|
|
165
|
+
e.setLanguage(c);
|
|
166
|
+
const L = () => {
|
|
167
|
+
d(
|
|
168
|
+
o === m.checked ? m.unchecked : m.checked
|
|
169
|
+
);
|
|
170
|
+
};
|
|
171
|
+
return /* @__PURE__ */ p(
|
|
172
|
+
"div",
|
|
173
|
+
{
|
|
174
|
+
className: q(C.conditionsBlock, {
|
|
175
|
+
[C.error]: o === m.error
|
|
176
|
+
}),
|
|
177
|
+
children: [
|
|
178
|
+
/* @__PURE__ */ n(
|
|
179
|
+
"button",
|
|
180
|
+
{
|
|
181
|
+
className: q(C.checkbox, {
|
|
182
|
+
[C.active]: o === m.checked,
|
|
183
|
+
[C.error]: o === m.error
|
|
184
|
+
}),
|
|
185
|
+
type: "button",
|
|
186
|
+
onClick: L,
|
|
187
|
+
children: "✓"
|
|
188
|
+
}
|
|
189
|
+
),
|
|
190
|
+
/* @__PURE__ */ p("div", { className: q(C.label, { [C.ru]: c === J.RU }), children: [
|
|
191
|
+
e.conditionText1,
|
|
192
|
+
t.offer && /* @__PURE__ */ n(
|
|
193
|
+
"a",
|
|
194
|
+
{
|
|
195
|
+
className: C.conditionLink,
|
|
196
|
+
href: t.offer,
|
|
197
|
+
target: "_blank",
|
|
198
|
+
rel: "noopener nofollow",
|
|
199
|
+
children: e.conditionText2
|
|
200
|
+
}
|
|
201
|
+
),
|
|
202
|
+
t.policy && /* @__PURE__ */ p(Z, { children: [
|
|
203
|
+
e.conditionText3,
|
|
204
|
+
/* @__PURE__ */ n(
|
|
205
|
+
"a",
|
|
206
|
+
{
|
|
207
|
+
className: C.conditionLink,
|
|
208
|
+
href: t.policy,
|
|
209
|
+
target: "_blank",
|
|
210
|
+
rel: "noopener nofollow",
|
|
211
|
+
children: e.conditionText4
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
] })
|
|
215
|
+
] })
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
);
|
|
219
|
+
}, k1 = (t) => /* @__PURE__ */ r.createElement("svg", { width: 22, height: 22, viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ r.createElement("path", { d: "M10.0748 10.6465C9.98103 10.7402 9.92835 10.8674 9.92835 11C9.92835 11.1326 9.98103 11.2598 10.0748 11.3536L11.8963 13.1751C11.9066 13.1854 11.9066 13.2022 11.8963 13.2125C11.8859 13.2229 11.8691 13.2229 11.8588 13.2125L9.66501 11.0188C9.66004 11.0138 9.65725 11.0071 9.65725 11C9.65725 10.993 9.66004 10.9863 9.66501 10.9813L11.8588 8.7875C11.8691 8.77715 11.8859 8.77715 11.8963 8.7875C11.9066 8.79785 11.9066 8.81463 11.8963 8.82499L10.0748 10.6465ZM8.16308 19.4217C10.029 19.8594 11.971 19.8594 13.8369 19.4217C16.608 18.7717 18.7717 16.608 19.4217 13.8369C19.8594 11.971 19.8594 10.029 19.4217 8.16308C18.7717 5.39198 16.608 3.22828 13.8369 2.57827C11.971 2.14058 10.029 2.14058 8.16309 2.57827C5.39198 3.22828 3.22828 5.39198 2.57827 8.16308C2.14058 10.029 2.14058 11.971 2.57827 13.8369C3.22828 16.608 5.39198 18.7717 8.16308 19.4217Z", fill: "#FF944D", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" })), H1 = "_nav_1mz7j_7", w1 = "_prevBtn_1mz7j_31", B1 = "_nextBtn_1mz7j_53", v1 = "_loader_1mz7j_71", V = {
|
|
220
|
+
nav: H1,
|
|
221
|
+
prevBtn: w1,
|
|
222
|
+
nextBtn: B1,
|
|
223
|
+
loader: v1
|
|
224
|
+
}, b1 = ({ prevStepHandler: t, nextStepHandler: c, isLoader: d, locale: o }) => (e.setLanguage(o), /* @__PURE__ */ p("div", { className: V.nav, children: [
|
|
225
|
+
/* @__PURE__ */ p("button", { className: V.prevBtn, type: "button", onClick: t, children: [
|
|
226
|
+
/* @__PURE__ */ n(k1, {}),
|
|
227
|
+
"Назад"
|
|
228
|
+
] }),
|
|
229
|
+
/* @__PURE__ */ n("button", { className: V.nextBtn, type: "button", onClick: c, children: d ? /* @__PURE__ */ n(I, { className: V.loader }) : e.nextBtn })
|
|
230
|
+
] })), x1 = (t) => /* @__PURE__ */ r.createElement("svg", { width: 39, height: 39, viewBox: "0 0 39 39", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ r.createElement("g", { clipPath: "url(#clip0_39257_100785)" }, /* @__PURE__ */ r.createElement("rect", { width: 38.5865, height: 38.5865, transform: "translate(0 0.192383)", fill: "white" }), /* @__PURE__ */ r.createElement("path", { d: "M35.9214 14.6449L38.2689 14.2255C37.3429 9.04227 34.2834 4.40488 29.8751 1.50244L28.5637 3.49413C32.4282 6.03832 35.1099 10.1027 35.9214 14.6449Z", fill: "#2D3136" }), /* @__PURE__ */ r.createElement("path", { d: "M10.0228 3.49388L8.71145 1.5022C4.30315 4.40464 1.24372 9.04202 0.317627 14.2252L2.66509 14.6446C3.47657 10.1025 6.15836 6.03816 10.0228 3.49388Z", fill: "#2D3136" }), /* @__PURE__ */ r.createElement("path", { d: "M35.3893 26.0446L33.0047 23.66V17.6503C33.0047 11.424 28.7982 6.0068 22.8702 4.41119V3.76926C22.8702 1.79697 21.2656 0.192383 19.2934 0.192383C17.3211 0.192383 15.7165 1.79697 15.7165 3.76926V4.41119C9.78855 6.0068 5.58198 11.424 5.58198 17.6503V23.66L3.19739 26.0446V30.8303H1.21024V33.2149H12.6445C13.2095 36.3733 15.9749 38.7789 19.2934 38.7789C22.6118 38.7789 25.3772 36.3733 25.9422 33.2149H37.3765V30.8303H35.3893V26.0446ZM5.58198 27.0323L7.96657 24.6478V17.6503C7.96657 12.2312 11.8223 7.55432 17.1346 6.52974L18.1011 6.34335V3.76926C18.1011 3.11183 18.6359 2.57697 19.2934 2.57697C19.9508 2.57697 20.4856 3.11183 20.4856 3.76926V6.34327L21.4521 6.52966C26.7644 7.55424 30.6201 12.2311 30.6201 17.6502V24.6477L33.0047 27.0323V30.8302H5.58198V27.0323ZM19.2934 36.3943C17.2961 36.3943 15.6087 35.0476 15.0882 33.2149H23.4985C22.978 35.0476 21.2905 36.3943 19.2934 36.3943Z", fill: "#2D3136" })), /* @__PURE__ */ r.createElement("defs", null, /* @__PURE__ */ r.createElement("clipPath", { id: "clip0_39257_100785" }, /* @__PURE__ */ r.createElement("rect", { width: 38.5865, height: 38.5865, fill: "white", transform: "translate(0 0.192383)" })))), N1 = "_shadow_1qtcf_1", P1 = "_container_1qtcf_11", y1 = "_ring_1qtcf_37", T1 = "_title_1qtcf_49", V1 = "_list_1qtcf_61", q1 = "_item_1qtcf_67", M1 = "_itemTitle_1qtcf_87", O1 = "_itemOtp_1qtcf_93", A1 = "_btn_1qtcf_101", g = {
|
|
231
|
+
shadow: N1,
|
|
232
|
+
container: P1,
|
|
233
|
+
ring: y1,
|
|
234
|
+
title: T1,
|
|
235
|
+
list: V1,
|
|
236
|
+
item: q1,
|
|
237
|
+
itemTitle: M1,
|
|
238
|
+
itemOtp: O1,
|
|
239
|
+
btn: A1
|
|
240
|
+
}, E1 = ({ contractList: t, otpPopupHandler: c, locale: d }) => {
|
|
241
|
+
e.setLanguage(d);
|
|
242
|
+
const o = () => c(t);
|
|
243
|
+
return /* @__PURE__ */ n("div", { className: g.shadow, children: /* @__PURE__ */ p("div", { className: g.container, children: [
|
|
244
|
+
/* @__PURE__ */ n(x1, { className: g.ring }),
|
|
245
|
+
/* @__PURE__ */ n("div", { className: g.title, children: e.otpPopupTitle }),
|
|
246
|
+
/* @__PURE__ */ n("ul", { className: g.list, children: t.map((L) => /* @__PURE__ */ p("li", { className: g.item, children: [
|
|
247
|
+
/* @__PURE__ */ n("div", { className: g.itemTitle, children: L.title }),
|
|
248
|
+
/* @__PURE__ */ n("div", { className: g.itemOtp, children: L.otp })
|
|
249
|
+
] }, L.id)) }),
|
|
250
|
+
/* @__PURE__ */ n("button", { className: g.btn, type: "button", onClick: o, children: e.otpPopupBtn })
|
|
251
|
+
] }) });
|
|
252
|
+
}, $1 = "_shadow_uxwpf_1", Z1 = "_container_uxwpf_11", I1 = "_warning_uxwpf_37", F1 = "_title_uxwpf_48", D1 = "_list_uxwpf_60", j1 = "_item_uxwpf_68", z1 = "_btn_uxwpf_90", k = {
|
|
253
|
+
shadow: $1,
|
|
254
|
+
container: Z1,
|
|
255
|
+
warning: I1,
|
|
256
|
+
title: F1,
|
|
257
|
+
list: D1,
|
|
258
|
+
item: j1,
|
|
259
|
+
btn: z1
|
|
260
|
+
}, R1 = "https://polis.ua/static/img/react-modules/otp/warning.png", S1 = ({ contractList: t, notConfirmHandler: c, locale: d }) => (e.setLanguage(d), /* @__PURE__ */ n("div", { className: k.shadow, children: /* @__PURE__ */ p("div", { className: k.container, children: [
|
|
261
|
+
/* @__PURE__ */ n("img", { className: k.warning, src: R1, alt: "Warning" }),
|
|
262
|
+
/* @__PURE__ */ n("div", { className: k.title, children: e.notConfirmPopupTitle }),
|
|
263
|
+
/* @__PURE__ */ n("ul", { className: k.list, children: t.map((o) => {
|
|
264
|
+
if (!o.isOtpApply)
|
|
265
|
+
return /* @__PURE__ */ n("li", { className: k.item, children: o.title }, o.id);
|
|
266
|
+
}) }),
|
|
267
|
+
/* @__PURE__ */ n("button", { className: k.btn, type: "button", onClick: c, children: e.notConfirmPopupBtn })
|
|
268
|
+
] }) })), U1 = "_container_qmy4g_1", W1 = {
|
|
269
|
+
container: U1
|
|
270
|
+
}, et = ({
|
|
271
|
+
contractList: t,
|
|
272
|
+
conditions: c,
|
|
273
|
+
prevStepHandler: d,
|
|
274
|
+
nextStepHandler: o,
|
|
275
|
+
isConfirmLoading: L,
|
|
276
|
+
isConfirmFail: N,
|
|
277
|
+
clearOtpCallback: H,
|
|
278
|
+
contractLoadingStatus: w,
|
|
279
|
+
locale: h,
|
|
280
|
+
styleConfig: P
|
|
281
|
+
}) => {
|
|
282
|
+
e.setLanguage(h);
|
|
283
|
+
const [M, B] = x(!1), [O, y] = x([]), [u, f] = x([]), [v, b] = x(m.unchecked);
|
|
284
|
+
P && K(P);
|
|
285
|
+
const T = () => {
|
|
286
|
+
f(t), y(t), setTimeout(() => B(!0), 500);
|
|
287
|
+
}, A = (l) => {
|
|
288
|
+
B(!1);
|
|
289
|
+
const s = u.map((i) => {
|
|
290
|
+
const _ = l.find((E) => i.id === E.id);
|
|
291
|
+
return _ ? {
|
|
292
|
+
..._,
|
|
293
|
+
isOtpApply: !0
|
|
294
|
+
} : i;
|
|
295
|
+
});
|
|
296
|
+
f(s);
|
|
297
|
+
}, F = (l) => {
|
|
298
|
+
const s = t.find((i) => i.id === l);
|
|
299
|
+
s && (y([s]), f(
|
|
300
|
+
(i) => i.map((_) => _.id === l ? {
|
|
301
|
+
..._,
|
|
302
|
+
isOtpApply: !1
|
|
303
|
+
} : _)
|
|
304
|
+
)), B(!0);
|
|
305
|
+
}, D = (l, s) => {
|
|
306
|
+
const i = u.map((_) => _.id === l ? {
|
|
307
|
+
..._,
|
|
308
|
+
isOtpApply: !1,
|
|
309
|
+
enteredOtp: s
|
|
310
|
+
} : _);
|
|
311
|
+
f(i);
|
|
312
|
+
}, j = () => {
|
|
313
|
+
if (v !== m.checked) {
|
|
314
|
+
b(m.error);
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
if (b(m.checked), u.filter((i) => i.isOtpApply).length === 0) {
|
|
318
|
+
o([]);
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
const s = u.map((i) => {
|
|
322
|
+
const { product: _, id: E } = i, S = i.isOtpApply ? i.otp : i.enteredOtp || "";
|
|
323
|
+
return { product: _, contractId: E, code: S };
|
|
324
|
+
});
|
|
325
|
+
o(s);
|
|
326
|
+
}, z = () => {
|
|
327
|
+
H(), T();
|
|
328
|
+
}, R = (l) => {
|
|
329
|
+
const s = w.find((i) => i.product === l);
|
|
330
|
+
return !!(s != null && s.isLoading);
|
|
331
|
+
};
|
|
332
|
+
return $(() => {
|
|
333
|
+
u.length && f(
|
|
334
|
+
(l) => l.map((s) => {
|
|
335
|
+
var i;
|
|
336
|
+
return {
|
|
337
|
+
...s,
|
|
338
|
+
title: ((i = t.find((_) => _.id === s.id)) == null ? void 0 : i.title) || ""
|
|
339
|
+
};
|
|
340
|
+
})
|
|
341
|
+
);
|
|
342
|
+
}, [t]), $(() => {
|
|
343
|
+
N || T();
|
|
344
|
+
}, []), /* @__PURE__ */ p("div", { className: W1.container, children: [
|
|
345
|
+
/* @__PURE__ */ n("ul", { children: u.map((l) => /* @__PURE__ */ n(
|
|
346
|
+
_1,
|
|
347
|
+
{
|
|
348
|
+
data: l,
|
|
349
|
+
applyOtpHandler: F,
|
|
350
|
+
setOtp: D,
|
|
351
|
+
isLoading: R(l.product),
|
|
352
|
+
locale: h
|
|
353
|
+
},
|
|
354
|
+
l.id
|
|
355
|
+
)) }),
|
|
356
|
+
/* @__PURE__ */ n(
|
|
357
|
+
g1,
|
|
358
|
+
{
|
|
359
|
+
conditions: c,
|
|
360
|
+
locale: h,
|
|
361
|
+
checkboxState: v,
|
|
362
|
+
setCheckboxState: b
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ n(
|
|
366
|
+
b1,
|
|
367
|
+
{
|
|
368
|
+
prevStepHandler: d,
|
|
369
|
+
nextStepHandler: j,
|
|
370
|
+
isLoader: L,
|
|
371
|
+
locale: h
|
|
372
|
+
}
|
|
373
|
+
),
|
|
374
|
+
M && /* @__PURE__ */ n(
|
|
375
|
+
E1,
|
|
376
|
+
{
|
|
377
|
+
contractList: O,
|
|
378
|
+
otpPopupHandler: A,
|
|
379
|
+
locale: h
|
|
380
|
+
}
|
|
381
|
+
),
|
|
382
|
+
N && /* @__PURE__ */ n(
|
|
383
|
+
S1,
|
|
384
|
+
{
|
|
385
|
+
contractList: u,
|
|
386
|
+
notConfirmHandler: z,
|
|
387
|
+
locale: h
|
|
388
|
+
}
|
|
389
|
+
)
|
|
390
|
+
] });
|
|
391
|
+
};
|
|
392
|
+
export {
|
|
393
|
+
et as O
|
|
394
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._item_1i7q7_1{display:flex;flex-direction:column}._item_1i7q7_1._withoutList_1i7q7_5{margin-bottom:16px}._inputContainer_1i7q7_9{padding:16px;border-radius:8px;border:1px solid #D1D5DB;background:#f5f7f9;display:flex;flex-direction:column}@media (min-width: 768px){._inputContainer_1i7q7_9{flex-direction:row;justify-content:space-between;border:none}}@media (min-width: 992px){._inputContainer_1i7q7_9{padding:12px}}@media (min-width: 1200px){._inputContainer_1i7q7_9{padding:12px 40px}}._linkList_1i7q7_35{padding:16px 16px 18px}@media (min-width: 992px){._linkList_1i7q7_35{padding:16px 12px 18px}}@media (min-width: 1200px){._linkList_1i7q7_35{padding:16px 40px 18px}}._linkList_1i7q7_35 li{margin-bottom:8px;text-align:center}@media (min-width: 768px){._linkList_1i7q7_35 li{text-align:left}}._linkList_1i7q7_35 li:last-child{margin-bottom:0}._link_1i7q7_35{border-bottom:1px solid #2D2B2B;font:400 14px/130% latoregular}._titleBlock_1i7q7_66{display:flex;flex-direction:column-reverse;align-items:center}@media (min-width: 768px){._titleBlock_1i7q7_66{align-items:initial;margin-right:8px;flex-direction:column}}._title_1i7q7_66{font:700 16px/20px latobold;margin-bottom:4px;text-align:center}@media (min-width: 768px){._title_1i7q7_66{text-align:left;font-size:18px;line-height:25.2px;margin-bottom:12px}}._contractBtn_1i7q7_93{display:flex;align-items:center}._contractBtnTitle_1i7q7_98{font-size:14px;line-height:130%;text-decoration:underline;margin-bottom:16px}@media (min-width: 768px){._contractBtnTitle_1i7q7_98{text-decoration:none;border-bottom:1px solid #2D2B2B;margin-left:8px;margin-bottom:0}}@media (min-width: 992px){._contractBtnTitle_1i7q7_98{font-size:13px}}@media (min-width: 1200px){._contractBtnTitle_1i7q7_98{font-size:14px}}._inputBlock_1i7q7_123{display:flex;flex-direction:column}._otpInput_1i7q7_128{width:100%;height:36px;border-radius:8px;border:1px solid #D1D5DB;font:700 16px/20px latobold;text-align:center;background:#e5e7eb;transition:all .2s ease-in-out}@media (min-width: 768px){._otpInput_1i7q7_128{font-weight:400;font-family:latoregular;width:110px;height:45px}}._otpInput_1i7q7_128:focus{background:#fff}._otpBtn_1i7q7_150{width:fit-content;margin:4px auto 0;font-size:10px;line-height:10px;border-bottom:1px solid #2D2B2B}._spinner_1i7q7_158{display:block;margin:0 auto;width:36px}@media (min-width: 768px){._spinner_1i7q7_158{width:25px}}._conditionsBlock_1uylx_1{padding:12px;background:#fffbf0;border-radius:8px;border:1px solid transparent;font-size:14px;line-height:140%;display:flex;gap:12px;transition:all .2s ease-in-out}._conditionsBlock_1uylx_1._error_1uylx_12{border-color:#c42300}@media (min-width: 1200px){._conditionsBlock_1uylx_1{flex-direction:row-reverse}}._label_1uylx_21{width:calc(100% - 28px)}@media (min-width: 1200px){._label_1uylx_21{text-align:right;max-width:575px}}@media (min-width: 1200px){._label_1uylx_21._ru_1uylx_31{max-width:615px}}._conditionLink_1uylx_36{color:#2275eb;margin-left:6px}._checkbox_1uylx_41{width:20px;height:20px;background:#fff;border:1px solid #D1D5DB;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:all .2s ease-in-out;box-shadow:0 0 #0a994a80;animation:_checkboxPulse_1uylx_1 1.8s infinite}._checkbox_1uylx_41._active_1uylx_56{color:#0a994a;border-color:#0a994a;box-shadow:none;animation:none}._checkbox_1uylx_41._error_1uylx_12{border-color:#c42300;color:#fff;box-shadow:none;animation:none}@keyframes _checkboxPulse_1uylx_1{0%{box-shadow:0 0 #0a994a80}70%{box-shadow:0 0 0 10px #0a994a00}to{box-shadow:0 0 #0a994a00}}:root{--A_Page_main_btn_background: #FFD362;--A_Page_main_btn_hover_background: #E7B433;--A_Page_main_btn_color: #2d2b2b}._nav_1mz7j_7{display:flex;flex-direction:column-reverse;margin-top:16px}@media (min-width: 768px){._nav_1mz7j_7{flex-direction:row;justify-content:space-between}}._nav_1mz7j_7 button{border-radius:12px;width:100%;height:50px;transition:all .2s ease-in-out}@media (min-width: 768px){._nav_1mz7j_7 button{width:170px;height:52px}}._prevBtn_1mz7j_31{font:400 16px/22.4px latoregular;border:1px solid #D1D5DB;display:flex;align-items:center;justify-content:center}._prevBtn_1mz7j_31 svg{margin-right:12px;transition:all .3s ease-in-out}._prevBtn_1mz7j_31 svg path{transition:all .3s ease-in-out;fill:var(--A_Page_main_btn_background)}._prevBtn_1mz7j_31:hover{box-shadow:0 3px 17px #515a6436}._prevBtn_1mz7j_31:hover svg path{fill:var(--A_Page_main_btn_hover_background)}._nextBtn_1mz7j_53{font:700 16px/22.4px latobold;background-color:var(--A_Page_main_btn_background);margin-bottom:8px;display:flex;align-items:center;justify-content:center;color:var(--A_Page_main_btn_color)}@media (min-width: 768px){._nextBtn_1mz7j_53{margin-bottom:0}}._nextBtn_1mz7j_53:hover{background-color:var(--A_Page_main_btn_hover_background)}._loader_1mz7j_71{width:55px}._shadow_1qtcf_1{position:fixed;width:100%;height:100%;top:0;left:0;z-index:109999999;background:#374656b3}._container_1qtcf_11{box-sizing:border-box;background-color:#fff;width:100%;padding:24px 16px 40px;color:#2d2b2b;position:fixed;bottom:0;left:0;border-radius:12px 12px 0 0}@media (min-width: 768px){._container_1qtcf_11{padding:24px 80px 40px;max-width:736px;border-radius:12px;position:relative;margin:0 auto}}@media (min-width: 992px){._container_1qtcf_11{max-width:870px}}._ring_1qtcf_37{display:block;margin:0 auto 24px}@media (min-width: 768px){._ring_1qtcf_37{position:absolute;top:18px;left:18px}}._title_1qtcf_49{font:700 18px/23.4px latobold;margin-bottom:24px;text-align:center}@media (min-width: 768px){._title_1qtcf_49{font-size:22px;line-height:26.4px}}._list_1qtcf_61{margin:0 auto 24px;width:100%;max-width:560px}._item_1qtcf_67{padding:8px;border-bottom:1px solid #E5E7EB;display:flex;justify-content:space-between;align-items:center;font:700 16px/20px latobold}@media (min-width: 768px){._item_1qtcf_67{padding:16px 8px;font-size:18px;line-height:21px}}._item_1qtcf_67:last-child{border-bottom:none}@media (min-width: 768px){._itemTitle_1qtcf_87{font-weight:700;font-family:latobold}}._itemOtp_1qtcf_93{width:105px;padding:8px 16px;border-radius:6px;background-color:#e5e7eb;text-align:center}._btn_1qtcf_101{display:block;margin:0 auto;width:100%;height:50px;font:700 16px/22.4px latobold;background-color:var(--A_Page_main_btn_background);border-radius:16px;transition:all .2s ease-in-out;color:var(--A_Page_main_btn_color)}@media (min-width: 768px){._btn_1qtcf_101{width:440px;height:70px;font-size:26px;line-height:35px}}._btn_1qtcf_101:hover{background-color:var(--A_Page_main_btn_hover_background)}._shadow_uxwpf_1{position:fixed;width:100%;height:100%;top:0;left:0;z-index:109999999;background:#374656b3}._container_uxwpf_11{box-sizing:border-box;background-color:#fff;width:100%;padding:24px 16px 40px;color:#2d2b2b;position:fixed;bottom:0;left:0;border-radius:12px 12px 0 0}@media (min-width: 768px){._container_uxwpf_11{padding:24px 80px 40px;max-width:736px;border-radius:12px;position:relative;margin:10% auto 0}}@media (min-width: 992px){._container_uxwpf_11{max-width:870px}}._warning_uxwpf_37{display:block;width:40px;margin:0 auto 24px}@media (min-width: 768px){._warning_uxwpf_37{width:80px}}._title_uxwpf_48{font:700 18px/23.4px latobold;margin-bottom:24px;text-align:center}@media (min-width: 768px){._title_uxwpf_48{font-size:22px;line-height:26.4px}}._list_uxwpf_60{margin:0 auto 24px;width:100%;max-width:560px;list-style-type:disc;list-style-position:inside}._item_uxwpf_68{padding:8px;border-radius:4px;background-color:#f5f7f9;font-size:16px;line-height:19.2px;margin-bottom:8px}@media (min-width: 768px){._item_uxwpf_68{padding:8px 16px;font-size:18px;line-height:21px}}._item_uxwpf_68:last-child{margin-bottom:0}._item_uxwpf_68::marker{color:#c42300}._btn_uxwpf_90{display:block;margin:0 auto;width:100%;height:50px;font:700 16px/22.4px latobold;background-color:var(--A_Page_main_btn_background);color:var(--A_Page_main_btn_color);border-radius:16px;transition:all .2s ease-in-out}@media (min-width: 768px){._btn_uxwpf_90{width:440px;height:70px;font-size:26px;line-height:35px}}._btn_uxwpf_90:hover{background-color:var(--A_Page_main_btn_hover_background)}._container_qmy4g_1{color:#2d2b2b;font-family:latoregular}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { OtpModuleProps } from './OtpModule.types';
|
|
2
|
+
export declare const OtpModule: ({ contractList, conditions, prevStepHandler, nextStepHandler, isConfirmLoading, isConfirmFail, clearOtpCallback, contractLoadingStatus, locale, styleConfig, }: OtpModuleProps) => import("react/jsx-runtime").JSX.Element;
|