@ashtuka/react-lib 1.0.37 → 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 +2 -28
- package/dist/modules/PageLoaderModule/PageLoaderModule.types.d.ts +26 -0
- package/dist/modules/PageLoaderModule/PageLoaderModuleLocalization.d.ts +7 -0
- package/dist/modules/PageLoaderModule/index.d.ts +1 -1
- 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-BJcY2xBU.mjs +0 -369
- package/dist/modules/PageLoaderModule/PageLoaderModule.es.js +0 -4
- /package/dist/{utils.es.js → utils/index.es.js} +0 -0
|
@@ -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 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 = {
|
|
322
|
-
container: fe,
|
|
323
|
-
fullScreen: de,
|
|
324
|
-
loaderContainer: me,
|
|
325
|
-
inner: _e,
|
|
326
|
-
item: pe,
|
|
327
|
-
logo: Ee,
|
|
328
|
-
sloganWrap: ve,
|
|
329
|
-
slogan: Re,
|
|
330
|
-
title: be
|
|
331
|
-
}, O = new se({
|
|
332
|
-
uk: {
|
|
333
|
-
sloganRow1: "Класний пошукатор",
|
|
334
|
-
sloganRow2: "страхових"
|
|
335
|
-
},
|
|
336
|
-
ru: {
|
|
337
|
-
sloganRow1: "Классный пошукатор",
|
|
338
|
-
sloganRow2: "страховых"
|
|
339
|
-
}
|
|
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
|