@scbt-ecom/ui 0.78.5 → 0.78.6
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/dist/capitalize-B7CPmCdk.js +23 -0
- package/dist/capitalize-B7CPmCdk.js.map +1 -0
- package/dist/hooks.js +2 -2
- package/dist/{index-B2IoSSqc.js → index-B1ToCEer.js} +58 -58
- package/dist/{index-B2IoSSqc.js.map → index-B1ToCEer.js.map} +1 -1
- package/dist/{index-DwZjTCDF.js → index-B6WYooej.js} +2 -2
- package/dist/{index-DwZjTCDF.js.map → index-B6WYooej.js.map} +1 -1
- package/dist/lib/shared/ui/index.d.ts +0 -1
- package/dist/lib/widgets/breadcrumbs/Breadcrumbs.d.ts +6 -2
- package/dist/lib/widgets/breadcrumbs/hooks/constants.d.ts +2 -0
- package/dist/lib/widgets/breadcrumbs/hooks/index.d.ts +1 -1
- package/dist/lib/widgets/breadcrumbs/hooks/types.d.ts +2 -3
- package/dist/lib/widgets/breadcrumbs/index.d.ts +1 -0
- package/dist/lib/widgets/model/helpers.d.ts +1 -1
- package/dist/lib/widgets/seoHeader/SeoHeader.d.ts +3 -1
- package/dist/ui.js +803 -834
- package/dist/ui.js.map +1 -1
- package/dist/{useDebounce-BH0d8exl.js → useDebounce-DcKs_mq9.js} +3 -3
- package/dist/{useDebounce-BH0d8exl.js.map → useDebounce-DcKs_mq9.js.map} +1 -1
- package/dist/{useFieldsProgress-dcSmd8dw.js → useFieldsProgress-COFjjZK4.js} +6 -6
- package/dist/{useFieldsProgress-dcSmd8dw.js.map → useFieldsProgress-COFjjZK4.js.map} +1 -1
- package/dist/{utils-CnDzHNQ6.js → utils-Bu1Zg675.js} +62 -62
- package/dist/{utils-CnDzHNQ6.js.map → utils-Bu1Zg675.js.map} +1 -1
- package/dist/utils.js +30 -45
- package/dist/utils.js.map +1 -1
- package/dist/validation.js +2 -2
- package/dist/widget.js +973 -985
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
- package/dist/lib/shared/ui/breadcrumbs/Breadcrumbs.d.ts +0 -16
- package/dist/lib/shared/ui/breadcrumbs/index.d.ts +0 -1
- package/dist/lib/widgets/breadcrumbs/hooks/useBreadcrumbs.d.ts +0 -2
package/dist/widget.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Ft = Object.defineProperty;
|
|
2
|
+
var Le = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var de = (t, e,
|
|
7
|
-
var x = (t, e,
|
|
8
|
-
var fe = (t, e,
|
|
5
|
+
var Bt = (t, e, n) => e in t ? Ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
+
var de = (t, e, n) => Bt(t, typeof e != "symbol" ? e + "" : e, n), Ne = (t, e, n) => e.has(t) || Le("Cannot " + n);
|
|
7
|
+
var x = (t, e, n) => (Ne(t, e, "read from private field"), n ? n.call(t) : e.get(t)), M = (t, e, n) => e.has(t) ? Le("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), k = (t, e, n, o) => (Ne(t, e, "write to private field"), o ? o.call(t, n) : e.set(t, n), n), W = (t, e, n) => (Ne(t, e, "access private method"), n);
|
|
8
|
+
var fe = (t, e, n, o) => ({
|
|
9
9
|
set _(i) {
|
|
10
|
-
|
|
10
|
+
k(t, e, i, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return x(t, e, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as
|
|
17
|
-
import { c as l, T as
|
|
16
|
+
import { S as bt, h as st, Q as Pt, n as S, m as Qe, R as Dt, c as Rt, a as Ve, b as $, e as Ht, d as zt, f as Lt, g as Qt, o as $e, r as Ae, i as Vt, j as qe, p as We, s as $t, k as r, B as ge, l as F, q as E, P as gt, t as At, H as L, I as s, C as je, u as Oe, L as qt, v as Se, A as ae, w as jt, x as Wt, y as Ut, U as ye, D as Kt, z as Ee, E as Zt, M as Xt } from "./index-B1ToCEer.js";
|
|
17
|
+
import { c as l, T as O } from "./typeGuards-CSiImkUY.js";
|
|
18
18
|
import * as me from "react";
|
|
19
|
-
import { lazy as B, useCallback as
|
|
20
|
-
import { i as
|
|
21
|
-
import {
|
|
22
|
-
import { u as ee, b as
|
|
23
|
-
import { z as
|
|
24
|
-
import {
|
|
25
|
-
import { a as
|
|
26
|
-
import { createPortal as
|
|
27
|
-
var
|
|
19
|
+
import { lazy as B, useCallback as yt, useState as Q, useMemo as ke, createElement as Fe, Fragment as Yt, useEffect as _e, useRef as Be, useReducer as Jt, memo as Pe, forwardRef as Gt } from "react";
|
|
20
|
+
import { i as Ue } from "./isClient-C9aZtt2Q.js";
|
|
21
|
+
import { s as er, c as we, a as tr } from "./capitalize-B7CPmCdk.js";
|
|
22
|
+
import { u as ee, b as De, a as rr, f as ve, F as nr } from "./useDebounce-DcKs_mq9.js";
|
|
23
|
+
import { z as kt, Z as Re } from "./index-B6WYooej.js";
|
|
24
|
+
import { o as wt } from "./utils-Bu1Zg675.js";
|
|
25
|
+
import { a as or, u as ir } from "./useFieldsProgress-COFjjZK4.js";
|
|
26
|
+
import { createPortal as vt } from "react-dom";
|
|
27
|
+
var R, xt, ar = (xt = class extends bt {
|
|
28
28
|
constructor(e = {}) {
|
|
29
29
|
super();
|
|
30
|
-
|
|
31
|
-
this.config = e,
|
|
30
|
+
M(this, R);
|
|
31
|
+
this.config = e, k(this, R, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
|
-
build(e,
|
|
34
|
-
const i =
|
|
33
|
+
build(e, n, o) {
|
|
34
|
+
const i = n.queryKey, a = n.queryHash ?? st(i, n);
|
|
35
35
|
let d = this.get(a);
|
|
36
|
-
return d || (d = new
|
|
36
|
+
return d || (d = new Pt({
|
|
37
37
|
client: e,
|
|
38
38
|
queryKey: i,
|
|
39
39
|
queryHash: a,
|
|
40
|
-
options: e.defaultQueryOptions(
|
|
40
|
+
options: e.defaultQueryOptions(n),
|
|
41
41
|
state: o,
|
|
42
42
|
defaultOptions: e.getQueryDefaults(i)
|
|
43
43
|
}), this.add(d)), d;
|
|
44
44
|
}
|
|
45
45
|
add(e) {
|
|
46
|
-
x(this,
|
|
46
|
+
x(this, R).has(e.queryHash) || (x(this, R).set(e.queryHash, e), this.notify({
|
|
47
47
|
type: "added",
|
|
48
48
|
query: e
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
remove(e) {
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const n = x(this, R).get(e.queryHash);
|
|
53
|
+
n && (e.destroy(), n === e && x(this, R).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
56
|
S.batch(() => {
|
|
@@ -60,25 +60,25 @@ var H, pt, lr = (pt = class extends st {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
get(e) {
|
|
63
|
-
return x(this,
|
|
63
|
+
return x(this, R).get(e);
|
|
64
64
|
}
|
|
65
65
|
getAll() {
|
|
66
|
-
return [...x(this,
|
|
66
|
+
return [...x(this, R).values()];
|
|
67
67
|
}
|
|
68
68
|
find(e) {
|
|
69
|
-
const
|
|
69
|
+
const n = { exact: !0, ...e };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(o) =>
|
|
71
|
+
(o) => Qe(n, o)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
findAll(e = {}) {
|
|
75
|
-
const
|
|
76
|
-
return Object.keys(e).length > 0 ?
|
|
75
|
+
const n = this.getAll();
|
|
76
|
+
return Object.keys(e).length > 0 ? n.filter((o) => Qe(e, o)) : n;
|
|
77
77
|
}
|
|
78
78
|
notify(e) {
|
|
79
79
|
S.batch(() => {
|
|
80
|
-
this.listeners.forEach((
|
|
81
|
-
|
|
80
|
+
this.listeners.forEach((n) => {
|
|
81
|
+
n(e);
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -96,14 +96,14 @@ var H, pt, lr = (pt = class extends st {
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, R = new WeakMap(), xt), H, T, G, z, U, pt, lr = (pt = class extends Dt {
|
|
100
100
|
constructor(e) {
|
|
101
101
|
super();
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
this.mutationId = e.mutationId,
|
|
102
|
+
M(this, z);
|
|
103
|
+
M(this, H);
|
|
104
|
+
M(this, T);
|
|
105
|
+
M(this, G);
|
|
106
|
+
this.mutationId = e.mutationId, k(this, T, e.mutationCache), k(this, H, []), this.state = e.state || dr(), this.setOptions(e.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(e) {
|
|
109
109
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -112,21 +112,21 @@ var H, pt, lr = (pt = class extends st {
|
|
|
112
112
|
return this.options.meta;
|
|
113
113
|
}
|
|
114
114
|
addObserver(e) {
|
|
115
|
-
x(this,
|
|
115
|
+
x(this, H).includes(e) || (x(this, H).push(e), this.clearGcTimeout(), x(this, T).notify({
|
|
116
116
|
type: "observerAdded",
|
|
117
117
|
mutation: this,
|
|
118
118
|
observer: e
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(e) {
|
|
122
|
-
|
|
122
|
+
k(this, H, x(this, H).filter((n) => n !== e)), this.scheduleGc(), x(this, T).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: e
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
optionalRemove() {
|
|
129
|
-
x(this,
|
|
129
|
+
x(this, H).length || (this.state.status === "pending" ? this.scheduleGc() : x(this, T).remove(this));
|
|
130
130
|
}
|
|
131
131
|
continue() {
|
|
132
132
|
var e;
|
|
@@ -134,93 +134,93 @@ var H, pt, lr = (pt = class extends st {
|
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(e) {
|
|
137
|
-
var a, d, u, m, h, p, c, f, b,
|
|
138
|
-
const
|
|
139
|
-
|
|
137
|
+
var a, d, u, m, h, p, c, f, b, w, g, v, I, q, C, _, D, V, pe, le;
|
|
138
|
+
const n = () => {
|
|
139
|
+
W(this, z, U).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
k(this, G, Rt({
|
|
142
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
143
|
-
onFail: (
|
|
144
|
-
|
|
143
|
+
onFail: (N, ce) => {
|
|
144
|
+
W(this, z, U).call(this, { type: "failed", failureCount: N, error: ce });
|
|
145
145
|
},
|
|
146
146
|
onPause: () => {
|
|
147
|
-
|
|
147
|
+
W(this, z, U).call(this, { type: "pause" });
|
|
148
148
|
},
|
|
149
|
-
onContinue:
|
|
149
|
+
onContinue: n,
|
|
150
150
|
retry: this.options.retry ?? 0,
|
|
151
151
|
retryDelay: this.options.retryDelay,
|
|
152
152
|
networkMode: this.options.networkMode,
|
|
153
|
-
canRun: () => x(this,
|
|
153
|
+
canRun: () => x(this, T).canRun(this)
|
|
154
154
|
}));
|
|
155
155
|
const o = this.state.status === "pending", i = !x(this, G).canStart();
|
|
156
156
|
try {
|
|
157
157
|
if (o)
|
|
158
|
-
|
|
158
|
+
n();
|
|
159
159
|
else {
|
|
160
|
-
|
|
160
|
+
W(this, z, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((d = (a = x(this, T).config).onMutate) == null ? void 0 : d.call(
|
|
161
161
|
a,
|
|
162
162
|
e,
|
|
163
163
|
this
|
|
164
164
|
));
|
|
165
165
|
const ce = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, e));
|
|
166
|
-
ce !== this.state.context &&
|
|
166
|
+
ce !== this.state.context && W(this, z, U).call(this, {
|
|
167
167
|
type: "pending",
|
|
168
168
|
context: ce,
|
|
169
169
|
variables: e,
|
|
170
170
|
isPaused: i
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
const
|
|
174
|
-
return await ((p = (h = x(this,
|
|
173
|
+
const N = await x(this, G).start();
|
|
174
|
+
return await ((p = (h = x(this, T).config).onSuccess) == null ? void 0 : p.call(
|
|
175
175
|
h,
|
|
176
|
-
|
|
176
|
+
N,
|
|
177
177
|
e,
|
|
178
178
|
this.state.context,
|
|
179
179
|
this
|
|
180
|
-
)), await ((f = (c = this.options).onSuccess) == null ? void 0 : f.call(c,
|
|
180
|
+
)), await ((f = (c = this.options).onSuccess) == null ? void 0 : f.call(c, N, e, this.state.context)), await ((w = (b = x(this, T).config).onSettled) == null ? void 0 : w.call(
|
|
181
181
|
b,
|
|
182
|
-
|
|
182
|
+
N,
|
|
183
183
|
null,
|
|
184
184
|
this.state.variables,
|
|
185
185
|
this.state.context,
|
|
186
186
|
this
|
|
187
|
-
)), await ((
|
|
188
|
-
} catch (
|
|
187
|
+
)), await ((v = (g = this.options).onSettled) == null ? void 0 : v.call(g, N, null, e, this.state.context)), W(this, z, U).call(this, { type: "success", data: N }), N;
|
|
188
|
+
} catch (N) {
|
|
189
189
|
try {
|
|
190
|
-
throw await ((
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
throw await ((q = (I = x(this, T).config).onError) == null ? void 0 : q.call(
|
|
191
|
+
I,
|
|
192
|
+
N,
|
|
193
193
|
e,
|
|
194
194
|
this.state.context,
|
|
195
195
|
this
|
|
196
|
-
)), await ((
|
|
197
|
-
M,
|
|
196
|
+
)), await ((_ = (C = this.options).onError) == null ? void 0 : _.call(
|
|
198
197
|
C,
|
|
198
|
+
N,
|
|
199
199
|
e,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((V = (
|
|
202
|
-
|
|
201
|
+
)), await ((V = (D = x(this, T).config).onSettled) == null ? void 0 : V.call(
|
|
202
|
+
D,
|
|
203
203
|
void 0,
|
|
204
|
-
|
|
204
|
+
N,
|
|
205
205
|
this.state.variables,
|
|
206
206
|
this.state.context,
|
|
207
207
|
this
|
|
208
208
|
)), await ((le = (pe = this.options).onSettled) == null ? void 0 : le.call(
|
|
209
209
|
pe,
|
|
210
210
|
void 0,
|
|
211
|
-
|
|
211
|
+
N,
|
|
212
212
|
e,
|
|
213
213
|
this.state.context
|
|
214
|
-
)),
|
|
214
|
+
)), N;
|
|
215
215
|
} finally {
|
|
216
|
-
|
|
216
|
+
W(this, z, U).call(this, { type: "error", error: N });
|
|
217
217
|
}
|
|
218
218
|
} finally {
|
|
219
|
-
x(this,
|
|
219
|
+
x(this, T).runNext(this);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
},
|
|
223
|
-
const
|
|
222
|
+
}, H = new WeakMap(), T = new WeakMap(), G = new WeakMap(), z = new WeakSet(), U = function(e) {
|
|
223
|
+
const n = (o) => {
|
|
224
224
|
switch (e.type) {
|
|
225
225
|
case "failed":
|
|
226
226
|
return {
|
|
@@ -273,17 +273,17 @@ var H, pt, lr = (pt = class extends st {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
this.state =
|
|
277
|
-
x(this,
|
|
276
|
+
this.state = n(this.state), S.batch(() => {
|
|
277
|
+
x(this, H).forEach((o) => {
|
|
278
278
|
o.onMutationUpdate(e);
|
|
279
|
-
}), x(this,
|
|
279
|
+
}), x(this, T).notify({
|
|
280
280
|
mutation: this,
|
|
281
281
|
type: "updated",
|
|
282
282
|
action: e
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
},
|
|
286
|
-
function
|
|
285
|
+
}, pt);
|
|
286
|
+
function dr() {
|
|
287
287
|
return {
|
|
288
288
|
context: void 0,
|
|
289
289
|
data: void 0,
|
|
@@ -296,50 +296,50 @@ function ur() {
|
|
|
296
296
|
submittedAt: 0
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
var A, P, xe,
|
|
299
|
+
var A, P, xe, ct, ur = (ct = class extends bt {
|
|
300
300
|
constructor(e = {}) {
|
|
301
301
|
super();
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
this.config = e,
|
|
302
|
+
M(this, A);
|
|
303
|
+
M(this, P);
|
|
304
|
+
M(this, xe);
|
|
305
|
+
this.config = e, k(this, A, /* @__PURE__ */ new Set()), k(this, P, /* @__PURE__ */ new Map()), k(this, xe, 0);
|
|
306
306
|
}
|
|
307
|
-
build(e,
|
|
308
|
-
const i = new
|
|
307
|
+
build(e, n, o) {
|
|
308
|
+
const i = new lr({
|
|
309
309
|
mutationCache: this,
|
|
310
310
|
mutationId: ++fe(this, xe)._,
|
|
311
|
-
options: e.defaultMutationOptions(
|
|
311
|
+
options: e.defaultMutationOptions(n),
|
|
312
312
|
state: o
|
|
313
313
|
});
|
|
314
314
|
return this.add(i), i;
|
|
315
315
|
}
|
|
316
316
|
add(e) {
|
|
317
317
|
x(this, A).add(e);
|
|
318
|
-
const
|
|
319
|
-
if (typeof
|
|
320
|
-
const o = x(this, P).get(
|
|
321
|
-
o ? o.push(e) : x(this, P).set(
|
|
318
|
+
const n = be(e);
|
|
319
|
+
if (typeof n == "string") {
|
|
320
|
+
const o = x(this, P).get(n);
|
|
321
|
+
o ? o.push(e) : x(this, P).set(n, [e]);
|
|
322
322
|
}
|
|
323
323
|
this.notify({ type: "added", mutation: e });
|
|
324
324
|
}
|
|
325
325
|
remove(e) {
|
|
326
326
|
if (x(this, A).delete(e)) {
|
|
327
|
-
const
|
|
328
|
-
if (typeof
|
|
329
|
-
const o = x(this, P).get(
|
|
327
|
+
const n = be(e);
|
|
328
|
+
if (typeof n == "string") {
|
|
329
|
+
const o = x(this, P).get(n);
|
|
330
330
|
if (o)
|
|
331
331
|
if (o.length > 1) {
|
|
332
332
|
const i = o.indexOf(e);
|
|
333
333
|
i !== -1 && o.splice(i, 1);
|
|
334
|
-
} else o[0] === e && x(this, P).delete(
|
|
334
|
+
} else o[0] === e && x(this, P).delete(n);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
this.notify({ type: "removed", mutation: e });
|
|
338
338
|
}
|
|
339
339
|
canRun(e) {
|
|
340
|
-
const
|
|
341
|
-
if (typeof
|
|
342
|
-
const o = x(this, P).get(
|
|
340
|
+
const n = be(e);
|
|
341
|
+
if (typeof n == "string") {
|
|
342
|
+
const o = x(this, P).get(n), i = o == null ? void 0 : o.find(
|
|
343
343
|
(a) => a.state.status === "pending"
|
|
344
344
|
);
|
|
345
345
|
return !i || i === e;
|
|
@@ -348,9 +348,9 @@ var A, P, xe, ft, mr = (ft = class extends st {
|
|
|
348
348
|
}
|
|
349
349
|
runNext(e) {
|
|
350
350
|
var o;
|
|
351
|
-
const
|
|
352
|
-
if (typeof
|
|
353
|
-
const i = (o = x(this, P).get(
|
|
351
|
+
const n = be(e);
|
|
352
|
+
if (typeof n == "string") {
|
|
353
|
+
const i = (o = x(this, P).get(n)) == null ? void 0 : o.find((a) => a !== e && a.state.isPaused);
|
|
354
354
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
355
355
|
} else
|
|
356
356
|
return Promise.resolve();
|
|
@@ -366,90 +366,90 @@ var A, P, xe, ft, mr = (ft = class extends st {
|
|
|
366
366
|
return Array.from(x(this, A));
|
|
367
367
|
}
|
|
368
368
|
find(e) {
|
|
369
|
-
const
|
|
369
|
+
const n = { exact: !0, ...e };
|
|
370
370
|
return this.getAll().find(
|
|
371
|
-
(o) =>
|
|
371
|
+
(o) => Ve(n, o)
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
findAll(e = {}) {
|
|
375
|
-
return this.getAll().filter((
|
|
375
|
+
return this.getAll().filter((n) => Ve(e, n));
|
|
376
376
|
}
|
|
377
377
|
notify(e) {
|
|
378
378
|
S.batch(() => {
|
|
379
|
-
this.listeners.forEach((
|
|
380
|
-
|
|
379
|
+
this.listeners.forEach((n) => {
|
|
380
|
+
n(e);
|
|
381
381
|
});
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
resumePausedMutations() {
|
|
385
|
-
const e = this.getAll().filter((
|
|
385
|
+
const e = this.getAll().filter((n) => n.state.isPaused);
|
|
386
386
|
return S.batch(
|
|
387
387
|
() => Promise.all(
|
|
388
|
-
e.map((
|
|
388
|
+
e.map((n) => n.continue().catch($))
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
}, A = new WeakMap(), P = new WeakMap(), xe = new WeakMap(),
|
|
392
|
+
}, A = new WeakMap(), P = new WeakMap(), xe = new WeakMap(), ct);
|
|
393
393
|
function be(t) {
|
|
394
394
|
var e;
|
|
395
395
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Ke(t) {
|
|
398
398
|
return {
|
|
399
|
-
onFetch: (e,
|
|
400
|
-
var p, c, f, b,
|
|
401
|
-
const o = e.options, i = (f = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : f.direction, a = ((b = e.state.data) == null ? void 0 : b.pages) || [], d = ((
|
|
399
|
+
onFetch: (e, n) => {
|
|
400
|
+
var p, c, f, b, w;
|
|
401
|
+
const o = e.options, i = (f = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : f.direction, a = ((b = e.state.data) == null ? void 0 : b.pages) || [], d = ((w = e.state.data) == null ? void 0 : w.pageParams) || [];
|
|
402
402
|
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
403
|
const h = async () => {
|
|
404
404
|
let g = !1;
|
|
405
|
-
const
|
|
406
|
-
Object.defineProperty(
|
|
405
|
+
const v = (C) => {
|
|
406
|
+
Object.defineProperty(C, "signal", {
|
|
407
407
|
enumerable: !0,
|
|
408
408
|
get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
|
|
409
409
|
g = !0;
|
|
410
410
|
}), e.signal)
|
|
411
411
|
});
|
|
412
|
-
},
|
|
412
|
+
}, I = Ht(e.options, e.fetchOptions), q = async (C, _, D) => {
|
|
413
413
|
if (g)
|
|
414
414
|
return Promise.reject();
|
|
415
|
-
if (
|
|
416
|
-
return Promise.resolve(
|
|
415
|
+
if (_ == null && C.pages.length)
|
|
416
|
+
return Promise.resolve(C);
|
|
417
417
|
const V = {
|
|
418
418
|
client: e.client,
|
|
419
419
|
queryKey: e.queryKey,
|
|
420
|
-
pageParam:
|
|
421
|
-
direction:
|
|
420
|
+
pageParam: _,
|
|
421
|
+
direction: D ? "backward" : "forward",
|
|
422
422
|
meta: e.options.meta
|
|
423
423
|
};
|
|
424
|
-
|
|
425
|
-
const pe = await
|
|
424
|
+
v(V);
|
|
425
|
+
const pe = await I(
|
|
426
426
|
V
|
|
427
|
-
), { maxPages: le } = e.options,
|
|
427
|
+
), { maxPages: le } = e.options, N = D ? zt : Lt;
|
|
428
428
|
return {
|
|
429
|
-
pages: C
|
|
430
|
-
pageParams: C
|
|
429
|
+
pages: N(C.pages, pe, le),
|
|
430
|
+
pageParams: N(C.pageParams, _, le)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
433
|
if (i && a.length) {
|
|
434
|
-
const
|
|
434
|
+
const C = i === "backward", _ = C ? mr : Ze, D = {
|
|
435
435
|
pages: a,
|
|
436
436
|
pageParams: d
|
|
437
|
-
}, V =
|
|
438
|
-
u = await
|
|
437
|
+
}, V = _(o, D);
|
|
438
|
+
u = await q(D, V, C);
|
|
439
439
|
} else {
|
|
440
|
-
const
|
|
440
|
+
const C = t ?? a.length;
|
|
441
441
|
do {
|
|
442
|
-
const
|
|
443
|
-
if (m > 0 &&
|
|
442
|
+
const _ = m === 0 ? d[0] ?? o.initialPageParam : Ze(o, u);
|
|
443
|
+
if (m > 0 && _ == null)
|
|
444
444
|
break;
|
|
445
|
-
u = await
|
|
446
|
-
} while (m <
|
|
445
|
+
u = await q(u, _), m++;
|
|
446
|
+
} while (m < C);
|
|
447
447
|
}
|
|
448
448
|
return u;
|
|
449
449
|
};
|
|
450
450
|
e.options.persister ? e.fetchFn = () => {
|
|
451
|
-
var g,
|
|
452
|
-
return (
|
|
451
|
+
var g, v;
|
|
452
|
+
return (v = (g = e.options).persister) == null ? void 0 : v.call(
|
|
453
453
|
g,
|
|
454
454
|
h,
|
|
455
455
|
{
|
|
@@ -458,50 +458,50 @@ function Ze(t) {
|
|
|
458
458
|
meta: e.options.meta,
|
|
459
459
|
signal: e.signal
|
|
460
460
|
},
|
|
461
|
-
|
|
461
|
+
n
|
|
462
462
|
);
|
|
463
463
|
} : e.fetchFn = h;
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Ze(t, { pages: e, pageParams: n }) {
|
|
468
468
|
const o = e.length - 1;
|
|
469
469
|
return e.length > 0 ? t.getNextPageParam(
|
|
470
470
|
e[o],
|
|
471
471
|
e,
|
|
472
|
-
|
|
473
|
-
|
|
472
|
+
n[o],
|
|
473
|
+
n
|
|
474
474
|
) : void 0;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function mr(t, { pages: e, pageParams: n }) {
|
|
477
477
|
var o;
|
|
478
|
-
return e.length > 0 ? (o = t.getPreviousPageParam) == null ? void 0 : o.call(t, e[0], e,
|
|
478
|
+
return e.length > 0 ? (o = t.getPreviousPageParam) == null ? void 0 : o.call(t, e[0], e, n[0], n) : void 0;
|
|
479
479
|
}
|
|
480
|
-
var
|
|
480
|
+
var y, K, Z, te, re, X, ne, oe, ft, hr = (ft = class {
|
|
481
481
|
constructor(t = {}) {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
482
|
+
M(this, y);
|
|
483
|
+
M(this, K);
|
|
484
|
+
M(this, Z);
|
|
485
|
+
M(this, te);
|
|
486
|
+
M(this, re);
|
|
487
|
+
M(this, X);
|
|
488
|
+
M(this, ne);
|
|
489
|
+
M(this, oe);
|
|
490
|
+
k(this, y, t.queryCache || new ar()), k(this, K, t.mutationCache || new ur()), k(this, Z, t.defaultOptions || {}), k(this, te, /* @__PURE__ */ new Map()), k(this, re, /* @__PURE__ */ new Map()), k(this, X, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
fe(this, X)._++, x(this, X) === 1 && (
|
|
494
|
-
t && (await this.resumePausedMutations(), x(this,
|
|
495
|
-
})),
|
|
496
|
-
t && (await this.resumePausedMutations(), x(this,
|
|
493
|
+
fe(this, X)._++, x(this, X) === 1 && (k(this, ne, Qt.subscribe(async (t) => {
|
|
494
|
+
t && (await this.resumePausedMutations(), x(this, y).onFocus());
|
|
495
|
+
})), k(this, oe, $e.subscribe(async (t) => {
|
|
496
|
+
t && (await this.resumePausedMutations(), x(this, y).onOnline());
|
|
497
497
|
})));
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var t, e;
|
|
501
|
-
fe(this, X)._--, x(this, X) === 0 && ((t = x(this, ne)) == null || t.call(this),
|
|
501
|
+
fe(this, X)._--, x(this, X) === 0 && ((t = x(this, ne)) == null || t.call(this), k(this, ne, void 0), (e = x(this, oe)) == null || e.call(this), k(this, oe, void 0));
|
|
502
502
|
}
|
|
503
503
|
isFetching(t) {
|
|
504
|
-
return x(this,
|
|
504
|
+
return x(this, y).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
505
505
|
}
|
|
506
506
|
isMutating(t) {
|
|
507
507
|
return x(this, K).findAll({ ...t, status: "pending" }).length;
|
|
@@ -514,53 +514,53 @@ var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
|
514
514
|
* Use `useQuery` to create a `QueryObserver` that subscribes to changes.
|
|
515
515
|
*/
|
|
516
516
|
getQueryData(t) {
|
|
517
|
-
var
|
|
517
|
+
var n;
|
|
518
518
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
519
|
-
return (
|
|
519
|
+
return (n = x(this, y).get(e.queryHash)) == null ? void 0 : n.state.data;
|
|
520
520
|
}
|
|
521
521
|
ensureQueryData(t) {
|
|
522
|
-
const e = this.defaultQueryOptions(t),
|
|
523
|
-
return o === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale &&
|
|
522
|
+
const e = this.defaultQueryOptions(t), n = x(this, y).build(this, e), o = n.state.data;
|
|
523
|
+
return o === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && n.isStaleByTime(Ae(e.staleTime, n)) && this.prefetchQuery(e), Promise.resolve(o));
|
|
524
524
|
}
|
|
525
525
|
getQueriesData(t) {
|
|
526
|
-
return x(this,
|
|
527
|
-
const o =
|
|
526
|
+
return x(this, y).findAll(t).map(({ queryKey: e, state: n }) => {
|
|
527
|
+
const o = n.data;
|
|
528
528
|
return [e, o];
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
setQueryData(t, e,
|
|
532
|
-
const o = this.defaultQueryOptions({ queryKey: t }), i = x(this,
|
|
531
|
+
setQueryData(t, e, n) {
|
|
532
|
+
const o = this.defaultQueryOptions({ queryKey: t }), i = x(this, y).get(
|
|
533
533
|
o.queryHash
|
|
534
|
-
), a = i == null ? void 0 : i.state.data, d =
|
|
534
|
+
), a = i == null ? void 0 : i.state.data, d = Vt(e, a);
|
|
535
535
|
if (d !== void 0)
|
|
536
|
-
return x(this,
|
|
536
|
+
return x(this, y).build(this, o).setData(d, { ...n, manual: !0 });
|
|
537
537
|
}
|
|
538
|
-
setQueriesData(t, e,
|
|
538
|
+
setQueriesData(t, e, n) {
|
|
539
539
|
return S.batch(
|
|
540
|
-
() => x(this,
|
|
540
|
+
() => x(this, y).findAll(t).map(({ queryKey: o }) => [
|
|
541
541
|
o,
|
|
542
|
-
this.setQueryData(o, e,
|
|
542
|
+
this.setQueryData(o, e, n)
|
|
543
543
|
])
|
|
544
544
|
);
|
|
545
545
|
}
|
|
546
546
|
getQueryState(t) {
|
|
547
|
-
var
|
|
547
|
+
var n;
|
|
548
548
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
549
|
-
return (
|
|
549
|
+
return (n = x(this, y).get(
|
|
550
550
|
e.queryHash
|
|
551
|
-
)) == null ? void 0 :
|
|
551
|
+
)) == null ? void 0 : n.state;
|
|
552
552
|
}
|
|
553
553
|
removeQueries(t) {
|
|
554
|
-
const e = x(this,
|
|
554
|
+
const e = x(this, y);
|
|
555
555
|
S.batch(() => {
|
|
556
|
-
e.findAll(t).forEach((
|
|
557
|
-
e.remove(
|
|
556
|
+
e.findAll(t).forEach((n) => {
|
|
557
|
+
e.remove(n);
|
|
558
558
|
});
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
resetQueries(t, e) {
|
|
562
|
-
const
|
|
563
|
-
return S.batch(() => (
|
|
562
|
+
const n = x(this, y);
|
|
563
|
+
return S.batch(() => (n.findAll(t).forEach((o) => {
|
|
564
564
|
o.reset();
|
|
565
565
|
}), this.refetchQueries(
|
|
566
566
|
{
|
|
@@ -571,14 +571,14 @@ var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
|
571
571
|
)));
|
|
572
572
|
}
|
|
573
573
|
cancelQueries(t, e = {}) {
|
|
574
|
-
const
|
|
575
|
-
() => x(this,
|
|
574
|
+
const n = { revert: !0, ...e }, o = S.batch(
|
|
575
|
+
() => x(this, y).findAll(t).map((i) => i.cancel(n))
|
|
576
576
|
);
|
|
577
577
|
return Promise.all(o).then($).catch($);
|
|
578
578
|
}
|
|
579
579
|
invalidateQueries(t, e = {}) {
|
|
580
|
-
return S.batch(() => (x(this,
|
|
581
|
-
|
|
580
|
+
return S.batch(() => (x(this, y).findAll(t).forEach((n) => {
|
|
581
|
+
n.invalidate();
|
|
582
582
|
}), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
583
583
|
{
|
|
584
584
|
...t,
|
|
@@ -588,13 +588,13 @@ var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
|
588
588
|
)));
|
|
589
589
|
}
|
|
590
590
|
refetchQueries(t, e = {}) {
|
|
591
|
-
const
|
|
591
|
+
const n = {
|
|
592
592
|
...e,
|
|
593
593
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
594
594
|
}, o = S.batch(
|
|
595
|
-
() => x(this,
|
|
596
|
-
let a = i.fetch(void 0,
|
|
597
|
-
return
|
|
595
|
+
() => x(this, y).findAll(t).filter((i) => !i.isDisabled() && !i.isStatic()).map((i) => {
|
|
596
|
+
let a = i.fetch(void 0, n);
|
|
597
|
+
return n.throwOnError || (a = a.catch($)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
|
|
598
598
|
})
|
|
599
599
|
);
|
|
600
600
|
return Promise.all(o).then($);
|
|
@@ -602,28 +602,28 @@ var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
|
602
602
|
fetchQuery(t) {
|
|
603
603
|
const e = this.defaultQueryOptions(t);
|
|
604
604
|
e.retry === void 0 && (e.retry = !1);
|
|
605
|
-
const
|
|
606
|
-
return
|
|
607
|
-
|
|
608
|
-
) ?
|
|
605
|
+
const n = x(this, y).build(this, e);
|
|
606
|
+
return n.isStaleByTime(
|
|
607
|
+
Ae(e.staleTime, n)
|
|
608
|
+
) ? n.fetch(e) : Promise.resolve(n.state.data);
|
|
609
609
|
}
|
|
610
610
|
prefetchQuery(t) {
|
|
611
611
|
return this.fetchQuery(t).then($).catch($);
|
|
612
612
|
}
|
|
613
613
|
fetchInfiniteQuery(t) {
|
|
614
|
-
return t.behavior =
|
|
614
|
+
return t.behavior = Ke(t.pages), this.fetchQuery(t);
|
|
615
615
|
}
|
|
616
616
|
prefetchInfiniteQuery(t) {
|
|
617
617
|
return this.fetchInfiniteQuery(t).then($).catch($);
|
|
618
618
|
}
|
|
619
619
|
ensureInfiniteQueryData(t) {
|
|
620
|
-
return t.behavior =
|
|
620
|
+
return t.behavior = Ke(t.pages), this.ensureQueryData(t);
|
|
621
621
|
}
|
|
622
622
|
resumePausedMutations() {
|
|
623
|
-
return
|
|
623
|
+
return $e.isOnline() ? x(this, K).resumePausedMutations() : Promise.resolve();
|
|
624
624
|
}
|
|
625
625
|
getQueryCache() {
|
|
626
|
-
return x(this,
|
|
626
|
+
return x(this, y);
|
|
627
627
|
}
|
|
628
628
|
getMutationCache() {
|
|
629
629
|
return x(this, K);
|
|
@@ -632,7 +632,7 @@ var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
|
632
632
|
return x(this, Z);
|
|
633
633
|
}
|
|
634
634
|
setDefaultOptions(t) {
|
|
635
|
-
|
|
635
|
+
k(this, Z, t);
|
|
636
636
|
}
|
|
637
637
|
setQueryDefaults(t, e) {
|
|
638
638
|
x(this, te).set(qe(t), {
|
|
@@ -641,10 +641,10 @@ var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
getQueryDefaults(t) {
|
|
644
|
-
const e = [...x(this, te).values()],
|
|
644
|
+
const e = [...x(this, te).values()], n = {};
|
|
645
645
|
return e.forEach((o) => {
|
|
646
|
-
We(t, o.queryKey) && Object.assign(
|
|
647
|
-
}),
|
|
646
|
+
We(t, o.queryKey) && Object.assign(n, o.defaultOptions);
|
|
647
|
+
}), n;
|
|
648
648
|
}
|
|
649
649
|
setMutationDefaults(t, e) {
|
|
650
650
|
x(this, re).set(qe(t), {
|
|
@@ -653,10 +653,10 @@ var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
getMutationDefaults(t) {
|
|
656
|
-
const e = [...x(this, re).values()],
|
|
656
|
+
const e = [...x(this, re).values()], n = {};
|
|
657
657
|
return e.forEach((o) => {
|
|
658
|
-
We(t, o.mutationKey) && Object.assign(
|
|
659
|
-
}),
|
|
658
|
+
We(t, o.mutationKey) && Object.assign(n, o.defaultOptions);
|
|
659
|
+
}), n;
|
|
660
660
|
}
|
|
661
661
|
defaultQueryOptions(t) {
|
|
662
662
|
if (t._defaulted)
|
|
@@ -667,10 +667,10 @@ var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
|
667
667
|
...t,
|
|
668
668
|
_defaulted: !0
|
|
669
669
|
};
|
|
670
|
-
return e.queryHash || (e.queryHash =
|
|
670
|
+
return e.queryHash || (e.queryHash = st(
|
|
671
671
|
e.queryKey,
|
|
672
672
|
e
|
|
673
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn ===
|
|
673
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === $t && (e.enabled = !1), e;
|
|
674
674
|
}
|
|
675
675
|
defaultMutationOptions(t) {
|
|
676
676
|
return t != null && t._defaulted ? t : {
|
|
@@ -681,51 +681,51 @@ var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
683
|
clear() {
|
|
684
|
-
x(this,
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
const
|
|
688
|
-
header:
|
|
689
|
-
seoHeader:
|
|
690
|
-
banner:
|
|
691
|
-
calculator:
|
|
692
|
-
form:
|
|
693
|
-
formDialog:
|
|
694
|
-
stepper:
|
|
695
|
-
benefit:
|
|
696
|
-
longBanner:
|
|
697
|
-
usefulInfo:
|
|
698
|
-
interLinking:
|
|
699
|
-
footer:
|
|
700
|
-
},
|
|
684
|
+
x(this, y).clear(), x(this, K).clear();
|
|
685
|
+
}
|
|
686
|
+
}, y = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), X = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), ft);
|
|
687
|
+
const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resolve().then(() => vo)), cr = B(() => Promise.resolve().then(() => Rn)), fr = B(() => Promise.resolve().then(() => zn)), br = B(() => Promise.resolve().then(() => Vr)), sr = B(() => Promise.resolve().then(() => Er)), gr = B(() => Promise.resolve().then(() => nn)), jr = B(() => Promise.resolve().then(() => Yr)), yr = B(() => Promise.resolve().then(() => no)), kr = B(() => Promise.resolve().then(() => Ar)), wr = B(() => Promise.resolve().then(() => Mn)), vr = B(() => Promise.resolve().then(() => Or)), Nr = {
|
|
688
|
+
header: sr,
|
|
689
|
+
seoHeader: yr,
|
|
690
|
+
banner: xr,
|
|
691
|
+
calculator: pr,
|
|
692
|
+
form: cr,
|
|
693
|
+
formDialog: fr,
|
|
694
|
+
stepper: kr,
|
|
695
|
+
benefit: vr,
|
|
696
|
+
longBanner: jr,
|
|
697
|
+
usefulInfo: wr,
|
|
698
|
+
interLinking: gr,
|
|
699
|
+
footer: br
|
|
700
|
+
}, Cr = Object.keys(Nr), j = Cr.reduce(
|
|
701
701
|
(t, e) => (t[e] = e, t),
|
|
702
702
|
{}
|
|
703
|
-
),
|
|
703
|
+
), Mr = (t) => yt(() => {
|
|
704
704
|
switch (t.handler) {
|
|
705
705
|
case "navigate": {
|
|
706
|
-
const { url:
|
|
707
|
-
|
|
706
|
+
const { url: n, target: o, rel: i } = t;
|
|
707
|
+
Ue && (window == null || window.open(n, o, i));
|
|
708
708
|
break;
|
|
709
709
|
}
|
|
710
710
|
case "scroll": {
|
|
711
|
-
const { widgetId:
|
|
712
|
-
|
|
711
|
+
const { widgetId: n } = t ?? "";
|
|
712
|
+
er({ widgetId: n });
|
|
713
713
|
break;
|
|
714
714
|
}
|
|
715
715
|
case "dialog": {
|
|
716
|
-
if (!
|
|
717
|
-
const { dialogId:
|
|
716
|
+
if (!Ue) return;
|
|
717
|
+
const { dialogId: n } = t ?? {}, o = document.getElementById(n);
|
|
718
718
|
if (!o) {
|
|
719
|
-
console.error("Такого элемента в DOM не существует",
|
|
719
|
+
console.error("Такого элемента в DOM не существует", n);
|
|
720
720
|
break;
|
|
721
721
|
}
|
|
722
722
|
o.show();
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
}, [t]), Y = ({ handlerOptions: t, className: e, ...
|
|
726
|
-
const o =
|
|
727
|
-
return /* @__PURE__ */
|
|
728
|
-
},
|
|
725
|
+
}, [t]), Y = ({ handlerOptions: t, className: e, ...n }) => {
|
|
726
|
+
const o = Mr(t);
|
|
727
|
+
return /* @__PURE__ */ r.jsx(ge, { className: l(e), onClick: o, ...n, children: n.children });
|
|
728
|
+
}, _r = F(
|
|
729
729
|
"flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
|
|
730
730
|
{
|
|
731
731
|
variants: {
|
|
@@ -736,10 +736,10 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
),
|
|
739
|
+
), Ir = ({
|
|
740
740
|
subtitle: t,
|
|
741
741
|
title: e,
|
|
742
|
-
img:
|
|
742
|
+
img: n,
|
|
743
743
|
mobileImg: o,
|
|
744
744
|
classes: i,
|
|
745
745
|
withButton: a,
|
|
@@ -748,16 +748,16 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
748
748
|
color: m
|
|
749
749
|
}) => {
|
|
750
750
|
const { isDesktop: h } = ee();
|
|
751
|
-
return /* @__PURE__ */
|
|
751
|
+
return /* @__PURE__ */ r.jsxs(
|
|
752
752
|
"li",
|
|
753
753
|
{
|
|
754
754
|
style: { backgroundColor: m ?? "#F3F4F7" },
|
|
755
|
-
className: l(
|
|
755
|
+
className: l(_r({ variant: u }), { "pb-0": o }, { "pb-12": !o }, i == null ? void 0 : i.root),
|
|
756
756
|
children: [
|
|
757
|
-
/* @__PURE__ */
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
758
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
759
|
+
/* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className: l("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
760
|
+
/* @__PURE__ */ r.jsx(
|
|
761
761
|
"div",
|
|
762
762
|
{
|
|
763
763
|
dangerouslySetInnerHTML: { __html: t },
|
|
@@ -765,14 +765,14 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
765
765
|
}
|
|
766
766
|
)
|
|
767
767
|
] }),
|
|
768
|
-
a && h && (d == null ? void 0 : d.handlerOptions) && /* @__PURE__ */
|
|
768
|
+
a && h && (d == null ? void 0 : d.handlerOptions) && /* @__PURE__ */ r.jsx(Y, { intent: "primary", className: l("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...d })
|
|
769
769
|
] }),
|
|
770
|
-
(o || h) &&
|
|
770
|
+
(o || h) && n && /* @__PURE__ */ r.jsx("div", { className: l("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: n && "url" in n && O.isObject(n) ? /* @__PURE__ */ r.jsx("img", { className: l("h-[246px] object-cover", i == null ? void 0 : i.img), src: n.url, alt: n.alt }) : n })
|
|
771
771
|
]
|
|
772
772
|
},
|
|
773
773
|
e
|
|
774
774
|
);
|
|
775
|
-
},
|
|
775
|
+
}, Tr = F("grid gap-4", {
|
|
776
776
|
variants: {
|
|
777
777
|
variant: {
|
|
778
778
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -780,38 +780,38 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
780
780
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
|
-
}),
|
|
784
|
-
/* @__PURE__ */
|
|
783
|
+
}), Xe = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: l("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(E, { className: o == null ? void 0 : o.container, children: [
|
|
784
|
+
/* @__PURE__ */ r.jsx(
|
|
785
785
|
"div",
|
|
786
786
|
{
|
|
787
787
|
dangerouslySetInnerHTML: { __html: t },
|
|
788
788
|
className: l("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
|
|
789
789
|
}
|
|
790
790
|
),
|
|
791
|
-
/* @__PURE__ */
|
|
792
|
-
] }) }),
|
|
791
|
+
/* @__PURE__ */ r.jsx("ul", { className: l(Tr({ variant: n }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ r.jsx(Ir, { variant: n, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
|
|
792
|
+
] }) }), Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
793
793
|
__proto__: null,
|
|
794
|
-
Benefit:
|
|
795
|
-
default:
|
|
796
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
794
|
+
Benefit: Xe,
|
|
795
|
+
default: Xe
|
|
796
|
+
}, Symbol.toStringTag, { value: "Module" })), Sr = ({ variant: t, details: e }) => {
|
|
797
797
|
switch (t) {
|
|
798
798
|
case "withButton":
|
|
799
|
-
return /* @__PURE__ */
|
|
799
|
+
return /* @__PURE__ */ r.jsx(Y, { ...e });
|
|
800
800
|
case "withPhone":
|
|
801
|
-
return /* @__PURE__ */
|
|
801
|
+
return /* @__PURE__ */ r.jsx(gt, { classes: { root: "items-end" }, ...e, phone: we(e.phone) });
|
|
802
802
|
default:
|
|
803
803
|
return null;
|
|
804
804
|
}
|
|
805
|
-
},
|
|
806
|
-
const { logoPath: e = "/", logoType:
|
|
807
|
-
return /* @__PURE__ */
|
|
805
|
+
}, Ye = (t) => {
|
|
806
|
+
const { logoPath: e = "/", logoType: n = "main", classes: o } = t;
|
|
807
|
+
return /* @__PURE__ */ r.jsx(
|
|
808
808
|
"header",
|
|
809
809
|
{
|
|
810
|
-
id:
|
|
811
|
-
"data-test-id":
|
|
810
|
+
id: j.header,
|
|
811
|
+
"data-test-id": j.header,
|
|
812
812
|
className: l("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
813
|
-
children: /* @__PURE__ */
|
|
814
|
-
/* @__PURE__ */
|
|
813
|
+
children: /* @__PURE__ */ r.jsx(E, { className: l(o == null ? void 0 : o.container), children: /* @__PURE__ */ r.jsxs("div", { className: l("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
814
|
+
/* @__PURE__ */ r.jsx(
|
|
815
815
|
"a",
|
|
816
816
|
{
|
|
817
817
|
href: e,
|
|
@@ -822,21 +822,21 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
822
822
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
823
823
|
o == null ? void 0 : o.logo
|
|
824
824
|
),
|
|
825
|
-
children:
|
|
825
|
+
children: At[n]
|
|
826
826
|
}
|
|
827
827
|
),
|
|
828
|
-
|
|
828
|
+
Sr(t)
|
|
829
829
|
] }) })
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
|
-
},
|
|
832
|
+
}, Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
833
833
|
__proto__: null,
|
|
834
|
-
Header:
|
|
835
|
-
default:
|
|
836
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
834
|
+
Header: Ye,
|
|
835
|
+
default: Ye
|
|
836
|
+
}, Symbol.toStringTag, { value: "Module" })), Fr = ({
|
|
837
837
|
headTitle: t,
|
|
838
838
|
subtitle: e,
|
|
839
|
-
buttonsConfig:
|
|
839
|
+
buttonsConfig: n,
|
|
840
840
|
advantages: o,
|
|
841
841
|
classes: i,
|
|
842
842
|
imgMobile: a,
|
|
@@ -845,42 +845,42 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
845
845
|
color: m,
|
|
846
846
|
renderImage: h
|
|
847
847
|
}) => {
|
|
848
|
-
var
|
|
849
|
-
const { isDesktop: p, isMobile: c } = ee(), { primary: f, secondary: b } =
|
|
848
|
+
var v;
|
|
849
|
+
const { isDesktop: p, isMobile: c } = ee(), { primary: f, secondary: b } = n || {}, w = (I) => h ? h(I) : /* @__PURE__ */ r.jsx("img", { ...I }), g = /* @__PURE__ */ r.jsx(
|
|
850
850
|
"div",
|
|
851
851
|
{
|
|
852
852
|
className: l(
|
|
853
853
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
854
854
|
i == null ? void 0 : i.advantageContainer
|
|
855
855
|
),
|
|
856
|
-
children: (o == null ? void 0 : o.details) && ((
|
|
856
|
+
children: (o == null ? void 0 : o.details) && ((v = o == null ? void 0 : o.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...o })
|
|
857
857
|
}
|
|
858
858
|
);
|
|
859
|
-
return /* @__PURE__ */
|
|
860
|
-
/* @__PURE__ */
|
|
859
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
860
|
+
/* @__PURE__ */ r.jsxs(
|
|
861
861
|
"section",
|
|
862
862
|
{
|
|
863
|
-
id:
|
|
864
|
-
"data-test-id":
|
|
863
|
+
id: j.banner,
|
|
864
|
+
"data-test-id": j.banner,
|
|
865
865
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
866
866
|
className: l("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
867
867
|
children: [
|
|
868
|
-
/* @__PURE__ */
|
|
868
|
+
/* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: w(c ? { src: a.src, alt: u, className: l("h-full w-full object-cover object-center") } : {
|
|
869
869
|
src: d.src,
|
|
870
870
|
alt: u,
|
|
871
871
|
className: l("h-full w-full object-cover object-center")
|
|
872
872
|
}) }),
|
|
873
|
-
/* @__PURE__ */
|
|
874
|
-
/* @__PURE__ */
|
|
875
|
-
/* @__PURE__ */
|
|
876
|
-
/* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ r.jsxs(E, { className: l("h-full", i == null ? void 0 : i.container), children: [
|
|
874
|
+
/* @__PURE__ */ r.jsx("div", { className: l("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ r.jsxs("div", { className: l("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
|
|
875
|
+
/* @__PURE__ */ r.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
876
|
+
/* @__PURE__ */ r.jsx(
|
|
877
877
|
"div",
|
|
878
878
|
{
|
|
879
879
|
dangerouslySetInnerHTML: { __html: t },
|
|
880
880
|
className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
881
881
|
}
|
|
882
882
|
),
|
|
883
|
-
/* @__PURE__ */
|
|
883
|
+
/* @__PURE__ */ r.jsx(
|
|
884
884
|
"div",
|
|
885
885
|
{
|
|
886
886
|
dangerouslySetInnerHTML: { __html: e },
|
|
@@ -888,7 +888,7 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
888
888
|
}
|
|
889
889
|
)
|
|
890
890
|
] }),
|
|
891
|
-
/* @__PURE__ */
|
|
891
|
+
/* @__PURE__ */ r.jsxs(
|
|
892
892
|
"div",
|
|
893
893
|
{
|
|
894
894
|
className: l(
|
|
@@ -897,7 +897,7 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
897
897
|
i == null ? void 0 : i.group
|
|
898
898
|
),
|
|
899
899
|
children: [
|
|
900
|
-
f.enabled && /* @__PURE__ */
|
|
900
|
+
f.enabled && /* @__PURE__ */ r.jsx(
|
|
901
901
|
Y,
|
|
902
902
|
{
|
|
903
903
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
@@ -906,7 +906,7 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
906
906
|
...f.buttonContent
|
|
907
907
|
}
|
|
908
908
|
),
|
|
909
|
-
(b == null ? void 0 : b.enabled) && /* @__PURE__ */
|
|
909
|
+
(b == null ? void 0 : b.enabled) && /* @__PURE__ */ r.jsx(
|
|
910
910
|
Y,
|
|
911
911
|
{
|
|
912
912
|
intent: "secondary",
|
|
@@ -925,10 +925,10 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
925
925
|
),
|
|
926
926
|
c && (o == null ? void 0 : o.enabled) && g
|
|
927
927
|
] });
|
|
928
|
-
},
|
|
928
|
+
}, Je = ({
|
|
929
929
|
headTitle: t,
|
|
930
930
|
subtitle: e,
|
|
931
|
-
buttonsConfig:
|
|
931
|
+
buttonsConfig: n,
|
|
932
932
|
advantages: o,
|
|
933
933
|
classes: i,
|
|
934
934
|
imgMobile: a,
|
|
@@ -937,28 +937,28 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
937
937
|
color: m,
|
|
938
938
|
renderImage: h
|
|
939
939
|
}) => {
|
|
940
|
-
var
|
|
941
|
-
const { isMobile: p } = ee(), { primary: c, secondary: f } =
|
|
942
|
-
return /* @__PURE__ */
|
|
940
|
+
var w, g;
|
|
941
|
+
const { isMobile: p } = ee(), { primary: c, secondary: f } = n || {}, b = (v) => h ? h(v) : /* @__PURE__ */ r.jsx("img", { ...v });
|
|
942
|
+
return /* @__PURE__ */ r.jsxs(
|
|
943
943
|
"section",
|
|
944
944
|
{
|
|
945
|
-
id:
|
|
945
|
+
id: j.banner,
|
|
946
946
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
947
|
-
"data-test-id":
|
|
947
|
+
"data-test-id": j.banner,
|
|
948
948
|
className: l("", i == null ? void 0 : i.root),
|
|
949
949
|
children: [
|
|
950
|
-
/* @__PURE__ */
|
|
951
|
-
/* @__PURE__ */
|
|
952
|
-
/* @__PURE__ */
|
|
953
|
-
/* @__PURE__ */
|
|
954
|
-
/* @__PURE__ */
|
|
950
|
+
/* @__PURE__ */ r.jsxs(E, { className: l("relative desktop:h-[456px]", i == null ? void 0 : i.container), children: [
|
|
951
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
952
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
953
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
954
|
+
/* @__PURE__ */ r.jsx(
|
|
955
955
|
"div",
|
|
956
956
|
{
|
|
957
957
|
dangerouslySetInnerHTML: { __html: t },
|
|
958
958
|
className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
959
959
|
}
|
|
960
960
|
),
|
|
961
|
-
/* @__PURE__ */
|
|
961
|
+
/* @__PURE__ */ r.jsx(
|
|
962
962
|
"div",
|
|
963
963
|
{
|
|
964
964
|
dangerouslySetInnerHTML: { __html: e },
|
|
@@ -966,16 +966,16 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
966
966
|
}
|
|
967
967
|
)
|
|
968
968
|
] }),
|
|
969
|
-
/* @__PURE__ */
|
|
969
|
+
/* @__PURE__ */ r.jsxs(
|
|
970
970
|
"div",
|
|
971
971
|
{
|
|
972
972
|
className: l(
|
|
973
|
-
"grid-buttons-apply absolute bottom-6 left-1/2
|
|
973
|
+
"grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
|
|
974
974
|
{ "flex items-center gap-4": f == null ? void 0 : f.enabled },
|
|
975
975
|
i == null ? void 0 : i.group
|
|
976
976
|
),
|
|
977
977
|
children: [
|
|
978
|
-
c.enabled && /* @__PURE__ */
|
|
978
|
+
c.enabled && /* @__PURE__ */ r.jsx(
|
|
979
979
|
Y,
|
|
980
980
|
{
|
|
981
981
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
@@ -984,7 +984,7 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
984
984
|
...c.buttonContent
|
|
985
985
|
}
|
|
986
986
|
),
|
|
987
|
-
(f == null ? void 0 : f.enabled) && /* @__PURE__ */
|
|
987
|
+
(f == null ? void 0 : f.enabled) && /* @__PURE__ */ r.jsx(
|
|
988
988
|
Y,
|
|
989
989
|
{
|
|
990
990
|
intent: "secondary",
|
|
@@ -996,7 +996,7 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
996
996
|
}
|
|
997
997
|
)
|
|
998
998
|
] }),
|
|
999
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ r.jsx(
|
|
1000
1000
|
"div",
|
|
1001
1001
|
{
|
|
1002
1002
|
className: l("relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", i == null ? void 0 : i.imageContainer),
|
|
@@ -1008,56 +1008,56 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1008
1008
|
}
|
|
1009
1009
|
)
|
|
1010
1010
|
] }),
|
|
1011
|
-
(o == null ? void 0 : o.enabled) && /* @__PURE__ */
|
|
1011
|
+
(o == null ? void 0 : o.enabled) && /* @__PURE__ */ r.jsx(
|
|
1012
1012
|
"div",
|
|
1013
1013
|
{
|
|
1014
1014
|
className: l(
|
|
1015
1015
|
"items-center justify-center rounded-md p-4 pb-8 mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:flex desktop:translate-x-1/2 desktop:p-0",
|
|
1016
1016
|
i == null ? void 0 : i.advantageContainer
|
|
1017
1017
|
),
|
|
1018
|
-
children: (o == null ? void 0 : o.details) && ((
|
|
1018
|
+
children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...o })
|
|
1019
1019
|
}
|
|
1020
1020
|
)
|
|
1021
1021
|
] }),
|
|
1022
|
-
(o == null ? void 0 : o.enabled) && /* @__PURE__ */
|
|
1022
|
+
(o == null ? void 0 : o.enabled) && /* @__PURE__ */ r.jsx(
|
|
1023
1023
|
"div",
|
|
1024
1024
|
{
|
|
1025
1025
|
className: l(
|
|
1026
1026
|
"flex items-center justify-center bg-color-white px-4 pb-8 pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
|
|
1027
1027
|
i == null ? void 0 : i.advantageContainer
|
|
1028
1028
|
),
|
|
1029
|
-
children: (o == null ? void 0 : o.details) && ((g = o == null ? void 0 : o.details) == null ? void 0 : g.items.length) > 0 && /* @__PURE__ */
|
|
1029
|
+
children: (o == null ? void 0 : o.details) && ((g = o == null ? void 0 : o.details) == null ? void 0 : g.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...o })
|
|
1030
1030
|
}
|
|
1031
1031
|
)
|
|
1032
1032
|
]
|
|
1033
1033
|
}
|
|
1034
1034
|
);
|
|
1035
|
-
},
|
|
1035
|
+
}, Ge = ({ variant: t, ...e }) => {
|
|
1036
1036
|
switch (t) {
|
|
1037
1037
|
case "separateImg":
|
|
1038
|
-
return /* @__PURE__ */
|
|
1038
|
+
return /* @__PURE__ */ r.jsx(Je, { ...e });
|
|
1039
1039
|
case "fullImg":
|
|
1040
|
-
return /* @__PURE__ */
|
|
1040
|
+
return /* @__PURE__ */ r.jsx(Fr, { ...e });
|
|
1041
1041
|
default:
|
|
1042
|
-
return /* @__PURE__ */
|
|
1042
|
+
return /* @__PURE__ */ r.jsx(Je, { ...e });
|
|
1043
1043
|
}
|
|
1044
|
-
},
|
|
1044
|
+
}, Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1045
1045
|
__proto__: null,
|
|
1046
|
-
Banner:
|
|
1047
|
-
default:
|
|
1048
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1049
|
-
const { variant:
|
|
1050
|
-
return /* @__PURE__ */
|
|
1046
|
+
Banner: Ge,
|
|
1047
|
+
default: Ge
|
|
1048
|
+
}, Symbol.toStringTag, { value: "Module" })), Ie = ({ details: t, classes: e }) => {
|
|
1049
|
+
const { variant: n, items: o } = t ?? {};
|
|
1050
|
+
return /* @__PURE__ */ r.jsx(
|
|
1051
1051
|
"div",
|
|
1052
1052
|
{
|
|
1053
1053
|
id: "advantages",
|
|
1054
1054
|
className: l(
|
|
1055
1055
|
"m-auto flex w-full min-w-[328px] max-w-[636px] flex-col gap-8 rounded-md bg-color-white p-6 shadow-sm desktop:w-full desktop:flex-row desktop:items-start desktop:gap-0 desktop:p-0 desktop:py-6",
|
|
1056
|
-
{ "desktop:max-w-[860px]":
|
|
1057
|
-
{ "desktop:max-w-[1140px]":
|
|
1056
|
+
{ "desktop:max-w-[860px]": n === "threeCards" },
|
|
1057
|
+
{ "desktop:max-w-[1140px]": n === "fourCards" },
|
|
1058
1058
|
e == null ? void 0 : e.root
|
|
1059
1059
|
),
|
|
1060
|
-
children: o == null ? void 0 : o.map(({ title: i, description: a }) => /* @__PURE__ */
|
|
1060
|
+
children: o == null ? void 0 : o.map(({ title: i, description: a }) => /* @__PURE__ */ r.jsxs(
|
|
1061
1061
|
"div",
|
|
1062
1062
|
{
|
|
1063
1063
|
className: l(
|
|
@@ -1065,27 +1065,27 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1065
1065
|
e == null ? void 0 : e.item
|
|
1066
1066
|
),
|
|
1067
1067
|
children: [
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
/* @__PURE__ */
|
|
1068
|
+
/* @__PURE__ */ r.jsx(L, { as: "h4", className: l("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
1069
|
+
/* @__PURE__ */ r.jsx("p", { className: l("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
|
|
1070
1070
|
]
|
|
1071
1071
|
},
|
|
1072
1072
|
i
|
|
1073
1073
|
))
|
|
1074
1074
|
}
|
|
1075
1075
|
);
|
|
1076
|
-
},
|
|
1076
|
+
}, Pr = ({ socialsLinks: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className: l("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: t == null ? void 0 : t.map(({ iconName: n, href: o }) => /* @__PURE__ */ r.jsx(
|
|
1077
1077
|
"a",
|
|
1078
1078
|
{
|
|
1079
1079
|
className: l("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1080
1080
|
href: o,
|
|
1081
|
-
"aria-label":
|
|
1082
|
-
children: /* @__PURE__ */
|
|
1081
|
+
"aria-label": n.replace("social/", ""),
|
|
1082
|
+
children: /* @__PURE__ */ r.jsx(s, { name: n, className: l("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1083
1083
|
},
|
|
1084
1084
|
o
|
|
1085
|
-
)) }),
|
|
1086
|
-
|
|
1085
|
+
)) }), Dr = ({ phones: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: n, text: o }) => /* @__PURE__ */ r.jsx(
|
|
1086
|
+
gt,
|
|
1087
1087
|
{
|
|
1088
|
-
phone:
|
|
1088
|
+
phone: we(n),
|
|
1089
1089
|
text: o,
|
|
1090
1090
|
classes: {
|
|
1091
1091
|
root: l(e == null ? void 0 : e.phoneWrapper),
|
|
@@ -1093,8 +1093,8 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1093
1093
|
link: l("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
1094
1094
|
}
|
|
1095
1095
|
},
|
|
1096
|
-
|
|
1097
|
-
)) }),
|
|
1096
|
+
n
|
|
1097
|
+
)) }), Rr = ({ classes: t, details: e }) => /* @__PURE__ */ r.jsx(
|
|
1098
1098
|
"div",
|
|
1099
1099
|
{
|
|
1100
1100
|
className: l(
|
|
@@ -1102,10 +1102,10 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1102
1102
|
t == null ? void 0 : t.navRoot
|
|
1103
1103
|
),
|
|
1104
1104
|
children: e == null ? void 0 : e.map(
|
|
1105
|
-
({ column:
|
|
1106
|
-
/* @__PURE__ */
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
|
|
1105
|
+
({ column: n }) => n == null ? void 0 : n.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
|
|
1106
|
+
/* @__PURE__ */ r.jsx("div", { className: l("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: o }),
|
|
1107
|
+
/* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-1", t == null ? void 0 : t.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: d }) => /* @__PURE__ */ r.jsx(
|
|
1108
|
+
je,
|
|
1109
1109
|
{
|
|
1110
1110
|
href: a,
|
|
1111
1111
|
"aria-label": d,
|
|
@@ -1121,22 +1121,22 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1121
1121
|
] }, o))
|
|
1122
1122
|
)
|
|
1123
1123
|
}
|
|
1124
|
-
),
|
|
1124
|
+
), Hr = ({ text: t, classes: e }) => /* @__PURE__ */ r.jsx(
|
|
1125
1125
|
"div",
|
|
1126
1126
|
{
|
|
1127
1127
|
className: l("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
1128
1128
|
dangerouslySetInnerHTML: { __html: t }
|
|
1129
1129
|
}
|
|
1130
|
-
),
|
|
1130
|
+
), zr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
|
|
1131
1131
|
"a",
|
|
1132
1132
|
{
|
|
1133
1133
|
"aria-label": "logo",
|
|
1134
1134
|
href: "https://sovcombank.ru/",
|
|
1135
1135
|
className: l("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
|
|
1136
|
-
children: /* @__PURE__ */
|
|
1136
|
+
children: /* @__PURE__ */ r.jsx(s, { name: "brandLogos/logoWhite", className: l("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1137
1137
|
}
|
|
1138
|
-
),
|
|
1139
|
-
|
|
1138
|
+
), Lr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
|
|
1139
|
+
je,
|
|
1140
1140
|
{
|
|
1141
1141
|
intent: "white",
|
|
1142
1142
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1149,21 +1149,21 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1149
1149
|
},
|
|
1150
1150
|
children: "Карта сайта"
|
|
1151
1151
|
}
|
|
1152
|
-
),
|
|
1153
|
-
const [
|
|
1152
|
+
), Qr = ({ text: t, classes: e }) => {
|
|
1153
|
+
const [n, o] = me.useState(!1), [i, a] = me.useState(!1), d = me.useRef(null);
|
|
1154
1154
|
return me.useEffect(() => {
|
|
1155
1155
|
const u = d.current;
|
|
1156
1156
|
u && a(u.scrollHeight > u.clientHeight);
|
|
1157
|
-
}, []), /* @__PURE__ */
|
|
1158
|
-
/* @__PURE__ */
|
|
1157
|
+
}, []), /* @__PURE__ */ r.jsxs("div", { className: l("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1158
|
+
/* @__PURE__ */ r.jsx(
|
|
1159
1159
|
"div",
|
|
1160
1160
|
{
|
|
1161
1161
|
ref: d,
|
|
1162
|
-
className: l("desk-body-regular-m text-color-footer", { "line-clamp-3": !
|
|
1162
|
+
className: l("desk-body-regular-m text-color-footer", { "line-clamp-3": !n }, e == null ? void 0 : e.ligalText),
|
|
1163
1163
|
dangerouslySetInnerHTML: { __html: t }
|
|
1164
1164
|
}
|
|
1165
1165
|
),
|
|
1166
|
-
i && /* @__PURE__ */
|
|
1166
|
+
i && /* @__PURE__ */ r.jsx(
|
|
1167
1167
|
"div",
|
|
1168
1168
|
{
|
|
1169
1169
|
tabIndex: 0,
|
|
@@ -1177,22 +1177,22 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1177
1177
|
}
|
|
1178
1178
|
)
|
|
1179
1179
|
] });
|
|
1180
|
-
},
|
|
1180
|
+
}, et = ({
|
|
1181
1181
|
socialsLinks: t,
|
|
1182
1182
|
phones: e,
|
|
1183
|
-
ligal:
|
|
1183
|
+
ligal: n,
|
|
1184
1184
|
copyright: o,
|
|
1185
1185
|
classes: i,
|
|
1186
1186
|
details: a,
|
|
1187
1187
|
siteMap: d = !0
|
|
1188
|
-
}) => /* @__PURE__ */
|
|
1188
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
1189
1189
|
"footer",
|
|
1190
1190
|
{
|
|
1191
|
-
id:
|
|
1192
|
-
"data-test-id":
|
|
1191
|
+
id: j.footer,
|
|
1192
|
+
"data-test-id": j.footer,
|
|
1193
1193
|
className: l("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1194
|
-
children: /* @__PURE__ */
|
|
1195
|
-
/* @__PURE__ */
|
|
1194
|
+
children: /* @__PURE__ */ r.jsx(E, { className: l(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ r.jsxs("div", { className: l("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1195
|
+
/* @__PURE__ */ r.jsxs(
|
|
1196
1196
|
"div",
|
|
1197
1197
|
{
|
|
1198
1198
|
className: l(
|
|
@@ -1200,17 +1200,17 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1200
1200
|
i == null ? void 0 : i.footerHead
|
|
1201
1201
|
),
|
|
1202
1202
|
children: [
|
|
1203
|
-
/* @__PURE__ */
|
|
1204
|
-
/* @__PURE__ */
|
|
1205
|
-
t.enabled && /* @__PURE__ */
|
|
1203
|
+
/* @__PURE__ */ r.jsxs("div", { className: l(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1204
|
+
/* @__PURE__ */ r.jsx(zr, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1205
|
+
t.enabled && /* @__PURE__ */ r.jsx(Pr, { socialsLinks: t.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1206
1206
|
] }),
|
|
1207
|
-
e.enabled && /* @__PURE__ */
|
|
1207
|
+
e.enabled && /* @__PURE__ */ r.jsx(Dr, { phones: e.items, classes: i == null ? void 0 : i.phonesBlock })
|
|
1208
1208
|
]
|
|
1209
1209
|
}
|
|
1210
1210
|
),
|
|
1211
|
-
!
|
|
1212
|
-
|
|
1213
|
-
/* @__PURE__ */
|
|
1211
|
+
!O.isArrayEmpty(a) && /* @__PURE__ */ r.jsx(Rr, { details: a, classes: i == null ? void 0 : i.navLinks }),
|
|
1212
|
+
n.enabled && /* @__PURE__ */ r.jsx(Qr, { text: n.text }),
|
|
1213
|
+
/* @__PURE__ */ r.jsxs(
|
|
1214
1214
|
"div",
|
|
1215
1215
|
{
|
|
1216
1216
|
className: l(
|
|
@@ -1218,20 +1218,20 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1218
1218
|
i == null ? void 0 : i.footerBottom
|
|
1219
1219
|
),
|
|
1220
1220
|
children: [
|
|
1221
|
-
o.enabled && /* @__PURE__ */
|
|
1222
|
-
d && /* @__PURE__ */
|
|
1221
|
+
o.enabled && /* @__PURE__ */ r.jsx(Hr, { text: o.text, classes: i == null ? void 0 : i.copyright }),
|
|
1222
|
+
d && /* @__PURE__ */ r.jsx(Lr, { classes: i == null ? void 0 : i.siteMap })
|
|
1223
1223
|
]
|
|
1224
1224
|
}
|
|
1225
1225
|
)
|
|
1226
1226
|
] }) })
|
|
1227
1227
|
}
|
|
1228
|
-
),
|
|
1228
|
+
), Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1229
1229
|
__proto__: null,
|
|
1230
|
-
Footer:
|
|
1231
|
-
default:
|
|
1232
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1233
|
-
const a =
|
|
1234
|
-
return /* @__PURE__ */
|
|
1230
|
+
Footer: et,
|
|
1231
|
+
default: et
|
|
1232
|
+
}, Symbol.toStringTag, { value: "Module" })), $r = ({ classes: t, index: e, variant: n, title: o, description: i }) => {
|
|
1233
|
+
const a = n === "withTitleAndDescription" && o;
|
|
1234
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1235
1235
|
"div",
|
|
1236
1236
|
{
|
|
1237
1237
|
className: l(
|
|
@@ -1239,7 +1239,7 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1239
1239
|
t == null ? void 0 : t.singleStep
|
|
1240
1240
|
),
|
|
1241
1241
|
children: [
|
|
1242
|
-
/* @__PURE__ */
|
|
1242
|
+
/* @__PURE__ */ r.jsx(
|
|
1243
1243
|
"div",
|
|
1244
1244
|
{
|
|
1245
1245
|
className: l(
|
|
@@ -1249,15 +1249,15 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1249
1249
|
children: e
|
|
1250
1250
|
}
|
|
1251
1251
|
),
|
|
1252
|
-
/* @__PURE__ */
|
|
1253
|
-
a && /* @__PURE__ */
|
|
1252
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-2"), children: [
|
|
1253
|
+
a && /* @__PURE__ */ r.jsx(
|
|
1254
1254
|
"div",
|
|
1255
1255
|
{
|
|
1256
1256
|
dangerouslySetInnerHTML: { __html: o },
|
|
1257
1257
|
className: l("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", t == null ? void 0 : t.title)
|
|
1258
1258
|
}
|
|
1259
1259
|
),
|
|
1260
|
-
/* @__PURE__ */
|
|
1260
|
+
/* @__PURE__ */ r.jsx(
|
|
1261
1261
|
"div",
|
|
1262
1262
|
{
|
|
1263
1263
|
dangerouslySetInnerHTML: { __html: i ?? "" },
|
|
@@ -1268,23 +1268,23 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1268
1268
|
]
|
|
1269
1269
|
}
|
|
1270
1270
|
);
|
|
1271
|
-
},
|
|
1272
|
-
/* @__PURE__ */
|
|
1273
|
-
/* @__PURE__ */
|
|
1271
|
+
}, tt = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ r.jsx(E, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
1272
|
+
/* @__PURE__ */ r.jsx(L, { as: "h2", className: l("text-color-dark", o == null ? void 0 : o.headline), children: t }),
|
|
1273
|
+
/* @__PURE__ */ r.jsx(
|
|
1274
1274
|
"div",
|
|
1275
1275
|
{
|
|
1276
1276
|
className: l(
|
|
1277
1277
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1278
1278
|
o == null ? void 0 : o.stepsWrapper
|
|
1279
1279
|
),
|
|
1280
|
-
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */
|
|
1280
|
+
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ r.jsx($r, { variant: n, ...i, index: a + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
|
-
] }) }) }),
|
|
1283
|
+
] }) }) }), Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1284
1284
|
__proto__: null,
|
|
1285
|
-
Stepper:
|
|
1286
|
-
default:
|
|
1287
|
-
}, Symbol.toStringTag, { value: "Module" })), qr =
|
|
1285
|
+
Stepper: tt,
|
|
1286
|
+
default: tt
|
|
1287
|
+
}, Symbol.toStringTag, { value: "Module" })), qr = F("", {
|
|
1288
1288
|
variants: {
|
|
1289
1289
|
intent: {
|
|
1290
1290
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -1300,7 +1300,7 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1300
1300
|
defaultVariants: {
|
|
1301
1301
|
intent: "twoItems"
|
|
1302
1302
|
}
|
|
1303
|
-
}), Wr =
|
|
1303
|
+
}), Wr = F("", {
|
|
1304
1304
|
variants: {
|
|
1305
1305
|
intent: {
|
|
1306
1306
|
twoItems: "",
|
|
@@ -1332,7 +1332,7 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1332
1332
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1333
1333
|
}
|
|
1334
1334
|
]
|
|
1335
|
-
}),
|
|
1335
|
+
}), Ur = F("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1336
1336
|
variants: {
|
|
1337
1337
|
intent: {
|
|
1338
1338
|
twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
|
|
@@ -1342,7 +1342,7 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1342
1342
|
defaultVariants: {
|
|
1343
1343
|
intent: "twoItems"
|
|
1344
1344
|
}
|
|
1345
|
-
}),
|
|
1345
|
+
}), Kr = F("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1346
1346
|
variants: {
|
|
1347
1347
|
intent: {
|
|
1348
1348
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1368,33 +1368,33 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1368
1368
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
1369
1369
|
}
|
|
1370
1370
|
]
|
|
1371
|
-
}),
|
|
1371
|
+
}), Zr = ({ data: t, intent: e }) => {
|
|
1372
1372
|
const {
|
|
1373
|
-
title:
|
|
1373
|
+
title: n,
|
|
1374
1374
|
description: o,
|
|
1375
1375
|
popover: i = {
|
|
1376
1376
|
enabled: !1
|
|
1377
1377
|
}
|
|
1378
1378
|
} = t;
|
|
1379
|
-
return /* @__PURE__ */
|
|
1380
|
-
/* @__PURE__ */
|
|
1381
|
-
/* @__PURE__ */
|
|
1382
|
-
i.enabled && /* @__PURE__ */
|
|
1379
|
+
return /* @__PURE__ */ r.jsx("li", { className: l(Ur({ intent: e })), children: /* @__PURE__ */ r.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1380
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("mb-2 flex items-center gap-2"), children: [
|
|
1381
|
+
/* @__PURE__ */ r.jsx("h4", { className: l("mob-title-bold-m text-color-dark"), children: n }),
|
|
1382
|
+
i.enabled && /* @__PURE__ */ r.jsx(Oe, { triggerElement: /* @__PURE__ */ r.jsx(s, { className: l("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1383
1383
|
] }),
|
|
1384
|
-
/* @__PURE__ */
|
|
1384
|
+
/* @__PURE__ */ r.jsx("div", { className: l("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1385
1385
|
] }) });
|
|
1386
|
-
},
|
|
1386
|
+
}, Ce = ({ intent: t, headline: e, desktopHidden: n = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: l(qr({ intent: t, desktopHidden: n, mobileHidden: o })), children: e }), Xr = ({ details: t, intent: e, withButton: n }) => /* @__PURE__ */ r.jsx("ul", { className: l(Wr({ intent: e, withButton: n })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ r.jsx(Zr, { intent: e, data: o }, i)) }), rt = ({
|
|
1387
1387
|
headline: t,
|
|
1388
1388
|
buttonConfig: e,
|
|
1389
|
-
intent:
|
|
1389
|
+
intent: n = "twoItems",
|
|
1390
1390
|
details: o,
|
|
1391
1391
|
image: i,
|
|
1392
1392
|
classes: a
|
|
1393
1393
|
}) => {
|
|
1394
|
-
const d =
|
|
1395
|
-
return /* @__PURE__ */
|
|
1396
|
-
u && /* @__PURE__ */
|
|
1397
|
-
/* @__PURE__ */
|
|
1394
|
+
const d = n === "fourItems", u = n === "twoItems", m = i && "url" in i && O.isObject(i) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
|
|
1395
|
+
return /* @__PURE__ */ r.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: l(a == null ? void 0 : a.root), children: /* @__PURE__ */ r.jsxs(E, { className: l(a == null ? void 0 : a.container), children: [
|
|
1396
|
+
u && /* @__PURE__ */ r.jsx(Ce, { intent: n, headline: t }),
|
|
1397
|
+
/* @__PURE__ */ r.jsxs(
|
|
1398
1398
|
"div",
|
|
1399
1399
|
{
|
|
1400
1400
|
className: l(
|
|
@@ -1402,16 +1402,16 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1402
1402
|
a == null ? void 0 : a.contentContainer
|
|
1403
1403
|
),
|
|
1404
1404
|
children: [
|
|
1405
|
-
d && /* @__PURE__ */
|
|
1406
|
-
/* @__PURE__ */
|
|
1407
|
-
/* @__PURE__ */
|
|
1405
|
+
d && /* @__PURE__ */ r.jsx(Ce, { intent: n, headline: t, desktopHidden: !0 }),
|
|
1406
|
+
/* @__PURE__ */ r.jsx("div", { className: l(Kr({ intent: n, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
|
|
1407
|
+
/* @__PURE__ */ r.jsxs(
|
|
1408
1408
|
"div",
|
|
1409
1409
|
{
|
|
1410
1410
|
className: l("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
|
|
1411
1411
|
children: [
|
|
1412
|
-
d && /* @__PURE__ */
|
|
1413
|
-
/* @__PURE__ */
|
|
1414
|
-
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */
|
|
1412
|
+
d && /* @__PURE__ */ r.jsx(Ce, { intent: n, headline: t, mobileHidden: !0 }),
|
|
1413
|
+
/* @__PURE__ */ r.jsx(Xr, { details: o, intent: n, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
|
|
1414
|
+
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ r.jsx(
|
|
1415
1415
|
Y,
|
|
1416
1416
|
{
|
|
1417
1417
|
className: l("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
|
|
@@ -1427,66 +1427,66 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1427
1427
|
}
|
|
1428
1428
|
)
|
|
1429
1429
|
] }) });
|
|
1430
|
-
},
|
|
1430
|
+
}, Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1431
1431
|
__proto__: null,
|
|
1432
|
-
LongBanner:
|
|
1433
|
-
default:
|
|
1434
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1432
|
+
LongBanner: rt,
|
|
1433
|
+
default: rt
|
|
1434
|
+
}, Symbol.toStringTag, { value: "Module" })), Me = {
|
|
1435
1435
|
ESIA: "esia",
|
|
1436
1436
|
MOBILE_ID: "mobileId",
|
|
1437
1437
|
COMBINE: "combine"
|
|
1438
|
-
},
|
|
1438
|
+
}, Nt = ({ children: t, isLoading: e, classes: n, loaderProps: o }) => /* @__PURE__ */ r.jsx(
|
|
1439
1439
|
"div",
|
|
1440
1440
|
{
|
|
1441
1441
|
tabIndex: 0,
|
|
1442
1442
|
className: l(
|
|
1443
1443
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
1444
1444
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
1445
|
-
|
|
1445
|
+
n == null ? void 0 : n.root
|
|
1446
1446
|
),
|
|
1447
|
-
children: /* @__PURE__ */
|
|
1447
|
+
children: /* @__PURE__ */ r.jsx(
|
|
1448
1448
|
"div",
|
|
1449
1449
|
{
|
|
1450
1450
|
className: l(
|
|
1451
1451
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
1452
1452
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
1453
1453
|
{ "items-center": e },
|
|
1454
|
-
|
|
1454
|
+
n == null ? void 0 : n.wrapper
|
|
1455
1455
|
),
|
|
1456
|
-
children: e ? /* @__PURE__ */
|
|
1456
|
+
children: e ? /* @__PURE__ */ r.jsx(qt, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : t
|
|
1457
1457
|
}
|
|
1458
1458
|
)
|
|
1459
1459
|
}
|
|
1460
|
-
),
|
|
1461
|
-
/* @__PURE__ */
|
|
1460
|
+
), Jr = ({ ...t }) => /* @__PURE__ */ r.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
1461
|
+
/* @__PURE__ */ r.jsx(
|
|
1462
1462
|
"path",
|
|
1463
1463
|
{
|
|
1464
1464
|
d: "M30.3986 10.6149C30.2728 8.96576 29.014 6.85155 27.7553 5.83672C26.3398 4.79816 24.8691 3.83828 23.3497 2.96139C21.8418 2.06068 20.2871 1.24201 18.6923 0.508895C17.8404 0.15868 16.927 -0.0139306 16.007 0.00148264C15.0868 -0.0180029 14.1725 0.154761 13.3217 0.508895C11.7272 1.24253 10.1725 2.06119 8.66438 2.96139C6.23081 4.44134 4.25878 5.83672 4.25878 5.83672C3.22329 6.71008 2.43892 7.83418 1.97146 9.09195C1.87834 9.34251 2.07032 9.59987 2.33762 9.59987H4.2568C4.55401 9.59987 4.82321 9.43281 4.98085 9.18085C5.33539 8.61417 5.77902 8.10202 6.29948 7.66607C6.29948 7.66607 7.92774 6.52186 9.93709 5.3083C11.1823 4.57013 12.466 3.89884 13.7826 3.29725C14.485 3.00687 15.2399 2.8652 15.9998 2.88118C16.7593 2.86854 17.5136 3.01008 18.217 3.29725C19.5337 3.89841 20.8174 4.56972 22.0624 5.3083C23.317 6.02735 24.5313 6.81445 25.7 7.66607C26.7394 8.49823 27.7787 10.2319 27.8826 11.5841C27.8826 11.5841 28.1251 13.5952 28.1598 15.9772C28.1576 17.4483 28.0767 18.9183 27.9173 20.3807C27.6755 21.912 26.8879 23.3038 25.7 24.2988C25.7 24.2988 24.0718 25.4777 22.0624 26.6912C20.8172 27.4294 19.5335 28.1007 18.217 28.7023C17.5145 28.9927 16.7596 29.1343 15.9998 29.1184C15.2409 29.1343 14.4867 28.9963 13.7826 28.7127C12.4658 28.1115 11.1821 27.4402 9.93709 26.7016C7.92774 25.5228 6.29948 24.3092 6.29948 24.3092C5.84515 23.9454 5.39081 23.4094 5.01172 22.8082C4.85581 22.561 4.5896 22.3997 4.2973 22.3997H2.34718C2.07645 22.3997 1.88475 22.6629 1.98611 22.914C2.49249 24.168 3.37564 25.4212 4.25878 26.1332C4.25878 26.1332 6.23081 27.6132 8.66438 29.0508C10.1723 29.9515 11.7269 30.7702 13.3217 31.5033C14.1745 31.8492 15.088 32.0175 16.007 31.998C16.9273 32.0175 17.8416 31.8448 18.6923 31.4906C20.2869 30.757 21.8415 29.9383 23.3497 29.0381C25.7833 27.5582 27.7553 26.1205 27.7553 26.1205C29.1939 24.9072 30.1478 23.2098 30.4406 21.3424C30.6337 19.5589 30.7317 17.7663 30.7343 15.9723C30.6923 13.0673 30.3986 10.6149 30.3986 10.6149Z",
|
|
1465
1465
|
fill: "url(#paint0_linear_6493_452)"
|
|
1466
1466
|
}
|
|
1467
1467
|
),
|
|
1468
|
-
/* @__PURE__ */
|
|
1468
|
+
/* @__PURE__ */ r.jsx(
|
|
1469
1469
|
"path",
|
|
1470
1470
|
{
|
|
1471
1471
|
d: "M1.27985 12.4821C1.27985 12.1286 1.56638 11.8421 1.91985 11.8421H11.8398C12.1933 11.8421 12.4798 12.1286 12.4798 12.4821V14.4021C12.4798 14.7555 12.1933 15.0421 11.8398 15.0421H1.27985V12.4821Z",
|
|
1472
1472
|
fill: "#0066B3"
|
|
1473
1473
|
}
|
|
1474
1474
|
),
|
|
1475
|
-
/* @__PURE__ */
|
|
1475
|
+
/* @__PURE__ */ r.jsx(
|
|
1476
1476
|
"path",
|
|
1477
1477
|
{
|
|
1478
1478
|
d: "M1.27985 16.9618H21.4398C21.7933 16.9618 22.0798 17.2484 22.0798 17.6018V19.5218C22.0798 19.8752 21.7933 20.1618 21.4398 20.1618H1.91985C1.56638 20.1618 1.27985 19.8752 1.27985 19.5218V16.9618Z",
|
|
1479
1479
|
fill: "#EE2F53"
|
|
1480
1480
|
}
|
|
1481
1481
|
),
|
|
1482
|
-
/* @__PURE__ */
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
/* @__PURE__ */
|
|
1485
|
-
/* @__PURE__ */
|
|
1486
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ r.jsx("defs", { children: /* @__PURE__ */ r.jsxs("linearGradient", { id: "paint0_linear_6493_452", x1: "16.0071", y1: "0", x2: "16.0071", y2: "31.9996", gradientUnits: "userSpaceOnUse", children: [
|
|
1483
|
+
/* @__PURE__ */ r.jsx("stop", { stopColor: "#0066B3" }),
|
|
1484
|
+
/* @__PURE__ */ r.jsx("stop", { offset: "0.354167", stopColor: "#0066B3" }),
|
|
1485
|
+
/* @__PURE__ */ r.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1486
|
+
/* @__PURE__ */ r.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1487
1487
|
] }) })
|
|
1488
|
-
] }),
|
|
1489
|
-
/* @__PURE__ */
|
|
1488
|
+
] }), Ct = ({ mainLink: t, subLink: e, isMobile: n, classes: o }) => /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
|
|
1489
|
+
/* @__PURE__ */ r.jsx(
|
|
1490
1490
|
"a",
|
|
1491
1491
|
{
|
|
1492
1492
|
href: t.href,
|
|
@@ -1496,11 +1496,11 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1496
1496
|
'before:content=[" "] desk-body-medium-l z-[4] text-color-dark before:absolute before:left-1/2 before:top-1/2 before:h-full before:w-full before:-translate-x-1/2 before:-translate-y-1/2',
|
|
1497
1497
|
o == null ? void 0 : o.linksMainLink
|
|
1498
1498
|
),
|
|
1499
|
-
children:
|
|
1499
|
+
children: n ? t.mobileTitle : t.title
|
|
1500
1500
|
}
|
|
1501
1501
|
),
|
|
1502
|
-
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */
|
|
1503
|
-
|
|
1502
|
+
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ r.jsx(
|
|
1503
|
+
je,
|
|
1504
1504
|
{
|
|
1505
1505
|
intent: "blue",
|
|
1506
1506
|
withUnderline: !0,
|
|
@@ -1513,9 +1513,9 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1513
1513
|
children: e == null ? void 0 : e.text
|
|
1514
1514
|
}
|
|
1515
1515
|
)
|
|
1516
|
-
] }),
|
|
1516
|
+
] }), nt = ({ mainLink: t, subLink: e, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
|
|
1517
1517
|
const { isMobile: d } = ee();
|
|
1518
|
-
return /* @__PURE__ */
|
|
1518
|
+
return /* @__PURE__ */ r.jsx(Nt, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1519
1519
|
"div",
|
|
1520
1520
|
{
|
|
1521
1521
|
className: l(
|
|
@@ -1524,22 +1524,22 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1524
1524
|
a == null ? void 0 : a.innerWrapper
|
|
1525
1525
|
),
|
|
1526
1526
|
children: [
|
|
1527
|
-
/* @__PURE__ */
|
|
1528
|
-
/* @__PURE__ */
|
|
1529
|
-
/* @__PURE__ */
|
|
1530
|
-
/* @__PURE__ */
|
|
1531
|
-
/* @__PURE__ */
|
|
1527
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1528
|
+
/* @__PURE__ */ r.jsxs("div", { children: [
|
|
1529
|
+
/* @__PURE__ */ r.jsx(s, { name: "logos/mts", className: l("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
|
|
1530
|
+
/* @__PURE__ */ r.jsx(s, { name: "logos/megafon", className: l("relative z-[8] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.megafonLogo) }),
|
|
1531
|
+
/* @__PURE__ */ r.jsx(s, { name: "logos/beeline", className: l("relative z-[7] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.beelineLogo) })
|
|
1532
1532
|
] }),
|
|
1533
|
-
/* @__PURE__ */
|
|
1534
|
-
/* @__PURE__ */
|
|
1533
|
+
/* @__PURE__ */ r.jsx(Ct, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1534
|
+
/* @__PURE__ */ r.jsx(s, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1535
1535
|
] }),
|
|
1536
|
-
o && /* @__PURE__ */
|
|
1536
|
+
o && /* @__PURE__ */ r.jsx(Se, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1537
1537
|
]
|
|
1538
1538
|
}
|
|
1539
1539
|
) });
|
|
1540
|
-
},
|
|
1540
|
+
}, ot = ({ mainLink: t, subLink: e, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
|
|
1541
1541
|
const { isMobile: d } = ee();
|
|
1542
|
-
return /* @__PURE__ */
|
|
1542
|
+
return /* @__PURE__ */ r.jsx(Nt, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1543
1543
|
"div",
|
|
1544
1544
|
{
|
|
1545
1545
|
className: l(
|
|
@@ -1548,25 +1548,25 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1548
1548
|
a == null ? void 0 : a.innerWrapper
|
|
1549
1549
|
),
|
|
1550
1550
|
children: [
|
|
1551
|
-
/* @__PURE__ */
|
|
1552
|
-
/* @__PURE__ */
|
|
1553
|
-
/* @__PURE__ */
|
|
1554
|
-
/* @__PURE__ */
|
|
1551
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1552
|
+
/* @__PURE__ */ r.jsx(Jr, { className: l("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
|
|
1553
|
+
/* @__PURE__ */ r.jsx(Ct, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1554
|
+
/* @__PURE__ */ r.jsx(s, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1555
1555
|
] }),
|
|
1556
|
-
o && /* @__PURE__ */
|
|
1556
|
+
o && /* @__PURE__ */ r.jsx(Se, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1557
1557
|
]
|
|
1558
1558
|
}
|
|
1559
1559
|
) });
|
|
1560
|
-
},
|
|
1560
|
+
}, Gr = (t) => {
|
|
1561
1561
|
switch (t.mode) {
|
|
1562
|
-
case
|
|
1563
|
-
return /* @__PURE__ */
|
|
1564
|
-
case
|
|
1565
|
-
return /* @__PURE__ */
|
|
1566
|
-
case
|
|
1562
|
+
case Me.ESIA:
|
|
1563
|
+
return /* @__PURE__ */ r.jsx(ot, { ...t });
|
|
1564
|
+
case Me.MOBILE_ID:
|
|
1565
|
+
return /* @__PURE__ */ r.jsx(nt, { ...t });
|
|
1566
|
+
case Me.COMBINE:
|
|
1567
1567
|
default:
|
|
1568
|
-
const { esiaConfig: e, mobileIdConfig:
|
|
1569
|
-
return /* @__PURE__ */
|
|
1568
|
+
const { esiaConfig: e, mobileIdConfig: n, subtitle: o, badge: i, classes: a } = t, d = !o && !i ? me.Fragment : "div";
|
|
1569
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1570
1570
|
"div",
|
|
1571
1571
|
{
|
|
1572
1572
|
className: l(
|
|
@@ -1574,13 +1574,13 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1574
1574
|
a == null ? void 0 : a.root
|
|
1575
1575
|
),
|
|
1576
1576
|
children: [
|
|
1577
|
-
/* @__PURE__ */
|
|
1578
|
-
o && /* @__PURE__ */
|
|
1579
|
-
i && /* @__PURE__ */
|
|
1577
|
+
/* @__PURE__ */ r.jsxs(d, { className: l("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
|
|
1578
|
+
o && /* @__PURE__ */ r.jsx("h5", { className: l("desk-body-regular-l flex flex-1 text-color-dark", a == null ? void 0 : a.subtitle), children: o }),
|
|
1579
|
+
i && /* @__PURE__ */ r.jsx(Se, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: i })
|
|
1580
1580
|
] }),
|
|
1581
|
-
/* @__PURE__ */
|
|
1582
|
-
/* @__PURE__ */
|
|
1583
|
-
|
|
1581
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
|
|
1582
|
+
/* @__PURE__ */ r.jsx(
|
|
1583
|
+
ot,
|
|
1584
1584
|
{
|
|
1585
1585
|
...e,
|
|
1586
1586
|
classes: {
|
|
@@ -1590,14 +1590,14 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1590
1590
|
}
|
|
1591
1591
|
}
|
|
1592
1592
|
),
|
|
1593
|
-
/* @__PURE__ */
|
|
1594
|
-
|
|
1593
|
+
/* @__PURE__ */ r.jsx(
|
|
1594
|
+
nt,
|
|
1595
1595
|
{
|
|
1596
|
-
...
|
|
1596
|
+
...n,
|
|
1597
1597
|
classes: {
|
|
1598
1598
|
root: "p-0 outline-0 h-[74px]",
|
|
1599
1599
|
arrowIcon: "hidden",
|
|
1600
|
-
...
|
|
1600
|
+
...n.classes
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
)
|
|
@@ -1606,45 +1606,45 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1606
1606
|
}
|
|
1607
1607
|
);
|
|
1608
1608
|
}
|
|
1609
|
-
},
|
|
1610
|
-
|
|
1609
|
+
}, Po = (t) => Gr(t), it = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className: l("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: n, label: o }) => /* @__PURE__ */ r.jsx(
|
|
1610
|
+
je,
|
|
1611
1611
|
{
|
|
1612
1612
|
classes: {
|
|
1613
1613
|
link: l("w-max", e == null ? void 0 : e.linkText),
|
|
1614
1614
|
icon: l(e == null ? void 0 : e.linkIcon)
|
|
1615
1615
|
},
|
|
1616
1616
|
intent: "dark",
|
|
1617
|
-
href:
|
|
1617
|
+
href: n,
|
|
1618
1618
|
children: o
|
|
1619
1619
|
},
|
|
1620
|
-
|
|
1621
|
-
)) }),
|
|
1620
|
+
n
|
|
1621
|
+
)) }), en = ({ groupLabel: t, links: e, mobileAccordionProps: n, classes: o }) => {
|
|
1622
1622
|
var a, d, u;
|
|
1623
1623
|
const { isMobile: i } = ee();
|
|
1624
|
-
return /* @__PURE__ */
|
|
1625
|
-
!i && /* @__PURE__ */
|
|
1626
|
-
/* @__PURE__ */
|
|
1627
|
-
/* @__PURE__ */
|
|
1624
|
+
return /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1625
|
+
!i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1626
|
+
/* @__PURE__ */ r.jsx("h5", { className: l("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: t }),
|
|
1627
|
+
/* @__PURE__ */ r.jsx(it, { links: e, classes: o == null ? void 0 : o.linksList }, "desktop")
|
|
1628
1628
|
] }),
|
|
1629
|
-
i && /* @__PURE__ */
|
|
1629
|
+
i && /* @__PURE__ */ r.jsx(
|
|
1630
1630
|
ae,
|
|
1631
1631
|
{
|
|
1632
1632
|
defaultOpen: !0,
|
|
1633
1633
|
label: t,
|
|
1634
|
-
icon: /* @__PURE__ */
|
|
1635
|
-
...
|
|
1634
|
+
icon: /* @__PURE__ */ r.jsx(s, { name: "arrows/arrowRight", className: l("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1635
|
+
...n,
|
|
1636
1636
|
classes: {
|
|
1637
|
-
...
|
|
1637
|
+
...n == null ? void 0 : n.classes,
|
|
1638
1638
|
header: {
|
|
1639
|
-
trigger: l("p-0 bg-color-blue-grey-100", (d = (a =
|
|
1639
|
+
trigger: l("p-0 bg-color-blue-grey-100", (d = (a = n == null ? void 0 : n.classes) == null ? void 0 : a.header) == null ? void 0 : d.trigger)
|
|
1640
1640
|
},
|
|
1641
|
-
contentInner: l("py-2 px-4", (u =
|
|
1641
|
+
contentInner: l("py-2 px-4", (u = n == null ? void 0 : n.classes) == null ? void 0 : u.contentInner)
|
|
1642
1642
|
},
|
|
1643
|
-
children: /* @__PURE__ */
|
|
1643
|
+
children: /* @__PURE__ */ r.jsx(it, { links: e, classes: o == null ? void 0 : o.linksList }, "mobile")
|
|
1644
1644
|
}
|
|
1645
1645
|
)
|
|
1646
1646
|
] });
|
|
1647
|
-
},
|
|
1647
|
+
}, tn = ({ column: t, mobileAccordionProps: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-4 desktop:gap-6", n == null ? void 0 : n.column), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx(en, { ...e, ...o, classes: n == null ? void 0 : n.columnGroup }, o.groupLabel)) }), rn = F("grid gap-4 grid-cols-1", {
|
|
1648
1648
|
variants: {
|
|
1649
1649
|
variant: {
|
|
1650
1650
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1655,27 +1655,27 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1655
1655
|
defaultVariants: {
|
|
1656
1656
|
variant: "fourCols"
|
|
1657
1657
|
}
|
|
1658
|
-
}),
|
|
1658
|
+
}), at = ({
|
|
1659
1659
|
variant: t,
|
|
1660
1660
|
details: e,
|
|
1661
|
-
headline:
|
|
1661
|
+
headline: n,
|
|
1662
1662
|
mobileAccordionProps: o,
|
|
1663
1663
|
rootAccordionProps: i,
|
|
1664
1664
|
classes: a,
|
|
1665
1665
|
defaultOpen: d
|
|
1666
1666
|
}) => {
|
|
1667
1667
|
var u, m, h;
|
|
1668
|
-
return /* @__PURE__ */
|
|
1668
|
+
return /* @__PURE__ */ r.jsx(
|
|
1669
1669
|
"section",
|
|
1670
1670
|
{
|
|
1671
|
-
id:
|
|
1672
|
-
"data-test-id":
|
|
1671
|
+
id: j.interLinking,
|
|
1672
|
+
"data-test-id": j.interLinking,
|
|
1673
1673
|
className: l("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1674
|
-
children: /* @__PURE__ */
|
|
1674
|
+
children: /* @__PURE__ */ r.jsx(E, { children: /* @__PURE__ */ r.jsx(
|
|
1675
1675
|
ae,
|
|
1676
1676
|
{
|
|
1677
1677
|
defaultOpen: d,
|
|
1678
|
-
label: /* @__PURE__ */
|
|
1678
|
+
label: /* @__PURE__ */ r.jsx(L, { as: "h4", className: l("text-left", a == null ? void 0 : a.headline), children: n }),
|
|
1679
1679
|
...i,
|
|
1680
1680
|
classes: {
|
|
1681
1681
|
...i == null ? void 0 : i.classes,
|
|
@@ -1684,19 +1684,19 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1684
1684
|
},
|
|
1685
1685
|
content: l("max-w-full bg-color-blue-grey-100 relative", (h = i == null ? void 0 : i.classes) == null ? void 0 : h.content)
|
|
1686
1686
|
},
|
|
1687
|
-
children: /* @__PURE__ */
|
|
1687
|
+
children: /* @__PURE__ */ r.jsx("div", { className: l(rn({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.map((p, c) => /* @__PURE__ */ r.jsx(tn, { ...p, ...o, classes: a == null ? void 0 : a.column }, c)) })
|
|
1688
1688
|
}
|
|
1689
1689
|
) })
|
|
1690
1690
|
}
|
|
1691
1691
|
);
|
|
1692
|
-
},
|
|
1692
|
+
}, nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1693
1693
|
__proto__: null,
|
|
1694
|
-
InterLinking:
|
|
1695
|
-
default:
|
|
1696
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1694
|
+
InterLinking: at,
|
|
1695
|
+
default: at
|
|
1696
|
+
}, Symbol.toStringTag, { value: "Module" })), on = ({ tabsNames: t, activeTab: e, setActiveTab: n, classes: o }) => /* @__PURE__ */ r.jsx("div", { className: l("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: t && t.map((i, a) => /* @__PURE__ */ r.jsx(
|
|
1697
1697
|
"button",
|
|
1698
1698
|
{
|
|
1699
|
-
onClick: () =>
|
|
1699
|
+
onClick: () => n(a),
|
|
1700
1700
|
className: l(
|
|
1701
1701
|
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
1702
1702
|
{
|
|
@@ -1707,12 +1707,12 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1707
1707
|
children: i
|
|
1708
1708
|
},
|
|
1709
1709
|
i
|
|
1710
|
-
)) }),
|
|
1711
|
-
const i = /* @__PURE__ */
|
|
1712
|
-
return /* @__PURE__ */
|
|
1713
|
-
},
|
|
1714
|
-
rows: t == null ? void 0 : t.map(({ row:
|
|
1715
|
-
row:
|
|
1710
|
+
)) }), an = (t) => t.variant === "HTML", ln = (t) => t.variant === "DOCUMENTS", dn = (t) => t.variant === "TABLE", un = ({ html: t, config: e, classes: n, accordionConfig: o }) => {
|
|
1711
|
+
const i = /* @__PURE__ */ r.jsx("div", { className: l(n == null ? void 0 : n.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
|
|
1712
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(ae, { label: e == null ? void 0 : e.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
|
|
1713
|
+
}, mn = (t, e) => ({
|
|
1714
|
+
rows: t == null ? void 0 : t.map(({ row: n }) => ({
|
|
1715
|
+
row: n == null ? void 0 : n.map((o, i) => {
|
|
1716
1716
|
var a;
|
|
1717
1717
|
return {
|
|
1718
1718
|
...o,
|
|
@@ -1720,21 +1720,21 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1720
1720
|
};
|
|
1721
1721
|
})
|
|
1722
1722
|
}))
|
|
1723
|
-
}),
|
|
1723
|
+
}), hn = F("flex flex-col", {
|
|
1724
1724
|
variants: {
|
|
1725
1725
|
columnsVariant: {
|
|
1726
1726
|
twoCols: "w-full max-w-[656px]",
|
|
1727
1727
|
threeCols: "w-full max-w-[768px]"
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
|
-
}),
|
|
1730
|
+
}), xn = F("desktop:grid mobile:hidden px-4 mb-4", {
|
|
1731
1731
|
variants: {
|
|
1732
1732
|
columnsVariant: {
|
|
1733
1733
|
twoCols: "grid-cols-2 gap-16",
|
|
1734
1734
|
threeCols: "grid-cols-3 gap-12"
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
}),
|
|
1737
|
+
}), pn = ({ headings: t, columnsVariant: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: l(xn({ columnsVariant: e }), n == null ? void 0 : n.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx("div", { className: l("text-color-secondary", n == null ? void 0 : n.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), cn = F("desktop:grid mobile:hidden items-center", {
|
|
1738
1738
|
variants: {
|
|
1739
1739
|
columnsVariant: {
|
|
1740
1740
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1745,42 +1745,42 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1745
1745
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
|
-
}),
|
|
1748
|
+
}), fn = ({ row: t, tableVariant: e, columnsVariant: n, rowIndex: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: l(cn({ columnsVariant: n, tableVariant: e }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a }, d) => /* @__PURE__ */ r.jsx(
|
|
1749
1749
|
"div",
|
|
1750
1750
|
{
|
|
1751
1751
|
className: l("desk-body-regular-l text-color-dark", { "font-medium": d !== 0 }, i == null ? void 0 : i.cell),
|
|
1752
1752
|
children: a && a
|
|
1753
1753
|
},
|
|
1754
1754
|
d
|
|
1755
|
-
)) }),
|
|
1755
|
+
)) }), bn = F("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1756
1756
|
variants: {
|
|
1757
1757
|
tableVariant: {
|
|
1758
1758
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1759
1759
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
|
-
}),
|
|
1763
|
-
d && /* @__PURE__ */
|
|
1764
|
-
/* @__PURE__ */
|
|
1762
|
+
}), sn = ({ row: t, tableVariant: e, columnsVariant: n, headingsExist: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: l(bn({ tableVariant: e }), i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a, heading: d }, u) => /* @__PURE__ */ r.jsxs("div", { className: l("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
|
|
1763
|
+
d && /* @__PURE__ */ r.jsx("div", { className: l("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: d }),
|
|
1764
|
+
/* @__PURE__ */ r.jsx(
|
|
1765
1765
|
"div",
|
|
1766
1766
|
{
|
|
1767
1767
|
className: l(
|
|
1768
1768
|
"mob-body-regular-l text-color-dark",
|
|
1769
1769
|
{
|
|
1770
|
-
"font-medium": u !== 0 &&
|
|
1770
|
+
"font-medium": u !== 0 && n === "twoCols" || n === "threeCols" || n === "twoCols" && o
|
|
1771
1771
|
},
|
|
1772
1772
|
i == null ? void 0 : i.cell
|
|
1773
1773
|
),
|
|
1774
1774
|
children: a
|
|
1775
1775
|
}
|
|
1776
1776
|
)
|
|
1777
|
-
] }, u)) }),
|
|
1777
|
+
] }, u)) }), gn = ({ tableVariant: t, rows: e, headings: n, columnsVariant: o, classes: i }) => {
|
|
1778
1778
|
var u;
|
|
1779
|
-
const a = ((u =
|
|
1780
|
-
return /* @__PURE__ */
|
|
1781
|
-
d && /* @__PURE__ */
|
|
1782
|
-
e == null ? void 0 : e.map((m, h) => /* @__PURE__ */
|
|
1783
|
-
|
|
1779
|
+
const a = ((u = mn(e, n)) == null ? void 0 : u.rows) ?? [], d = !!(n && n.length > 0);
|
|
1780
|
+
return /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1781
|
+
d && /* @__PURE__ */ r.jsx(pn, { headings: n, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1782
|
+
e == null ? void 0 : e.map((m, h) => /* @__PURE__ */ r.jsx(
|
|
1783
|
+
fn,
|
|
1784
1784
|
{
|
|
1785
1785
|
rowIndex: h,
|
|
1786
1786
|
tableVariant: t,
|
|
@@ -1790,8 +1790,8 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1790
1790
|
},
|
|
1791
1791
|
h
|
|
1792
1792
|
)),
|
|
1793
|
-
a == null ? void 0 : a.map((m, h) => /* @__PURE__ */
|
|
1794
|
-
|
|
1793
|
+
a == null ? void 0 : a.map((m, h) => /* @__PURE__ */ r.jsx(
|
|
1794
|
+
sn,
|
|
1795
1795
|
{
|
|
1796
1796
|
headingsExist: d,
|
|
1797
1797
|
tableVariant: t,
|
|
@@ -1802,10 +1802,10 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1802
1802
|
h
|
|
1803
1803
|
))
|
|
1804
1804
|
] });
|
|
1805
|
-
},
|
|
1805
|
+
}, jn = ({
|
|
1806
1806
|
tableVariant: t,
|
|
1807
1807
|
description: e,
|
|
1808
|
-
columnsVariant:
|
|
1808
|
+
columnsVariant: n,
|
|
1809
1809
|
config: o,
|
|
1810
1810
|
rows: i,
|
|
1811
1811
|
title: a,
|
|
@@ -1813,10 +1813,10 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1813
1813
|
accordionConfig: u,
|
|
1814
1814
|
classes: m
|
|
1815
1815
|
}) => {
|
|
1816
|
-
const h = /* @__PURE__ */
|
|
1817
|
-
a && /* @__PURE__ */
|
|
1818
|
-
/* @__PURE__ */
|
|
1819
|
-
e && /* @__PURE__ */
|
|
1816
|
+
const h = /* @__PURE__ */ r.jsxs("div", { className: l(hn({ columnsVariant: n }), m == null ? void 0 : m.wrapper), children: [
|
|
1817
|
+
a && /* @__PURE__ */ r.jsx(L, { as: "h4", className: l("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
|
|
1818
|
+
/* @__PURE__ */ r.jsx(gn, { tableVariant: t, rows: i, headings: d, columnsVariant: n }),
|
|
1819
|
+
e && /* @__PURE__ */ r.jsx(
|
|
1820
1820
|
"div",
|
|
1821
1821
|
{
|
|
1822
1822
|
className: l("mt-2 [&&]:desk-body-regular-m desktop:mt-2", m == null ? void 0 : m.description),
|
|
@@ -1824,11 +1824,11 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1824
1824
|
}
|
|
1825
1825
|
)
|
|
1826
1826
|
] });
|
|
1827
|
-
return /* @__PURE__ */
|
|
1828
|
-
},
|
|
1827
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ r.jsx(ae, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || h }) : h });
|
|
1828
|
+
}, yn = {
|
|
1829
1829
|
documentFilled: "files/documentFilled",
|
|
1830
1830
|
documentOutline: "files/documentOutline"
|
|
1831
|
-
},
|
|
1831
|
+
}, kn = F("size-8 transition-colors", {
|
|
1832
1832
|
variants: {
|
|
1833
1833
|
iconType: {
|
|
1834
1834
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1838,10 +1838,10 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1838
1838
|
defaultVariants: {
|
|
1839
1839
|
iconType: "documentOutline"
|
|
1840
1840
|
}
|
|
1841
|
-
}),
|
|
1841
|
+
}), wn = ({ label: t, size: e, url: n, iconType: o, classes: i }) => /* @__PURE__ */ r.jsxs(
|
|
1842
1842
|
"a",
|
|
1843
1843
|
{
|
|
1844
|
-
href:
|
|
1844
|
+
href: n,
|
|
1845
1845
|
target: "_blank",
|
|
1846
1846
|
rel: "noreferrer",
|
|
1847
1847
|
tabIndex: 0,
|
|
@@ -1850,51 +1850,51 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1850
1850
|
i == null ? void 0 : i.link
|
|
1851
1851
|
),
|
|
1852
1852
|
children: [
|
|
1853
|
-
/* @__PURE__ */
|
|
1854
|
-
/* @__PURE__ */
|
|
1855
|
-
/* @__PURE__ */
|
|
1856
|
-
/* @__PURE__ */
|
|
1853
|
+
/* @__PURE__ */ r.jsx(s, { name: yn[o], className: l(kn({ iconType: o }), i == null ? void 0 : i.icon) }),
|
|
1854
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1855
|
+
/* @__PURE__ */ r.jsx("p", { className: l("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
|
|
1856
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
1857
1857
|
Number(e),
|
|
1858
1858
|
" КБ"
|
|
1859
1859
|
] })
|
|
1860
1860
|
] })
|
|
1861
1861
|
]
|
|
1862
1862
|
}
|
|
1863
|
-
),
|
|
1864
|
-
const u = /* @__PURE__ */
|
|
1865
|
-
|
|
1866
|
-
/* @__PURE__ */
|
|
1867
|
-
i && /* @__PURE__ */
|
|
1863
|
+
), vn = ({ docs: t, config: e, title: n, iconType: o, description: i, classes: a, accordionConfig: d }) => {
|
|
1864
|
+
const u = /* @__PURE__ */ r.jsxs("div", { className: l("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
|
|
1865
|
+
n && /* @__PURE__ */ r.jsx(L, { as: "h3", className: "mb-4", children: n }),
|
|
1866
|
+
/* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ r.jsx(wn, { iconType: o, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
|
|
1867
|
+
i && /* @__PURE__ */ r.jsx("div", { className: l("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1868
1868
|
] });
|
|
1869
|
-
return /* @__PURE__ */
|
|
1870
|
-
},
|
|
1869
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(ae, { label: e == null ? void 0 : e.accordionTitle, ...d, children: (d == null ? void 0 : d.children) || u }) : u });
|
|
1870
|
+
}, Nn = ({ entity: t, classes: e, accordionsConfig: n }) => {
|
|
1871
1871
|
var o, i, a;
|
|
1872
1872
|
switch (!0) {
|
|
1873
|
-
case
|
|
1873
|
+
case an(t):
|
|
1874
1874
|
return (o = t.details) == null ? void 0 : o.map((d, u) => {
|
|
1875
1875
|
var m;
|
|
1876
|
-
return /* @__PURE__ */
|
|
1876
|
+
return /* @__PURE__ */ r.jsx(un, { ...d, accordionConfig: n == null ? void 0 : n.htmlAccordion, classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.html }, u);
|
|
1877
1877
|
});
|
|
1878
|
-
case
|
|
1878
|
+
case ln(t):
|
|
1879
1879
|
return (i = t.details) == null ? void 0 : i.map((d, u) => {
|
|
1880
1880
|
var m;
|
|
1881
|
-
return /* @__PURE__ */
|
|
1882
|
-
|
|
1881
|
+
return /* @__PURE__ */ r.jsx(
|
|
1882
|
+
vn,
|
|
1883
1883
|
{
|
|
1884
|
-
accordionConfig:
|
|
1884
|
+
accordionConfig: n == null ? void 0 : n.documentAccordion,
|
|
1885
1885
|
...d,
|
|
1886
1886
|
classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.documents
|
|
1887
1887
|
},
|
|
1888
1888
|
u
|
|
1889
1889
|
);
|
|
1890
1890
|
});
|
|
1891
|
-
case
|
|
1891
|
+
case dn(t):
|
|
1892
1892
|
return (a = t.details) == null ? void 0 : a.map((d, u) => {
|
|
1893
1893
|
var m;
|
|
1894
|
-
return /* @__PURE__ */
|
|
1895
|
-
|
|
1894
|
+
return /* @__PURE__ */ r.jsx(
|
|
1895
|
+
jn,
|
|
1896
1896
|
{
|
|
1897
|
-
accordionConfig:
|
|
1897
|
+
accordionConfig: n == null ? void 0 : n.tableAccordion,
|
|
1898
1898
|
...d,
|
|
1899
1899
|
classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.table
|
|
1900
1900
|
},
|
|
@@ -1904,23 +1904,23 @@ const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resol
|
|
|
1904
1904
|
default:
|
|
1905
1905
|
return null;
|
|
1906
1906
|
}
|
|
1907
|
-
},
|
|
1907
|
+
}, Cn = ({ entity: t, classes: e, accordionsConfig: n }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Nn({ entity: t, classes: e, accordionsConfig: n }) }), lt = ({ headline: t, tabs: e, classes: n, accordionsConfig: o }) => {
|
|
1908
1908
|
var u, m;
|
|
1909
|
-
const [i, a] =
|
|
1910
|
-
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */
|
|
1911
|
-
/* @__PURE__ */
|
|
1912
|
-
/* @__PURE__ */
|
|
1913
|
-
/* @__PURE__ */
|
|
1909
|
+
const [i, a] = Q(0), d = ke(() => e == null ? void 0 : e.map((h) => h == null ? void 0 : h.tabName), [e]) ?? [];
|
|
1910
|
+
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: l(n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(E, { className: l(n == null ? void 0 : n.container), children: [
|
|
1911
|
+
/* @__PURE__ */ r.jsx(L, { className: l(n == null ? void 0 : n.headline), as: "h2", children: t }),
|
|
1912
|
+
/* @__PURE__ */ r.jsx("div", { className: l("mt-6 flex flex-col gap-2 desktop:mt-12", n == null ? void 0 : n.tabsWrapper), children: /* @__PURE__ */ r.jsx(on, { tabsNames: d, activeTab: i, setActiveTab: a, classes: n == null ? void 0 : n.tabs }) }),
|
|
1913
|
+
/* @__PURE__ */ r.jsx("div", { className: l("mt-6 flex flex-col gap-6", n == null ? void 0 : n.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ r.jsx(Cn, { accordionsConfig: o, ...h, classes: n == null ? void 0 : n.entityClasses }, p)) })
|
|
1914
1914
|
] }) });
|
|
1915
|
-
},
|
|
1915
|
+
}, Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1916
1916
|
__proto__: null,
|
|
1917
|
-
UsefulInfo:
|
|
1918
|
-
default:
|
|
1919
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1920
|
-
const i =
|
|
1921
|
-
return /* @__PURE__ */
|
|
1917
|
+
UsefulInfo: lt,
|
|
1918
|
+
default: lt
|
|
1919
|
+
}, Symbol.toStringTag, { value: "Module" })), He = ({ fields: t, control: e }) => t.map(({ type: n, args: o }) => {
|
|
1920
|
+
const i = jt[n];
|
|
1921
|
+
return /* @__PURE__ */ Fe(i, { ...o, key: o.name, control: e });
|
|
1922
1922
|
});
|
|
1923
|
-
class
|
|
1923
|
+
class _n {
|
|
1924
1924
|
constructor(e) {
|
|
1925
1925
|
de(this, "TEXT_NODE", 3);
|
|
1926
1926
|
de(this, "ELEMENT_NODE", 1);
|
|
@@ -1932,7 +1932,7 @@ class In {
|
|
|
1932
1932
|
* @param elements Массив для сбора элементов
|
|
1933
1933
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1934
1934
|
*/
|
|
1935
|
-
traverse(e,
|
|
1935
|
+
traverse(e, n = "string", o) {
|
|
1936
1936
|
const { includeSolidText: i, recursive: a, element: d } = this.options || {};
|
|
1937
1937
|
switch (e.nodeType) {
|
|
1938
1938
|
// если узел - элемент
|
|
@@ -1944,7 +1944,7 @@ class In {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
if (d && m !== d)
|
|
1946
1946
|
break;
|
|
1947
|
-
if (
|
|
1947
|
+
if (n === "node")
|
|
1948
1948
|
o.push(e);
|
|
1949
1949
|
else {
|
|
1950
1950
|
const h = u.outerHTML.trim();
|
|
@@ -1952,13 +1952,13 @@ class In {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
if (a)
|
|
1954
1954
|
for (const h of e.childNodes)
|
|
1955
|
-
this.traverse(h,
|
|
1955
|
+
this.traverse(h, n, o);
|
|
1956
1956
|
break;
|
|
1957
1957
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
1958
1958
|
case this.TEXT_NODE:
|
|
1959
1959
|
if (!i)
|
|
1960
1960
|
break;
|
|
1961
|
-
if (
|
|
1961
|
+
if (n === "node")
|
|
1962
1962
|
o.push(e);
|
|
1963
1963
|
else {
|
|
1964
1964
|
const h = e.textContent;
|
|
@@ -1973,13 +1973,13 @@ class In {
|
|
|
1973
1973
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1974
1974
|
* @returns Массив тегов или нод
|
|
1975
1975
|
*/
|
|
1976
|
-
async parse(e,
|
|
1977
|
-
const { includeBody: o } = this.options || {}, i = [], a = [], d = await this.parseFromString(e), u =
|
|
1976
|
+
async parse(e, n = "string") {
|
|
1977
|
+
const { includeBody: o } = this.options || {}, i = [], a = [], d = await this.parseFromString(e), u = n === "string" ? i : a;
|
|
1978
1978
|
if (o)
|
|
1979
|
-
this.traverse(d.body,
|
|
1979
|
+
this.traverse(d.body, n, u);
|
|
1980
1980
|
else
|
|
1981
1981
|
for (const m of d.body.childNodes)
|
|
1982
|
-
this.traverse(m,
|
|
1982
|
+
this.traverse(m, n, u);
|
|
1983
1983
|
return { stringNodes: i, nodes: a };
|
|
1984
1984
|
}
|
|
1985
1985
|
/**
|
|
@@ -1988,20 +1988,20 @@ class In {
|
|
|
1988
1988
|
* @returns Количество найденных тегов
|
|
1989
1989
|
*/
|
|
1990
1990
|
async countElements(e) {
|
|
1991
|
-
const { stringNodes:
|
|
1992
|
-
return
|
|
1991
|
+
const { stringNodes: n } = await this.parse(e, "string");
|
|
1992
|
+
return n.length;
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
|
-
const
|
|
1996
|
-
class
|
|
1995
|
+
const In = typeof window < "u";
|
|
1996
|
+
class Tn extends _n {
|
|
1997
1997
|
constructor(e) {
|
|
1998
1998
|
super(e);
|
|
1999
1999
|
}
|
|
2000
2000
|
async parseFromString(e) {
|
|
2001
|
-
return
|
|
2001
|
+
return In ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
|
|
2002
2002
|
}
|
|
2003
2003
|
}
|
|
2004
|
-
class
|
|
2004
|
+
class Te {
|
|
2005
2005
|
/**
|
|
2006
2006
|
* Функция для парсинга ноды в react элемент
|
|
2007
2007
|
*/
|
|
@@ -2009,8 +2009,8 @@ class Oe {
|
|
|
2009
2009
|
if (e.nodeType === this.TEXT_NODE)
|
|
2010
2010
|
return e.textContent ?? null;
|
|
2011
2011
|
if (e.nodeType === this.ELEMENT_NODE) {
|
|
2012
|
-
const
|
|
2013
|
-
for (const d of
|
|
2012
|
+
const n = e, o = n.tagName.toLowerCase(), i = {};
|
|
2013
|
+
for (const d of n.attributes) {
|
|
2014
2014
|
let u = d.name, m = d.value;
|
|
2015
2015
|
switch (d.name) {
|
|
2016
2016
|
case "class":
|
|
@@ -2033,7 +2033,7 @@ class Oe {
|
|
|
2033
2033
|
d.value.split(";").forEach((p) => {
|
|
2034
2034
|
const [c, f] = p.split(":");
|
|
2035
2035
|
if (c && f) {
|
|
2036
|
-
const b = c.trim().replace(/-([a-z])/g, (
|
|
2036
|
+
const b = c.trim().replace(/-([a-z])/g, (w, g) => g.toUpperCase());
|
|
2037
2037
|
h[b] = f.trim();
|
|
2038
2038
|
}
|
|
2039
2039
|
}), m = h;
|
|
@@ -2043,59 +2043,59 @@ class Oe {
|
|
|
2043
2043
|
}
|
|
2044
2044
|
i.key = Math.random().toString(36).substring(2, 9);
|
|
2045
2045
|
const a = [];
|
|
2046
|
-
for (const d of
|
|
2046
|
+
for (const d of n.childNodes) {
|
|
2047
2047
|
const u = this.parseNode(d);
|
|
2048
2048
|
u && a.push(u);
|
|
2049
2049
|
}
|
|
2050
|
-
return
|
|
2050
|
+
return Fe(o, i, ...a);
|
|
2051
2051
|
}
|
|
2052
2052
|
return null;
|
|
2053
2053
|
}
|
|
2054
2054
|
/**
|
|
2055
2055
|
* функция для преобразования html строки в react элементы
|
|
2056
2056
|
*/
|
|
2057
|
-
static async toReactNodes(e,
|
|
2058
|
-
const o = new
|
|
2057
|
+
static async toReactNodes(e, n) {
|
|
2058
|
+
const o = new Tn(n), { nodes: i } = await o.parse(e, "node");
|
|
2059
2059
|
return i.map((a) => this.parseNode(a));
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
|
-
de(
|
|
2063
|
-
const
|
|
2064
|
-
const [e,
|
|
2065
|
-
return
|
|
2062
|
+
de(Te, "TEXT_NODE", 3), de(Te, "ELEMENT_NODE", 1);
|
|
2063
|
+
const On = ({ promises: t }) => {
|
|
2064
|
+
const [e, n] = Q([]);
|
|
2065
|
+
return _e(() => {
|
|
2066
2066
|
(async () => {
|
|
2067
|
-
|
|
2067
|
+
n(await t);
|
|
2068
2068
|
})();
|
|
2069
|
-
}, [t]), /* @__PURE__ */
|
|
2070
|
-
}, ie = ({ html: t, options: e, as:
|
|
2071
|
-
const i =
|
|
2069
|
+
}, [t]), /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
|
|
2070
|
+
}, ie = ({ html: t, options: e, as: n, ...o }) => {
|
|
2071
|
+
const i = n ?? Yt, a = n ? o : {}, d = Te.toReactNodes(t, e);
|
|
2072
2072
|
return (
|
|
2073
2073
|
// @ts-expect-error disable warning
|
|
2074
|
-
/* @__PURE__ */
|
|
2074
|
+
/* @__PURE__ */ r.jsx(i, { ...a, children: /* @__PURE__ */ r.jsx(On, { promises: d }) })
|
|
2075
2075
|
);
|
|
2076
|
-
},
|
|
2077
|
-
name:
|
|
2078
|
-
...
|
|
2079
|
-
})) : null,
|
|
2076
|
+
}, Sn = (t, e) => t.enabled ? e.map((n) => ({
|
|
2077
|
+
name: n.args.name,
|
|
2078
|
+
...n.args.progress
|
|
2079
|
+
})) : null, En = ["getFioSchema"], Mt = (t, e, n) => {
|
|
2080
2080
|
const o = t[e];
|
|
2081
|
-
if (
|
|
2081
|
+
if (O.isNil(o))
|
|
2082
2082
|
throw new Error(`validation for type ${String(e)} not found`);
|
|
2083
|
-
if (!
|
|
2083
|
+
if (!O.isFunction(o))
|
|
2084
2084
|
throw new Error(`Cannot generate ${String(e)} because is not a function`);
|
|
2085
|
-
return o(
|
|
2086
|
-
},
|
|
2087
|
-
const
|
|
2088
|
-
const a =
|
|
2085
|
+
return o(n);
|
|
2086
|
+
}, Fn = (t, e) => Mt(kt.base, t, e), Bn = (t, e) => Mt(kt.dadata, t, e), ze = (t) => {
|
|
2087
|
+
const n = ((t == null ? void 0 : t.map((o) => ({ name: o.args.name, validation: o.args.validation }))) ?? []).reduce((o, i) => {
|
|
2088
|
+
const a = En.includes(i.validation.type) ? Bn(
|
|
2089
2089
|
i.validation.type,
|
|
2090
2090
|
i.validation.args
|
|
2091
|
-
) :
|
|
2091
|
+
) : Fn(
|
|
2092
2092
|
i.validation.type,
|
|
2093
2093
|
i.validation.args
|
|
2094
2094
|
);
|
|
2095
2095
|
return o[i.name] = a, o;
|
|
2096
2096
|
}, {});
|
|
2097
|
-
return
|
|
2098
|
-
},
|
|
2097
|
+
return wt(n);
|
|
2098
|
+
}, Pn = new hr(), _t = ({ children: t }) => /* @__PURE__ */ r.jsx(Wt, { client: Pn, children: t }), Dn = (t, e, n, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(ie, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ r.jsxs(
|
|
2099
2099
|
"label",
|
|
2100
2100
|
{
|
|
2101
2101
|
className: l(
|
|
@@ -2104,78 +2104,78 @@ const Sn = ({ promises: t }) => {
|
|
|
2104
2104
|
"flex items-center justify-items-start gap-x-3"
|
|
2105
2105
|
),
|
|
2106
2106
|
children: [
|
|
2107
|
-
/* @__PURE__ */
|
|
2108
|
-
/* @__PURE__ */
|
|
2107
|
+
/* @__PURE__ */ r.jsx(ye.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: n }),
|
|
2108
|
+
/* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2109
2109
|
]
|
|
2110
2110
|
}
|
|
2111
|
-
),
|
|
2111
|
+
), dt = ({
|
|
2112
2112
|
fields: t,
|
|
2113
2113
|
title: e,
|
|
2114
|
-
progress:
|
|
2114
|
+
progress: n,
|
|
2115
2115
|
approvement: o,
|
|
2116
2116
|
chips: i,
|
|
2117
2117
|
submitProps: a,
|
|
2118
2118
|
classes: d,
|
|
2119
2119
|
buttonGroup: u
|
|
2120
2120
|
}) => {
|
|
2121
|
-
var
|
|
2122
|
-
const { submitCallback: m } = a || {}, [h, p] =
|
|
2121
|
+
var q, C;
|
|
2122
|
+
const { submitCallback: m } = a || {}, [h, p] = Q(!1), c = ze(t), f = Re.getZodDefaults(c), { control: b, handleSubmit: w } = De({
|
|
2123
2123
|
schema: c,
|
|
2124
2124
|
defaultValues: f,
|
|
2125
2125
|
mode: "onBlur"
|
|
2126
|
-
}), g =
|
|
2127
|
-
m && m({ ...
|
|
2126
|
+
}), g = Sn(n, t), v = or({ control: b, fields: g || [], schema: c }), I = (_) => {
|
|
2127
|
+
m && m({ ..._, agree: h });
|
|
2128
2128
|
};
|
|
2129
|
-
return /* @__PURE__ */
|
|
2130
|
-
|
|
2129
|
+
return /* @__PURE__ */ r.jsx(_t, { children: /* @__PURE__ */ r.jsx("section", { id: j.form, "data-test-id": j.form, className: l("w-full", d == null ? void 0 : d.root), children: /* @__PURE__ */ r.jsxs(
|
|
2130
|
+
E,
|
|
2131
2131
|
{
|
|
2132
2132
|
className: l(
|
|
2133
2133
|
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2134
2134
|
"relative mx-auto flex flex-col gap-6 rounded-sm py-8 desktop:border"
|
|
2135
2135
|
),
|
|
2136
2136
|
children: [
|
|
2137
|
-
i.enabled && /* @__PURE__ */
|
|
2137
|
+
i.enabled && /* @__PURE__ */ r.jsxs(
|
|
2138
2138
|
"div",
|
|
2139
2139
|
{
|
|
2140
2140
|
className: l(
|
|
2141
2141
|
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
2142
2142
|
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
2143
2143
|
"right-4 top-4 w-max",
|
|
2144
|
-
(
|
|
2144
|
+
(q = d == null ? void 0 : d.chips) == null ? void 0 : q.root
|
|
2145
2145
|
),
|
|
2146
2146
|
children: [
|
|
2147
|
-
i.image && /* @__PURE__ */
|
|
2147
|
+
i.image && /* @__PURE__ */ r.jsx(s, { name: i.image, className: l("size-4", (C = d == null ? void 0 : d.chips) == null ? void 0 : C.icon) }),
|
|
2148
2148
|
i.content
|
|
2149
2149
|
]
|
|
2150
2150
|
}
|
|
2151
2151
|
),
|
|
2152
|
-
/* @__PURE__ */
|
|
2153
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ r.jsx(L, { as: "h3", className: d == null ? void 0 : d.title, children: e }),
|
|
2153
|
+
/* @__PURE__ */ r.jsxs(
|
|
2154
2154
|
"form",
|
|
2155
2155
|
{
|
|
2156
|
-
onSubmit:
|
|
2156
|
+
onSubmit: w(I),
|
|
2157
2157
|
className: l("flex w-full flex-col gap-y-6", "desktop:gap-y-8", d == null ? void 0 : d.form),
|
|
2158
2158
|
children: [
|
|
2159
|
-
|
|
2160
|
-
|
|
2159
|
+
n.enabled && /* @__PURE__ */ r.jsx(
|
|
2160
|
+
Ut,
|
|
2161
2161
|
{
|
|
2162
|
-
progress:
|
|
2163
|
-
topContent: /* @__PURE__ */
|
|
2164
|
-
bottomContent: /* @__PURE__ */
|
|
2165
|
-
maxPercent:
|
|
2162
|
+
progress: v,
|
|
2163
|
+
topContent: /* @__PURE__ */ r.jsx(ie, { html: n.title }),
|
|
2164
|
+
bottomContent: /* @__PURE__ */ r.jsx(ie, { html: n.subtitle }),
|
|
2165
|
+
maxPercent: n.maxPercent,
|
|
2166
2166
|
classes: d == null ? void 0 : d.progressBar
|
|
2167
2167
|
}
|
|
2168
2168
|
),
|
|
2169
|
-
/* @__PURE__ */
|
|
2170
|
-
/* @__PURE__ */
|
|
2171
|
-
|
|
2172
|
-
/* @__PURE__ */
|
|
2173
|
-
const V =
|
|
2174
|
-
return /* @__PURE__ */
|
|
2175
|
-
|
|
2169
|
+
/* @__PURE__ */ r.jsx(He, { control: b, fields: t }),
|
|
2170
|
+
/* @__PURE__ */ r.jsxs("div", { className: "mob-body-regular-m flex flex-col items-start justify-center gap-4", children: [
|
|
2171
|
+
Dn(o, h, p, d == null ? void 0 : d.approvement),
|
|
2172
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: u == null ? void 0 : u.map((_, D) => {
|
|
2173
|
+
const V = _.type === "submit" && o.type === "checkbox" ? !h : !1;
|
|
2174
|
+
return /* @__PURE__ */ Fe(
|
|
2175
|
+
ge,
|
|
2176
2176
|
{
|
|
2177
|
-
...
|
|
2178
|
-
key:
|
|
2177
|
+
..._,
|
|
2178
|
+
key: D,
|
|
2179
2179
|
disabled: V,
|
|
2180
2180
|
className: l(
|
|
2181
2181
|
"w-full whitespace-nowrap",
|
|
@@ -2194,11 +2194,11 @@ const Sn = ({ promises: t }) => {
|
|
|
2194
2194
|
]
|
|
2195
2195
|
}
|
|
2196
2196
|
) }) });
|
|
2197
|
-
},
|
|
2197
|
+
}, Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2198
2198
|
__proto__: null,
|
|
2199
|
-
DynamicForm:
|
|
2200
|
-
default:
|
|
2201
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2199
|
+
DynamicForm: dt,
|
|
2200
|
+
default: dt
|
|
2201
|
+
}, Symbol.toStringTag, { value: "Module" })), Hn = (t, e, n, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(ie, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ r.jsxs(
|
|
2202
2202
|
"label",
|
|
2203
2203
|
{
|
|
2204
2204
|
className: l(
|
|
@@ -2207,45 +2207,45 @@ const Sn = ({ promises: t }) => {
|
|
|
2207
2207
|
"flex items-center justify-items-start gap-x-3"
|
|
2208
2208
|
),
|
|
2209
2209
|
children: [
|
|
2210
|
-
/* @__PURE__ */
|
|
2211
|
-
/* @__PURE__ */
|
|
2210
|
+
/* @__PURE__ */ r.jsx(ye.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: n }),
|
|
2211
|
+
/* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2212
2212
|
]
|
|
2213
2213
|
}
|
|
2214
|
-
),
|
|
2214
|
+
), ut = ({
|
|
2215
2215
|
fields: t,
|
|
2216
2216
|
title: e,
|
|
2217
|
-
approvement:
|
|
2217
|
+
approvement: n,
|
|
2218
2218
|
submitProps: o,
|
|
2219
2219
|
dialogId: i,
|
|
2220
2220
|
classes: a,
|
|
2221
2221
|
...d
|
|
2222
2222
|
}) => {
|
|
2223
|
-
const { submitCallback: u, children: m, ...h } = o ?? {}, [p, c] =
|
|
2223
|
+
const { submitCallback: u, children: m, ...h } = o ?? {}, [p, c] = Q(!1), f = ze(t), b = Re.getZodDefaults(f), { control: w, handleSubmit: g } = De({
|
|
2224
2224
|
schema: f,
|
|
2225
2225
|
defaultValues: b,
|
|
2226
2226
|
mode: "onBlur"
|
|
2227
|
-
}),
|
|
2228
|
-
u && u({ ...
|
|
2227
|
+
}), v = (I) => {
|
|
2228
|
+
u && u({ ...I, agree: p });
|
|
2229
2229
|
};
|
|
2230
|
-
return /* @__PURE__ */
|
|
2231
|
-
/* @__PURE__ */
|
|
2232
|
-
|
|
2233
|
-
/* @__PURE__ */
|
|
2230
|
+
return /* @__PURE__ */ r.jsx(_t, { children: /* @__PURE__ */ r.jsx(Kt, { id: i, title: e, ...d, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: g(v), className: "flex flex-col gap-6", children: [
|
|
2231
|
+
/* @__PURE__ */ r.jsx(He, { control: w, fields: t }),
|
|
2232
|
+
Hn(n, p, c, a == null ? void 0 : a.approvement),
|
|
2233
|
+
/* @__PURE__ */ r.jsx(ge, { ...h, type: "submit", disabled: n.type === "checkbox" ? !p : !1, className: "w-full", children: m ?? "Отправить форму" })
|
|
2234
2234
|
] }) }) });
|
|
2235
|
-
},
|
|
2235
|
+
}, zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2236
2236
|
__proto__: null,
|
|
2237
|
-
DynamicFormDialog:
|
|
2238
|
-
default:
|
|
2237
|
+
DynamicFormDialog: ut,
|
|
2238
|
+
default: ut
|
|
2239
2239
|
}, Symbol.toStringTag, { value: "Module" })), ue = () => ({
|
|
2240
2240
|
approve: {
|
|
2241
2241
|
icon: {
|
|
2242
|
-
element: /* @__PURE__ */
|
|
2242
|
+
element: /* @__PURE__ */ r.jsx(s, { name: "status/iconMark" }),
|
|
2243
2243
|
bg: "bg-color-positive-light"
|
|
2244
2244
|
},
|
|
2245
2245
|
title: "Ваша заявка отправлена",
|
|
2246
|
-
description: /* @__PURE__ */
|
|
2246
|
+
description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2247
2247
|
"В ближайшее время с Вами свяжутся ",
|
|
2248
|
-
/* @__PURE__ */
|
|
2248
|
+
/* @__PURE__ */ r.jsx("br", {}),
|
|
2249
2249
|
" специалисты нашего Банка"
|
|
2250
2250
|
] }),
|
|
2251
2251
|
button: {
|
|
@@ -2254,13 +2254,13 @@ const Sn = ({ promises: t }) => {
|
|
|
2254
2254
|
},
|
|
2255
2255
|
repeated: {
|
|
2256
2256
|
icon: {
|
|
2257
|
-
element: /* @__PURE__ */
|
|
2257
|
+
element: /* @__PURE__ */ r.jsx(s, { name: "status/iconUser" }),
|
|
2258
2258
|
bg: "bg-color-positive-light"
|
|
2259
2259
|
},
|
|
2260
2260
|
title: "Мы вас узнали",
|
|
2261
|
-
description: /* @__PURE__ */
|
|
2261
|
+
description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2262
2262
|
"Решение по прошлой заявке ещё активно. ",
|
|
2263
|
-
/* @__PURE__ */
|
|
2263
|
+
/* @__PURE__ */ r.jsx("br", {}),
|
|
2264
2264
|
"Возвращайтесь к нам позже"
|
|
2265
2265
|
] }),
|
|
2266
2266
|
button: {
|
|
@@ -2269,13 +2269,13 @@ const Sn = ({ promises: t }) => {
|
|
|
2269
2269
|
},
|
|
2270
2270
|
error: {
|
|
2271
2271
|
icon: {
|
|
2272
|
-
element: /* @__PURE__ */
|
|
2272
|
+
element: /* @__PURE__ */ r.jsx(s, { name: "status/iconRetry" }),
|
|
2273
2273
|
bg: "bg-color-warning-light"
|
|
2274
2274
|
},
|
|
2275
2275
|
title: "Что-то пошло не так",
|
|
2276
|
-
description: /* @__PURE__ */
|
|
2276
|
+
description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2277
2277
|
"Обновите страницу или попробуйте ",
|
|
2278
|
-
/* @__PURE__ */
|
|
2278
|
+
/* @__PURE__ */ r.jsx("br", {}),
|
|
2279
2279
|
" снова через 5 минут"
|
|
2280
2280
|
] }),
|
|
2281
2281
|
button: {
|
|
@@ -2284,21 +2284,21 @@ const Sn = ({ promises: t }) => {
|
|
|
2284
2284
|
},
|
|
2285
2285
|
reject: {
|
|
2286
2286
|
icon: {
|
|
2287
|
-
element: /* @__PURE__ */
|
|
2287
|
+
element: /* @__PURE__ */ r.jsx(s, { name: "status/badSmile" }),
|
|
2288
2288
|
bg: "bg-color-negative-light"
|
|
2289
2289
|
},
|
|
2290
2290
|
title: "Нам очень жаль",
|
|
2291
|
-
description: /* @__PURE__ */
|
|
2291
|
+
description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2292
2292
|
"К сожалению, сейчас мы не можем ",
|
|
2293
|
-
/* @__PURE__ */
|
|
2293
|
+
/* @__PURE__ */ r.jsx("br", {}),
|
|
2294
2294
|
" принять вашу заявку"
|
|
2295
2295
|
] }),
|
|
2296
2296
|
button: {
|
|
2297
2297
|
text: "Вернуться на главную"
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
|
-
}),
|
|
2301
|
-
/* @__PURE__ */
|
|
2300
|
+
}), Do = ({ status: t, navigationFn: e }) => /* @__PURE__ */ r.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ r.jsx(E, { className: "flex flex-col justify-center", children: /* @__PURE__ */ r.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
|
|
2301
|
+
/* @__PURE__ */ r.jsx(
|
|
2302
2302
|
"span",
|
|
2303
2303
|
{
|
|
2304
2304
|
className: l(
|
|
@@ -2308,85 +2308,66 @@ const Sn = ({ promises: t }) => {
|
|
|
2308
2308
|
children: ue()[t].icon.element
|
|
2309
2309
|
}
|
|
2310
2310
|
),
|
|
2311
|
-
/* @__PURE__ */
|
|
2312
|
-
/* @__PURE__ */
|
|
2313
|
-
/* @__PURE__ */
|
|
2311
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
|
|
2312
|
+
/* @__PURE__ */ r.jsx(L, { as: "h2", children: ue()[t].title }),
|
|
2313
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: ue()[t].description })
|
|
2314
2314
|
] }),
|
|
2315
|
-
/* @__PURE__ */
|
|
2316
|
-
] }) }) }),
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
};
|
|
2331
|
-
m.push(p);
|
|
2332
|
-
}
|
|
2333
|
-
u.forEach((p, c) => {
|
|
2334
|
-
h += `/${p}`;
|
|
2335
|
-
const f = {
|
|
2336
|
-
// while root enabled we need to increment index
|
|
2337
|
-
// cuz we have root breadcrumb
|
|
2338
|
-
index: i ? c + 1 : c,
|
|
2339
|
-
id: Ke(),
|
|
2340
|
-
path: h,
|
|
2341
|
-
label: p
|
|
2342
|
-
};
|
|
2343
|
-
m.push(f);
|
|
2344
|
-
}), r && (m = m.map((p) => ({
|
|
2345
|
-
...p,
|
|
2346
|
-
...r(p)
|
|
2347
|
-
}))), d(o ? m.filter(o) : m);
|
|
2348
|
-
}, [e, o, r, i, t]), a;
|
|
2349
|
-
}, se = (t, e, r, o) => t.map((i, a) => {
|
|
2315
|
+
/* @__PURE__ */ r.jsx(ge, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: ue()[t].button.text })
|
|
2316
|
+
] }) }) }), It = ({ breadcrumb: t, className: e, ...n }) => /* @__PURE__ */ r.jsx("a", { href: t.path, className: l("desk-body-regular-m", e), ...n, children: t.label }), Ln = [
|
|
2317
|
+
{
|
|
2318
|
+
label: "Главная",
|
|
2319
|
+
path: "https://sovcombank.ru/apply/credit/kredit-na-kartu/"
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
label: "Накопительный счет ",
|
|
2323
|
+
path: "https://sovcombank.ru/apply/nakopitelnye-scheta/"
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
label: "В Тольятти",
|
|
2327
|
+
disabled: !0
|
|
2328
|
+
}
|
|
2329
|
+
], se = (t, e, n, o) => t.map((i, a) => {
|
|
2350
2330
|
const d = a === o;
|
|
2351
|
-
return /* @__PURE__ */
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
|
|
2331
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2332
|
+
/* @__PURE__ */ r.jsx(
|
|
2333
|
+
It,
|
|
2354
2334
|
{
|
|
2355
2335
|
breadcrumb: i,
|
|
2356
|
-
className: l(
|
|
2357
|
-
"pointer-events-none text-color-primary-disabled": d
|
|
2336
|
+
className: l(n, {
|
|
2337
|
+
"pointer-events-none text-color-primary-disabled": d,
|
|
2338
|
+
"text-color-blue-grey-600": i.disabled
|
|
2358
2339
|
})
|
|
2359
2340
|
}
|
|
2360
2341
|
),
|
|
2361
2342
|
a !== t.length - 1 && e
|
|
2362
|
-
] }, i.
|
|
2363
|
-
}),
|
|
2364
|
-
const [i, a] =
|
|
2365
|
-
|
|
2366
|
-
const
|
|
2367
|
-
let
|
|
2368
|
-
return e && (
|
|
2369
|
-
}, [
|
|
2370
|
-
return /* @__PURE__ */
|
|
2343
|
+
] }, i.label);
|
|
2344
|
+
}), Qn = ({ separator: t, ellipsis: e, classes: n, breadcrumbs: o = Ln }) => {
|
|
2345
|
+
const [i, a] = Q(!1), d = Be(null);
|
|
2346
|
+
rr(d, () => a(!1));
|
|
2347
|
+
const { first: u, middle: m, last: h } = ke(() => {
|
|
2348
|
+
let c = [], f = [], b = [];
|
|
2349
|
+
return e && (c = o.slice(0, e), f = o.slice(e, o.length - e), b = o.slice(o.length - e)), { first: c, middle: f, last: b };
|
|
2350
|
+
}, [o, e]), p = t ?? /* @__PURE__ */ r.jsx(s, { name: "arrows/arrowRight", className: l("size-4", n == null ? void 0 : n.separator) });
|
|
2351
|
+
return /* @__PURE__ */ r.jsx(
|
|
2371
2352
|
"div",
|
|
2372
2353
|
{
|
|
2373
2354
|
className: l(
|
|
2374
2355
|
"flex max-w-[840px] flex-wrap items-center",
|
|
2375
2356
|
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
2376
|
-
|
|
2357
|
+
n == null ? void 0 : n.root
|
|
2377
2358
|
),
|
|
2378
2359
|
children: e ? (
|
|
2379
2360
|
// if ellipsis provided, render hidden breadcrumbs
|
|
2380
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ r.jsx(r.Fragment, { children: o.length > e * 2 + 1 ? (
|
|
2381
2362
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2382
2363
|
// render hidden breadcrumbs
|
|
2383
|
-
/* @__PURE__ */
|
|
2384
|
-
se(
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
/* @__PURE__ */
|
|
2388
|
-
/* @__PURE__ */
|
|
2389
|
-
/* @__PURE__ */
|
|
2364
|
+
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2365
|
+
se(u, p, n == null ? void 0 : n.breadcrumb),
|
|
2366
|
+
p,
|
|
2367
|
+
m.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2368
|
+
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
2369
|
+
/* @__PURE__ */ r.jsx("button", { onClick: () => a(!0), children: "..." }),
|
|
2370
|
+
/* @__PURE__ */ r.jsx(
|
|
2390
2371
|
"ul",
|
|
2391
2372
|
{
|
|
2392
2373
|
ref: d,
|
|
@@ -2398,38 +2379,38 @@ const Sn = ({ promises: t }) => {
|
|
|
2398
2379
|
"visible opacity-100": i
|
|
2399
2380
|
}
|
|
2400
2381
|
),
|
|
2401
|
-
children:
|
|
2402
|
-
|
|
2382
|
+
children: m.map((c) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
2383
|
+
It,
|
|
2403
2384
|
{
|
|
2404
|
-
breadcrumb:
|
|
2385
|
+
breadcrumb: c,
|
|
2405
2386
|
className: l(
|
|
2406
2387
|
"desk-body-regular-l inline-block py-3",
|
|
2407
2388
|
"w-full rounded-sm bg-color-white px-2",
|
|
2408
2389
|
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
2409
|
-
|
|
2390
|
+
n == null ? void 0 : n.breadcrumb
|
|
2410
2391
|
)
|
|
2411
2392
|
}
|
|
2412
|
-
) },
|
|
2393
|
+
) }, c.label))
|
|
2413
2394
|
}
|
|
2414
2395
|
)
|
|
2415
2396
|
] }),
|
|
2416
|
-
|
|
2397
|
+
p
|
|
2417
2398
|
] }),
|
|
2418
|
-
se(
|
|
2399
|
+
se(h, p, n == null ? void 0 : n.breadcrumb, h.length - 1)
|
|
2419
2400
|
] })
|
|
2420
2401
|
) : (
|
|
2421
2402
|
// otherwise render all breadcrumbs
|
|
2422
|
-
se(
|
|
2403
|
+
se(o, p, n == null ? void 0 : n.breadcrumb, o.length - 1)
|
|
2423
2404
|
) })
|
|
2424
2405
|
) : (
|
|
2425
2406
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2426
|
-
se(
|
|
2407
|
+
se(o, p, n == null ? void 0 : n.breadcrumb, o.length - 1)
|
|
2427
2408
|
)
|
|
2428
2409
|
}
|
|
2429
2410
|
);
|
|
2430
2411
|
};
|
|
2431
2412
|
var he = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(he || {});
|
|
2432
|
-
const
|
|
2413
|
+
const Vn = (t, e) => {
|
|
2433
2414
|
switch (e.type) {
|
|
2434
2415
|
case he.ROOT:
|
|
2435
2416
|
return {
|
|
@@ -2444,45 +2425,45 @@ const $n = (t, e) => {
|
|
|
2444
2425
|
default:
|
|
2445
2426
|
return t;
|
|
2446
2427
|
}
|
|
2447
|
-
},
|
|
2448
|
-
const [e,
|
|
2449
|
-
return [e,
|
|
2450
|
-
},
|
|
2428
|
+
}, $n = (t) => {
|
|
2429
|
+
const [e, n] = Jt(Vn, t);
|
|
2430
|
+
return [e, n];
|
|
2431
|
+
}, An = (t) => ({
|
|
2451
2432
|
type: he.CURRENT,
|
|
2452
2433
|
payload: t
|
|
2453
2434
|
}), qn = (t) => ({
|
|
2454
2435
|
type: he.ROOT,
|
|
2455
2436
|
payload: t
|
|
2456
2437
|
}), Wn = ({ categories: t, ...e }) => {
|
|
2457
|
-
var
|
|
2458
|
-
return
|
|
2459
|
-
/* @__PURE__ */
|
|
2460
|
-
|
|
2438
|
+
var n, o;
|
|
2439
|
+
return vt(
|
|
2440
|
+
/* @__PURE__ */ r.jsx(
|
|
2441
|
+
Ee.div,
|
|
2461
2442
|
{
|
|
2462
2443
|
...e,
|
|
2463
2444
|
layout: !0,
|
|
2464
2445
|
initial: { opacity: 0 },
|
|
2465
2446
|
animate: { opacity: 1 },
|
|
2466
2447
|
transition: { duration: 0.2 },
|
|
2467
|
-
className: "absolute bg-color-white",
|
|
2468
|
-
children: /* @__PURE__ */
|
|
2448
|
+
className: "absolute w-full bg-color-white",
|
|
2449
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "mx-auto flex w-full max-w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
|
|
2469
2450
|
var d;
|
|
2470
2451
|
const a = i.link ? "a" : "p";
|
|
2471
|
-
return /* @__PURE__ */
|
|
2472
|
-
i.title && /* @__PURE__ */
|
|
2452
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
2453
|
+
i.title && /* @__PURE__ */ r.jsxs(
|
|
2473
2454
|
a,
|
|
2474
2455
|
{
|
|
2475
2456
|
href: ((d = i.link) == null ? void 0 : d.href) ?? void 0,
|
|
2476
2457
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
2477
2458
|
children: [
|
|
2478
2459
|
i.title,
|
|
2479
|
-
/* @__PURE__ */
|
|
2460
|
+
/* @__PURE__ */ r.jsx(s, { name: "arrows/arrowLink", className: "size-6" })
|
|
2480
2461
|
]
|
|
2481
2462
|
}
|
|
2482
2463
|
),
|
|
2483
|
-
/* @__PURE__ */
|
|
2464
|
+
/* @__PURE__ */ r.jsx("ul", { className: "w-[328px]", children: i.children.map((u) => {
|
|
2484
2465
|
var m;
|
|
2485
|
-
return /* @__PURE__ */
|
|
2466
|
+
return /* @__PURE__ */ r.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ r.jsx("a", { href: (m = u.link) == null ? void 0 : m.href, className: "w-full text-16", children: u.title }) }, u.title);
|
|
2486
2467
|
}) })
|
|
2487
2468
|
] }, i.title);
|
|
2488
2469
|
}) })
|
|
@@ -2491,13 +2472,13 @@ const $n = (t, e) => {
|
|
|
2491
2472
|
/**
|
|
2492
2473
|
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2493
2474
|
*/
|
|
2494
|
-
((o = (
|
|
2475
|
+
((o = (n = document.body.querySelector("#modal-preview")) == null ? void 0 : n.contentDocument) == null ? void 0 : o.body) ?? document.body
|
|
2495
2476
|
);
|
|
2496
|
-
},
|
|
2477
|
+
}, Un = Gt(({ category: t, active: e, onActiveTabChange: n }, o) => {
|
|
2497
2478
|
var m, h;
|
|
2498
|
-
const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), d = e && !
|
|
2499
|
-
return /* @__PURE__ */
|
|
2500
|
-
|
|
2479
|
+
const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), d = e && !O.isArrayEmpty(t.children), u = O.isArrayEmpty(t.children) ? "a" : "span";
|
|
2480
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2481
|
+
Ee.div,
|
|
2501
2482
|
{
|
|
2502
2483
|
ref: o,
|
|
2503
2484
|
className: l(
|
|
@@ -2509,38 +2490,36 @@ const $n = (t, e) => {
|
|
|
2509
2490
|
"after:w-full": d
|
|
2510
2491
|
}
|
|
2511
2492
|
),
|
|
2512
|
-
onMouseEnter: () =>
|
|
2513
|
-
onMouseLeave: () =>
|
|
2514
|
-
onFocus: () =>
|
|
2493
|
+
onMouseEnter: () => n(t.title),
|
|
2494
|
+
onMouseLeave: () => n(null),
|
|
2495
|
+
onFocus: () => n(t.title),
|
|
2515
2496
|
children: [
|
|
2516
|
-
/* @__PURE__ */
|
|
2517
|
-
d && /* @__PURE__ */
|
|
2497
|
+
/* @__PURE__ */ r.jsx(u, { href: u === "a" ? (h = t.link) == null ? void 0 : h.href : void 0, className: "desk-body-regular-m outline-none", children: t.title }),
|
|
2498
|
+
d && /* @__PURE__ */ r.jsx(
|
|
2518
2499
|
Wn,
|
|
2519
2500
|
{
|
|
2520
2501
|
categories: t.children,
|
|
2521
2502
|
style: {
|
|
2522
|
-
top: a ? a.top + a.height : 0
|
|
2523
|
-
left: a ? a.left : 0,
|
|
2524
|
-
width: window.innerWidth
|
|
2503
|
+
top: a ? a.top + a.height : 0
|
|
2525
2504
|
}
|
|
2526
2505
|
}
|
|
2527
2506
|
)
|
|
2528
2507
|
]
|
|
2529
2508
|
}
|
|
2530
2509
|
);
|
|
2531
|
-
}),
|
|
2532
|
-
const [e,
|
|
2533
|
-
|
|
2534
|
-
}, []), i =
|
|
2535
|
-
return /* @__PURE__ */
|
|
2510
|
+
}), Kn = Pe(Un), Zn = ({ categories: t }) => {
|
|
2511
|
+
const [e, n] = Q(null), o = yt((a) => {
|
|
2512
|
+
n(a);
|
|
2513
|
+
}, []), i = Be(null);
|
|
2514
|
+
return /* @__PURE__ */ r.jsx(Zt, { mode: "sync", children: /* @__PURE__ */ r.jsxs(
|
|
2536
2515
|
"div",
|
|
2537
2516
|
{
|
|
2538
2517
|
ref: i,
|
|
2539
2518
|
id: "tabs",
|
|
2540
2519
|
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2541
2520
|
children: [
|
|
2542
|
-
t.map((a) => /* @__PURE__ */
|
|
2543
|
-
|
|
2521
|
+
t.map((a) => /* @__PURE__ */ r.jsx(
|
|
2522
|
+
Kn,
|
|
2544
2523
|
{
|
|
2545
2524
|
ref: i,
|
|
2546
2525
|
category: a,
|
|
@@ -2549,30 +2528,30 @@ const $n = (t, e) => {
|
|
|
2549
2528
|
},
|
|
2550
2529
|
a.title
|
|
2551
2530
|
)),
|
|
2552
|
-
/* @__PURE__ */
|
|
2531
|
+
/* @__PURE__ */ r.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
2553
2532
|
]
|
|
2554
2533
|
}
|
|
2555
2534
|
) });
|
|
2556
|
-
},
|
|
2535
|
+
}, Xn = Pe(Zn), Yn = ({
|
|
2557
2536
|
category: t,
|
|
2558
2537
|
selectedCategory: e,
|
|
2559
|
-
onCurrentCategoryChange:
|
|
2538
|
+
onCurrentCategoryChange: n,
|
|
2560
2539
|
onRootCategoryChange: o,
|
|
2561
2540
|
active: i,
|
|
2562
2541
|
...a
|
|
2563
|
-
}) => /* @__PURE__ */
|
|
2542
|
+
}) => /* @__PURE__ */ r.jsxs(
|
|
2564
2543
|
"div",
|
|
2565
2544
|
{
|
|
2566
2545
|
...a,
|
|
2567
2546
|
onClick: () => {
|
|
2568
|
-
|
|
2547
|
+
n(t.children[0]), o(t);
|
|
2569
2548
|
},
|
|
2570
2549
|
className: l("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2571
2550
|
"text-color-dark": i
|
|
2572
2551
|
}),
|
|
2573
2552
|
children: [
|
|
2574
|
-
/* @__PURE__ */
|
|
2575
|
-
t.children.length > 1 && /* @__PURE__ */
|
|
2553
|
+
/* @__PURE__ */ r.jsx("span", { className: "desk-body-regular-m", children: t.title }),
|
|
2554
|
+
t.children.length > 1 && /* @__PURE__ */ r.jsx(
|
|
2576
2555
|
"div",
|
|
2577
2556
|
{
|
|
2578
2557
|
className: l(
|
|
@@ -2580,11 +2559,11 @@ const $n = (t, e) => {
|
|
|
2580
2559
|
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
2581
2560
|
"rounded-sm p-1"
|
|
2582
2561
|
),
|
|
2583
|
-
children: t.children.map((d) => /* @__PURE__ */
|
|
2562
|
+
children: t.children.map((d) => /* @__PURE__ */ r.jsx(
|
|
2584
2563
|
"span",
|
|
2585
2564
|
{
|
|
2586
2565
|
onClick: (u) => {
|
|
2587
|
-
u.stopPropagation(), u.nativeEvent.stopPropagation(), o(t),
|
|
2566
|
+
u.stopPropagation(), u.nativeEvent.stopPropagation(), o(t), n(d);
|
|
2588
2567
|
},
|
|
2589
2568
|
className: l(
|
|
2590
2569
|
"desk-body-regular-l rounded-sm px-3 py-3.5 text-color-dark duration-100 hover:bg-color-primary-tr-hover hover:text-color-dark",
|
|
@@ -2600,55 +2579,55 @@ const $n = (t, e) => {
|
|
|
2600
2579
|
)
|
|
2601
2580
|
]
|
|
2602
2581
|
}
|
|
2603
|
-
),
|
|
2604
|
-
const [o, i] =
|
|
2605
|
-
return /* @__PURE__ */
|
|
2606
|
-
/* @__PURE__ */
|
|
2607
|
-
/* @__PURE__ */
|
|
2582
|
+
), Jn = ({ categories: t, helpers: e, phone: n }) => {
|
|
2583
|
+
const [o, i] = $n({ root: t[0].children[0], current: t[0].children[0] });
|
|
2584
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "mobile:hidden", children: [
|
|
2585
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2586
|
+
/* @__PURE__ */ r.jsx(s, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2608
2587
|
t.map((a) => {
|
|
2609
2588
|
const d = o.root.title === a.title;
|
|
2610
|
-
return /* @__PURE__ */
|
|
2611
|
-
|
|
2589
|
+
return /* @__PURE__ */ r.jsx(
|
|
2590
|
+
Yn,
|
|
2612
2591
|
{
|
|
2613
2592
|
category: a,
|
|
2614
2593
|
selectedCategory: o.current,
|
|
2615
|
-
onCurrentCategoryChange: (u) => i(
|
|
2594
|
+
onCurrentCategoryChange: (u) => i(An(u)),
|
|
2616
2595
|
onRootCategoryChange: (u) => i(qn(u)),
|
|
2617
2596
|
active: d
|
|
2618
2597
|
},
|
|
2619
2598
|
a.title
|
|
2620
2599
|
);
|
|
2621
2600
|
}),
|
|
2622
|
-
/* @__PURE__ */
|
|
2623
|
-
e.map((a) => /* @__PURE__ */
|
|
2601
|
+
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2602
|
+
e.map((a) => /* @__PURE__ */ r.jsxs(
|
|
2624
2603
|
"a",
|
|
2625
2604
|
{
|
|
2626
2605
|
href: a.link.href,
|
|
2627
2606
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2628
2607
|
children: [
|
|
2629
|
-
a.link.icon && /* @__PURE__ */
|
|
2608
|
+
a.link.icon && /* @__PURE__ */ r.jsx(s, { name: a.link.icon, className: "size-4" }),
|
|
2630
2609
|
a.title
|
|
2631
2610
|
]
|
|
2632
2611
|
},
|
|
2633
2612
|
a.title
|
|
2634
2613
|
)),
|
|
2635
|
-
/* @__PURE__ */
|
|
2636
|
-
/* @__PURE__ */
|
|
2614
|
+
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2615
|
+
/* @__PURE__ */ r.jsx(
|
|
2637
2616
|
"a",
|
|
2638
2617
|
{
|
|
2639
|
-
href: `tel:${
|
|
2618
|
+
href: `tel:${n}`,
|
|
2640
2619
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2641
|
-
children:
|
|
2620
|
+
children: we(n, "x xxx xxx xx xx")
|
|
2642
2621
|
}
|
|
2643
2622
|
)
|
|
2644
2623
|
] }),
|
|
2645
|
-
/* @__PURE__ */
|
|
2624
|
+
/* @__PURE__ */ r.jsx(Xn, { categories: o.current.children })
|
|
2646
2625
|
] });
|
|
2647
|
-
},
|
|
2626
|
+
}, Gn = ({ category: t }) => /* @__PURE__ */ r.jsx(
|
|
2648
2627
|
ae,
|
|
2649
2628
|
{
|
|
2650
2629
|
label: t.title ?? "",
|
|
2651
|
-
icon: /* @__PURE__ */
|
|
2630
|
+
icon: /* @__PURE__ */ r.jsx(s, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
2652
2631
|
classes: {
|
|
2653
2632
|
root: "w-full",
|
|
2654
2633
|
header: {
|
|
@@ -2662,41 +2641,41 @@ const $n = (t, e) => {
|
|
|
2662
2641
|
"after:h-[1px] after:bg-color-blue-grey-200"
|
|
2663
2642
|
)
|
|
2664
2643
|
},
|
|
2665
|
-
children: /* @__PURE__ */
|
|
2644
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: t.children.map((e) => {
|
|
2666
2645
|
var i;
|
|
2667
|
-
const
|
|
2668
|
-
return /* @__PURE__ */
|
|
2669
|
-
/* @__PURE__ */
|
|
2646
|
+
const n = !!e.link, o = n ? "a" : "p";
|
|
2647
|
+
return /* @__PURE__ */ r.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2648
|
+
/* @__PURE__ */ r.jsxs(
|
|
2670
2649
|
o,
|
|
2671
2650
|
{
|
|
2672
|
-
href:
|
|
2651
|
+
href: n ? (i = e.link) == null ? void 0 : i.href : void 0,
|
|
2673
2652
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2674
2653
|
children: [
|
|
2675
2654
|
e.title,
|
|
2676
|
-
/* @__PURE__ */
|
|
2655
|
+
/* @__PURE__ */ r.jsx(s, { name: "arrows/arrowLink" })
|
|
2677
2656
|
]
|
|
2678
2657
|
}
|
|
2679
2658
|
),
|
|
2680
2659
|
e.children.map((a) => {
|
|
2681
2660
|
var d;
|
|
2682
|
-
return /* @__PURE__ */
|
|
2661
|
+
return /* @__PURE__ */ r.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ r.jsx("a", { href: (d = a.link) == null ? void 0 : d.href, className: "w-full", children: a.title }) }, a.title);
|
|
2683
2662
|
})
|
|
2684
2663
|
] }, e.title);
|
|
2685
2664
|
}) })
|
|
2686
2665
|
},
|
|
2687
2666
|
t.title
|
|
2688
|
-
),
|
|
2667
|
+
), eo = (t) => t.map((e) => ({
|
|
2689
2668
|
value: e.title ?? "",
|
|
2690
2669
|
label: e.title ?? ""
|
|
2691
|
-
})),
|
|
2692
|
-
const i =
|
|
2693
|
-
|
|
2694
|
-
}, m =
|
|
2670
|
+
})), to = ({ categories: t, helpers: e, phone: n, ...o }) => {
|
|
2671
|
+
const i = eo(t), [a, d] = Q(i[0]), u = (h) => {
|
|
2672
|
+
O.isUndefined(h) || O.isArray(h) || d(h);
|
|
2673
|
+
}, m = ke(() => {
|
|
2695
2674
|
var h;
|
|
2696
|
-
return
|
|
2675
|
+
return O.isUndefined(a) || O.isArray(a) ? [] : ((h = t.find((p) => p.title === a.value)) == null ? void 0 : h.children) ?? [];
|
|
2697
2676
|
}, [a, t]);
|
|
2698
|
-
return /* @__PURE__ */
|
|
2699
|
-
|
|
2677
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2678
|
+
Ee.div,
|
|
2700
2679
|
{
|
|
2701
2680
|
...o,
|
|
2702
2681
|
className: l(
|
|
@@ -2708,68 +2687,77 @@ const $n = (t, e) => {
|
|
|
2708
2687
|
initial: { opacity: 0 },
|
|
2709
2688
|
animate: { opacity: 1 },
|
|
2710
2689
|
children: [
|
|
2711
|
-
/* @__PURE__ */
|
|
2712
|
-
/* @__PURE__ */
|
|
2690
|
+
/* @__PURE__ */ r.jsx(ye.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
|
|
2691
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((h) => {
|
|
2713
2692
|
var p;
|
|
2714
|
-
return
|
|
2693
|
+
return O.isArrayEmpty(h.children) ? /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsx("a", { href: (p = h.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: h.title }) }, h.title) : /* @__PURE__ */ r.jsx(Gn, { category: h }, h.title);
|
|
2715
2694
|
}) }),
|
|
2716
|
-
/* @__PURE__ */
|
|
2717
|
-
/* @__PURE__ */
|
|
2695
|
+
/* @__PURE__ */ r.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2696
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2718
2697
|
e.map((h) => {
|
|
2719
2698
|
var p, c;
|
|
2720
|
-
return /* @__PURE__ */
|
|
2721
|
-
((c = h.link) == null ? void 0 : c.icon) && /* @__PURE__ */
|
|
2699
|
+
return /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: (p = h.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2700
|
+
((c = h.link) == null ? void 0 : c.icon) && /* @__PURE__ */ r.jsx(s, { name: h.link.icon, className: "size-4" }),
|
|
2722
2701
|
h.title
|
|
2723
2702
|
] }) }, h.title);
|
|
2724
2703
|
}),
|
|
2725
|
-
/* @__PURE__ */
|
|
2726
|
-
/* @__PURE__ */
|
|
2727
|
-
|
|
2704
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: `tel:${n}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2705
|
+
/* @__PURE__ */ r.jsx(s, { name: "communication/phone", className: "size-4" }),
|
|
2706
|
+
we(n)
|
|
2728
2707
|
] }) })
|
|
2729
2708
|
] })
|
|
2730
2709
|
]
|
|
2731
2710
|
}
|
|
2732
2711
|
);
|
|
2733
|
-
},
|
|
2712
|
+
}, ro = ({ categories: t, helpers: e, phone: n }) => {
|
|
2734
2713
|
var m, h, p;
|
|
2735
|
-
const o =
|
|
2736
|
-
return /* @__PURE__ */
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
{
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2714
|
+
const o = Be(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, d] = Q(!1), u = () => d(!a);
|
|
2715
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2716
|
+
"div",
|
|
2717
|
+
{
|
|
2718
|
+
ref: o,
|
|
2719
|
+
className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4 desktop:hidden",
|
|
2720
|
+
children: [
|
|
2721
|
+
/* @__PURE__ */ r.jsx(s, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2722
|
+
/* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(s, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2723
|
+
a && vt(
|
|
2724
|
+
/* @__PURE__ */ r.jsx(
|
|
2725
|
+
to,
|
|
2726
|
+
{
|
|
2727
|
+
categories: t,
|
|
2728
|
+
helpers: e,
|
|
2729
|
+
phone: n,
|
|
2730
|
+
style: { top: i ? i.top + i.height : 0 }
|
|
2731
|
+
}
|
|
2732
|
+
),
|
|
2733
|
+
/**
|
|
2734
|
+
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2735
|
+
*/
|
|
2736
|
+
((p = (h = document.body.querySelector("#modal-preview")) == null ? void 0 : h.contentDocument) == null ? void 0 : p.body) ?? document.body
|
|
2737
|
+
)
|
|
2738
|
+
]
|
|
2739
|
+
}
|
|
2740
|
+
);
|
|
2741
|
+
}, mt = ({ categories: t, helpers: e, phone: n, breadcrumbs: o }) => {
|
|
2742
|
+
const { isMobile: i } = ee();
|
|
2743
|
+
return /* @__PURE__ */ r.jsx("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: "w-full bg-color-white", children: /* @__PURE__ */ r.jsxs(E, { className: "mx-auto w-full", children: [
|
|
2744
|
+
/* @__PURE__ */ r.jsx(ro, { categories: t.map((a) => a.children).flat(), helpers: e, phone: n }),
|
|
2745
|
+
/* @__PURE__ */ r.jsx(Jn, { categories: t, helpers: e, phone: n }),
|
|
2746
|
+
/* @__PURE__ */ r.jsx(
|
|
2747
|
+
Qn,
|
|
2761
2748
|
{
|
|
2762
|
-
ellipsis:
|
|
2763
|
-
|
|
2749
|
+
ellipsis: i ? 1 : void 0,
|
|
2750
|
+
breadcrumbs: o,
|
|
2751
|
+
matcher: (a) => ({ label: tr(a.label).split("-").join(" ") })
|
|
2764
2752
|
}
|
|
2765
2753
|
)
|
|
2766
|
-
] });
|
|
2767
|
-
},
|
|
2754
|
+
] }) });
|
|
2755
|
+
}, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2768
2756
|
__proto__: null,
|
|
2769
|
-
SeoHeader:
|
|
2770
|
-
default:
|
|
2771
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2772
|
-
let
|
|
2757
|
+
SeoHeader: mt,
|
|
2758
|
+
default: mt
|
|
2759
|
+
}, Symbol.toStringTag, { value: "Module" })), Tt = (t) => typeof t != "string" && "formula" in t, Ot = (t, e) => {
|
|
2760
|
+
let n = e;
|
|
2773
2761
|
const o = {
|
|
2774
2762
|
style: t
|
|
2775
2763
|
};
|
|
@@ -2778,92 +2766,92 @@ const $n = (t, e) => {
|
|
|
2778
2766
|
o.currency = "RUB", o.minimumFractionDigits = 0, o.maximumFractionDigits = 0;
|
|
2779
2767
|
break;
|
|
2780
2768
|
case "percent":
|
|
2781
|
-
o.minimumFractionDigits = 0, o.maximumFractionDigits = 1,
|
|
2769
|
+
o.minimumFractionDigits = 0, o.maximumFractionDigits = 1, n = n / 100;
|
|
2782
2770
|
break;
|
|
2783
2771
|
default:
|
|
2784
2772
|
return null;
|
|
2785
2773
|
}
|
|
2786
|
-
return new Intl.NumberFormat("ru-RU", o).format(
|
|
2787
|
-
},
|
|
2774
|
+
return new Intl.NumberFormat("ru-RU", o).format(n);
|
|
2775
|
+
}, oo = (t, e) => {
|
|
2788
2776
|
switch (t) {
|
|
2789
2777
|
case "text":
|
|
2790
2778
|
return e;
|
|
2791
2779
|
default:
|
|
2792
|
-
return
|
|
2780
|
+
return Ot(t, Number(e));
|
|
2793
2781
|
}
|
|
2794
|
-
},
|
|
2795
|
-
const
|
|
2782
|
+
}, io = (t) => Object.values(t).reduce((n, o) => n.merge(ze(o.fields)), wt({})), ao = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, St = (t, e) => {
|
|
2783
|
+
const n = Object.entries(e).map(([m, h]) => [m, O.isNil(h) ? "1" : h]), o = n.map(([m]) => m), i = n.map(([, m]) => m), a = ao(t, Object.fromEntries(n)), u = new Function(...o, `return ${a};`)(...i.map(Number));
|
|
2796
2784
|
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2797
|
-
},
|
|
2798
|
-
...
|
|
2799
|
-
value:
|
|
2800
|
-
})),
|
|
2801
|
-
e && /* @__PURE__ */
|
|
2802
|
-
t && /* @__PURE__ */
|
|
2803
|
-
] }) }),
|
|
2804
|
-
/* @__PURE__ */
|
|
2805
|
-
/* @__PURE__ */
|
|
2806
|
-
] }),
|
|
2807
|
-
/* @__PURE__ */
|
|
2808
|
-
/* @__PURE__ */
|
|
2809
|
-
t && /* @__PURE__ */
|
|
2810
|
-
|
|
2785
|
+
}, lo = (t, e) => t.map((n) => ({
|
|
2786
|
+
...n,
|
|
2787
|
+
value: Tt(n.value) ? St(n.value.formula, e) : n.value
|
|
2788
|
+
})), uo = ({ subtitle: t, title: e }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: (e || t) && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2789
|
+
e && /* @__PURE__ */ r.jsx(L, { as: "h3", children: e }),
|
|
2790
|
+
t && /* @__PURE__ */ r.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
|
|
2791
|
+
] }) }), mo = ({ rootDescription: t, rootValue: e, suffix: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2792
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
|
|
2793
|
+
/* @__PURE__ */ r.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ r.jsx("span", { children: Ot(n, Number(e)) }) })
|
|
2794
|
+
] }), ho = ({ hint: t, value: e, label: n, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2795
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2796
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: n }),
|
|
2797
|
+
t && /* @__PURE__ */ r.jsx(
|
|
2798
|
+
Oe,
|
|
2811
2799
|
{
|
|
2812
2800
|
withCloseBtn: !1,
|
|
2813
|
-
triggerElement: /* @__PURE__ */
|
|
2814
|
-
children: /* @__PURE__ */
|
|
2801
|
+
triggerElement: /* @__PURE__ */ r.jsx(s, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
2802
|
+
children: /* @__PURE__ */ r.jsx("p", { children: t })
|
|
2815
2803
|
}
|
|
2816
2804
|
)
|
|
2817
2805
|
] }),
|
|
2818
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ r.jsx(
|
|
2819
2807
|
"span",
|
|
2820
2808
|
{
|
|
2821
2809
|
className: l("desk-body-medium-l text-color-dark", {
|
|
2822
2810
|
"[&&]:desk-title-bold-s": a,
|
|
2823
2811
|
"text-color-primary-default": i === "blue"
|
|
2824
2812
|
}),
|
|
2825
|
-
children:
|
|
2813
|
+
children: oo(o, e)
|
|
2826
2814
|
}
|
|
2827
2815
|
)
|
|
2828
|
-
] }),
|
|
2829
|
-
const { watch: e } =
|
|
2830
|
-
return /* @__PURE__ */
|
|
2831
|
-
},
|
|
2832
|
-
/* @__PURE__ */
|
|
2833
|
-
/* @__PURE__ */
|
|
2834
|
-
/* @__PURE__ */
|
|
2816
|
+
] }), xo = ({ infoList: t }) => {
|
|
2817
|
+
const { watch: e } = ve(), n = e(), o = lo(t, n);
|
|
2818
|
+
return /* @__PURE__ */ r.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ r.jsx(ho, { ...i }, i.label)) });
|
|
2819
|
+
}, po = ({ iconName: t, text: e, hint: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2820
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2821
|
+
/* @__PURE__ */ r.jsx(s, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
2822
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
|
|
2835
2823
|
] }),
|
|
2836
|
-
|
|
2837
|
-
] }),
|
|
2838
|
-
t && /* @__PURE__ */
|
|
2839
|
-
/* @__PURE__ */
|
|
2840
|
-
|
|
2841
|
-
] }),
|
|
2824
|
+
n && /* @__PURE__ */ r.jsx(Oe, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ r.jsx(s, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ r.jsx("p", { children: n }) })
|
|
2825
|
+
] }), co = ({ assistHint: t, buttonsConfig: e, bottomDescription: n }) => /* @__PURE__ */ r.jsxs("div", { children: [
|
|
2826
|
+
t && /* @__PURE__ */ r.jsx(po, { ...t }),
|
|
2827
|
+
/* @__PURE__ */ r.jsx("div", { className: l("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ r.jsx(Y, { className: "w-full", ...o }, i)) }),
|
|
2828
|
+
n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: n })
|
|
2829
|
+
] }), fo = ({
|
|
2842
2830
|
rootDescription: t,
|
|
2843
2831
|
bottomDescription: e,
|
|
2844
|
-
rootValue:
|
|
2832
|
+
rootValue: n,
|
|
2845
2833
|
title: o,
|
|
2846
2834
|
subtitle: i,
|
|
2847
2835
|
buttonsConfig: a,
|
|
2848
2836
|
infoList: d,
|
|
2849
2837
|
suffix: u,
|
|
2850
2838
|
assistHint: m
|
|
2851
|
-
}) => /* @__PURE__ */
|
|
2852
|
-
/* @__PURE__ */
|
|
2853
|
-
/* @__PURE__ */
|
|
2854
|
-
/* @__PURE__ */
|
|
2855
|
-
/* @__PURE__ */
|
|
2856
|
-
] }),
|
|
2839
|
+
}) => /* @__PURE__ */ r.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
|
|
2840
|
+
/* @__PURE__ */ r.jsx(mo, { suffix: u, rootValue: n, rootDescription: t }),
|
|
2841
|
+
/* @__PURE__ */ r.jsx(uo, { title: o, subtitle: i }),
|
|
2842
|
+
/* @__PURE__ */ r.jsx(xo, { infoList: d }),
|
|
2843
|
+
/* @__PURE__ */ r.jsx(co, { assistHint: m, buttonsConfig: a, bottomDescription: e })
|
|
2844
|
+
] }), bo = 2e4, Et = ({
|
|
2857
2845
|
slidersGroupConfig: t,
|
|
2858
2846
|
additionalSliderGroupConfig: e
|
|
2859
2847
|
}) => {
|
|
2860
|
-
const [
|
|
2861
|
-
return
|
|
2862
|
-
|
|
2863
|
-
}, [g,
|
|
2848
|
+
const [n, o] = Q(!1), { watch: i, setValue: a } = ve(), d = t == null ? void 0 : t.fields.find(({ args: I }) => I.name === "sum"), { args: u } = d || {}, { max: m, name: h, defaultValue: p } = u || {}, c = i(h), { min: f, name: b } = (e == null ? void 0 : e.args) ?? {}, w = i(b), g = Number(m ?? 0) - (c ?? p);
|
|
2849
|
+
return _e(() => {
|
|
2850
|
+
w > g && a(b, g);
|
|
2851
|
+
}, [g, w, a, c]), _e(() => {
|
|
2864
2852
|
Number(m) === c && o(!1);
|
|
2865
2853
|
}, [o, m, c]), {
|
|
2866
|
-
sliderVisible:
|
|
2854
|
+
sliderVisible: n,
|
|
2867
2855
|
setSliderVisible: o,
|
|
2868
2856
|
sumMax: m,
|
|
2869
2857
|
sumName: h,
|
|
@@ -2871,23 +2859,23 @@ const $n = (t, e) => {
|
|
|
2871
2859
|
sumValue: c,
|
|
2872
2860
|
additionalSliderMax: g,
|
|
2873
2861
|
onCheckedChange: () => {
|
|
2874
|
-
o((
|
|
2862
|
+
o((I) => !I), w <= 0 && a(b, f), Number(m) === c && (a(h ?? "", c - bo), a(b, f));
|
|
2875
2863
|
},
|
|
2876
|
-
sliderSumExist: !
|
|
2864
|
+
sliderSumExist: !O.isObjectEmpty(d == null ? void 0 : d.args),
|
|
2877
2865
|
sliderSumCorrectType: (d == null ? void 0 : d.args.componentType) === "algorithmic" || (d == null ? void 0 : d.args.componentType) === "step"
|
|
2878
2866
|
};
|
|
2879
|
-
},
|
|
2867
|
+
}, so = (t) => {
|
|
2880
2868
|
switch (t) {
|
|
2881
2869
|
case "content1":
|
|
2882
|
-
return /* @__PURE__ */
|
|
2870
|
+
return /* @__PURE__ */ r.jsx("div", { children: "content 1" });
|
|
2883
2871
|
case "content2":
|
|
2884
|
-
return /* @__PURE__ */
|
|
2872
|
+
return /* @__PURE__ */ r.jsx("div", { children: "content 2" });
|
|
2885
2873
|
}
|
|
2886
|
-
},
|
|
2887
|
-
const [i, a] =
|
|
2888
|
-
return /* @__PURE__ */
|
|
2889
|
-
|
|
2890
|
-
/* @__PURE__ */
|
|
2874
|
+
}, go = ({ triggerText: t, modalTitle: e, description: n, contentVariant: o }) => {
|
|
2875
|
+
const [i, a] = ir(!1);
|
|
2876
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
2877
|
+
n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: n }),
|
|
2878
|
+
/* @__PURE__ */ r.jsx(
|
|
2891
2879
|
"button",
|
|
2892
2880
|
{
|
|
2893
2881
|
onClick: () => a(!0),
|
|
@@ -2895,29 +2883,29 @@ const $n = (t, e) => {
|
|
|
2895
2883
|
children: t
|
|
2896
2884
|
}
|
|
2897
2885
|
),
|
|
2898
|
-
/* @__PURE__ */
|
|
2886
|
+
/* @__PURE__ */ r.jsx(Xt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: so(o) })
|
|
2899
2887
|
] });
|
|
2900
2888
|
}, J = ({ fields: t }) => {
|
|
2901
|
-
const { control: e } =
|
|
2902
|
-
return /* @__PURE__ */
|
|
2903
|
-
},
|
|
2889
|
+
const { control: e } = ve();
|
|
2890
|
+
return /* @__PURE__ */ r.jsx(He, { control: e, fields: t });
|
|
2891
|
+
}, jo = ({
|
|
2904
2892
|
slidersGroupConfig: t,
|
|
2905
2893
|
additionalSliderGroupConfig: e
|
|
2906
2894
|
}) => {
|
|
2907
|
-
const { control:
|
|
2895
|
+
const { control: n } = ve(), { sliderVisible: o, additionalSliderMax: i, onCheckedChange: a } = Et({
|
|
2908
2896
|
slidersGroupConfig: t,
|
|
2909
2897
|
additionalSliderGroupConfig: e
|
|
2910
2898
|
});
|
|
2911
|
-
return
|
|
2912
|
-
/* @__PURE__ */
|
|
2913
|
-
/* @__PURE__ */
|
|
2914
|
-
/* @__PURE__ */
|
|
2899
|
+
return O.isNil(e == null ? void 0 : e.args) || !(e != null && e.args) ? null : /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
2900
|
+
/* @__PURE__ */ r.jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
2901
|
+
/* @__PURE__ */ r.jsx(ye.SwitchBase, { checked: o, onCheckedChange: a }),
|
|
2902
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
2915
2903
|
] }),
|
|
2916
|
-
o && /* @__PURE__ */
|
|
2917
|
-
|
|
2904
|
+
o && /* @__PURE__ */ r.jsx(
|
|
2905
|
+
jt.SliderControl,
|
|
2918
2906
|
{
|
|
2919
2907
|
...e.args,
|
|
2920
|
-
control:
|
|
2908
|
+
control: n,
|
|
2921
2909
|
componentType: "algorithmic",
|
|
2922
2910
|
suffix: "currency",
|
|
2923
2911
|
defaultValue: e == null ? void 0 : e.args.min,
|
|
@@ -2925,33 +2913,33 @@ const $n = (t, e) => {
|
|
|
2925
2913
|
}
|
|
2926
2914
|
)
|
|
2927
2915
|
] });
|
|
2928
|
-
},
|
|
2916
|
+
}, yo = ({ modalConfig: t, fieldsGroup: e }) => {
|
|
2929
2917
|
var i;
|
|
2930
|
-
const { sliderSumExist:
|
|
2918
|
+
const { sliderSumExist: n, sliderSumCorrectType: o } = Et({
|
|
2931
2919
|
slidersGroupConfig: e.slidersGroupConfig,
|
|
2932
2920
|
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2933
2921
|
});
|
|
2934
|
-
return /* @__PURE__ */
|
|
2935
|
-
(t == null ? void 0 : t.triggerText) && (t == null ? void 0 : t.contentVariant) && /* @__PURE__ */
|
|
2936
|
-
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */
|
|
2937
|
-
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */
|
|
2938
|
-
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */
|
|
2939
|
-
(e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */
|
|
2940
|
-
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */
|
|
2941
|
-
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */
|
|
2942
|
-
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */
|
|
2943
|
-
((i = e.additionalSliderGroupConfig) == null ? void 0 : i.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig &&
|
|
2944
|
-
|
|
2922
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2923
|
+
(t == null ? void 0 : t.triggerText) && (t == null ? void 0 : t.contentVariant) && /* @__PURE__ */ r.jsx(go, { ...t }),
|
|
2924
|
+
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.selectGroupConfig }) }),
|
|
2925
|
+
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.slidersGroupConfig }),
|
|
2926
|
+
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.radioGroupTabConfig }),
|
|
2927
|
+
(e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.checkboxGroupConfig }) }),
|
|
2928
|
+
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.radioGroupConfig }),
|
|
2929
|
+
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.radioGroupCardConfig }),
|
|
2930
|
+
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.switchGroupConfig }) }),
|
|
2931
|
+
((i = e.additionalSliderGroupConfig) == null ? void 0 : i.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig && n && o && /* @__PURE__ */ r.jsx(
|
|
2932
|
+
jo,
|
|
2945
2933
|
{
|
|
2946
2934
|
slidersGroupConfig: e.slidersGroupConfig,
|
|
2947
2935
|
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2948
2936
|
}
|
|
2949
2937
|
)
|
|
2950
2938
|
] });
|
|
2951
|
-
},
|
|
2939
|
+
}, ko = Pe(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ r.jsx(
|
|
2952
2940
|
"button",
|
|
2953
2941
|
{
|
|
2954
|
-
onClick: () =>
|
|
2942
|
+
onClick: () => n(o),
|
|
2955
2943
|
className: l(
|
|
2956
2944
|
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent desktop:desk-body-regular-l focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
2957
2945
|
{ "bg-icon-primary-default text-color-white": e === o }
|
|
@@ -2959,34 +2947,34 @@ const $n = (t, e) => {
|
|
|
2959
2947
|
children: i
|
|
2960
2948
|
},
|
|
2961
2949
|
o
|
|
2962
|
-
)) })),
|
|
2950
|
+
)) })), wo = ({
|
|
2963
2951
|
calculatorInfoConfig: t,
|
|
2964
2952
|
calculatorFieldsConfig: e
|
|
2965
2953
|
}) => {
|
|
2966
|
-
const
|
|
2967
|
-
schema:
|
|
2954
|
+
const n = io(e == null ? void 0 : e.fieldsGroup), o = De({
|
|
2955
|
+
schema: n,
|
|
2968
2956
|
mode: "onBlur",
|
|
2969
|
-
defaultValues:
|
|
2970
|
-
}), i = o.watch(), { rootValue: a } = t, d =
|
|
2971
|
-
return /* @__PURE__ */
|
|
2972
|
-
/* @__PURE__ */
|
|
2973
|
-
/* @__PURE__ */
|
|
2957
|
+
defaultValues: Re.getZodDefaults(n)
|
|
2958
|
+
}), i = o.watch(), { rootValue: a } = t, d = Tt(a) ? St(a.formula, i) : a, u = { ...t, rootValue: d };
|
|
2959
|
+
return /* @__PURE__ */ r.jsx(nr, { ...o, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2960
|
+
/* @__PURE__ */ r.jsx(yo, { ...e }),
|
|
2961
|
+
/* @__PURE__ */ r.jsx(fo, { ...u })
|
|
2974
2962
|
] }) });
|
|
2975
|
-
},
|
|
2963
|
+
}, ht = ({ calculators: t, headline: e }) => {
|
|
2976
2964
|
var m;
|
|
2977
|
-
const
|
|
2978
|
-
return /* @__PURE__ */
|
|
2979
|
-
/* @__PURE__ */
|
|
2980
|
-
|
|
2981
|
-
|
|
2965
|
+
const n = t.length > 1, [o, i] = Q(n ? (m = t[0]) == null ? void 0 : m.name : ""), a = ke(() => t == null ? void 0 : t.map(({ name: h, label: p }) => ({ name: h, label: p })), [t]), d = n ? a == null ? void 0 : a.findIndex((h) => h.name === o) : 0, u = t[d];
|
|
2966
|
+
return /* @__PURE__ */ r.jsx("section", { id: j.calculator, children: /* @__PURE__ */ r.jsx(E, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2967
|
+
/* @__PURE__ */ r.jsx(L, { className: "mb-12", as: "h2", children: e }),
|
|
2968
|
+
n && /* @__PURE__ */ r.jsx(
|
|
2969
|
+
ko,
|
|
2982
2970
|
{
|
|
2983
2971
|
calculatorTabs: a,
|
|
2984
2972
|
activeCalculator: o,
|
|
2985
2973
|
setActiveCalculator: i
|
|
2986
2974
|
}
|
|
2987
2975
|
),
|
|
2988
|
-
/* @__PURE__ */
|
|
2989
|
-
|
|
2976
|
+
/* @__PURE__ */ r.jsx(
|
|
2977
|
+
wo,
|
|
2990
2978
|
{
|
|
2991
2979
|
name: u.name,
|
|
2992
2980
|
label: u.label,
|
|
@@ -2995,37 +2983,37 @@ const $n = (t, e) => {
|
|
|
2995
2983
|
}
|
|
2996
2984
|
)
|
|
2997
2985
|
] }) }) });
|
|
2998
|
-
},
|
|
2986
|
+
}, vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2999
2987
|
__proto__: null,
|
|
3000
|
-
Calculator:
|
|
3001
|
-
default:
|
|
2988
|
+
Calculator: ht,
|
|
2989
|
+
default: ht
|
|
3002
2990
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3003
2991
|
export {
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
2992
|
+
Ie as Advantages,
|
|
2993
|
+
Po as AuthProvider,
|
|
2994
|
+
Ge as Banner,
|
|
2995
|
+
Je as BannerWithSeparateImg,
|
|
2996
|
+
Xe as Benefit,
|
|
2997
|
+
Qn as Breadcrumbs,
|
|
3010
2998
|
Y as ButtonWithHandlers,
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
2999
|
+
ht as Calculator,
|
|
3000
|
+
wo as CalculatorView,
|
|
3001
|
+
dt as DynamicForm,
|
|
3002
|
+
ut as DynamicFormDialog,
|
|
3003
|
+
Do as FallbacksView,
|
|
3004
|
+
He as FieldMapper,
|
|
3005
|
+
et as Footer,
|
|
3006
|
+
Tn as HTMLParser,
|
|
3019
3007
|
ie as HTMLRenderer,
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3008
|
+
Ye as Header,
|
|
3009
|
+
at as InterLinking,
|
|
3010
|
+
Cr as KEYS_OF_WIDGET_LIST,
|
|
3011
|
+
rt as LongBanner,
|
|
3012
|
+
mt as SeoHeader,
|
|
3013
|
+
tt as Stepper,
|
|
3014
|
+
lt as UsefulInfo,
|
|
3015
|
+
Nr as WIDGET_LIST_MAP,
|
|
3016
|
+
Pn as queryClient,
|
|
3017
|
+
j as widgetIds
|
|
3030
3018
|
};
|
|
3031
3019
|
//# sourceMappingURL=widget.js.map
|