@ashtuka/react-lib 1.0.39 → 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.
Files changed (166) hide show
  1. package/README.md +13 -2
  2. package/dist/chunks/LoadAbleImg-jaQDlIaY.mjs +75 -0
  3. package/dist/chunks/Service-uGKXRZVE.mjs +47 -0
  4. package/dist/chunks/breakpoints-BOwHOeQN.mjs +8 -0
  5. package/dist/chunks/file-C_N83pgK.mjs +5 -0
  6. package/dist/chunks/index-BDjvzGbZ.mjs +44 -0
  7. package/dist/chunks/spinner-By2573Fq.mjs +10 -0
  8. package/dist/components/LoadAbleImg/LoadAbleImg.d.ts +1 -1
  9. package/dist/constants/breakpoints.d.ts +1 -0
  10. package/dist/hooks/index.d.ts +2 -0
  11. package/dist/hooks/index.es.js +7 -3
  12. package/dist/hooks/useBreakPoint-C-91njOc.mjs +13 -0
  13. package/dist/hooks/useBreakPoint.d.ts +24 -0
  14. package/dist/hooks/useOutsideClick-DPN2gHf5.mjs +15 -0
  15. package/dist/hooks/useOutsideClick.d.ts +22 -0
  16. package/dist/index.d.ts +14 -0
  17. package/dist/index.es.js +18 -4
  18. package/dist/modules/AuthModule/AuthModule-wq1Xt6Op.mjs +1001 -0
  19. package/dist/modules/AuthModule/AuthModule.css +1 -0
  20. package/dist/modules/AuthModule/AuthModule.d.ts +3 -0
  21. package/dist/modules/AuthModule/AuthModule.types.d.ts +82 -0
  22. package/dist/modules/AuthModule/ButtonSpinner/ButtonSpinner.d.ts +2 -0
  23. package/dist/modules/AuthModule/EmailSent/EmailSent.d.ts +9 -0
  24. package/dist/modules/AuthModule/ErrorMessage/ErrorMessage.d.ts +11 -0
  25. package/dist/modules/AuthModule/InputItem/InputItem.d.ts +16 -0
  26. package/dist/modules/AuthModule/InputItem/PhoneInput.d.ts +13 -0
  27. package/dist/modules/AuthModule/LoginForm/LoginForm.d.ts +12 -0
  28. package/dist/modules/AuthModule/OtpInputItem/OtpInputItem.d.ts +17 -0
  29. package/dist/modules/AuthModule/PasswordRestoreForm/PasswordRestoreForm.d.ts +12 -0
  30. package/dist/modules/AuthModule/PrivacyPolicy/PrivacyPolicy.d.ts +6 -0
  31. package/dist/modules/AuthModule/RegistrationForm/RegistrationForm.d.ts +7 -0
  32. package/dist/modules/AuthModule/SocialBlock/SocialBlock.d.ts +10 -0
  33. package/dist/modules/AuthModule/Tabs/Tabs.d.ts +10 -0
  34. package/dist/modules/AuthModule/index.d.ts +2 -0
  35. package/dist/modules/AuthModule/index.es.js +4 -0
  36. package/dist/modules/AuthModule/localization.d.ts +96 -0
  37. package/dist/modules/AuthModule/translation.d.ts +98 -0
  38. package/dist/modules/AuthModule/utils/formValueCheck.d.ts +3 -0
  39. package/dist/modules/AuthModule/utils/getErrorDescriptionKey.d.ts +3 -0
  40. package/dist/modules/AuthModule/utils/getFormData.d.ts +4 -0
  41. package/dist/modules/AuthModule/utils/getProductDataExtraVarValue.d.ts +3 -0
  42. package/dist/modules/AuthModule/utils/getRegexPattern.d.ts +3 -0
  43. package/dist/modules/AuthModule/utils/handleKeyDown.d.ts +3 -0
  44. package/dist/modules/AuthModule/utils/inputClearError.d.ts +4 -0
  45. package/dist/modules/AuthModule/utils/inputValueCheck.d.ts +4 -0
  46. package/dist/modules/AuthModule/utils/isAppleDevice.d.ts +2 -0
  47. package/dist/modules/AuthModule/utils/isFormHasError.d.ts +3 -0
  48. package/dist/modules/AuthModule/utils/parseRequestError.d.ts +7 -0
  49. package/dist/modules/AuthModule/utils/phoneMaskHandler.d.ts +2 -0
  50. package/dist/modules/CrumbsModule/Crumb/Crumb.d.ts +8 -0
  51. package/dist/modules/CrumbsModule/Crumb/index.d.ts +1 -0
  52. package/dist/modules/CrumbsModule/CrumbsModule-BQIxJcqN.mjs +79 -0
  53. package/dist/modules/CrumbsModule/CrumbsModule.css +1 -0
  54. package/dist/modules/CrumbsModule/CrumbsModule.d.ts +2 -0
  55. package/dist/modules/CrumbsModule/CrumbsModule.types.d.ts +8 -0
  56. package/dist/modules/CrumbsModule/HiddenCrumbs/HiddenCrumbs.d.ts +6 -0
  57. package/dist/modules/CrumbsModule/HiddenCrumbs/index.d.ts +1 -0
  58. package/dist/modules/CrumbsModule/index.d.ts +2 -0
  59. package/dist/modules/CrumbsModule/index.es.js +4 -0
  60. package/dist/modules/DiyaModule/DesktopContent.d.ts +6 -0
  61. package/dist/modules/DiyaModule/DesktopTitle.d.ts +6 -0
  62. package/dist/modules/DiyaModule/DiyaLink.d.ts +7 -0
  63. package/dist/modules/DiyaModule/DiyaModule-CR7O-AA3.mjs +2159 -0
  64. package/dist/modules/DiyaModule/DiyaModule.css +1 -0
  65. package/dist/modules/DiyaModule/DiyaModule.d.ts +3 -0
  66. package/dist/modules/DiyaModule/DiyaModule.types.d.ts +16 -0
  67. package/dist/modules/DiyaModule/DownloadDiya.d.ts +6 -0
  68. package/dist/modules/DiyaModule/Loader.d.ts +6 -0
  69. package/dist/modules/DiyaModule/Qr.d.ts +8 -0
  70. package/dist/modules/DiyaModule/TimeOver.d.ts +6 -0
  71. package/dist/modules/DiyaModule/Timer.d.ts +8 -0
  72. package/dist/modules/DiyaModule/UpdateBtn.d.ts +7 -0
  73. package/dist/modules/DiyaModule/index.d.ts +2 -0
  74. package/dist/modules/DiyaModule/index.es.js +4 -0
  75. package/dist/modules/DiyaModule/utils/isMobDevice.d.ts +1 -0
  76. package/dist/modules/ErrorPaymentModule/ErrorPaymentModule-CyboRcvA.mjs +58 -0
  77. package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.css +1 -0
  78. package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.d.ts +3 -0
  79. package/dist/modules/ErrorPaymentModule/ErrorPaymentModule.types.d.ts +26 -0
  80. package/dist/modules/ErrorPaymentModule/Header/Header.d.ts +6 -0
  81. package/dist/modules/ErrorPaymentModule/Header/index.d.ts +2 -0
  82. package/dist/modules/ErrorPaymentModule/Nav/Nav.d.ts +6 -0
  83. package/dist/modules/ErrorPaymentModule/Nav/index.d.ts +2 -0
  84. package/dist/modules/ErrorPaymentModule/Picture/Picture.d.ts +5 -0
  85. package/dist/modules/ErrorPaymentModule/Picture/index.d.ts +2 -0
  86. package/dist/modules/ErrorPaymentModule/index.d.ts +2 -0
  87. package/dist/modules/ErrorPaymentModule/index.es.js +4 -0
  88. package/dist/modules/FooterV2Module/FooterV2Module-Bk6XRHqm.mjs +279 -0
  89. package/dist/modules/FooterV2Module/FooterV2Module.css +1 -1
  90. package/dist/modules/FooterV2Module/index.es.js +1 -1
  91. package/dist/modules/FooterV2Module/utils/index.d.ts +0 -1
  92. package/dist/modules/HeaderV5Module/Auth/Auth.d.ts +19 -0
  93. package/dist/modules/HeaderV5Module/Banner/Banner.d.ts +8 -0
  94. package/dist/modules/HeaderV5Module/HeaderV5Module-B9tK4bOZ.mjs +576 -0
  95. package/dist/modules/HeaderV5Module/HeaderV5Module.css +1 -0
  96. package/dist/modules/HeaderV5Module/HeaderV5Module.d.ts +2 -0
  97. package/dist/modules/HeaderV5Module/HeaderV5Module.types.d.ts +74 -0
  98. package/dist/modules/HeaderV5Module/Lang/Lang.d.ts +7 -0
  99. package/dist/modules/HeaderV5Module/Logo/Logo.d.ts +7 -0
  100. package/dist/modules/HeaderV5Module/Menu/Menu.d.ts +13 -0
  101. package/dist/modules/HeaderV5Module/Menu/MenuItemList/MenuItemList.d.ts +7 -0
  102. package/dist/modules/HeaderV5Module/Menu/MenuItemList/index.d.ts +2 -0
  103. package/dist/modules/HeaderV5Module/Menu/Tabs/Tabs.d.ts +20 -0
  104. package/dist/modules/HeaderV5Module/MenuBtn/MenuBtn.d.ts +10 -0
  105. package/dist/modules/HeaderV5Module/Phone/Phone.d.ts +1 -0
  106. package/dist/modules/HeaderV5Module/index.d.ts +2 -0
  107. package/dist/modules/HeaderV5Module/index.es.js +4 -0
  108. package/dist/modules/HeaderV5Module/useHeader.d.ts +10 -0
  109. package/dist/modules/HeaderV5Module/utils/bodyScrollHandler.d.ts +2 -0
  110. package/dist/modules/HeaderV5Module/utils/getParamFromCookie.d.ts +2 -0
  111. package/dist/modules/HeaderV5Module/utils/setCookieLocale.d.ts +3 -0
  112. package/dist/modules/HeaderV5Module/utils/setCookieParam.d.ts +2 -0
  113. package/dist/modules/LoadAbleImg/LoadAbleImg.css +1 -0
  114. package/dist/modules/OtpModule/ConditionsBlock/ConditionsBlock.d.ts +11 -0
  115. package/dist/modules/OtpModule/ConditionsBlock/index.d.ts +1 -0
  116. package/dist/modules/OtpModule/Item/Item.d.ts +11 -0
  117. package/dist/modules/OtpModule/Item/index.d.ts +1 -0
  118. package/dist/modules/OtpModule/Navigation/Navigation.d.ts +9 -0
  119. package/dist/modules/OtpModule/Navigation/index.d.ts +1 -0
  120. package/dist/modules/OtpModule/NotConfirmPopup/NotConfirmPopup.d.ts +9 -0
  121. package/dist/modules/OtpModule/NotConfirmPopup/index.d.ts +1 -0
  122. package/dist/modules/OtpModule/OtpModule-C_J1fNer.mjs +394 -0
  123. package/dist/modules/OtpModule/OtpModule.css +1 -0
  124. package/dist/modules/OtpModule/OtpModule.d.ts +2 -0
  125. package/dist/modules/OtpModule/OtpModule.types.d.ts +56 -0
  126. package/dist/modules/OtpModule/OtpPopup/OtpPopup.d.ts +9 -0
  127. package/dist/modules/OtpModule/OtpPopup/index.d.ts +1 -0
  128. package/dist/modules/OtpModule/index.d.ts +2 -0
  129. package/dist/modules/OtpModule/index.es.js +4 -0
  130. package/dist/modules/OtpModule/localization.d.ts +33 -0
  131. package/dist/modules/OtpModule/utils/setOtpStyleConfig.d.ts +3 -0
  132. package/dist/modules/PageLoaderModule/PageLoaderModule-qw6Twqhc.mjs +61 -0
  133. package/dist/modules/PageLoaderModule/index.es.js +1 -1
  134. package/dist/modules/SuccessPaymentModule/Header/Header.d.ts +6 -0
  135. package/dist/modules/SuccessPaymentModule/Header/index.d.ts +2 -0
  136. package/dist/modules/SuccessPaymentModule/InfoList/InfoList.d.ts +8 -0
  137. package/dist/modules/SuccessPaymentModule/InfoList/index.d.ts +2 -0
  138. package/dist/modules/SuccessPaymentModule/Nav/Nav.d.ts +6 -0
  139. package/dist/modules/SuccessPaymentModule/Nav/index.d.ts +2 -0
  140. package/dist/modules/SuccessPaymentModule/Picture/Picture.d.ts +5 -0
  141. package/dist/modules/SuccessPaymentModule/Picture/index.d.ts +2 -0
  142. package/dist/modules/SuccessPaymentModule/Referral/Referral.d.ts +6 -0
  143. package/dist/modules/SuccessPaymentModule/Referral/index.d.ts +2 -0
  144. package/dist/modules/SuccessPaymentModule/Referral/localization.d.ts +7 -0
  145. package/dist/modules/SuccessPaymentModule/SuccessPaymentModule-BizFQek6.mjs +126 -0
  146. package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.css +1 -0
  147. package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.d.ts +2 -0
  148. package/dist/modules/SuccessPaymentModule/SuccessPaymentModule.types.d.ts +36 -0
  149. package/dist/modules/SuccessPaymentModule/index.d.ts +2 -0
  150. package/dist/modules/SuccessPaymentModule/index.es.js +4 -0
  151. package/dist/services/AuthService.d.ts +16 -0
  152. package/dist/services/DesignerService.d.ts +7 -0
  153. package/dist/services/LayoutService.d.ts +1 -1
  154. package/dist/services/StrapiService.d.ts +7 -0
  155. package/dist/services/utils/getStrapiHost.d.ts +2 -0
  156. package/dist/types/Designer.d.ts +28 -0
  157. package/dist/types/index.d.ts +0 -1
  158. package/dist/utils/getAbsUrl-C3tTvhge.mjs +9 -0
  159. package/dist/utils/getAbsUrl.d.ts +2 -0
  160. package/dist/utils/index.d.ts +1 -0
  161. package/dist/utils/index.es.js +4 -2
  162. package/package.json +16 -4
  163. package/dist/modules/FooterV2Module/FooterV2Module-Cd4z2v8y.mjs +0 -387
  164. package/dist/modules/FooterV2Module/utils/getAbsUrl.d.ts +0 -3
  165. package/dist/modules/PageLoaderModule/PageLoaderModule-D6yGXr6Z.mjs +0 -100
  166. package/dist/types/Header.d.ts +0 -34
