@ashtuka/react-lib 1.0.38 → 1.0.39
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 +3 -0
- package/dist/components/LoadAbleImg/LoadAbleImg.d.ts +9 -0
- package/dist/components/LoadAbleImg/index.d.ts +1 -0
- package/dist/constants/breakpoints.d.ts +5 -5
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.es.js +5 -0
- package/dist/hooks/useDevice.d.ts +17 -0
- package/dist/hooks/useOnScreen-CpqVO1-u.mjs +28 -0
- package/dist/hooks/useOnScreen.d.ts +21 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +4 -2
- package/dist/modules/FooterV2Module/AppsList/AppsList.d.ts +1 -0
- package/dist/modules/FooterV2Module/AppsList/index.d.ts +1 -0
- package/dist/modules/FooterV2Module/FooterBottom/FooterBottom.d.ts +8 -0
- package/dist/modules/FooterV2Module/FooterBottom/index.d.ts +1 -0
- package/dist/modules/FooterV2Module/FooterHeader/FooterHeader.d.ts +12 -0
- package/dist/modules/FooterV2Module/FooterHeader/index.d.ts +1 -0
- package/dist/modules/FooterV2Module/FooterMenu/FooterMenu.d.ts +11 -0
- package/dist/modules/FooterV2Module/FooterMenu/index.d.ts +1 -0
- package/dist/modules/FooterV2Module/FooterV2Module-Cd4z2v8y.mjs +387 -0
- package/dist/modules/FooterV2Module/FooterV2Module.css +1 -0
- package/dist/modules/FooterV2Module/FooterV2Module.d.ts +2 -0
- package/dist/modules/FooterV2Module/FooterV2Module.types.d.ts +52 -0
- package/dist/modules/FooterV2Module/PaymentSystems/PaymentSystems.d.ts +5 -0
- package/dist/modules/FooterV2Module/PaymentSystems/index.d.ts +1 -0
- package/dist/modules/FooterV2Module/Phone/Phone.d.ts +7 -0
- package/dist/modules/FooterV2Module/Phone/index.d.ts +1 -0
- package/dist/modules/FooterV2Module/SocialList/SocialList.d.ts +13 -0
- package/dist/modules/FooterV2Module/SocialList/index.d.ts +1 -0
- package/dist/modules/FooterV2Module/index.d.ts +2 -0
- package/dist/modules/FooterV2Module/index.es.js +4 -0
- package/dist/modules/FooterV2Module/utils/getAbsUrl.d.ts +3 -0
- package/dist/modules/FooterV2Module/utils/index.d.ts +2 -0
- package/dist/modules/FooterV2Module/utils/setFooterStyle.d.ts +3 -0
- package/dist/modules/PageLoaderModule/PageLoaderModule-D6yGXr6Z.mjs +100 -0
- package/dist/modules/PageLoaderModule/PageLoaderModule.d.ts +1 -2
- package/dist/modules/PageLoaderModule/index.es.js +4 -0
- package/dist/services/LayoutService.d.ts +9 -0
- package/dist/services/Service.d.ts +13 -0
- package/dist/services/utils/getHost.d.ts +1 -0
- package/dist/services/utils/index.d.ts +1 -0
- package/dist/types/Header.d.ts +34 -0
- package/dist/types/Locale-D0KYJGGt.mjs +4 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +12 -10
- package/dist/modules/PageLoaderModule/PageLoaderModule-C7IoevYf.mjs +0 -369
- package/dist/modules/PageLoaderModule/PageLoaderModule.es.js +0 -4
- /package/dist/{utils.es.js → utils/index.es.js} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type SocialListType = {
|
|
2
|
+
facebook?: string;
|
|
3
|
+
youtube?: string;
|
|
4
|
+
telegram?: string;
|
|
5
|
+
tiktok?: string;
|
|
6
|
+
instagram?: string;
|
|
7
|
+
} | undefined;
|
|
8
|
+
type SocialListProps = {
|
|
9
|
+
socialList: SocialListType;
|
|
10
|
+
isAgent: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const SocialList: ({ socialList, isAgent }: SocialListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SocialList';
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { jsxs as c, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { L as f } from "../../types/Locale-D0KYJGGt.mjs";
|
|
3
|
+
import _ from "react-localization";
|
|
4
|
+
function g(o) {
|
|
5
|
+
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
6
|
+
}
|
|
7
|
+
var m = { exports: {} };
|
|
8
|
+
/*!
|
|
9
|
+
Copyright (c) 2018 Jed Watson.
|
|
10
|
+
Licensed under the MIT License (MIT), see
|
|
11
|
+
http://jedwatson.github.io/classnames
|
|
12
|
+
*/
|
|
13
|
+
(function(o) {
|
|
14
|
+
(function() {
|
|
15
|
+
var d = {}.hasOwnProperty;
|
|
16
|
+
function r() {
|
|
17
|
+
for (var n = "", e = 0; e < arguments.length; e++) {
|
|
18
|
+
var a = arguments[e];
|
|
19
|
+
a && (n = i(n, l(a)));
|
|
20
|
+
}
|
|
21
|
+
return n;
|
|
22
|
+
}
|
|
23
|
+
function l(n) {
|
|
24
|
+
if (typeof n == "string" || typeof n == "number")
|
|
25
|
+
return n;
|
|
26
|
+
if (typeof n != "object")
|
|
27
|
+
return "";
|
|
28
|
+
if (Array.isArray(n))
|
|
29
|
+
return r.apply(null, n);
|
|
30
|
+
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
|
|
31
|
+
return n.toString();
|
|
32
|
+
var e = "";
|
|
33
|
+
for (var a in n)
|
|
34
|
+
d.call(n, a) && n[a] && (e = i(e, a));
|
|
35
|
+
return e;
|
|
36
|
+
}
|
|
37
|
+
function i(n, e) {
|
|
38
|
+
return e ? n ? n + " " + e : n + e : n;
|
|
39
|
+
}
|
|
40
|
+
o.exports ? (r.default = r, o.exports = r) : window.classNames = r;
|
|
41
|
+
})();
|
|
42
|
+
})(m);
|
|
43
|
+
var h = m.exports;
|
|
44
|
+
const u = /* @__PURE__ */ g(h), p = new _({
|
|
45
|
+
uk: {
|
|
46
|
+
sloganRow1: "Класний пошукатор",
|
|
47
|
+
sloganRow2: "страхових"
|
|
48
|
+
},
|
|
49
|
+
ru: {
|
|
50
|
+
sloganRow1: "Классный пошукатор",
|
|
51
|
+
sloganRow2: "страховых"
|
|
52
|
+
}
|
|
53
|
+
}), w = "_container_1xrzw_1", v = "_fullScreen_1xrzw_10", x = "_loaderContainer_1xrzw_26", N = "_inner_1xrzw_34", z = "_item_1xrzw_41", S = "_logo_1xrzw_94", y = "_sloganWrap_1xrzw_99", j = "_slogan_1xrzw_99", C = "_title_1xrzw_113", t = {
|
|
54
|
+
container: w,
|
|
55
|
+
fullScreen: v,
|
|
56
|
+
loaderContainer: x,
|
|
57
|
+
inner: N,
|
|
58
|
+
item: z,
|
|
59
|
+
logo: S,
|
|
60
|
+
sloganWrap: y,
|
|
61
|
+
slogan: j,
|
|
62
|
+
title: C
|
|
63
|
+
}, W = ({
|
|
64
|
+
classes: o = "",
|
|
65
|
+
isFullScreen: d,
|
|
66
|
+
locale: r = f.UK,
|
|
67
|
+
title: l,
|
|
68
|
+
titleClasses: i = ""
|
|
69
|
+
}) => {
|
|
70
|
+
p.setLanguage(r);
|
|
71
|
+
const n = u(t.container, o, {
|
|
72
|
+
[t.fullScreen]: d
|
|
73
|
+
}), e = u(t.title, i);
|
|
74
|
+
return /* @__PURE__ */ c("div", { className: n, children: [
|
|
75
|
+
/* @__PURE__ */ c("div", { className: t.loaderContainer, children: [
|
|
76
|
+
/* @__PURE__ */ c("div", { className: t.inner, children: [
|
|
77
|
+
/* @__PURE__ */ s("div", { className: t.item, children: " " }),
|
|
78
|
+
/* @__PURE__ */ s("div", { className: t.item, children: " " }),
|
|
79
|
+
/* @__PURE__ */ s("div", { className: t.item, children: " " })
|
|
80
|
+
] }),
|
|
81
|
+
/* @__PURE__ */ s("div", { className: t.logo, children: /* @__PURE__ */ s(
|
|
82
|
+
"img",
|
|
83
|
+
{
|
|
84
|
+
width: "148px",
|
|
85
|
+
height: "40px",
|
|
86
|
+
src: "https://polis.ua/static/img/logo/logoWithFlagLine.svg",
|
|
87
|
+
alt: "Icon"
|
|
88
|
+
}
|
|
89
|
+
) }),
|
|
90
|
+
/* @__PURE__ */ c("div", { className: t.sloganWrap, children: [
|
|
91
|
+
/* @__PURE__ */ s("span", { className: t.slogan, children: p.sloganRow1 }),
|
|
92
|
+
/* @__PURE__ */ s("span", { className: t.slogan, children: p.sloganRow2 })
|
|
93
|
+
] })
|
|
94
|
+
] }),
|
|
95
|
+
l && /* @__PURE__ */ s("div", { className: e, children: l })
|
|
96
|
+
] });
|
|
97
|
+
};
|
|
98
|
+
export {
|
|
99
|
+
W as P
|
|
100
|
+
};
|
|
@@ -18,6 +18,5 @@
|
|
|
18
18
|
* />
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
import React from 'react';
|
|
22
21
|
import { PageLoaderModuleProps } from './PageLoaderModule.types';
|
|
23
|
-
export declare const PageLoaderModule:
|
|
22
|
+
export declare const PageLoaderModule: ({ classes, isFullScreen, locale, title, titleClasses, }: PageLoaderModuleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HeaderData } from '@/types';
|
|
2
|
+
import { FooterData } from '@/modules/FooterV2Module/FooterV2Module.types';
|
|
3
|
+
import Service from './Service';
|
|
4
|
+
declare class LayoutService extends Service {
|
|
5
|
+
constructor();
|
|
6
|
+
fetchHeaderData(): Promise<HeaderData>;
|
|
7
|
+
fetchFooterData(): Promise<FooterData>;
|
|
8
|
+
}
|
|
9
|
+
export default LayoutService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type RequestConfig = {
|
|
2
|
+
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
3
|
+
data?: unknown;
|
|
4
|
+
params?: Record<string, string>;
|
|
5
|
+
headers?: Record<string, string>;
|
|
6
|
+
};
|
|
7
|
+
declare class Service {
|
|
8
|
+
protected readonly BASE_PATH: string;
|
|
9
|
+
protected readonly HOST: string;
|
|
10
|
+
constructor(host: string, basePath: string);
|
|
11
|
+
request<T>(endpoint: string, config: RequestConfig): Promise<T>;
|
|
12
|
+
}
|
|
13
|
+
export default Service;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getHost: () => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './getHost';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface MenuItem {
|
|
2
|
+
imgAddress: string;
|
|
3
|
+
label: string;
|
|
4
|
+
navigateTo: string;
|
|
5
|
+
new: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface Cabinet {
|
|
8
|
+
childs: MenuItem[];
|
|
9
|
+
link: string;
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CategoryItem {
|
|
13
|
+
title: string;
|
|
14
|
+
id: string;
|
|
15
|
+
childList: MenuItem[];
|
|
16
|
+
}
|
|
17
|
+
export interface NavItem {
|
|
18
|
+
title: string;
|
|
19
|
+
_id: string;
|
|
20
|
+
imgAddress: string;
|
|
21
|
+
link?: string;
|
|
22
|
+
childs: MenuItem[];
|
|
23
|
+
categoryList: CategoryItem[];
|
|
24
|
+
}
|
|
25
|
+
export type HeaderData = {
|
|
26
|
+
uk: {
|
|
27
|
+
cabinet: Cabinet;
|
|
28
|
+
navItemNew: NavItem[];
|
|
29
|
+
};
|
|
30
|
+
ru: {
|
|
31
|
+
cabinet: Cabinet;
|
|
32
|
+
navItemNew: NavItem[];
|
|
33
|
+
};
|
|
34
|
+
};
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ashtuka/react-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"main": "./dist/index.es.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -13,19 +13,20 @@
|
|
|
13
13
|
"import": "./dist/utils.es.js",
|
|
14
14
|
"types": "./dist/utils/index.d.ts"
|
|
15
15
|
},
|
|
16
|
-
"./
|
|
17
|
-
"import": "./dist/
|
|
18
|
-
"types": "./dist/
|
|
16
|
+
"./hooks": {
|
|
17
|
+
"import": "./dist/hooks.es.js",
|
|
18
|
+
"types": "./dist/hooks/index.d.ts"
|
|
19
19
|
},
|
|
20
|
-
"./PageLoaderModule/style.css": "./dist/modules/PageLoaderModule/PageLoaderModule.css"
|
|
20
|
+
"./PageLoaderModule/style.css": "./dist/modules/PageLoaderModule/PageLoaderModule.css",
|
|
21
|
+
"./FooterV2Module/style.css": "./dist/modules/FooterV2Module/FooterV2Module.css"
|
|
21
22
|
},
|
|
22
23
|
"typesVersions": {
|
|
23
24
|
"*": {
|
|
24
25
|
"utils": [
|
|
25
26
|
"./dist/utils/index.d.ts"
|
|
26
27
|
],
|
|
27
|
-
"
|
|
28
|
-
"./dist/
|
|
28
|
+
"hooks": [
|
|
29
|
+
"./dist/hooks/index.d.ts"
|
|
29
30
|
]
|
|
30
31
|
}
|
|
31
32
|
},
|
|
@@ -38,14 +39,14 @@
|
|
|
38
39
|
},
|
|
39
40
|
"scripts": {
|
|
40
41
|
"dev": "vite",
|
|
41
|
-
"build": "vite build && tsc
|
|
42
|
+
"build": "vite build && tsc",
|
|
42
43
|
"lint": "eslint . --ext .ts,.tsx --fix",
|
|
43
44
|
"format": "prettier --write .",
|
|
44
45
|
"release": "npm version patch && npm publish --access public",
|
|
45
|
-
"updBuildConfig": "npx tsx scripts/updateBuildConfig.ts"
|
|
46
|
-
"organizeDist": "npx tsx scripts/organizeDist.ts"
|
|
46
|
+
"updBuildConfig": "npx tsx scripts/updateBuildConfig.ts"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
+
"axios": "^1.11.0",
|
|
49
50
|
"react": "^19.1.1",
|
|
50
51
|
"react-dom": "^19.1.1",
|
|
51
52
|
"react-localization": "^2.0.6"
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
58
59
|
"@typescript-eslint/parser": "^8.29.1",
|
|
59
60
|
"@vitejs/plugin-react": "^4.0.0",
|
|
61
|
+
"axios": "^1.11.0",
|
|
60
62
|
"classnames": "^2.5.1",
|
|
61
63
|
"eslint": "^8.57.1",
|
|
62
64
|
"eslint-config-prettier": "^10.1.1",
|
|
@@ -1,369 +0,0 @@
|
|
|
1
|
-
import ae from "react";
|
|
2
|
-
import se from "react-localization";
|
|
3
|
-
function le(o) {
|
|
4
|
-
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
5
|
-
}
|
|
6
|
-
var k = { exports: {} }, R = {};
|
|
7
|
-
/**
|
|
8
|
-
* @license React
|
|
9
|
-
* react-jsx-runtime.production.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
var $;
|
|
17
|
-
function ce() {
|
|
18
|
-
if ($) return R;
|
|
19
|
-
$ = 1;
|
|
20
|
-
var o = Symbol.for("react.transitional.element"), p = Symbol.for("react.fragment");
|
|
21
|
-
function i(m, s, t) {
|
|
22
|
-
var a = null;
|
|
23
|
-
if (t !== void 0 && (a = "" + t), s.key !== void 0 && (a = "" + s.key), "key" in s) {
|
|
24
|
-
t = {};
|
|
25
|
-
for (var u in s)
|
|
26
|
-
u !== "key" && (t[u] = s[u]);
|
|
27
|
-
} else t = s;
|
|
28
|
-
return s = t.ref, {
|
|
29
|
-
$$typeof: o,
|
|
30
|
-
type: m,
|
|
31
|
-
key: a,
|
|
32
|
-
ref: s !== void 0 ? s : null,
|
|
33
|
-
props: t
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
return R.Fragment = p, R.jsx = i, R.jsxs = i, R;
|
|
37
|
-
}
|
|
38
|
-
var b = {};
|
|
39
|
-
/**
|
|
40
|
-
* @license React
|
|
41
|
-
* react-jsx-runtime.development.js
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/
|
|
48
|
-
var D;
|
|
49
|
-
function ie() {
|
|
50
|
-
return D || (D = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
-
function o(e) {
|
|
52
|
-
if (e == null) return null;
|
|
53
|
-
if (typeof e == "function")
|
|
54
|
-
return e.$$typeof === te ? null : e.displayName || e.name || null;
|
|
55
|
-
if (typeof e == "string") return e;
|
|
56
|
-
switch (e) {
|
|
57
|
-
case T:
|
|
58
|
-
return "Fragment";
|
|
59
|
-
case X:
|
|
60
|
-
return "Profiler";
|
|
61
|
-
case J:
|
|
62
|
-
return "StrictMode";
|
|
63
|
-
case Q:
|
|
64
|
-
return "Suspense";
|
|
65
|
-
case K:
|
|
66
|
-
return "SuspenseList";
|
|
67
|
-
case re:
|
|
68
|
-
return "Activity";
|
|
69
|
-
}
|
|
70
|
-
if (typeof e == "object")
|
|
71
|
-
switch (typeof e.tag == "number" && console.error(
|
|
72
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
73
|
-
), e.$$typeof) {
|
|
74
|
-
case G:
|
|
75
|
-
return "Portal";
|
|
76
|
-
case H:
|
|
77
|
-
return (e.displayName || "Context") + ".Provider";
|
|
78
|
-
case B:
|
|
79
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
80
|
-
case Z:
|
|
81
|
-
var r = e.render;
|
|
82
|
-
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
83
|
-
case ee:
|
|
84
|
-
return r = e.displayName || null, r !== null ? r : o(e.type) || "Memo";
|
|
85
|
-
case y:
|
|
86
|
-
r = e._payload, e = e._init;
|
|
87
|
-
try {
|
|
88
|
-
return o(e(r));
|
|
89
|
-
} catch {
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return null;
|
|
93
|
-
}
|
|
94
|
-
function p(e) {
|
|
95
|
-
return "" + e;
|
|
96
|
-
}
|
|
97
|
-
function i(e) {
|
|
98
|
-
try {
|
|
99
|
-
p(e);
|
|
100
|
-
var r = !1;
|
|
101
|
-
} catch {
|
|
102
|
-
r = !0;
|
|
103
|
-
}
|
|
104
|
-
if (r) {
|
|
105
|
-
r = console;
|
|
106
|
-
var n = r.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
107
|
-
return n.call(
|
|
108
|
-
r,
|
|
109
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
110
|
-
l
|
|
111
|
-
), p(e);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
function m(e) {
|
|
115
|
-
if (e === T) return "<>";
|
|
116
|
-
if (typeof e == "object" && e !== null && e.$$typeof === y)
|
|
117
|
-
return "<...>";
|
|
118
|
-
try {
|
|
119
|
-
var r = o(e);
|
|
120
|
-
return r ? "<" + r + ">" : "<...>";
|
|
121
|
-
} catch {
|
|
122
|
-
return "<...>";
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
function s() {
|
|
126
|
-
var e = x.A;
|
|
127
|
-
return e === null ? null : e.getOwner();
|
|
128
|
-
}
|
|
129
|
-
function t() {
|
|
130
|
-
return Error("react-stack-top-frame");
|
|
131
|
-
}
|
|
132
|
-
function a(e) {
|
|
133
|
-
if (C.call(e, "key")) {
|
|
134
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
135
|
-
if (r && r.isReactWarning) return !1;
|
|
136
|
-
}
|
|
137
|
-
return e.key !== void 0;
|
|
138
|
-
}
|
|
139
|
-
function u(e, r) {
|
|
140
|
-
function n() {
|
|
141
|
-
Y || (Y = !0, console.error(
|
|
142
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
143
|
-
r
|
|
144
|
-
));
|
|
145
|
-
}
|
|
146
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
147
|
-
get: n,
|
|
148
|
-
configurable: !0
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
function V() {
|
|
152
|
-
var e = o(this.type);
|
|
153
|
-
return z[e] || (z[e] = !0, console.error(
|
|
154
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
155
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
156
|
-
}
|
|
157
|
-
function q(e, r, n, l, E, _, h, j) {
|
|
158
|
-
return n = _.ref, e = {
|
|
159
|
-
$$typeof: P,
|
|
160
|
-
type: e,
|
|
161
|
-
key: r,
|
|
162
|
-
props: _,
|
|
163
|
-
_owner: E
|
|
164
|
-
}, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
|
|
165
|
-
enumerable: !1,
|
|
166
|
-
get: V
|
|
167
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
168
|
-
configurable: !1,
|
|
169
|
-
enumerable: !1,
|
|
170
|
-
writable: !0,
|
|
171
|
-
value: 0
|
|
172
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
173
|
-
configurable: !1,
|
|
174
|
-
enumerable: !1,
|
|
175
|
-
writable: !0,
|
|
176
|
-
value: null
|
|
177
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
178
|
-
configurable: !1,
|
|
179
|
-
enumerable: !1,
|
|
180
|
-
writable: !0,
|
|
181
|
-
value: h
|
|
182
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
183
|
-
configurable: !1,
|
|
184
|
-
enumerable: !1,
|
|
185
|
-
writable: !0,
|
|
186
|
-
value: j
|
|
187
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
188
|
-
}
|
|
189
|
-
function A(e, r, n, l, E, _, h, j) {
|
|
190
|
-
var c = r.children;
|
|
191
|
-
if (c !== void 0)
|
|
192
|
-
if (l)
|
|
193
|
-
if (ne(c)) {
|
|
194
|
-
for (l = 0; l < c.length; l++)
|
|
195
|
-
N(c[l]);
|
|
196
|
-
Object.freeze && Object.freeze(c);
|
|
197
|
-
} else
|
|
198
|
-
console.error(
|
|
199
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
|
-
);
|
|
201
|
-
else N(c);
|
|
202
|
-
if (C.call(r, "key")) {
|
|
203
|
-
c = o(e);
|
|
204
|
-
var v = Object.keys(r).filter(function(oe) {
|
|
205
|
-
return oe !== "key";
|
|
206
|
-
});
|
|
207
|
-
l = 0 < v.length ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}", W[c + l] || (v = 0 < v.length ? "{" + v.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
209
|
-
let props = %s;
|
|
210
|
-
<%s {...props} />
|
|
211
|
-
React keys must be passed directly to JSX without using spread:
|
|
212
|
-
let props = %s;
|
|
213
|
-
<%s key={someKey} {...props} />`,
|
|
214
|
-
l,
|
|
215
|
-
c,
|
|
216
|
-
v,
|
|
217
|
-
c
|
|
218
|
-
), W[c + l] = !0);
|
|
219
|
-
}
|
|
220
|
-
if (c = null, n !== void 0 && (i(n), c = "" + n), a(r) && (i(r.key), c = "" + r.key), "key" in r) {
|
|
221
|
-
n = {};
|
|
222
|
-
for (var S in r)
|
|
223
|
-
S !== "key" && (n[S] = r[S]);
|
|
224
|
-
} else n = r;
|
|
225
|
-
return c && u(
|
|
226
|
-
n,
|
|
227
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
228
|
-
), q(
|
|
229
|
-
e,
|
|
230
|
-
c,
|
|
231
|
-
_,
|
|
232
|
-
E,
|
|
233
|
-
s(),
|
|
234
|
-
n,
|
|
235
|
-
h,
|
|
236
|
-
j
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
function N(e) {
|
|
240
|
-
typeof e == "object" && e !== null && e.$$typeof === P && e._store && (e._store.validated = 1);
|
|
241
|
-
}
|
|
242
|
-
var g = ae, P = Symbol.for("react.transitional.element"), G = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), J = Symbol.for("react.strict_mode"), X = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), H = Symbol.for("react.context"), Z = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), K = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), re = Symbol.for("react.activity"), te = Symbol.for("react.client.reference"), x = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, ne = Array.isArray, w = console.createTask ? console.createTask : function() {
|
|
243
|
-
return null;
|
|
244
|
-
};
|
|
245
|
-
g = {
|
|
246
|
-
react_stack_bottom_frame: function(e) {
|
|
247
|
-
return e();
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
var Y, z = {}, F = g.react_stack_bottom_frame.bind(
|
|
251
|
-
g,
|
|
252
|
-
t
|
|
253
|
-
)(), I = w(m(t)), W = {};
|
|
254
|
-
b.Fragment = T, b.jsx = function(e, r, n, l, E) {
|
|
255
|
-
var _ = 1e4 > x.recentlyCreatedOwnerStacks++;
|
|
256
|
-
return A(
|
|
257
|
-
e,
|
|
258
|
-
r,
|
|
259
|
-
n,
|
|
260
|
-
!1,
|
|
261
|
-
l,
|
|
262
|
-
E,
|
|
263
|
-
_ ? Error("react-stack-top-frame") : F,
|
|
264
|
-
_ ? w(m(e)) : I
|
|
265
|
-
);
|
|
266
|
-
}, b.jsxs = function(e, r, n, l, E) {
|
|
267
|
-
var _ = 1e4 > x.recentlyCreatedOwnerStacks++;
|
|
268
|
-
return A(
|
|
269
|
-
e,
|
|
270
|
-
r,
|
|
271
|
-
n,
|
|
272
|
-
!0,
|
|
273
|
-
l,
|
|
274
|
-
E,
|
|
275
|
-
_ ? Error("react-stack-top-frame") : F,
|
|
276
|
-
_ ? w(m(e)) : I
|
|
277
|
-
);
|
|
278
|
-
};
|
|
279
|
-
}()), b;
|
|
280
|
-
}
|
|
281
|
-
process.env.NODE_ENV === "production" ? k.exports = ce() : k.exports = ie();
|
|
282
|
-
var f = k.exports, M = { exports: {} };
|
|
283
|
-
/*!
|
|
284
|
-
Copyright (c) 2018 Jed Watson.
|
|
285
|
-
Licensed under the MIT License (MIT), see
|
|
286
|
-
http://jedwatson.github.io/classnames
|
|
287
|
-
*/
|
|
288
|
-
(function(o) {
|
|
289
|
-
(function() {
|
|
290
|
-
var p = {}.hasOwnProperty;
|
|
291
|
-
function i() {
|
|
292
|
-
for (var t = "", a = 0; a < arguments.length; a++) {
|
|
293
|
-
var u = arguments[a];
|
|
294
|
-
u && (t = s(t, m(u)));
|
|
295
|
-
}
|
|
296
|
-
return t;
|
|
297
|
-
}
|
|
298
|
-
function m(t) {
|
|
299
|
-
if (typeof t == "string" || typeof t == "number")
|
|
300
|
-
return t;
|
|
301
|
-
if (typeof t != "object")
|
|
302
|
-
return "";
|
|
303
|
-
if (Array.isArray(t))
|
|
304
|
-
return i.apply(null, t);
|
|
305
|
-
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
|
|
306
|
-
return t.toString();
|
|
307
|
-
var a = "";
|
|
308
|
-
for (var u in t)
|
|
309
|
-
p.call(t, u) && t[u] && (a = s(a, u));
|
|
310
|
-
return a;
|
|
311
|
-
}
|
|
312
|
-
function s(t, a) {
|
|
313
|
-
return a ? t ? t + " " + a : t + a : t;
|
|
314
|
-
}
|
|
315
|
-
o.exports ? (i.default = i, o.exports = i) : window.classNames = i;
|
|
316
|
-
})();
|
|
317
|
-
})(M);
|
|
318
|
-
var ue = M.exports;
|
|
319
|
-
const L = /* @__PURE__ */ le(ue);
|
|
320
|
-
var U = /* @__PURE__ */ ((o) => (o.UK = "uk", o.RU = "ru", o))(U || {});
|
|
321
|
-
const O = new se({
|
|
322
|
-
uk: {
|
|
323
|
-
sloganRow1: "Класний пошукатор",
|
|
324
|
-
sloganRow2: "страхових"
|
|
325
|
-
},
|
|
326
|
-
ru: {
|
|
327
|
-
sloganRow1: "Классный пошукатор",
|
|
328
|
-
sloganRow2: "страховых"
|
|
329
|
-
}
|
|
330
|
-
}), fe = "_container_1xrzw_1", de = "_fullScreen_1xrzw_10", me = "_loaderContainer_1xrzw_26", _e = "_inner_1xrzw_34", pe = "_item_1xrzw_41", Ee = "_logo_1xrzw_94", ve = "_sloganWrap_1xrzw_99", Re = "_slogan_1xrzw_99", be = "_title_1xrzw_113", d = {
|
|
331
|
-
container: fe,
|
|
332
|
-
fullScreen: de,
|
|
333
|
-
loaderContainer: me,
|
|
334
|
-
inner: _e,
|
|
335
|
-
item: pe,
|
|
336
|
-
logo: Ee,
|
|
337
|
-
sloganWrap: ve,
|
|
338
|
-
slogan: Re,
|
|
339
|
-
title: be
|
|
340
|
-
}, xe = ({
|
|
341
|
-
classes: o = "",
|
|
342
|
-
isFullScreen: p,
|
|
343
|
-
locale: i = U.UK,
|
|
344
|
-
title: m,
|
|
345
|
-
titleClasses: s = ""
|
|
346
|
-
}) => {
|
|
347
|
-
O.setLanguage(i);
|
|
348
|
-
const t = L(d.container, o, {
|
|
349
|
-
[d.fullScreen]: p
|
|
350
|
-
}), a = L(d.title, s);
|
|
351
|
-
return /* @__PURE__ */ f.jsxs("div", { className: t, children: [
|
|
352
|
-
/* @__PURE__ */ f.jsxs("div", { className: d.loaderContainer, children: [
|
|
353
|
-
/* @__PURE__ */ f.jsxs("div", { className: d.inner, children: [
|
|
354
|
-
/* @__PURE__ */ f.jsx("div", { className: d.item, children: " " }),
|
|
355
|
-
/* @__PURE__ */ f.jsx("div", { className: d.item, children: " " }),
|
|
356
|
-
/* @__PURE__ */ f.jsx("div", { className: d.item, children: " " })
|
|
357
|
-
] }),
|
|
358
|
-
/* @__PURE__ */ f.jsx("div", { className: d.logo, children: /* @__PURE__ */ f.jsx("img", { width: "148px", height: "40px", src: "https://polis.ua/static/img/logo/logoWithFlagLine.svg", alt: "Icon" }) }),
|
|
359
|
-
/* @__PURE__ */ f.jsxs("div", { className: d.sloganWrap, children: [
|
|
360
|
-
/* @__PURE__ */ f.jsx("span", { className: d.slogan, children: O.sloganRow1 }),
|
|
361
|
-
/* @__PURE__ */ f.jsx("span", { className: d.slogan, children: O.sloganRow2 })
|
|
362
|
-
] })
|
|
363
|
-
] }),
|
|
364
|
-
m && /* @__PURE__ */ f.jsx("div", { className: a, children: m })
|
|
365
|
-
] });
|
|
366
|
-
};
|
|
367
|
-
export {
|
|
368
|
-
xe as P
|
|
369
|
-
};
|
|
File without changes
|