@@ -0,0 +1,56 @@
1
+ import { Locale } from '@/types';
2
+ export type ContractItem = {
3
+ id: string;
4
+ title: string;
5
+ otp: string;
6
+ product: ProductType;
7
+ contractDownloadCallback(): void;
8
+ companyInfoLink?: string;
9
+ productInfoLink?: string;
10
+ agentInfoLink?: string;
11
+ isOtpApply?: boolean;
12
+ enteredOtp?: string;
13
+ };
14
+ export declare enum ProductType {
15
+ travel = "TRAVEL",
16
+ mayno = "MAYNO",
17
+ health = "HEALTH",
18
+ eliki = "ELIKI",
19
+ kaskoLite = "KASKO-LITE",
20
+ zbroya = "ZBROYA"
21
+ }
22
+ export type Conditions = {
23
+ policy?: string;
24
+ offer?: string;
25
+ };
26
+ export type OtpConfirmDto = {
27
+ contractId: string;
28
+ product: ProductType;
29
+ code: string;
30
+ };
31
+ export type ContractLoadingStatusItem = {
32
+ product: ProductType;
33
+ isLoading: boolean;
34
+ };
35
+ export type StyleConfig = {
36
+ '--A_Page_main_btn_background': string;
37
+ '--A_Page_main_btn_hover_background': string;
38
+ '--A_Page_main_btn_color': string;
39
+ };
40
+ export declare enum CheckboxState {
41
+ unchecked = 0,
42
+ checked = 1,
43
+ error = 2
44
+ }
45
+ export type OtpModuleProps = {
46
+ contractList: ContractItem[];
47
+ conditions: Conditions;
48
+ prevStepHandler(): void;
49
+ nextStepHandler(otpConfirmDtoList: OtpConfirmDto[]): void;
50
+ isConfirmLoading: boolean;
51
+ isConfirmFail: boolean;
52
+ clearOtpCallback(): void;
53
+ contractLoadingStatus: ContractLoadingStatusItem[];
54
+ locale: Locale;
55
+ styleConfig?: StyleConfig;
56
+ };
@@ -0,0 +1,9 @@
1
+ import { Locale } from '@/types';
2
+ import { ContractItem } from '../OtpModule.types';
3
+ type OtpPopupProps = {
4
+ contractList: ContractItem[];
5
+ otpPopupHandler(otpList: ContractItem[]): void;
6
+ locale: Locale;
7
+ };
8
+ declare const OtpPopup: ({ contractList, otpPopupHandler, locale }: OtpPopupProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default OtpPopup;
@@ -0,0 +1 @@
1
+ export { default } from './OtpPopup';
@@ -0,0 +1,2 @@
1
+ export { OtpModule } from './OtpModule';
2
+ export type { OtpModuleProps } from './OtpModule.types';
@@ -0,0 +1,4 @@
1
+ import { O as p } from "./OtpModule-C_J1fNer.mjs";
2
+ export {
3
+ p as OtpModule
4
+ };
@@ -0,0 +1,33 @@
1
+ export declare const localization: import("react-localization").LocalizedStrings<{
2
+ title: string;
3
+ contractBtn: string;
4
+ otpBtn: string;
5
+ conditionText1: string;
6
+ conditionText2: string;
7
+ conditionText3: string;
8
+ conditionText4: string;
9
+ nextBtn: string;
10
+ otpPopupTitle: string;
11
+ otpPopupBtn: string;
12
+ notConfirmPopupTitle: string;
13
+ notConfirmPopupBtn: string;
14
+ insurerInfoLink: string;
15
+ productInfoLink: string;
16
+ insurerAgentInfoLink: string;
17
+ } | {
18
+ title: string;
19
+ contractBtn: string;
20
+ otpBtn: string;
21
+ conditionText1: string;
22
+ conditionText2: string;
23
+ conditionText3: string;
24
+ conditionText4: string;
25
+ nextBtn: string;
26
+ otpPopupTitle: string;
27
+ otpPopupBtn: string;
28
+ notConfirmPopupTitle: string;
29
+ notConfirmPopupBtn: string;
30
+ insurerInfoLink: string;
31
+ productInfoLink: string;
32
+ insurerAgentInfoLink: string;
33
+ }>;
@@ -0,0 +1,3 @@
1
+ import { StyleConfig } from '../OtpModule.types';
2
+ declare const setStyleConfig: (styleConfig: StyleConfig) => void;
3
+ export default setStyleConfig;
@@ -0,0 +1,61 @@
1
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
+ import { c as l } from "../../chunks/index-BDjvzGbZ.mjs";
3
+ import { L as m } from "../../types/Locale-D0KYJGGt.mjs";
4
+ import _ from "react-localization";
5
+ const s = new _({
6
+ uk: {
7
+ sloganRow1: "Класний пошукатор",
8
+ sloganRow2: "страхових"
9
+ },
10
+ ru: {
11
+ sloganRow1: "Классный пошукатор",
12
+ sloganRow2: "страховых"
13
+ }
14
+ }), w = "_container_1xrzw_1", h = "_fullScreen_1xrzw_10", p = "_loaderContainer_1xrzw_26", x = "_inner_1xrzw_34", z = "_item_1xrzw_41", N = "_logo_1xrzw_94", u = "_sloganWrap_1xrzw_99", v = "_slogan_1xrzw_99", f = "_title_1xrzw_113", n = {
15
+ container: w,
16
+ fullScreen: h,
17
+ loaderContainer: p,
18
+ inner: x,
19
+ item: z,
20
+ logo: N,
21
+ sloganWrap: u,
22
+ slogan: v,
23
+ title: f
24
+ }, W = ({
25
+ classes: r = "",
26
+ isFullScreen: i,
27
+ locale: t = m.UK,
28
+ title: e,
29
+ titleClasses: c = ""
30
+ }) => {
31
+ s.setLanguage(t);
32
+ const g = l(n.container, r, {
33
+ [n.fullScreen]: i
34
+ }), d = l(n.title, c);
35
+ return /* @__PURE__ */ a("div", { className: g, children: [
36
+ /* @__PURE__ */ a("div", { className: n.loaderContainer, children: [
37
+ /* @__PURE__ */ a("div", { className: n.inner, children: [
38
+ /* @__PURE__ */ o("div", { className: n.item, children: " " }),
39
+ /* @__PURE__ */ o("div", { className: n.item, children: " " }),
40
+ /* @__PURE__ */ o("div", { className: n.item, children: " " })
41
+ ] }),
42
+ /* @__PURE__ */ o("div", { className: n.logo, children: /* @__PURE__ */ o(
43
+ "img",
44
+ {
45
+ width: "148px",
46
+ height: "40px",
47
+ src: "https://polis.ua/static/img/logo/logoWithFlagLine.svg",
48
+ alt: "Icon"
49
+ }
50
+ ) }),
51
+ /* @__PURE__ */ a("div", { className: n.sloganWrap, children: [
52
+ /* @__PURE__ */ o("span", { className: n.slogan, children: s.sloganRow1 }),
53
+ /* @__PURE__ */ o("span", { className: n.slogan, children: s.sloganRow2 })
54
+ ] })
55
+ ] }),
56
+ e && /* @__PURE__ */ o("div", { className: d, children: e })
57
+ ] });
58
+ };
59
+ export {
60
+ W as P
61
+ };
@@ -1,4 +1,4 @@
1
- import { P as a } from "./PageLoaderModule-D6yGXr6Z.mjs";
1
+ import { P as a } from "./PageLoaderModule-qw6Twqhc.mjs";
2
2
  export {
3
3
  a as PageLoaderModule
4
4
  };
@@ -0,0 +1,6 @@
1
+ type HeaderProps = {
2
+ title: string;
3
+ subtitle: string;
4
+ };
5
+ declare const Header: ({ title, subtitle }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default Header;
@@ -0,0 +1,2 @@
1
+ import Header from './Header';
2
+ export default Header;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Icon, InfoItem } from '../SuccessPaymentModule.types';
3
+ export declare const iconMap: Partial<Record<Icon, React.ReactElement>>;
4
+ type InfoListProps = {
5
+ infoList: InfoItem[];
6
+ };
7
+ declare const InfoList: ({ infoList }: InfoListProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default InfoList;
@@ -0,0 +1,2 @@
1
+ import InfoList from './InfoList';
2
+ export default InfoList;
@@ -0,0 +1,6 @@
1
+ import { BtnItem } from '../SuccessPaymentModule.types';
2
+ type NavProps = {
3
+ btnList: BtnItem[];
4
+ };
5
+ declare const Nav: ({ btnList }: NavProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default Nav;
@@ -0,0 +1,2 @@
1
+ import Nav from './Nav';
2
+ export default Nav;
@@ -0,0 +1,5 @@
1
+ type PictureProps = {
2
+ isAgent?: boolean;
3
+ };
4
+ declare const Picture: ({ isAgent }: PictureProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default Picture;
@@ -0,0 +1,2 @@
1
+ import Picture from './Picture';
2
+ export default Picture;
@@ -0,0 +1,6 @@
1
+ import { Locale } from '@/types';
2
+ type ReferralProps = {
3
+ locale: Locale;
4
+ };
5
+ declare const Referral: ({ locale }: ReferralProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default Referral;
@@ -0,0 +1,2 @@
1
+ import Referral from './Referral';
2
+ export default Referral;
@@ -0,0 +1,7 @@
1
+ export declare const localization: import("react-localization").LocalizedStrings<{
2
+ title: string;
3
+ btnLabel: string;
4
+ } | {
5
+ title: string;
6
+ btnLabel: string;
7
+ }>;
@@ -0,0 +1,126 @@
1
+ import { jsx as e, jsxs as n, Fragment as v } from "react/jsx-runtime";
2
+ import { L as y } from "../../types/Locale-D0KYJGGt.mjs";
3
+ import { a as f, M as w } from "../../chunks/breakpoints-BOwHOeQN.mjs";
4
+ import { c as k } from "../../chunks/index-BDjvzGbZ.mjs";
5
+ import * as s from "react";
6
+ import { S as L } from "../../chunks/file-C_N83pgK.mjs";
7
+ import { S as N } from "../../chunks/spinner-By2573Fq.mjs";
8
+ import S from "react-localization";
9
+ const M = "_container_1xi8m_1", x = "_img_1xi8m_14", E = "_agentImg_1xi8m_23", d = {
10
+ container: M,
11
+ img: x,
12
+ agentImg: E
13
+ }, H = "https://polis.ua/static/img/maskot/success.png", F = "https://polis.ua/static/img/maskot/success.webp", I = "https://polis.ua/static/img/maskot/fullSuccessNew.png", j = "https://polis.ua/static/img/maskot/fullSuccessNew.webp", K = "https://polis.ua/static/img/billy/success/fullBilly.png", P = "https://polis.ua/static/img/billy/success/fullBilly.webp", Z = "https://polis.ua/static/img/billy/success/success.png", $ = "https://polis.ua/static/img/billy/success/success.webp", A = ({ isAgent: t }) => {
14
+ const c = t ? $ : F, l = t ? Z : H, o = t ? P : j, i = t ? K : I, p = t ? d.agentImg : d.img;
15
+ return /* @__PURE__ */ e("div", { className: d.container, children: /* @__PURE__ */ n("picture", { children: [
16
+ /* @__PURE__ */ e("source", { media: `(max-width: ${f}px)`, srcSet: c, type: "image/webp" }),
17
+ /* @__PURE__ */ e("source", { media: `(max-width: ${f}px)`, srcSet: l, type: "image/png" }),
18
+ /* @__PURE__ */ e("source", { srcSet: o, type: "image/webp" }),
19
+ /* @__PURE__ */ e("img", { className: p, src: i, alt: "Mascot", loading: "lazy", decoding: "async" })
20
+ ] }) });
21
+ }, D = "_title_t840w_1", R = "_subtitle_t840w_13", z = "_divider_t840w_24", _ = {
22
+ title: D,
23
+ subtitle: R,
24
+ divider: z
25
+ }, O = ({ title: t, subtitle: c }) => /* @__PURE__ */ n(v, { children: [
26
+ /* @__PURE__ */ e("p", { className: _.title, children: t }),
27
+ /* @__PURE__ */ e("p", { className: _.subtitle, children: c }),
28
+ /* @__PURE__ */ e("div", { className: _.divider })
29
+ ] }), B = (t) => /* @__PURE__ */ s.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ s.createElement("path", { d: "M21 6L8.76 18L3 12.3529", stroke: "#10A45F", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" })), W = (t) => /* @__PURE__ */ s.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ s.createElement("circle", { cx: 12, cy: 12, r: 12, fill: "#FF3E44" }), /* @__PURE__ */ s.createElement("path", { d: "M16.0593 5.07715C17.3043 5.07715 18.146 5.83484 18.146 7.41084C18.146 8.98683 17.2791 9.58794 16.0593 9.58794H12.4453V11.1033H14.8395C16.0845 11.1033 17.0825 11.4822 17.0825 13.0582C17.0825 14.6342 16.0744 15.0383 14.8395 15.0383H12.4453V17.7963C12.4453 19.3116 11.8001 19.9531 10.1368 19.9531H9.6932C7.96432 19.9531 7.38467 19.3318 7.38467 17.7963V7.28455C7.38467 5.70351 8.02985 5.0822 9.6932 5.0822L16.0593 5.07715Z", fill: "white" })), G = (t) => /* @__PURE__ */ s.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ s.createElement("path", { d: "M20.4766 10.6074C20.4765 11.0051 20.3183 11.3868 20.0371 11.668C19.7558 11.9492 19.3743 12.1074 18.9766 12.1074L14.9561 12.1074L14.8818 12.793C14.8708 12.8958 14.8437 12.9962 14.8018 13.0908L12.6436 17.96L12.6416 17.9629C12.3155 18.6831 11.6002 19.1073 10.8369 19.1074L6.46777 19.1074L6.45801 19.1064C5.37635 19.0667 4.51614 18.2067 4.47656 17.125L4.47656 10.6074C4.47656 10.1093 4.66961 9.62917 5.03418 9.27344L8.88281 4.7832C9.25683 4.34724 9.92074 4.31485 10.335 4.71289L10.7227 5.08691C11.0381 5.37828 11.1963 5.7822 11.1963 6.1875L11.1963 6.28125C11.1963 6.44646 11.1554 6.60936 11.0771 6.75488L9.8125 9.10742L18.9766 9.10742C19.3742 9.10742 19.7558 9.26478 20.0371 9.5459C20.3184 9.8272 20.4766 10.2096 20.4766 10.6074Z", fill: "#FFD63B", stroke: "#2D2B2B" })), U = (t) => /* @__PURE__ */ s.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ s.createElement("g", { clipPath: "url(#clip0_67138_177)" }, /* @__PURE__ */ s.createElement("path", { d: "M12.0033 24C11.957 24 11.9111 23.9889 11.8631 23.966C10.4062 23.2714 8.92434 22.5663 7.49128 21.8845C6.96014 21.6317 6.429 21.379 5.89789 21.1262C4.94048 20.6706 4.32866 19.8903 4.07942 18.8071C4.02649 18.5771 4.00061 18.3283 4.0003 18.0467C3.99992 17.6867 3.99998 17.3268 4.00006 16.9669L4.00011 16.5455C4.00011 11.1216 4.00024 0.145031 4.00024 0.145031V0H19.9995V0.145031C19.9995 0.145031 19.9997 6.27244 19.9997 9.27204C19.9997 10.1015 19.9997 10.9308 19.9998 11.7603C20 13.8585 20.0003 16.0282 19.999 18.1622C19.9984 19.1208 19.6732 19.9436 19.0324 20.6077C18.7628 20.8871 18.4255 21.113 17.9707 21.3188C15.9978 22.2117 14.0376 23.1043 12.142 23.9675C12.0939 23.9894 12.0485 24.0001 12.0033 24.0001V24Z", fill: "#FFD500" }), /* @__PURE__ */ s.createElement("path", { d: "M19.7347 0.339844C19.7347 0.339844 19.7349 6.36748 19.7349 9.31822C19.7349 12.2333 19.736 15.1484 19.7342 18.0635C19.7337 18.9673 19.4309 19.7376 18.8239 20.3667C18.5344 20.6668 18.1894 20.8703 17.8203 21.0373C15.9078 21.9029 13.997 22.7729 12.0863 23.6429C12.0266 23.6701 11.9779 23.6712 11.9178 23.6425C9.96226 22.7102 8.00579 21.7799 6.04966 20.8489C5.14758 20.4196 4.57291 19.6935 4.33597 18.6638C4.2821 18.4297 4.26228 18.1906 4.26201 17.9498C4.26148 17.4576 4.26183 16.9654 4.26183 16.4732C4.26183 11.1376 4.26196 0.339844 4.26196 0.339844H19.7347Z", fill: "#005BBB" }), /* @__PURE__ */ s.createElement("path", { d: "M17.8003 18.0898C17.8004 14.8252 17.8004 11.5607 17.8004 8.29609C17.8004 6.62456 17.8004 4.95307 17.8003 3.28154C17.8003 3.21518 17.7729 3.1986 17.7179 3.2318C17.134 3.58606 16.619 4.03197 16.1743 4.5707C15.4656 5.42922 15.0007 6.42016 14.7756 7.54106C14.7012 7.91119 14.6685 8.28754 14.6273 8.66267C14.571 9.17468 14.5148 9.68672 14.4584 10.1987C14.4073 10.6635 14.3559 11.1283 14.3046 11.5931C14.2726 11.8833 14.2407 12.1735 14.2083 12.4637C14.2028 12.5137 14.204 12.5446 14.2688 12.5314C14.3965 12.5056 14.5247 12.5155 14.651 12.5492C15.0782 12.6632 15.377 13.0698 15.3806 13.5422C15.3843 14.0309 15.0936 14.4368 14.6474 14.5605C14.4952 14.6027 14.3405 14.6345 14.1877 14.6743C14.1403 14.6866 14.1157 14.6729 14.0933 14.6265C14.0281 14.4914 13.9596 14.3582 13.8899 14.2257C13.0385 12.6096 12.6008 10.8729 12.5735 9.01735C12.5654 8.46326 12.6018 7.91014 12.6164 7.35656C12.633 6.73172 12.6573 6.1071 12.6784 5.4824C12.6898 5.14512 12.7058 4.80792 12.7124 4.47053C12.7202 4.06948 12.7607 3.66823 12.7064 3.26718C12.6253 2.66834 12.4037 2.1383 12.0411 1.67495C12.0053 1.6291 11.9871 1.63907 11.9563 1.67836C11.813 1.8611 11.6905 2.05829 11.5874 2.26984C11.3154 2.82822 11.2407 3.42504 11.2701 4.04705C11.2993 4.66417 11.314 5.28211 11.3345 5.89969C11.3452 6.22275 11.3543 6.54589 11.3649 6.86897C11.385 7.47945 11.4102 8.08978 11.4249 8.7004C11.4379 9.24058 11.4035 9.77868 11.3372 10.3145C11.2164 11.2913 10.9715 12.2309 10.6141 13.1382C10.4092 13.6585 10.1461 14.1462 9.89793 14.6425C9.87689 14.6845 9.84998 14.6819 9.81478 14.6732C9.66374 14.6357 9.51201 14.6014 9.36112 14.5632C8.85682 14.4356 8.53793 13.9042 8.63324 13.3606C8.72245 12.8519 9.17449 12.454 9.70851 12.5268C9.80028 12.5392 9.79941 12.5367 9.78822 12.4383C9.75387 12.1364 9.72032 11.8344 9.68721 11.5324C9.63159 11.0251 9.57684 10.5177 9.52119 10.0104C9.46165 9.46772 9.39719 8.92559 9.34271 8.38229C9.28444 7.80105 9.18441 7.23058 8.99482 6.68087C8.47863 5.18436 7.57631 4.03663 6.2899 3.23646C6.19991 3.18046 6.19922 3.18166 6.19922 3.29247C6.19922 5.76289 6.19922 8.23331 6.19922 10.7037C6.19922 13.1741 6.19922 15.6398 6.19922 18.1079C6.19922 18.1835 6.23402 18.2213 6.30364 18.2214C7.31855 18.2214 8.33346 18.2217 9.34837 18.2205C9.4018 18.2204 9.43133 18.2299 9.44353 18.2957C9.62905 19.2945 10.0345 20.1782 10.6586 20.9455C10.8777 21.2148 11.1128 21.4677 11.3859 21.6738C11.6138 21.8458 11.8092 22.0482 11.9582 22.3013C11.998 22.3689 12.0012 22.3689 12.0395 22.3038C12.171 22.0798 12.3345 21.8865 12.5367 21.7354C12.8076 21.533 13.0464 21.2933 13.2678 21.0328C13.9265 20.2572 14.3514 19.3533 14.5521 18.3272C14.5727 18.2217 14.5715 18.2214 14.6746 18.2214C15.6762 18.2214 16.6779 18.2215 17.6795 18.2212C17.8108 18.2211 17.8002 18.235 17.8002 18.0897L17.8003 18.0898ZM7.16327 12.901C7.16499 12.8797 7.16343 12.8582 7.16343 12.8368C7.16343 10.3569 7.16343 7.87701 7.16343 5.39711V5.29975L7.18208 5.29469C7.30852 5.44725 7.42101 5.61161 7.52638 5.78143C7.99062 6.52942 8.26466 7.35088 8.35929 8.24387C8.44634 9.06537 8.54129 9.8859 8.63256 10.7069C8.66402 10.99 8.69432 11.2732 8.72665 11.5562C8.73192 11.6024 8.72049 11.6294 8.68029 11.6526C8.20017 11.9304 7.88202 12.3513 7.72431 12.9111C7.71148 12.9566 7.69057 12.9708 7.649 12.9703C7.50942 12.9686 7.36978 12.9683 7.23022 12.9704C7.18261 12.9711 7.1589 12.9546 7.16324 12.901H7.16327ZM9.51664 15.6589C9.40307 16.1179 9.34273 16.5849 9.34048 17.06C9.34027 17.1032 9.32519 17.1214 9.28597 17.1188C9.27494 17.118 9.26383 17.1189 9.25276 17.1189C8.58622 17.1189 7.91965 17.119 7.25311 17.1188C7.16393 17.1188 7.16354 17.1184 7.16351 17.0249C7.16338 16.5378 7.16346 16.0508 7.16346 15.5636C7.16346 15.0765 7.1634 14.5895 7.16351 14.1023C7.16351 14.0041 7.16385 14.0039 7.25554 14.0038C7.38399 14.0036 7.51243 14.0051 7.64085 14.003C7.68671 14.0023 7.71087 14.0159 7.72638 14.0676C7.96313 14.8569 8.46254 15.3395 9.21373 15.5253C9.3 15.5466 9.3864 15.5673 9.473 15.587C9.51137 15.5957 9.52897 15.6092 9.51667 15.6589H9.51664ZM10.3092 17.043C10.3141 16.6562 10.3658 16.277 10.4572 15.9032C10.4709 15.847 10.4936 15.8337 10.5464 15.8457C11.0497 15.9605 11.4235 16.3822 11.5032 16.9289C11.5305 17.1161 11.5282 17.1189 11.3516 17.1189C11.2033 17.1189 11.0549 17.1189 10.9066 17.1189C10.7317 17.1189 10.5568 17.1172 10.3819 17.1198C10.3282 17.1206 10.3084 17.1036 10.3092 17.043ZM11.5173 20.2605C11.5173 20.279 11.5148 20.2975 11.5122 20.3351C11.3735 20.188 11.2611 20.0387 11.1551 19.8841C10.8164 19.3897 10.5777 18.8445 10.4381 18.2493C10.4158 18.154 10.4153 18.1539 10.5049 18.1538C10.8174 18.1538 11.1298 18.1551 11.4422 18.1527C11.5006 18.1522 11.5186 18.1729 11.5184 18.2349C11.5169 18.9101 11.5175 19.5853 11.5173 20.2605H11.5173ZM12.0394 15.6012C12.0066 15.6425 11.9886 15.6368 11.9585 15.5991C11.6786 15.249 11.3325 15.0071 10.9192 14.8796C10.8565 14.8603 10.8627 14.835 10.889 14.7865C11.1898 14.2335 11.4476 13.6582 11.6616 13.0604C11.7783 12.7343 11.881 12.4031 11.971 12.0674C11.9771 12.0449 11.9842 12.0228 11.9908 12.0004C11.9964 11.9998 12.002 11.9991 12.0076 11.9984C12.0217 12.0473 12.0364 12.096 12.0498 12.145C12.2999 13.0638 12.6506 13.9363 13.0979 14.7643C13.1035 14.7745 13.1079 14.7856 13.1143 14.7952C13.1445 14.84 13.136 14.8617 13.0842 14.8778C12.6691 15.0072 12.3201 15.2482 12.0394 15.6012L12.0394 15.6012ZM13.5668 18.2297C13.382 19.0129 13.0385 19.7036 12.525 20.2958C12.519 20.3027 12.513 20.3098 12.5062 20.3157C12.5032 20.3184 12.4982 20.3183 12.493 20.3198C12.4738 20.2979 12.4823 20.2703 12.4823 20.2457C12.4817 19.5799 12.4818 18.9142 12.4819 18.2485C12.4819 18.1542 12.4824 18.1539 12.571 18.1538C12.8834 18.1537 13.1958 18.155 13.5083 18.1527C13.5658 18.1522 13.5816 18.1674 13.5668 18.2296V18.2297ZM13.6114 17.1201C13.4366 17.1167 13.2616 17.1189 13.0868 17.1189C12.9141 17.1189 12.7414 17.1161 12.5688 17.1203C12.5029 17.1218 12.487 17.0964 12.4886 17.0292C12.5002 16.5115 12.8763 16.0115 13.3684 15.8698C13.5539 15.8164 13.5198 15.8139 13.5621 15.9924C13.6429 16.3341 13.685 16.6819 13.6901 17.035C13.691 17.1012 13.6719 17.1212 13.6114 17.1201L13.6114 17.1201ZM15.3176 11.6514C15.2766 11.6276 15.2675 11.5991 15.2726 11.5541C15.3326 11.021 15.3921 10.4879 15.4511 9.95472C15.5156 9.37198 15.5785 8.78902 15.6437 8.20637C15.7641 7.13047 16.1412 6.17158 16.7845 5.3347C16.7954 5.32053 16.8037 5.30216 16.8271 5.29637C16.8408 5.32581 16.8356 5.35233 16.8356 5.37786C16.8358 7.87204 16.8358 10.3662 16.8358 12.8604C16.8358 12.9332 16.8018 12.9696 16.7337 12.9697C16.6052 12.9697 16.4767 12.9683 16.3482 12.9704C16.3053 12.9711 16.286 12.9534 16.2737 12.9095C16.1168 12.3489 15.7973 11.9293 15.3176 11.6514H15.3176ZM16.8358 15.5642C16.8358 16.049 16.8359 16.5337 16.8358 17.0184C16.8358 17.1184 16.8355 17.1188 16.7456 17.1188C16.0791 17.119 15.4125 17.119 14.746 17.1188C14.66 17.1188 14.6606 17.1184 14.659 17.0238C14.6512 16.5707 14.5974 16.1242 14.4883 15.6861C14.4725 15.6226 14.4793 15.5963 14.5462 15.5814C14.7778 15.5295 15.0112 15.4824 15.2273 15.3712C15.7487 15.1027 16.0971 14.6729 16.2689 14.0805C16.2859 14.0222 16.3093 14.0008 16.3657 14.0025C16.4962 14.0064 16.627 14.0066 16.7576 14.0025C16.8192 14.0006 16.8372 14.0241 16.8369 14.0887C16.8349 14.5805 16.8358 15.0724 16.8358 15.5642Z", fill: "#FFD500" })), /* @__PURE__ */ s.createElement("defs", null, /* @__PURE__ */ s.createElement("clipPath", { id: "clip0_67138_177" }, /* @__PURE__ */ s.createElement("rect", { width: 16, height: 24, fill: "white", transform: "translate(4)" }))));
30
+ var r = /* @__PURE__ */ ((t) => (t.CHECK = "CHECK", t.FISHKA = "FISHKA", t.CASHBACK = "CASHBACK", t.COAT = "COAT", t.FILE = "FILE", t))(r || {}), u = /* @__PURE__ */ ((t) => (t.BORDER = "BORDER", t.BACKGROUND = "BACKGROUND", t))(u || {});
31
+ const V = "_list_tnkbr_1", X = "_item_tnkbr_10", q = "_icon_tnkbr_26", J = "_text_tnkbr_35", Q = "_mr_tnkbr_50", a = {
32
+ list: V,
33
+ item: X,
34
+ icon: q,
35
+ text: J,
36
+ mr: Q
37
+ }, T = {
38
+ [r.CHECK]: /* @__PURE__ */ e(B, { className: a.icon }),
39
+ [r.FISHKA]: /* @__PURE__ */ e(W, { className: a.icon }),
40
+ [r.CASHBACK]: /* @__PURE__ */ e(G, { className: a.icon }),
41
+ [r.COAT]: /* @__PURE__ */ e(U, { className: a.icon })
42
+ }, Y = ({ infoList: t }) => /* @__PURE__ */ e("ul", { className: a.list, children: t.map(({ id: c, iconType: l, text: o, strongText: i }) => /* @__PURE__ */ n("li", { className: a.item, children: [
43
+ l ? T[l] : /* @__PURE__ */ e(B, { className: a.icon }),
44
+ /* @__PURE__ */ n("p", { className: a.text, children: [
45
+ /* @__PURE__ */ e("span", { className: k({ [a.mr]: !!i }), children: o }),
46
+ i && /* @__PURE__ */ e("strong", { children: i })
47
+ ] })
48
+ ] }, c)) }), t1 = "_nav_1njjv_1", e1 = "_btn_1njjv_14", s1 = "_borderBtn_1njjv_33", c1 = "_backgroundBtn_1njjv_41", n1 = "_fileIcon_1njjv_51", i1 = "_loaderIcon_1njjv_55", m = {
49
+ nav: t1,
50
+ btn: e1,
51
+ borderBtn: s1,
52
+ backgroundBtn: c1,
53
+ fileIcon: n1,
54
+ loaderIcon: i1
55
+ }, a1 = {
56
+ [u.BORDER]: m.borderBtn,
57
+ [u.BACKGROUND]: m.backgroundBtn
58
+ }, l1 = ({ btnList: t }) => /* @__PURE__ */ e("div", { className: m.nav, children: t.map(({ id: c, label: l, iconType: o, callback: i, variant: p, showLoader: g }) => /* @__PURE__ */ e(
59
+ "button",
60
+ {
61
+ className: k(m.btn, a1[p]),
62
+ type: "button",
63
+ onClick: i,
64
+ children: g ? /* @__PURE__ */ e(N, { className: m.loaderIcon }) : /* @__PURE__ */ n(v, { children: [
65
+ o === r.FILE && /* @__PURE__ */ e(L, { className: m.fileIcon }),
66
+ l
67
+ ] })
68
+ },
69
+ c
70
+ )) }), b = new S({
71
+ ru: {
72
+ title: "Порекомендуй друзьям Polis.Ua и получи до 200 грн за каждого друга",
73
+ btnLabel: "Начать зарабатывать"
74
+ },
75
+ uk: {
76
+ title: "Порекомендуй друзям Polis.Ua та отримай до 200 грн за кожного друга",
77
+ btnLabel: "Почати заробляти"
78
+ }
79
+ }), o1 = "_container_1bzs8_1", C1 = "_content_1bzs8_7", r1 = "_leftBlock_1bzs8_25", m1 = "_title_1bzs8_36", p1 = "_gift_1bzs8_46", g1 = "_btn_1bzs8_55", C = {
80
+ container: o1,
81
+ content: C1,
82
+ leftBlock: r1,
83
+ title: m1,
84
+ gift: p1,
85
+ btn: g1
86
+ }, d1 = "https://polis.ua/static/img/successPage/referralGift/gift.png", _1 = "https://polis.ua/static/img/successPage/referralGift/gift.webp", b1 = "https://polis.ua/static/img/successPage/referralGift/gift_mob.png", h1 = "https://polis.ua/static/img/successPage/referralGift/gift_mob.webp", u1 = ({ locale: t }) => {
87
+ b.setLanguage(t);
88
+ const c = t === y.UK ? "https://polis.ua/uk/referalna-programa" : "https://polis.ua/referalnaya-programma";
89
+ return /* @__PURE__ */ e("div", { className: C.container, children: /* @__PURE__ */ n("div", { className: C.content, children: [
90
+ /* @__PURE__ */ n("div", { className: C.leftBlock, children: [
91
+ /* @__PURE__ */ n("picture", { children: [
92
+ /* @__PURE__ */ e("source", { media: `(max-width: ${w}px)`, srcSet: h1, type: "image/webp" }),
93
+ /* @__PURE__ */ e("source", { media: `(max-width: ${w}px)`, srcSet: b1, type: "image/png" }),
94
+ /* @__PURE__ */ e("source", { srcSet: _1, type: "image/webp" }),
95
+ /* @__PURE__ */ e("img", { className: C.gift, src: d1, alt: "Gift Img", loading: "lazy", decoding: "async" })
96
+ ] }),
97
+ /* @__PURE__ */ e("p", { className: C.title, children: b.title })
98
+ ] }),
99
+ /* @__PURE__ */ e("a", { className: C.btn, href: c, children: b.btnLabel })
100
+ ] }) });
101
+ }, f1 = "_successPayment_1ty6f_1", w1 = "_container_1ty6f_17", v1 = "_infoBlock_1ty6f_30", h = {
102
+ successPayment: f1,
103
+ container: w1,
104
+ infoBlock: v1
105
+ }, x1 = ({
106
+ title: t,
107
+ subtitle: c,
108
+ isAgent: l,
109
+ infoList: o,
110
+ btnList: i,
111
+ isReferral: p,
112
+ locale: g = y.UK
113
+ }) => /* @__PURE__ */ n("div", { className: h.successPayment, children: [
114
+ /* @__PURE__ */ n("div", { className: h.container, children: [
115
+ /* @__PURE__ */ e(A, { isAgent: l }),
116
+ /* @__PURE__ */ n("div", { className: h.infoBlock, children: [
117
+ /* @__PURE__ */ e(O, { title: t, subtitle: c }),
118
+ /* @__PURE__ */ e(Y, { infoList: o }),
119
+ /* @__PURE__ */ e(l1, { btnList: i })
120
+ ] })
121
+ ] }),
122
+ p && /* @__PURE__ */ e(u1, { locale: g })
123
+ ] });
124
+ export {
125
+ x1 as S
126
+ };
@@ -0,0 +1 @@
1
+ ._container_1xi8m_1{margin-bottom:24px}@media (min-width: 1200px){._container_1xi8m_1{width:306px;display:flex;align-items:center;justify-content:center;margin-bottom:0}}._img_1xi8m_14{width:120px}@media (min-width: 1200px){._img_1xi8m_14{width:306px}}._agentImg_1xi8m_23{width:210px;border-bottom:1px solid #F3F4F6}@media (min-width: 1200px){._agentImg_1xi8m_23{width:100%;border-bottom:none}}._title_t840w_1{text-align:center;font:700 24px/120% latobold;color:#10a45f;margin-bottom:16px}@media (min-width: 1200px){._title_t840w_1{font-size:35px}}._subtitle_t840w_13{text-align:center;font:700 18px/120% latobold;color:#2d2b2b}@media (min-width: 1200px){._subtitle_t840w_13{font-size:20px}}._divider_t840w_24{margin:16px auto;border-bottom:1px solid #E6ECF2}@media (min-width: 1200px){._divider_t840w_24{max-width:500px}}._list_tnkbr_1{margin-bottom:24px}@media (min-width: 1200px){._list_tnkbr_1{margin-bottom:32px}}._item_tnkbr_10{display:flex;gap:8px;justify-content:space-between;align-items:flex-start;margin-bottom:16px}._item_tnkbr_10:last-child{margin-bottom:0}@media (min-width: 1200px){._item_tnkbr_10{align-items:center}}._icon_tnkbr_26{width:16px}@media (min-width: 1200px){._icon_tnkbr_26{width:24px}}._text_tnkbr_35{width:100%;font:400 16px/130% latoregular;color:#2d2b2b}._text_tnkbr_35 strong{font-weight:700;font-family:latobold}@media (min-width: 1200px){._text_tnkbr_35{font-size:18px}}._mr_tnkbr_50{margin-right:4px}._nav_1njjv_1{display:flex;flex-direction:column;gap:16px}@media (min-width: 1200px){._nav_1njjv_1{flex-direction:row;flex-wrap:wrap;justify-content:space-between}}._btn_1njjv_14{height:54px;border-radius:12px;padding:16px 32px;color:#2d2b2b;font:400 16px/130% latoregular;display:flex;align-items:center;justify-content:center;min-width:220px;transition:all .3s ease-in-out;width:100%}@media (min-width: 1200px){._btn_1njjv_14{width:auto}}._borderBtn_1njjv_33{border:1px solid #E5E7EB;box-shadow:0 6px 12px #8a9aa826}._borderBtn_1njjv_33:hover{box-shadow:0 6px 12px #0003}._backgroundBtn_1njjv_41{font-weight:700;font-family:latobold;background:#ffd362}._backgroundBtn_1njjv_41:hover{box-shadow:0 6px 12px #0003;background:#e7b433}._fileIcon_1njjv_51{margin-right:10px}._loaderIcon_1njjv_55{height:54px;margin:0!important}._container_1bzs8_1{border-top:1px solid #E5E7EB;padding:16px 0 0;margin-top:16px}._content_1bzs8_7{padding:16px;border-radius:12px;background:#f4f9ef;display:flex;flex-direction:column;gap:16px}@media (min-width: 1200px){._content_1bzs8_7{flex-direction:row;padding:16px 24px;gap:30px;justify-content:space-between;align-items:center}}._leftBlock_1bzs8_25{display:flex;gap:16px}@media (min-width: 1200px){._leftBlock_1bzs8_25{gap:30px;align-items:center}}._title_1bzs8_36{color:#2d2b2b;font:700 16px/120% latobold}@media (min-width: 768px){._title_1bzs8_36{font-size:22px}}._gift_1bzs8_46{width:40px}@media (min-width: 768px){._gift_1bzs8_46{width:60px}}._content_1bzs8_7 a._btn_1bzs8_55{border-radius:12px;padding:19px 32px;color:#2d2b2b;display:flex;align-items:center;justify-content:center;transition:all .3s ease-in-out;background:#ffd362;box-sizing:border-box;font-weight:700;font-family:latobold}@media (min-width: 1200px){._content_1bzs8_7 a._btn_1bzs8_55{width:220px}}._content_1bzs8_7 a._btn_1bzs8_55:hover{box-shadow:0 6px 12px #0003;background:#e7b433}._successPayment_1ty6f_1{margin:0 auto;width:100%;box-sizing:border-box;max-width:1200px;padding:24px 16px;border-radius:16px;border:1px solid #F3F4F6;box-shadow:0 3px 17px #515a6436}@media (min-width: 1200px){._successPayment_1ty6f_1{padding:40px}}._container_1ty6f_17{display:flex;flex-direction:column;align-items:center}@media (min-width: 1200px){._container_1ty6f_17{flex-direction:row;gap:24px;justify-content:space-between}}._infoBlock_1ty6f_30{width:100%}@media (min-width: 1200px){._infoBlock_1ty6f_30{width:calc(100% - 330px)}}
@@ -0,0 +1,2 @@
1
+ import { SuccessPaymentModuleProps } from './SuccessPaymentModule.types';
2
+ export declare const SuccessPaymentModule: ({ title, subtitle, isAgent, infoList, btnList, isReferral, locale, }: SuccessPaymentModuleProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { Locale } from '@/types';
3
+ export type InfoItem = {
4
+ id: number;
5
+ text: string;
6
+ strongText?: string;
7
+ iconType?: Icon;
8
+ };
9
+ export type BtnItem = {
10
+ id: number;
11
+ label: string;
12
+ variant: BtnVariant;
13
+ callback: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
14
+ showLoader?: boolean;
15
+ iconType?: Icon;
16
+ };
17
+ export declare enum Icon {
18
+ 'CHECK' = "CHECK",
19
+ 'FISHKA' = "FISHKA",
20
+ 'CASHBACK' = "CASHBACK",
21
+ 'COAT' = "COAT",
22
+ 'FILE' = "FILE"
23
+ }
24
+ export declare enum BtnVariant {
25
+ 'BORDER' = "BORDER",
26
+ 'BACKGROUND' = "BACKGROUND"
27
+ }
28
+ export type SuccessPaymentModuleProps = {
29
+ title: string;
30
+ subtitle: string;
31
+ infoList: InfoItem[];
32
+ btnList: BtnItem[];
33
+ isAgent?: boolean;
34
+ isReferral?: boolean;
35
+ locale?: Locale;
36
+ };
@@ -0,0 +1,2 @@
1
+ export { SuccessPaymentModule } from './SuccessPaymentModule';
2
+ export type { SuccessPaymentModuleProps } from './SuccessPaymentModule.types';
@@ -0,0 +1,4 @@
1
+ import { S as s } from "./SuccessPaymentModule-BizFQek6.mjs";
2
+ export {
3
+ s as SuccessPaymentModule
4
+ };
@@ -0,0 +1,16 @@
1
+ import { CheckOtpReqData, CheckOtpResData, LoginReqData, LoginResData, OtpReqData, RegisterReqData, RegisterResData, RestorePassReqData, RestorePassResData, SocialLoginLink } from '@/modules/AuthModule/AuthModule.types';
2
+ import Service from './Service';
3
+ declare class AuthService extends Service {
4
+ private static readonly SITE_ID;
5
+ private readonly CURRENT_PAGE;
6
+ constructor();
7
+ getSocialLoginLinks(): Promise<SocialLoginLink>;
8
+ checkLogin(login: string): Promise<boolean>;
9
+ login(data: LoginReqData): Promise<LoginResData>;
10
+ restorePassword(data: RestorePassReqData): Promise<RestorePassResData>;
11
+ sendOtp(data: OtpReqData): Promise<boolean>;
12
+ resendOtp(data: OtpReqData): Promise<unknown>;
13
+ checkOtp(data: CheckOtpReqData): Promise<CheckOtpResData>;
14
+ register(data: RegisterReqData): Promise<RegisterResData>;
15
+ }
16
+ export default AuthService;
@@ -0,0 +1,7 @@
1
+ import { DesignerProductDataDTO, ProductID } from '@/types/Designer';
2
+ import Service from './Service';
3
+ declare class DesignerService extends Service {
4
+ constructor();
5
+ getProductData(product?: ProductID, agentId?: string): Promise<DesignerProductDataDTO>;
6
+ }
7
+ export default DesignerService;
@@ -1,5 +1,5 @@
1
- import { HeaderData } from '@/types';
2
1
  import { FooterData } from '@/modules/FooterV2Module/FooterV2Module.types';
2
+ import { HeaderData } from '@/modules/HeaderV5Module/HeaderV5Module.types';
3
3
  import Service from './Service';
4
4
  declare class LayoutService extends Service {
5
5
  constructor();
@@ -0,0 +1,7 @@
1
+ import Service from './Service';
2
+ import { HeaderBannerType } from '@/modules/HeaderV5Module/HeaderV5Module.types';
3
+ declare class StrapiService extends Service {
4
+ constructor();
5
+ getHeaderBanner(productId?: string): Promise<HeaderBannerType>;
6
+ }
7
+ export default StrapiService;
@@ -0,0 +1,2 @@
1
+ declare const getStrapiHost: () => "https://strapi-test.polis.ua" | "https://strapi.polis.ua";
2
+ export default getStrapiHost;
@@ -0,0 +1,28 @@
1
+ export type DesignerProductDataDTO = {
2
+ id: string;
3
+ product: string;
4
+ agentId: string;
5
+ frame: boolean;
6
+ chat: boolean;
7
+ branding: boolean;
8
+ brandingId: string;
9
+ fishka: boolean;
10
+ promoCodes: boolean;
11
+ extraVariables: ExtraVariable[];
12
+ paymentSystems: string[];
13
+ defaultPaymentSystem: string;
14
+ };
15
+ export type ExtraVariable = {
16
+ key: string;
17
+ value: string;
18
+ };
19
+ export declare enum ProductID {
20
+ eliki = "ELIKY",
21
+ greencard = "GREENCARD",
22
+ health = "HEALTH",
23
+ mayno = "MAYNO",
24
+ minikasko = "KASKO-LITE",
25
+ travel = "TRAVEL",
26
+ zbroya = "ZBROYA",
27
+ shtraf = "SHTRAF"
28
+ }
@@ -1,2 +1 @@
1
1
  export * from './Locale';
2
- export * from './Header';
@@ -0,0 +1,9 @@
1
+ import { L as r } from "../types/Locale-D0KYJGGt.mjs";
2
+ function c(l, o) {
3
+ let e = o;
4
+ const t = window.location.href;
5
+ return (t.includes("test") || t.includes("localhost")) && (e = e.replace("polis", "test.polis")), l === r.UK && (e = e.replace("ua/", "ua/uk")), e;
6
+ }
7
+ export {
8
+ c as g
9
+ };
@@ -0,0 +1,2 @@
1
+ import { Locale } from '@/types';
2
+ export default function getAbsUrl(lang: Locale, url: string): string;
@@ -1 +1,2 @@
1
1
  export { default as generateId } from './generateId';
2
+ export { default as getAbsUrl } from './getAbsUrl';
@@ -1,4 +1,5 @@
1
- function n(t = 8) {
1
+ import { g as n } from "./getAbsUrl-C3tTvhge.mjs";
2
+ function o(t = 8) {
2
3
  const r = "abcdefghijklmnopqrstuvwxyz0123456789";
3
4
  return Array.from(
4
5
  { length: t },
@@ -6,5 +7,6 @@ function n(t = 8) {
6
7
  ).join("");
7
8
  }
8
9
  export {
9
- n as generateId
10
+ o as generateId,
11
+ n as getAbsUrl
10
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ashtuka/react-lib",
3
- "version": "1.0.39",
3
+ "version": "1.0.42",
4
4
  "main": "./dist/index.es.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -10,15 +10,22 @@
10
10
  "types": "./dist/index.d.ts"
11
11
  },
12
12
  "./utils": {
13
- "import": "./dist/utils.es.js",
13
+ "import": "./dist/utils/index.es.js",
14
14
  "types": "./dist/utils/index.d.ts"
15
15
  },
16
16
  "./hooks": {
17
- "import": "./dist/hooks.es.js",
17
+ "import": "./dist/hooks/index.es.js",
18
18
  "types": "./dist/hooks/index.d.ts"
19
19
  },
20
20
  "./PageLoaderModule/style.css": "./dist/modules/PageLoaderModule/PageLoaderModule.css",
21
- "./FooterV2Module/style.css": "./dist/modules/FooterV2Module/FooterV2Module.css"
21
+ "./FooterV2Module/style.css": "./dist/modules/FooterV2Module/FooterV2Module.css",
22
+ "./HeaderV5Module/style.css": "./dist/modules/HeaderV5Module/HeaderV5Module.css",
23
+ "./CrumbsModule/style.css": "./dist/modules/CrumbsModule/CrumbsModule.css",
24
+ "./SuccessPaymentModule/style.css": "./dist/modules/SuccessPaymentModule/SuccessPaymentModule.css",
25
+ "./ErrorPaymentModule/style.css": "./dist/modules/ErrorPaymentModule/ErrorPaymentModule.css",
26
+ "./DiyaModule/style.css": "./dist/modules/DiyaModule/DiyaModule.css",
27
+ "./OtpModule/style.css": "./dist/modules/OtpModule/OtpModule.css",
28
+ "./AuthModule/style.css": "./dist/modules/AuthModule/AuthModule.css"
22
29
  },
23
30
  "typesVersions": {
24
31
  "*": {
@@ -76,6 +83,11 @@
76
83
  "ts-node": "^10.9.2",
77
84
  "typescript": "^5.8.3",
78
85
  "vite": "^5.0.0",
86
+ "vite-plugin-svgr": "^4.5.0",
79
87
  "vitest": "^1.0.0"
88
+ },
89
+ "dependencies": {
90
+ "qrcode.react": "^4.2.0",
91
+ "react-countdown": "^2.3.6"
80
92
  }
81
93
  }