@scbt-ecom/ui 0.61.2 → 0.61.4
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/{index-CN2YlBui.js → index-CeBEX-QQ.js} +2 -2
- package/dist/{index-CN2YlBui.js.map → index-CeBEX-QQ.js.map} +1 -1
- package/dist/{index-DskTH4KE.js → index-DGoeevV2.js} +71 -61
- package/dist/index-DGoeevV2.js.map +1 -0
- package/dist/shared/validation/base/phone.validators.d.ts +6 -0
- package/dist/ui.js +2 -2
- package/dist/validation.js +1 -1
- package/dist/widget.js +591 -569
- package/dist/widget.js.map +1 -1
- package/dist/widgets/dynamicForm/DynamicForm.d.ts +21 -1
- package/dist/widgets/htmlParser/HTMLRenderer.d.ts +5 -4
- package/package.json +1 -1
- package/dist/index-DskTH4KE.js.map +0 -1
package/dist/widget.js
CHANGED
|
@@ -3,43 +3,43 @@ var Tt = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var ae = (e, t, r) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
-
var
|
|
7
|
-
var h = (e, t, r) => (gt(e, t, "read from private field"), r ? r.call(e) : t.get(e)),
|
|
8
|
-
var ht = (e, t, r,
|
|
9
|
-
set _(
|
|
10
|
-
y(e, t,
|
|
6
|
+
var it = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r), gt = (e, t, r) => t.has(e) || Tt("Cannot " + r);
|
|
7
|
+
var h = (e, t, r) => (gt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), C = (e, t, r) => t.has(e) ? Tt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, o) => (gt(e, t, "write to private field"), o ? o.call(e, r) : t.set(e, r), r), q = (e, t, r) => (gt(e, t, "access private method"), r);
|
|
8
|
+
var ht = (e, t, r, o) => ({
|
|
9
|
+
set _(i) {
|
|
10
|
+
y(e, t, i, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return h(e, t,
|
|
13
|
+
return h(e, t, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as Ut, w as Vt, Q as le, x as I, y as Et, z as ue, E as pe, F as It, G as P, J as he, M as me, T as xe, W as fe, X as Mt, Y as Ot, Z as ce, _ as St, $ as
|
|
17
|
-
import { c as a, T as
|
|
18
|
-
import * as
|
|
19
|
-
import { useCallback as Kt, useState as
|
|
20
|
-
import { s as Te, c as bt, g as
|
|
16
|
+
import { S as Ut, w as Vt, Q as le, x as I, y as Et, z as ue, E as pe, F as It, G as P, J as he, M as me, T as xe, W as fe, X as Mt, Y as Ot, Z as ce, _ as St, $ as Bt, a0 as be, j as n, B as wt, c as M, R as H, l as Wt, r as ge, H as L, i as c, s as ct, p as je, L as ye, n as vt, A as ot, t as ke, a1 as we, q as ve, U as Gt, m as Nt, k as Ne } from "./index-CeBEX-QQ.js";
|
|
17
|
+
import { c as a, T as k } from "./typeGuards-Bhdr9KYW.js";
|
|
18
|
+
import * as at from "react";
|
|
19
|
+
import { useCallback as Kt, useState as G, useMemo as st, createElement as $t, Fragment as se, useEffect as Zt, useRef as Ct, useReducer as Ce, memo as Xt } from "react";
|
|
20
|
+
import { s as Te, c as bt, g as Ft, a as Ee } from "./uuid-2wKG15vy.js";
|
|
21
21
|
import { i as Jt } from "./isClient-C9aZtt2Q.js";
|
|
22
|
-
import { a as
|
|
22
|
+
import { a as K, c as Ie, b as Me } from "./useDebounce-QgEEiWs9.js";
|
|
23
23
|
import { o as Oe } from "./utils-Cc0awqbk.js";
|
|
24
|
-
import { z as Yt, Z as Se } from "./index-
|
|
25
|
-
import { u as
|
|
24
|
+
import { z as Yt, Z as Se } from "./index-DGoeevV2.js";
|
|
25
|
+
import { u as Be } from "./useFieldsProgress-BXzIWmGP.js";
|
|
26
26
|
import { createPortal as te } from "react-dom";
|
|
27
|
-
var B, Qt,
|
|
27
|
+
var B, Qt, Fe = (Qt = class extends Ut {
|
|
28
28
|
constructor(t = {}) {
|
|
29
29
|
super();
|
|
30
|
-
|
|
30
|
+
C(this, B);
|
|
31
31
|
this.config = t, y(this, B, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
|
-
build(t, r,
|
|
34
|
-
const
|
|
33
|
+
build(t, r, o) {
|
|
34
|
+
const i = r.queryKey, d = r.queryHash ?? Vt(i, r);
|
|
35
35
|
let l = this.get(d);
|
|
36
36
|
return l || (l = new le({
|
|
37
37
|
client: t,
|
|
38
|
-
queryKey:
|
|
38
|
+
queryKey: i,
|
|
39
39
|
queryHash: d,
|
|
40
40
|
options: t.defaultQueryOptions(r),
|
|
41
|
-
state:
|
|
42
|
-
defaultOptions: t.getQueryDefaults(
|
|
41
|
+
state: o,
|
|
42
|
+
defaultOptions: t.getQueryDefaults(i)
|
|
43
43
|
}), this.add(l)), l;
|
|
44
44
|
}
|
|
45
45
|
add(t) {
|
|
@@ -68,12 +68,12 @@ var B, Qt, Be = (Qt = class extends Ut {
|
|
|
68
68
|
find(t) {
|
|
69
69
|
const r = { exact: !0, ...t };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(
|
|
71
|
+
(o) => Et(r, o)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
findAll(t = {}) {
|
|
75
75
|
const r = this.getAll();
|
|
76
|
-
return Object.keys(t).length > 0 ? r.filter((
|
|
76
|
+
return Object.keys(t).length > 0 ? r.filter((o) => Et(t, o)) : r;
|
|
77
77
|
}
|
|
78
78
|
notify(t) {
|
|
79
79
|
I.batch(() => {
|
|
@@ -96,14 +96,14 @@ var B, Qt, Be = (Qt = class extends Ut {
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
}, B = new WeakMap(), Qt),
|
|
99
|
+
}, B = new WeakMap(), Qt), F, E, J, R, A, zt, Re = (zt = class extends ue {
|
|
100
100
|
constructor(t) {
|
|
101
101
|
super();
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
this.mutationId = t.mutationId, y(this,
|
|
102
|
+
C(this, R);
|
|
103
|
+
C(this, F);
|
|
104
|
+
C(this, E);
|
|
105
|
+
C(this, J);
|
|
106
|
+
this.mutationId = t.mutationId, y(this, E, t.mutationCache), y(this, F, []), this.state = t.state || He(), this.setOptions(t.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(t) {
|
|
109
109
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -112,132 +112,132 @@ var B, Qt, Be = (Qt = class extends Ut {
|
|
|
112
112
|
return this.options.meta;
|
|
113
113
|
}
|
|
114
114
|
addObserver(t) {
|
|
115
|
-
h(this,
|
|
115
|
+
h(this, F).includes(t) || (h(this, F).push(t), this.clearGcTimeout(), h(this, E).notify({
|
|
116
116
|
type: "observerAdded",
|
|
117
117
|
mutation: this,
|
|
118
118
|
observer: t
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(t) {
|
|
122
|
-
y(this,
|
|
122
|
+
y(this, F, h(this, F).filter((r) => r !== t)), this.scheduleGc(), h(this, E).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: t
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
optionalRemove() {
|
|
129
|
-
h(this,
|
|
129
|
+
h(this, F).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, E).remove(this));
|
|
130
130
|
}
|
|
131
131
|
continue() {
|
|
132
132
|
var t;
|
|
133
|
-
return ((t = h(this,
|
|
133
|
+
return ((t = h(this, J)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(t) {
|
|
137
|
-
var
|
|
138
|
-
y(this,
|
|
137
|
+
var i, d, l, u, p, m, x, f, b, T, N, w, _, $, Q, s, O, z, Z, pt;
|
|
138
|
+
y(this, J, pe({
|
|
139
139
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
140
|
-
onFail: (
|
|
141
|
-
|
|
140
|
+
onFail: (v, X) => {
|
|
141
|
+
q(this, R, A).call(this, { type: "failed", failureCount: v, error: X });
|
|
142
142
|
},
|
|
143
143
|
onPause: () => {
|
|
144
|
-
|
|
144
|
+
q(this, R, A).call(this, { type: "pause" });
|
|
145
145
|
},
|
|
146
146
|
onContinue: () => {
|
|
147
|
-
|
|
147
|
+
q(this, R, A).call(this, { type: "continue" });
|
|
148
148
|
},
|
|
149
149
|
retry: this.options.retry ?? 0,
|
|
150
150
|
retryDelay: this.options.retryDelay,
|
|
151
151
|
networkMode: this.options.networkMode,
|
|
152
|
-
canRun: () => h(this,
|
|
152
|
+
canRun: () => h(this, E).canRun(this)
|
|
153
153
|
}));
|
|
154
|
-
const r = this.state.status === "pending",
|
|
154
|
+
const r = this.state.status === "pending", o = !h(this, J).canStart();
|
|
155
155
|
try {
|
|
156
156
|
if (!r) {
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
q(this, R, A).call(this, { type: "pending", variables: t, isPaused: o }), await ((d = (i = h(this, E).config).onMutate) == null ? void 0 : d.call(
|
|
158
|
+
i,
|
|
159
159
|
t,
|
|
160
160
|
this
|
|
161
161
|
));
|
|
162
|
-
const
|
|
163
|
-
|
|
162
|
+
const X = await ((u = (l = this.options).onMutate) == null ? void 0 : u.call(l, t));
|
|
163
|
+
X !== this.state.context && q(this, R, A).call(this, {
|
|
164
164
|
type: "pending",
|
|
165
|
-
context:
|
|
165
|
+
context: X,
|
|
166
166
|
variables: t,
|
|
167
|
-
isPaused:
|
|
167
|
+
isPaused: o
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
return await ((m = (p = h(this,
|
|
170
|
+
const v = await h(this, J).start();
|
|
171
|
+
return await ((m = (p = h(this, E).config).onSuccess) == null ? void 0 : m.call(
|
|
172
172
|
p,
|
|
173
|
-
|
|
173
|
+
v,
|
|
174
174
|
t,
|
|
175
175
|
this.state.context,
|
|
176
176
|
this
|
|
177
|
-
)), await ((f = (x = this.options).onSuccess) == null ? void 0 : f.call(x,
|
|
177
|
+
)), await ((f = (x = this.options).onSuccess) == null ? void 0 : f.call(x, v, t, this.state.context)), await ((T = (b = h(this, E).config).onSettled) == null ? void 0 : T.call(
|
|
178
178
|
b,
|
|
179
|
-
|
|
179
|
+
v,
|
|
180
180
|
null,
|
|
181
181
|
this.state.variables,
|
|
182
182
|
this.state.context,
|
|
183
183
|
this
|
|
184
|
-
)), await ((
|
|
185
|
-
} catch (
|
|
184
|
+
)), await ((w = (N = this.options).onSettled) == null ? void 0 : w.call(N, v, null, t, this.state.context)), q(this, R, A).call(this, { type: "success", data: v }), v;
|
|
185
|
+
} catch (v) {
|
|
186
186
|
try {
|
|
187
|
-
throw await ((
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
throw await (($ = (_ = h(this, E).config).onError) == null ? void 0 : $.call(
|
|
188
|
+
_,
|
|
189
|
+
v,
|
|
190
190
|
t,
|
|
191
191
|
this.state.context,
|
|
192
192
|
this
|
|
193
|
-
)), await ((
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
)), await ((s = (Q = this.options).onError) == null ? void 0 : s.call(
|
|
194
|
+
Q,
|
|
195
|
+
v,
|
|
196
196
|
t,
|
|
197
197
|
this.state.context
|
|
198
|
-
)), await ((
|
|
198
|
+
)), await ((z = (O = h(this, E).config).onSettled) == null ? void 0 : z.call(
|
|
199
199
|
O,
|
|
200
200
|
void 0,
|
|
201
|
-
|
|
201
|
+
v,
|
|
202
202
|
this.state.variables,
|
|
203
203
|
this.state.context,
|
|
204
204
|
this
|
|
205
|
-
)), await ((pt = (
|
|
206
|
-
|
|
205
|
+
)), await ((pt = (Z = this.options).onSettled) == null ? void 0 : pt.call(
|
|
206
|
+
Z,
|
|
207
207
|
void 0,
|
|
208
|
-
|
|
208
|
+
v,
|
|
209
209
|
t,
|
|
210
210
|
this.state.context
|
|
211
|
-
)),
|
|
211
|
+
)), v;
|
|
212
212
|
} finally {
|
|
213
|
-
|
|
213
|
+
q(this, R, A).call(this, { type: "error", error: v });
|
|
214
214
|
}
|
|
215
215
|
} finally {
|
|
216
|
-
h(this,
|
|
216
|
+
h(this, E).runNext(this);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
},
|
|
220
|
-
const r = (
|
|
219
|
+
}, F = new WeakMap(), E = new WeakMap(), J = new WeakMap(), R = new WeakSet(), A = function(t) {
|
|
220
|
+
const r = (o) => {
|
|
221
221
|
switch (t.type) {
|
|
222
222
|
case "failed":
|
|
223
223
|
return {
|
|
224
|
-
...
|
|
224
|
+
...o,
|
|
225
225
|
failureCount: t.failureCount,
|
|
226
226
|
failureReason: t.error
|
|
227
227
|
};
|
|
228
228
|
case "pause":
|
|
229
229
|
return {
|
|
230
|
-
...
|
|
230
|
+
...o,
|
|
231
231
|
isPaused: !0
|
|
232
232
|
};
|
|
233
233
|
case "continue":
|
|
234
234
|
return {
|
|
235
|
-
...
|
|
235
|
+
...o,
|
|
236
236
|
isPaused: !1
|
|
237
237
|
};
|
|
238
238
|
case "pending":
|
|
239
239
|
return {
|
|
240
|
-
...
|
|
240
|
+
...o,
|
|
241
241
|
context: t.context,
|
|
242
242
|
data: void 0,
|
|
243
243
|
failureCount: 0,
|
|
@@ -250,7 +250,7 @@ var B, Qt, Be = (Qt = class extends Ut {
|
|
|
250
250
|
};
|
|
251
251
|
case "success":
|
|
252
252
|
return {
|
|
253
|
-
...
|
|
253
|
+
...o,
|
|
254
254
|
data: t.data,
|
|
255
255
|
failureCount: 0,
|
|
256
256
|
failureReason: null,
|
|
@@ -260,10 +260,10 @@ var B, Qt, Be = (Qt = class extends Ut {
|
|
|
260
260
|
};
|
|
261
261
|
case "error":
|
|
262
262
|
return {
|
|
263
|
-
...
|
|
263
|
+
...o,
|
|
264
264
|
data: void 0,
|
|
265
265
|
error: t.error,
|
|
266
|
-
failureCount:
|
|
266
|
+
failureCount: o.failureCount + 1,
|
|
267
267
|
failureReason: t.error,
|
|
268
268
|
isPaused: !1,
|
|
269
269
|
status: "error"
|
|
@@ -271,9 +271,9 @@ var B, Qt, Be = (Qt = class extends Ut {
|
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
this.state = r(this.state), I.batch(() => {
|
|
274
|
-
h(this,
|
|
275
|
-
|
|
276
|
-
}), h(this,
|
|
274
|
+
h(this, F).forEach((o) => {
|
|
275
|
+
o.onMutationUpdate(t);
|
|
276
|
+
}), h(this, E).notify({
|
|
277
277
|
mutation: this,
|
|
278
278
|
type: "updated",
|
|
279
279
|
action: t
|
|
@@ -293,29 +293,29 @@ function He() {
|
|
|
293
293
|
submittedAt: 0
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
var D, S,
|
|
296
|
+
var D, S, ut, qt, _e = (qt = class extends Ut {
|
|
297
297
|
constructor(t = {}) {
|
|
298
298
|
super();
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
this.config = t, y(this, D, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this,
|
|
299
|
+
C(this, D);
|
|
300
|
+
C(this, S);
|
|
301
|
+
C(this, ut);
|
|
302
|
+
this.config = t, y(this, D, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, ut, 0);
|
|
303
303
|
}
|
|
304
|
-
build(t, r,
|
|
305
|
-
const
|
|
304
|
+
build(t, r, o) {
|
|
305
|
+
const i = new Re({
|
|
306
306
|
mutationCache: this,
|
|
307
|
-
mutationId: ++ht(this,
|
|
307
|
+
mutationId: ++ht(this, ut)._,
|
|
308
308
|
options: t.defaultMutationOptions(r),
|
|
309
|
-
state:
|
|
309
|
+
state: o
|
|
310
310
|
});
|
|
311
|
-
return this.add(
|
|
311
|
+
return this.add(i), i;
|
|
312
312
|
}
|
|
313
313
|
add(t) {
|
|
314
314
|
h(this, D).add(t);
|
|
315
315
|
const r = mt(t);
|
|
316
316
|
if (typeof r == "string") {
|
|
317
|
-
const
|
|
318
|
-
|
|
317
|
+
const o = h(this, S).get(r);
|
|
318
|
+
o ? o.push(t) : h(this, S).set(r, [t]);
|
|
319
319
|
}
|
|
320
320
|
this.notify({ type: "added", mutation: t });
|
|
321
321
|
}
|
|
@@ -323,12 +323,12 @@ var D, S, lt, qt, _e = (qt = class extends Ut {
|
|
|
323
323
|
if (h(this, D).delete(t)) {
|
|
324
324
|
const r = mt(t);
|
|
325
325
|
if (typeof r == "string") {
|
|
326
|
-
const
|
|
327
|
-
if (
|
|
328
|
-
if (
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
} else
|
|
326
|
+
const o = h(this, S).get(r);
|
|
327
|
+
if (o)
|
|
328
|
+
if (o.length > 1) {
|
|
329
|
+
const i = o.indexOf(t);
|
|
330
|
+
i !== -1 && o.splice(i, 1);
|
|
331
|
+
} else o[0] === t && h(this, S).delete(r);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
this.notify({ type: "removed", mutation: t });
|
|
@@ -336,19 +336,19 @@ var D, S, lt, qt, _e = (qt = class extends Ut {
|
|
|
336
336
|
canRun(t) {
|
|
337
337
|
const r = mt(t);
|
|
338
338
|
if (typeof r == "string") {
|
|
339
|
-
const
|
|
339
|
+
const o = h(this, S).get(r), i = o == null ? void 0 : o.find(
|
|
340
340
|
(d) => d.state.status === "pending"
|
|
341
341
|
);
|
|
342
|
-
return !
|
|
342
|
+
return !i || i === t;
|
|
343
343
|
} else
|
|
344
344
|
return !0;
|
|
345
345
|
}
|
|
346
346
|
runNext(t) {
|
|
347
|
-
var
|
|
347
|
+
var o;
|
|
348
348
|
const r = mt(t);
|
|
349
349
|
if (typeof r == "string") {
|
|
350
|
-
const
|
|
351
|
-
return (
|
|
350
|
+
const i = (o = h(this, S).get(r)) == null ? void 0 : o.find((d) => d !== t && d.state.isPaused);
|
|
351
|
+
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
352
352
|
} else
|
|
353
353
|
return Promise.resolve();
|
|
354
354
|
}
|
|
@@ -365,7 +365,7 @@ var D, S, lt, qt, _e = (qt = class extends Ut {
|
|
|
365
365
|
find(t) {
|
|
366
366
|
const r = { exact: !0, ...t };
|
|
367
367
|
return this.getAll().find(
|
|
368
|
-
(
|
|
368
|
+
(o) => It(r, o)
|
|
369
369
|
);
|
|
370
370
|
}
|
|
371
371
|
findAll(t = {}) {
|
|
@@ -386,7 +386,7 @@ var D, S, lt, qt, _e = (qt = class extends Ut {
|
|
|
386
386
|
)
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
|
-
}, D = new WeakMap(), S = new WeakMap(),
|
|
389
|
+
}, D = new WeakMap(), S = new WeakMap(), ut = new WeakMap(), qt);
|
|
390
390
|
function mt(e) {
|
|
391
391
|
var t;
|
|
392
392
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
@@ -394,60 +394,60 @@ function mt(e) {
|
|
|
394
394
|
function Rt(e) {
|
|
395
395
|
return {
|
|
396
396
|
onFetch: (t, r) => {
|
|
397
|
-
var x, f, b,
|
|
398
|
-
const
|
|
397
|
+
var x, f, b, T, N;
|
|
398
|
+
const o = t.options, i = (b = (f = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : b.direction, d = ((T = t.state.data) == null ? void 0 : T.pages) || [], l = ((N = t.state.data) == null ? void 0 : N.pageParams) || [];
|
|
399
399
|
let u = { pages: [], pageParams: [] }, p = 0;
|
|
400
400
|
const m = async () => {
|
|
401
|
-
let
|
|
402
|
-
const
|
|
403
|
-
Object.defineProperty(
|
|
401
|
+
let w = !1;
|
|
402
|
+
const _ = (s) => {
|
|
403
|
+
Object.defineProperty(s, "signal", {
|
|
404
404
|
enumerable: !0,
|
|
405
|
-
get: () => (t.signal.aborted ?
|
|
406
|
-
|
|
405
|
+
get: () => (t.signal.aborted ? w = !0 : t.signal.addEventListener("abort", () => {
|
|
406
|
+
w = !0;
|
|
407
407
|
}), t.signal)
|
|
408
408
|
});
|
|
409
|
-
},
|
|
410
|
-
if (
|
|
409
|
+
}, $ = he(t.options, t.fetchOptions), Q = async (s, O, z) => {
|
|
410
|
+
if (w)
|
|
411
411
|
return Promise.reject();
|
|
412
|
-
if (O == null &&
|
|
413
|
-
return Promise.resolve(
|
|
414
|
-
const
|
|
412
|
+
if (O == null && s.pages.length)
|
|
413
|
+
return Promise.resolve(s);
|
|
414
|
+
const Z = {
|
|
415
415
|
client: t.client,
|
|
416
416
|
queryKey: t.queryKey,
|
|
417
417
|
pageParam: O,
|
|
418
|
-
direction:
|
|
418
|
+
direction: z ? "backward" : "forward",
|
|
419
419
|
meta: t.options.meta
|
|
420
420
|
};
|
|
421
|
-
|
|
422
|
-
const pt = await
|
|
423
|
-
|
|
424
|
-
), { maxPages:
|
|
421
|
+
_(Z);
|
|
422
|
+
const pt = await $(
|
|
423
|
+
Z
|
|
424
|
+
), { maxPages: v } = t.options, X = z ? me : xe;
|
|
425
425
|
return {
|
|
426
|
-
pages:
|
|
427
|
-
pageParams:
|
|
426
|
+
pages: X(s.pages, pt, v),
|
|
427
|
+
pageParams: X(s.pageParams, O, v)
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
|
-
if (
|
|
431
|
-
const
|
|
430
|
+
if (i && d.length) {
|
|
431
|
+
const s = i === "backward", O = s ? Pe : Ht, z = {
|
|
432
432
|
pages: d,
|
|
433
433
|
pageParams: l
|
|
434
|
-
},
|
|
435
|
-
u = await
|
|
434
|
+
}, Z = O(o, z);
|
|
435
|
+
u = await Q(z, Z, s);
|
|
436
436
|
} else {
|
|
437
|
-
const
|
|
437
|
+
const s = e ?? d.length;
|
|
438
438
|
do {
|
|
439
|
-
const O = p === 0 ? l[0] ??
|
|
439
|
+
const O = p === 0 ? l[0] ?? o.initialPageParam : Ht(o, u);
|
|
440
440
|
if (p > 0 && O == null)
|
|
441
441
|
break;
|
|
442
|
-
u = await
|
|
443
|
-
} while (p <
|
|
442
|
+
u = await Q(u, O), p++;
|
|
443
|
+
} while (p < s);
|
|
444
444
|
}
|
|
445
445
|
return u;
|
|
446
446
|
};
|
|
447
447
|
t.options.persister ? t.fetchFn = () => {
|
|
448
|
-
var
|
|
449
|
-
return (
|
|
450
|
-
|
|
448
|
+
var w, _;
|
|
449
|
+
return (_ = (w = t.options).persister) == null ? void 0 : _.call(
|
|
450
|
+
w,
|
|
451
451
|
m,
|
|
452
452
|
{
|
|
453
453
|
client: t.client,
|
|
@@ -462,46 +462,46 @@ function Rt(e) {
|
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
464
|
function Ht(e, { pages: t, pageParams: r }) {
|
|
465
|
-
const
|
|
465
|
+
const o = t.length - 1;
|
|
466
466
|
return t.length > 0 ? e.getNextPageParam(
|
|
467
|
-
t[
|
|
467
|
+
t[o],
|
|
468
468
|
t,
|
|
469
|
-
r[
|
|
469
|
+
r[o],
|
|
470
470
|
r
|
|
471
471
|
) : void 0;
|
|
472
472
|
}
|
|
473
473
|
function Pe(e, { pages: t, pageParams: r }) {
|
|
474
|
-
var
|
|
475
|
-
return t.length > 0 ? (
|
|
474
|
+
var o;
|
|
475
|
+
return t.length > 0 ? (o = e.getPreviousPageParam) == null ? void 0 : o.call(e, t[0], t, r[0], r) : void 0;
|
|
476
476
|
}
|
|
477
|
-
var g,
|
|
477
|
+
var g, U, V, tt, et, W, rt, nt, At, De = (At = class {
|
|
478
478
|
constructor(e = {}) {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
y(this, g, e.queryCache || new
|
|
479
|
+
C(this, g);
|
|
480
|
+
C(this, U);
|
|
481
|
+
C(this, V);
|
|
482
|
+
C(this, tt);
|
|
483
|
+
C(this, et);
|
|
484
|
+
C(this, W);
|
|
485
|
+
C(this, rt);
|
|
486
|
+
C(this, nt);
|
|
487
|
+
y(this, g, e.queryCache || new Fe()), y(this, U, e.mutationCache || new _e()), y(this, V, e.defaultOptions || {}), y(this, tt, /* @__PURE__ */ new Map()), y(this, et, /* @__PURE__ */ new Map()), y(this, W, 0);
|
|
488
488
|
}
|
|
489
489
|
mount() {
|
|
490
|
-
ht(this,
|
|
490
|
+
ht(this, W)._++, h(this, W) === 1 && (y(this, rt, fe.subscribe(async (e) => {
|
|
491
491
|
e && (await this.resumePausedMutations(), h(this, g).onFocus());
|
|
492
|
-
})), y(this,
|
|
492
|
+
})), y(this, nt, Mt.subscribe(async (e) => {
|
|
493
493
|
e && (await this.resumePausedMutations(), h(this, g).onOnline());
|
|
494
494
|
})));
|
|
495
495
|
}
|
|
496
496
|
unmount() {
|
|
497
497
|
var e, t;
|
|
498
|
-
ht(this,
|
|
498
|
+
ht(this, W)._--, h(this, W) === 0 && ((e = h(this, rt)) == null || e.call(this), y(this, rt, void 0), (t = h(this, nt)) == null || t.call(this), y(this, nt, void 0));
|
|
499
499
|
}
|
|
500
500
|
isFetching(e) {
|
|
501
501
|
return h(this, g).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
502
502
|
}
|
|
503
503
|
isMutating(e) {
|
|
504
|
-
return h(this,
|
|
504
|
+
return h(this, U).findAll({ ...e, status: "pending" }).length;
|
|
505
505
|
}
|
|
506
506
|
getQueryData(e) {
|
|
507
507
|
var r;
|
|
@@ -509,27 +509,27 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
|
|
|
509
509
|
return (r = h(this, g).get(t.queryHash)) == null ? void 0 : r.state.data;
|
|
510
510
|
}
|
|
511
511
|
ensureQueryData(e) {
|
|
512
|
-
const t = this.defaultQueryOptions(e), r = h(this, g).build(this, t),
|
|
513
|
-
return
|
|
512
|
+
const t = this.defaultQueryOptions(e), r = h(this, g).build(this, t), o = r.state.data;
|
|
513
|
+
return o === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Ot(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(o));
|
|
514
514
|
}
|
|
515
515
|
getQueriesData(e) {
|
|
516
516
|
return h(this, g).findAll(e).map(({ queryKey: t, state: r }) => {
|
|
517
|
-
const
|
|
518
|
-
return [t,
|
|
517
|
+
const o = r.data;
|
|
518
|
+
return [t, o];
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
setQueryData(e, t, r) {
|
|
522
|
-
const
|
|
523
|
-
|
|
524
|
-
), d =
|
|
522
|
+
const o = this.defaultQueryOptions({ queryKey: e }), i = h(this, g).get(
|
|
523
|
+
o.queryHash
|
|
524
|
+
), d = i == null ? void 0 : i.state.data, l = ce(t, d);
|
|
525
525
|
if (l !== void 0)
|
|
526
|
-
return h(this, g).build(this,
|
|
526
|
+
return h(this, g).build(this, o).setData(l, { ...r, manual: !0 });
|
|
527
527
|
}
|
|
528
528
|
setQueriesData(e, t, r) {
|
|
529
529
|
return I.batch(
|
|
530
|
-
() => h(this, g).findAll(e).map(({ queryKey:
|
|
531
|
-
|
|
532
|
-
this.setQueryData(
|
|
530
|
+
() => h(this, g).findAll(e).map(({ queryKey: o }) => [
|
|
531
|
+
o,
|
|
532
|
+
this.setQueryData(o, t, r)
|
|
533
533
|
])
|
|
534
534
|
);
|
|
535
535
|
}
|
|
@@ -550,8 +550,8 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
|
|
|
550
550
|
}
|
|
551
551
|
resetQueries(e, t) {
|
|
552
552
|
const r = h(this, g);
|
|
553
|
-
return I.batch(() => (r.findAll(e).forEach((
|
|
554
|
-
|
|
553
|
+
return I.batch(() => (r.findAll(e).forEach((o) => {
|
|
554
|
+
o.reset();
|
|
555
555
|
}), this.refetchQueries(
|
|
556
556
|
{
|
|
557
557
|
type: "active",
|
|
@@ -561,10 +561,10 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
|
|
|
561
561
|
)));
|
|
562
562
|
}
|
|
563
563
|
cancelQueries(e, t = {}) {
|
|
564
|
-
const r = { revert: !0, ...t },
|
|
565
|
-
() => h(this, g).findAll(e).map((
|
|
564
|
+
const r = { revert: !0, ...t }, o = I.batch(
|
|
565
|
+
() => h(this, g).findAll(e).map((i) => i.cancel(r))
|
|
566
566
|
);
|
|
567
|
-
return Promise.all(
|
|
567
|
+
return Promise.all(o).then(P).catch(P);
|
|
568
568
|
}
|
|
569
569
|
invalidateQueries(e, t = {}) {
|
|
570
570
|
return I.batch(() => (h(this, g).findAll(e).forEach((r) => {
|
|
@@ -581,13 +581,13 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
|
|
|
581
581
|
const r = {
|
|
582
582
|
...t,
|
|
583
583
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
584
|
-
},
|
|
585
|
-
() => h(this, g).findAll(e).filter((
|
|
586
|
-
let d =
|
|
587
|
-
return r.throwOnError || (d = d.catch(P)),
|
|
584
|
+
}, o = I.batch(
|
|
585
|
+
() => h(this, g).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
|
|
586
|
+
let d = i.fetch(void 0, r);
|
|
587
|
+
return r.throwOnError || (d = d.catch(P)), i.state.fetchStatus === "paused" ? Promise.resolve() : d;
|
|
588
588
|
})
|
|
589
589
|
);
|
|
590
|
-
return Promise.all(
|
|
590
|
+
return Promise.all(o).then(P);
|
|
591
591
|
}
|
|
592
592
|
fetchQuery(e) {
|
|
593
593
|
const t = this.defaultQueryOptions(e);
|
|
@@ -610,49 +610,49 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
|
|
|
610
610
|
return e.behavior = Rt(e.pages), this.ensureQueryData(e);
|
|
611
611
|
}
|
|
612
612
|
resumePausedMutations() {
|
|
613
|
-
return Mt.isOnline() ? h(this,
|
|
613
|
+
return Mt.isOnline() ? h(this, U).resumePausedMutations() : Promise.resolve();
|
|
614
614
|
}
|
|
615
615
|
getQueryCache() {
|
|
616
616
|
return h(this, g);
|
|
617
617
|
}
|
|
618
618
|
getMutationCache() {
|
|
619
|
-
return h(this,
|
|
619
|
+
return h(this, U);
|
|
620
620
|
}
|
|
621
621
|
getDefaultOptions() {
|
|
622
|
-
return h(this,
|
|
622
|
+
return h(this, V);
|
|
623
623
|
}
|
|
624
624
|
setDefaultOptions(e) {
|
|
625
|
-
y(this,
|
|
625
|
+
y(this, V, e);
|
|
626
626
|
}
|
|
627
627
|
setQueryDefaults(e, t) {
|
|
628
|
-
h(this,
|
|
628
|
+
h(this, tt).set(St(e), {
|
|
629
629
|
queryKey: e,
|
|
630
630
|
defaultOptions: t
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
getQueryDefaults(e) {
|
|
634
|
-
const t = [...h(this,
|
|
635
|
-
return t.forEach((
|
|
636
|
-
|
|
634
|
+
const t = [...h(this, tt).values()], r = {};
|
|
635
|
+
return t.forEach((o) => {
|
|
636
|
+
Bt(e, o.queryKey) && Object.assign(r, o.defaultOptions);
|
|
637
637
|
}), r;
|
|
638
638
|
}
|
|
639
639
|
setMutationDefaults(e, t) {
|
|
640
|
-
h(this,
|
|
640
|
+
h(this, et).set(St(e), {
|
|
641
641
|
mutationKey: e,
|
|
642
642
|
defaultOptions: t
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
645
|
getMutationDefaults(e) {
|
|
646
|
-
const t = [...h(this,
|
|
647
|
-
return t.forEach((
|
|
648
|
-
|
|
646
|
+
const t = [...h(this, et).values()], r = {};
|
|
647
|
+
return t.forEach((o) => {
|
|
648
|
+
Bt(e, o.mutationKey) && Object.assign(r, o.defaultOptions);
|
|
649
649
|
}), r;
|
|
650
650
|
}
|
|
651
651
|
defaultQueryOptions(e) {
|
|
652
652
|
if (e._defaulted)
|
|
653
653
|
return e;
|
|
654
654
|
const t = {
|
|
655
|
-
...h(this,
|
|
655
|
+
...h(this, V).queries,
|
|
656
656
|
...this.getQueryDefaults(e.queryKey),
|
|
657
657
|
...e,
|
|
658
658
|
_defaulted: !0
|
|
@@ -664,16 +664,16 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
|
|
|
664
664
|
}
|
|
665
665
|
defaultMutationOptions(e) {
|
|
666
666
|
return e != null && e._defaulted ? e : {
|
|
667
|
-
...h(this,
|
|
667
|
+
...h(this, V).mutations,
|
|
668
668
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
669
669
|
...e,
|
|
670
670
|
_defaulted: !0
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
673
|
clear() {
|
|
674
|
-
h(this, g).clear(), h(this,
|
|
674
|
+
h(this, g).clear(), h(this, U).clear();
|
|
675
675
|
}
|
|
676
|
-
}, g = new WeakMap(),
|
|
676
|
+
}, g = new WeakMap(), U = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), W = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), At);
|
|
677
677
|
const Le = [
|
|
678
678
|
"header",
|
|
679
679
|
"footer",
|
|
@@ -691,8 +691,8 @@ const Le = [
|
|
|
691
691
|
), Qe = (e) => Kt(() => {
|
|
692
692
|
switch (e.handler) {
|
|
693
693
|
case "navigate": {
|
|
694
|
-
const { url: r, target:
|
|
695
|
-
Jt && (window == null || window.open(r,
|
|
694
|
+
const { url: r, target: o, rel: i } = e;
|
|
695
|
+
Jt && (window == null || window.open(r, o, i));
|
|
696
696
|
break;
|
|
697
697
|
}
|
|
698
698
|
case "scroll": {
|
|
@@ -701,9 +701,9 @@ const Le = [
|
|
|
701
701
|
break;
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
}, [e]),
|
|
704
|
+
}, [e]), Y = ({ handlerOptions: e, ...t }) => {
|
|
705
705
|
const r = Qe(e);
|
|
706
|
-
return /* @__PURE__ */ n.jsx(
|
|
706
|
+
return /* @__PURE__ */ n.jsx(wt, { onClick: r, ...t, children: t.children });
|
|
707
707
|
}, ze = M(
|
|
708
708
|
"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",
|
|
709
709
|
{
|
|
@@ -719,34 +719,34 @@ const Le = [
|
|
|
719
719
|
subtitle: e,
|
|
720
720
|
title: t,
|
|
721
721
|
img: r,
|
|
722
|
-
mobileImg:
|
|
723
|
-
classes:
|
|
722
|
+
mobileImg: o,
|
|
723
|
+
classes: i,
|
|
724
724
|
withButton: d,
|
|
725
725
|
button: l,
|
|
726
726
|
variant: u,
|
|
727
727
|
color: p
|
|
728
728
|
}) => {
|
|
729
|
-
const { isDesktop: m } =
|
|
729
|
+
const { isDesktop: m } = K();
|
|
730
730
|
return /* @__PURE__ */ n.jsxs(
|
|
731
731
|
"li",
|
|
732
732
|
{
|
|
733
733
|
style: { backgroundColor: p ?? "#f4f8fe" },
|
|
734
|
-
className: a(ze({ variant: u }), { "pb-0":
|
|
734
|
+
className: a(ze({ variant: u }), { "pb-0": o }, { "pb-12": !o }, i == null ? void 0 : i.root),
|
|
735
735
|
children: [
|
|
736
|
-
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8",
|
|
737
|
-
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4",
|
|
738
|
-
/* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: a("desktop:desk-title-bold-s",
|
|
736
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
737
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
738
|
+
/* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: a("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
739
739
|
/* @__PURE__ */ n.jsx(
|
|
740
740
|
"div",
|
|
741
741
|
{
|
|
742
742
|
dangerouslySetInnerHTML: { __html: e },
|
|
743
|
-
className: a("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l",
|
|
743
|
+
className: a("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
|
|
744
744
|
}
|
|
745
745
|
)
|
|
746
746
|
] }),
|
|
747
|
-
d && m && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx(
|
|
747
|
+
d && m && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx(Y, { intent: "primary", className: a("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
|
|
748
748
|
] }),
|
|
749
|
-
(
|
|
749
|
+
(o || m) && r && /* @__PURE__ */ n.jsx("div", { className: a("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && k.isObject(r) ? /* @__PURE__ */ n.jsx("img", { className: a("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: t }) : r })
|
|
750
750
|
]
|
|
751
751
|
},
|
|
752
752
|
t
|
|
@@ -759,33 +759,33 @@ const Le = [
|
|
|
759
759
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
}),
|
|
762
|
+
}), wn = ({ headline: e, details: t, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: a("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ n.jsxs(H, { className: o == null ? void 0 : o.container, children: [
|
|
763
763
|
/* @__PURE__ */ n.jsx(
|
|
764
764
|
"div",
|
|
765
765
|
{
|
|
766
766
|
dangerouslySetInnerHTML: { __html: e },
|
|
767
|
-
className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m",
|
|
767
|
+
className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
|
|
768
768
|
}
|
|
769
769
|
),
|
|
770
|
-
/* @__PURE__ */ n.jsx("ul", { className: a(Ae({ variant: r }),
|
|
770
|
+
/* @__PURE__ */ n.jsx("ul", { className: a(Ae({ variant: r }), o == null ? void 0 : o.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ n.jsx(qe, { variant: r, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
|
|
771
771
|
] }) }), Ue = ({ variant: e, details: t }) => {
|
|
772
772
|
switch (e) {
|
|
773
773
|
case "withButton":
|
|
774
|
-
return /* @__PURE__ */ n.jsx(
|
|
774
|
+
return /* @__PURE__ */ n.jsx(Y, { ...t });
|
|
775
775
|
case "withPhone":
|
|
776
776
|
return /* @__PURE__ */ n.jsx(Wt, { classes: { root: "items-end" }, ...t, phone: bt(t.phone) });
|
|
777
777
|
default:
|
|
778
778
|
return null;
|
|
779
779
|
}
|
|
780
|
-
},
|
|
781
|
-
const { logoPath: t = "/", logoType: r = "main", classes:
|
|
780
|
+
}, vn = (e) => {
|
|
781
|
+
const { logoPath: t = "/", logoType: r = "main", classes: o } = e;
|
|
782
782
|
return /* @__PURE__ */ n.jsx(
|
|
783
783
|
"header",
|
|
784
784
|
{
|
|
785
785
|
id: j.header,
|
|
786
786
|
"data-test-id": j.header,
|
|
787
|
-
className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]",
|
|
788
|
-
children: /* @__PURE__ */ n.jsx(
|
|
787
|
+
className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
788
|
+
children: /* @__PURE__ */ n.jsx(H, { className: a(o == null ? void 0 : o.container), children: /* @__PURE__ */ n.jsxs("div", { className: a("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
789
789
|
/* @__PURE__ */ n.jsx(
|
|
790
790
|
"a",
|
|
791
791
|
{
|
|
@@ -795,7 +795,7 @@ const Le = [
|
|
|
795
795
|
rel: "noreferrer",
|
|
796
796
|
className: a(
|
|
797
797
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
798
|
-
|
|
798
|
+
o == null ? void 0 : o.logo
|
|
799
799
|
),
|
|
800
800
|
children: ge[r]
|
|
801
801
|
}
|
|
@@ -808,21 +808,21 @@ const Le = [
|
|
|
808
808
|
headTitle: e,
|
|
809
809
|
subtitle: t,
|
|
810
810
|
buttonsConfig: r,
|
|
811
|
-
advantages:
|
|
812
|
-
classes:
|
|
811
|
+
advantages: o,
|
|
812
|
+
classes: i,
|
|
813
813
|
imgMobile: d,
|
|
814
814
|
imgDesktop: l,
|
|
815
815
|
color: u
|
|
816
816
|
}) => {
|
|
817
|
-
var
|
|
818
|
-
const { isDesktop: p, isMobile: m } =
|
|
817
|
+
var w;
|
|
818
|
+
const { isDesktop: p, isMobile: m } = K(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && k.isObject(d) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, T = l && "url" in l && k.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, N = /* @__PURE__ */ n.jsx(
|
|
819
819
|
"div",
|
|
820
820
|
{
|
|
821
821
|
className: a(
|
|
822
822
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
823
|
-
|
|
823
|
+
i == null ? void 0 : i.advantageContainer
|
|
824
824
|
),
|
|
825
|
-
children: (
|
|
825
|
+
children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ n.jsx(ee, { ...o })
|
|
826
826
|
}
|
|
827
827
|
);
|
|
828
828
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -832,24 +832,24 @@ const Le = [
|
|
|
832
832
|
id: j.banner,
|
|
833
833
|
"data-test-id": j.banner,
|
|
834
834
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
835
|
-
className: a("relative h-[552px] desktop:h-[456px]",
|
|
835
|
+
className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
836
836
|
children: [
|
|
837
|
-
/* @__PURE__ */ n.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: m ? b :
|
|
838
|
-
/* @__PURE__ */ n.jsxs(
|
|
839
|
-
/* @__PURE__ */ n.jsx("div", { className: a("flex h-full",
|
|
837
|
+
/* @__PURE__ */ n.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: m ? b : T }),
|
|
838
|
+
/* @__PURE__ */ n.jsxs(H, { className: a("h-full", i == null ? void 0 : i.container), children: [
|
|
839
|
+
/* @__PURE__ */ n.jsx("div", { className: a("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ n.jsxs("div", { className: a("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
|
|
840
840
|
/* @__PURE__ */ n.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
841
841
|
/* @__PURE__ */ n.jsx(
|
|
842
842
|
"div",
|
|
843
843
|
{
|
|
844
844
|
dangerouslySetInnerHTML: { __html: e },
|
|
845
|
-
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l",
|
|
845
|
+
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
846
846
|
}
|
|
847
847
|
),
|
|
848
848
|
/* @__PURE__ */ n.jsx(
|
|
849
849
|
"div",
|
|
850
850
|
{
|
|
851
851
|
dangerouslySetInnerHTML: { __html: t },
|
|
852
|
-
className: a("desk-body-regular-l text-color-dark",
|
|
852
|
+
className: a("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
853
853
|
}
|
|
854
854
|
)
|
|
855
855
|
] }),
|
|
@@ -859,23 +859,23 @@ const Le = [
|
|
|
859
859
|
className: a(
|
|
860
860
|
"grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col self-end 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:self-center desktop:px-0",
|
|
861
861
|
{ "flex items-center gap-4": f == null ? void 0 : f.enabled },
|
|
862
|
-
|
|
862
|
+
i == null ? void 0 : i.group
|
|
863
863
|
),
|
|
864
864
|
children: [
|
|
865
865
|
x.enabled && /* @__PURE__ */ n.jsx(
|
|
866
|
-
|
|
866
|
+
Y,
|
|
867
867
|
{
|
|
868
|
-
className: a("w-full desktop:max-w-[216px]",
|
|
868
|
+
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
869
869
|
size: "lg",
|
|
870
870
|
intent: "primary",
|
|
871
871
|
...x.buttonContent
|
|
872
872
|
}
|
|
873
873
|
),
|
|
874
874
|
(f == null ? void 0 : f.enabled) && /* @__PURE__ */ n.jsx(
|
|
875
|
-
|
|
875
|
+
Y,
|
|
876
876
|
{
|
|
877
877
|
intent: "secondary",
|
|
878
|
-
className: a("w-full desktop:max-w-[216px]",
|
|
878
|
+
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
879
879
|
...x.buttonContent
|
|
880
880
|
}
|
|
881
881
|
)
|
|
@@ -883,32 +883,32 @@ const Le = [
|
|
|
883
883
|
}
|
|
884
884
|
)
|
|
885
885
|
] }) }),
|
|
886
|
-
p && (
|
|
886
|
+
p && (o == null ? void 0 : o.enabled) && N
|
|
887
887
|
] })
|
|
888
888
|
]
|
|
889
889
|
}
|
|
890
890
|
),
|
|
891
|
-
m && (
|
|
891
|
+
m && (o == null ? void 0 : o.enabled) && N
|
|
892
892
|
] });
|
|
893
893
|
}, _t = ({
|
|
894
894
|
headTitle: e,
|
|
895
895
|
subtitle: t,
|
|
896
896
|
buttonsConfig: r,
|
|
897
|
-
advantages:
|
|
898
|
-
classes:
|
|
897
|
+
advantages: o,
|
|
898
|
+
classes: i,
|
|
899
899
|
imgMobile: d,
|
|
900
900
|
imgDesktop: l,
|
|
901
901
|
color: u
|
|
902
902
|
}) => {
|
|
903
|
-
var
|
|
904
|
-
const { isDesktop: p, isMobile: m } =
|
|
903
|
+
var w;
|
|
904
|
+
const { isDesktop: p, isMobile: m } = K(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && k.isObject(d) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: d.url }) : d, T = l && "url" in l && k.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: l.url }) : l, N = /* @__PURE__ */ n.jsx(
|
|
905
905
|
"div",
|
|
906
906
|
{
|
|
907
907
|
className: a(
|
|
908
908
|
"flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:p-0",
|
|
909
|
-
|
|
909
|
+
i == null ? void 0 : i.advantageContainer
|
|
910
910
|
),
|
|
911
|
-
children: (
|
|
911
|
+
children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ n.jsx(ee, { ...o })
|
|
912
912
|
}
|
|
913
913
|
);
|
|
914
914
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -918,23 +918,23 @@ const Le = [
|
|
|
918
918
|
id: j.banner,
|
|
919
919
|
"data-test-id": j.banner,
|
|
920
920
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
921
|
-
className: a("bg-banner-skyblue-300 desktop:h-[456px]",
|
|
922
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
923
|
-
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col desktop:flex-row desktop:justify-between",
|
|
921
|
+
className: a("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
922
|
+
children: /* @__PURE__ */ n.jsxs(H, { className: a("relative", i == null ? void 0 : i.container), children: [
|
|
923
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
924
924
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
925
|
-
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4 pt-6 desktop:pt-0",
|
|
925
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
926
926
|
/* @__PURE__ */ n.jsx(
|
|
927
927
|
"div",
|
|
928
928
|
{
|
|
929
929
|
dangerouslySetInnerHTML: { __html: e },
|
|
930
|
-
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l",
|
|
930
|
+
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
931
931
|
}
|
|
932
932
|
),
|
|
933
933
|
/* @__PURE__ */ n.jsx(
|
|
934
934
|
"div",
|
|
935
935
|
{
|
|
936
936
|
dangerouslySetInnerHTML: { __html: t },
|
|
937
|
-
className: a("desk-body-regular-l text-color-dark",
|
|
937
|
+
className: a("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
938
938
|
}
|
|
939
939
|
)
|
|
940
940
|
] }),
|
|
@@ -944,23 +944,23 @@ const Le = [
|
|
|
944
944
|
className: a(
|
|
945
945
|
"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",
|
|
946
946
|
{ "flex items-center gap-4": f == null ? void 0 : f.enabled },
|
|
947
|
-
|
|
947
|
+
i == null ? void 0 : i.group
|
|
948
948
|
),
|
|
949
949
|
children: [
|
|
950
950
|
x.enabled && /* @__PURE__ */ n.jsx(
|
|
951
|
-
|
|
951
|
+
Y,
|
|
952
952
|
{
|
|
953
|
-
className: a("w-full desktop:max-w-[216px]",
|
|
953
|
+
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
954
954
|
size: "lg",
|
|
955
955
|
intent: "primary",
|
|
956
956
|
...x.buttonContent
|
|
957
957
|
}
|
|
958
958
|
),
|
|
959
959
|
(f == null ? void 0 : f.enabled) && /* @__PURE__ */ n.jsx(
|
|
960
|
-
|
|
960
|
+
Y,
|
|
961
961
|
{
|
|
962
962
|
intent: "secondary",
|
|
963
|
-
className: a("w-full desktop:max-w-[216px]",
|
|
963
|
+
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
964
964
|
...x.buttonContent
|
|
965
965
|
}
|
|
966
966
|
)
|
|
@@ -968,15 +968,15 @@ const Le = [
|
|
|
968
968
|
}
|
|
969
969
|
)
|
|
970
970
|
] }),
|
|
971
|
-
/* @__PURE__ */ n.jsx("div", { className: a("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]",
|
|
971
|
+
/* @__PURE__ */ n.jsx("div", { className: a("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", i == null ? void 0 : i.imageContainer), children: m ? b : T })
|
|
972
972
|
] }),
|
|
973
|
-
p && (
|
|
973
|
+
p && (o == null ? void 0 : o.enabled) && N
|
|
974
974
|
] })
|
|
975
975
|
}
|
|
976
976
|
),
|
|
977
|
-
m && (
|
|
977
|
+
m && (o == null ? void 0 : o.enabled) && N
|
|
978
978
|
] });
|
|
979
|
-
},
|
|
979
|
+
}, Nn = ({ variant: e, ...t }) => {
|
|
980
980
|
switch (e) {
|
|
981
981
|
case "separateImg":
|
|
982
982
|
return /* @__PURE__ */ n.jsx(_t, { ...t });
|
|
@@ -986,7 +986,7 @@ const Le = [
|
|
|
986
986
|
return /* @__PURE__ */ n.jsx(_t, { ...t });
|
|
987
987
|
}
|
|
988
988
|
}, ee = ({ details: e, classes: t }) => {
|
|
989
|
-
const { variant: r, items:
|
|
989
|
+
const { variant: r, items: o } = e ?? {};
|
|
990
990
|
return /* @__PURE__ */ n.jsx(
|
|
991
991
|
"div",
|
|
992
992
|
{
|
|
@@ -997,7 +997,7 @@ const Le = [
|
|
|
997
997
|
{ "desktop:max-w-[1140px]": r === "fourCards" },
|
|
998
998
|
t == null ? void 0 : t.root
|
|
999
999
|
),
|
|
1000
|
-
children:
|
|
1000
|
+
children: o == null ? void 0 : o.map(({ title: i, description: d }) => /* @__PURE__ */ n.jsxs(
|
|
1001
1001
|
"div",
|
|
1002
1002
|
{
|
|
1003
1003
|
className: a(
|
|
@@ -1005,28 +1005,28 @@ const Le = [
|
|
|
1005
1005
|
t == null ? void 0 : t.item
|
|
1006
1006
|
),
|
|
1007
1007
|
children: [
|
|
1008
|
-
/* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", t == null ? void 0 : t.title), children:
|
|
1008
|
+
/* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", t == null ? void 0 : t.title), children: i }),
|
|
1009
1009
|
/* @__PURE__ */ n.jsx("p", { className: a("desk-body-regular-l text-color-secondary", t == null ? void 0 : t.description), children: d })
|
|
1010
1010
|
]
|
|
1011
1011
|
},
|
|
1012
|
-
|
|
1012
|
+
i
|
|
1013
1013
|
))
|
|
1014
1014
|
}
|
|
1015
1015
|
);
|
|
1016
|
-
}, We = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href:
|
|
1016
|
+
}, We = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: o }) => /* @__PURE__ */ n.jsx(
|
|
1017
1017
|
"a",
|
|
1018
1018
|
{
|
|
1019
1019
|
className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
|
|
1020
|
-
href:
|
|
1020
|
+
href: o,
|
|
1021
1021
|
"aria-label": r.replace("social/", ""),
|
|
1022
1022
|
children: /* @__PURE__ */ n.jsx(c, { name: r, className: a("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
|
|
1023
1023
|
},
|
|
1024
|
-
|
|
1025
|
-
)) }), Ge = ({ phones: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text:
|
|
1024
|
+
o
|
|
1025
|
+
)) }), Ge = ({ phones: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text: o }) => /* @__PURE__ */ n.jsx(
|
|
1026
1026
|
Wt,
|
|
1027
1027
|
{
|
|
1028
1028
|
phone: bt(r),
|
|
1029
|
-
text:
|
|
1029
|
+
text: o,
|
|
1030
1030
|
classes: {
|
|
1031
1031
|
root: a(t == null ? void 0 : t.phoneWrapper),
|
|
1032
1032
|
text: a("text-color-footer", t == null ? void 0 : t.phoneText),
|
|
@@ -1042,9 +1042,9 @@ const Le = [
|
|
|
1042
1042
|
e == null ? void 0 : e.navRoot
|
|
1043
1043
|
),
|
|
1044
1044
|
children: t == null ? void 0 : t.map(
|
|
1045
|
-
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel:
|
|
1046
|
-
/* @__PURE__ */ n.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children:
|
|
1047
|
-
/* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children:
|
|
1045
|
+
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
1046
|
+
/* @__PURE__ */ n.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: o }),
|
|
1047
|
+
/* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: i == null ? void 0 : i.map(({ path: d, label: l }) => /* @__PURE__ */ n.jsx(
|
|
1048
1048
|
ct,
|
|
1049
1049
|
{
|
|
1050
1050
|
href: d,
|
|
@@ -1058,7 +1058,7 @@ const Le = [
|
|
|
1058
1058
|
},
|
|
1059
1059
|
l
|
|
1060
1060
|
)) })
|
|
1061
|
-
] },
|
|
1061
|
+
] }, o))
|
|
1062
1062
|
)
|
|
1063
1063
|
}
|
|
1064
1064
|
), $e = ({ text: e, classes: t }) => /* @__PURE__ */ n.jsx(
|
|
@@ -1090,8 +1090,8 @@ const Le = [
|
|
|
1090
1090
|
children: "Карта сайта"
|
|
1091
1091
|
}
|
|
1092
1092
|
), Je = ({ text: e, classes: t }) => {
|
|
1093
|
-
const [r,
|
|
1094
|
-
return
|
|
1093
|
+
const [r, o] = at.useState(!1), [i, d] = at.useState(!1), l = at.useRef(null);
|
|
1094
|
+
return at.useEffect(() => {
|
|
1095
1095
|
const u = l.current;
|
|
1096
1096
|
u && d(u.scrollHeight > u.clientHeight);
|
|
1097
1097
|
}, []), /* @__PURE__ */ n.jsxs("div", { className: a("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
|
|
@@ -1103,12 +1103,12 @@ const Le = [
|
|
|
1103
1103
|
dangerouslySetInnerHTML: { __html: e }
|
|
1104
1104
|
}
|
|
1105
1105
|
),
|
|
1106
|
-
|
|
1106
|
+
i && /* @__PURE__ */ n.jsx(
|
|
1107
1107
|
"div",
|
|
1108
1108
|
{
|
|
1109
1109
|
tabIndex: 0,
|
|
1110
1110
|
role: "button",
|
|
1111
|
-
onClick: () =>
|
|
1111
|
+
onClick: () => o((u) => !u),
|
|
1112
1112
|
className: a(
|
|
1113
1113
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1114
1114
|
t == null ? void 0 : t.ligalButton
|
|
@@ -1117,12 +1117,12 @@ const Le = [
|
|
|
1117
1117
|
}
|
|
1118
1118
|
)
|
|
1119
1119
|
] });
|
|
1120
|
-
},
|
|
1120
|
+
}, sn = ({
|
|
1121
1121
|
socialsLinks: e,
|
|
1122
1122
|
phones: t,
|
|
1123
1123
|
ligal: r,
|
|
1124
|
-
copyright:
|
|
1125
|
-
classes:
|
|
1124
|
+
copyright: o,
|
|
1125
|
+
classes: i,
|
|
1126
1126
|
details: d,
|
|
1127
1127
|
siteMap: l = !0
|
|
1128
1128
|
}) => /* @__PURE__ */ n.jsx(
|
|
@@ -1130,43 +1130,43 @@ const Le = [
|
|
|
1130
1130
|
{
|
|
1131
1131
|
id: j.footer,
|
|
1132
1132
|
"data-test-id": j.footer,
|
|
1133
|
-
className: a("w-full bg-color-footer py-8 desktop:py-10",
|
|
1134
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1133
|
+
className: a("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1134
|
+
children: /* @__PURE__ */ n.jsx(H, { className: a(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ n.jsxs("div", { className: a("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1135
1135
|
/* @__PURE__ */ n.jsxs(
|
|
1136
1136
|
"div",
|
|
1137
1137
|
{
|
|
1138
1138
|
className: a(
|
|
1139
1139
|
"flex flex-col items-start justify-between gap-4 border-b border-solid border-blue-grey-500 pb-6 desktop:flex-row desktop:gap-6 desktop:pb-8",
|
|
1140
|
-
|
|
1140
|
+
i == null ? void 0 : i.footerHead
|
|
1141
1141
|
),
|
|
1142
1142
|
children: [
|
|
1143
|
-
/* @__PURE__ */ n.jsxs("div", { className: a(
|
|
1144
|
-
/* @__PURE__ */ n.jsx(Ze, { classes:
|
|
1145
|
-
e.enabled && /* @__PURE__ */ n.jsx(We, { socialsLinks: e.links, classes:
|
|
1143
|
+
/* @__PURE__ */ n.jsxs("div", { className: a(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1144
|
+
/* @__PURE__ */ n.jsx(Ze, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1145
|
+
e.enabled && /* @__PURE__ */ n.jsx(We, { socialsLinks: e.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1146
1146
|
] }),
|
|
1147
|
-
t.enabled && /* @__PURE__ */ n.jsx(Ge, { phones: t.items, classes:
|
|
1147
|
+
t.enabled && /* @__PURE__ */ n.jsx(Ge, { phones: t.items, classes: i == null ? void 0 : i.phonesBlock })
|
|
1148
1148
|
]
|
|
1149
1149
|
}
|
|
1150
1150
|
),
|
|
1151
|
-
!
|
|
1151
|
+
!k.isArrayEmpty(d) && /* @__PURE__ */ n.jsx(Ke, { details: d, classes: i == null ? void 0 : i.navLinks }),
|
|
1152
1152
|
r.enabled && /* @__PURE__ */ n.jsx(Je, { text: r.text }),
|
|
1153
1153
|
/* @__PURE__ */ n.jsxs(
|
|
1154
1154
|
"div",
|
|
1155
1155
|
{
|
|
1156
1156
|
className: a(
|
|
1157
1157
|
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
1158
|
-
|
|
1158
|
+
i == null ? void 0 : i.footerBottom
|
|
1159
1159
|
),
|
|
1160
1160
|
children: [
|
|
1161
|
-
|
|
1162
|
-
l && /* @__PURE__ */ n.jsx(Xe, { classes:
|
|
1161
|
+
o.enabled && /* @__PURE__ */ n.jsx($e, { text: o.text, classes: i == null ? void 0 : i.copyright }),
|
|
1162
|
+
l && /* @__PURE__ */ n.jsx(Xe, { classes: i == null ? void 0 : i.siteMap })
|
|
1163
1163
|
]
|
|
1164
1164
|
}
|
|
1165
1165
|
)
|
|
1166
1166
|
] }) })
|
|
1167
1167
|
}
|
|
1168
|
-
), Ye = ({ classes: e, index: t, variant: r, title:
|
|
1169
|
-
const d = r === "withTitleAndDescription" &&
|
|
1168
|
+
), Ye = ({ classes: e, index: t, variant: r, title: o, description: i }) => {
|
|
1169
|
+
const d = r === "withTitleAndDescription" && o;
|
|
1170
1170
|
return /* @__PURE__ */ n.jsxs(
|
|
1171
1171
|
"div",
|
|
1172
1172
|
{
|
|
@@ -1186,11 +1186,11 @@ const Le = [
|
|
|
1186
1186
|
}
|
|
1187
1187
|
),
|
|
1188
1188
|
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-2"), children: [
|
|
1189
|
-
d && /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", e == null ? void 0 : e.title), children:
|
|
1189
|
+
d && /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", e == null ? void 0 : e.title), children: o }),
|
|
1190
1190
|
/* @__PURE__ */ n.jsx(
|
|
1191
1191
|
"div",
|
|
1192
1192
|
{
|
|
1193
|
-
dangerouslySetInnerHTML: { __html:
|
|
1193
|
+
dangerouslySetInnerHTML: { __html: i ?? "" },
|
|
1194
1194
|
className: a("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.description)
|
|
1195
1195
|
}
|
|
1196
1196
|
)
|
|
@@ -1198,16 +1198,16 @@ const Le = [
|
|
|
1198
1198
|
]
|
|
1199
1199
|
}
|
|
1200
1200
|
);
|
|
1201
|
-
}, Cn = ({ headline: e, details: t, variant: r, classes:
|
|
1202
|
-
/* @__PURE__ */ n.jsx(L, { as: "h2", className: a("text-color-dark",
|
|
1201
|
+
}, Cn = ({ headline: e, details: t, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ n.jsx(H, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
1202
|
+
/* @__PURE__ */ n.jsx(L, { as: "h2", className: a("text-color-dark", o == null ? void 0 : o.headline), children: e }),
|
|
1203
1203
|
/* @__PURE__ */ n.jsx(
|
|
1204
1204
|
"div",
|
|
1205
1205
|
{
|
|
1206
1206
|
className: a(
|
|
1207
1207
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1208
|
-
|
|
1208
|
+
o == null ? void 0 : o.stepsWrapper
|
|
1209
1209
|
),
|
|
1210
|
-
children: t == null ? void 0 : t.map((
|
|
1210
|
+
children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ n.jsx(Ye, { variant: r, ...i, index: d + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
1211
1211
|
}
|
|
1212
1212
|
)
|
|
1213
1213
|
] }) }) }), tr = M("", {
|
|
@@ -1297,28 +1297,28 @@ const Le = [
|
|
|
1297
1297
|
}), or = ({ data: e, intent: t }) => {
|
|
1298
1298
|
const {
|
|
1299
1299
|
title: r,
|
|
1300
|
-
description:
|
|
1301
|
-
popover:
|
|
1300
|
+
description: o,
|
|
1301
|
+
popover: i = {
|
|
1302
1302
|
enabled: !1
|
|
1303
1303
|
}
|
|
1304
1304
|
} = e;
|
|
1305
1305
|
return /* @__PURE__ */ n.jsx("li", { className: a(rr({ intent: t })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1306
1306
|
/* @__PURE__ */ n.jsxs("div", { className: a("mb-2 flex items-center gap-2"), children: [
|
|
1307
1307
|
/* @__PURE__ */ n.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children: r }),
|
|
1308
|
-
|
|
1308
|
+
i.enabled && /* @__PURE__ */ n.jsx(je, { triggerElement: /* @__PURE__ */ n.jsx(c, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1309
1309
|
] }),
|
|
1310
|
-
/* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html:
|
|
1310
|
+
/* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1311
1311
|
] }) });
|
|
1312
|
-
}, jt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden:
|
|
1312
|
+
}, jt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: a(tr({ intent: e, desktopHidden: r, mobileHidden: o })), children: t }), ir = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: a(er({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(or, { intent: t, data: o }, i)) }), Tn = ({
|
|
1313
1313
|
headline: e,
|
|
1314
1314
|
buttonConfig: t,
|
|
1315
1315
|
intent: r = "twoItems",
|
|
1316
|
-
details:
|
|
1317
|
-
image:
|
|
1316
|
+
details: o,
|
|
1317
|
+
image: i,
|
|
1318
1318
|
classes: d
|
|
1319
1319
|
}) => {
|
|
1320
|
-
const l = r === "fourItems", u = r === "twoItems", p =
|
|
1321
|
-
return /* @__PURE__ */ n.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ n.jsxs(
|
|
1320
|
+
const l = r === "fourItems", u = r === "twoItems", p = i && "url" in i && k.isObject(i) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: i.url }) : i;
|
|
1321
|
+
return /* @__PURE__ */ n.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ n.jsxs(H, { className: a(d == null ? void 0 : d.container), children: [
|
|
1322
1322
|
u && /* @__PURE__ */ n.jsx(jt, { intent: r, headline: e }),
|
|
1323
1323
|
/* @__PURE__ */ n.jsxs(
|
|
1324
1324
|
"div",
|
|
@@ -1336,9 +1336,9 @@ const Le = [
|
|
|
1336
1336
|
className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
|
|
1337
1337
|
children: [
|
|
1338
1338
|
l && /* @__PURE__ */ n.jsx(jt, { intent: r, headline: e, mobileHidden: !0 }),
|
|
1339
|
-
/* @__PURE__ */ n.jsx(ir, { details:
|
|
1339
|
+
/* @__PURE__ */ n.jsx(ir, { details: o, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
|
|
1340
1340
|
(t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ n.jsx(
|
|
1341
|
-
|
|
1341
|
+
Y,
|
|
1342
1342
|
{
|
|
1343
1343
|
className: a("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
|
|
1344
1344
|
size: "lg",
|
|
@@ -1357,7 +1357,7 @@ const Le = [
|
|
|
1357
1357
|
ESIA: "esia",
|
|
1358
1358
|
MOBILE_ID: "mobileId",
|
|
1359
1359
|
COMBINE: "combine"
|
|
1360
|
-
}, re = ({ children: e, isLoading: t, classes: r, loaderProps:
|
|
1360
|
+
}, re = ({ children: e, isLoading: t, classes: r, loaderProps: o }) => /* @__PURE__ */ n.jsx(
|
|
1361
1361
|
"div",
|
|
1362
1362
|
{
|
|
1363
1363
|
tabIndex: 0,
|
|
@@ -1375,7 +1375,7 @@ const Le = [
|
|
|
1375
1375
|
{ "items-center": t },
|
|
1376
1376
|
r == null ? void 0 : r.wrapper
|
|
1377
1377
|
),
|
|
1378
|
-
children: t ? /* @__PURE__ */ n.jsx(ye, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...
|
|
1378
|
+
children: t ? /* @__PURE__ */ n.jsx(ye, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : e
|
|
1379
1379
|
}
|
|
1380
1380
|
)
|
|
1381
1381
|
}
|
|
@@ -1407,7 +1407,7 @@ const Le = [
|
|
|
1407
1407
|
/* @__PURE__ */ n.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1408
1408
|
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1409
1409
|
] }) })
|
|
1410
|
-
] }), ne = ({ mainLink: e, subLink: t, isMobile: r, classes:
|
|
1410
|
+
] }), ne = ({ mainLink: e, subLink: t, isMobile: r, classes: o }) => /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
|
|
1411
1411
|
/* @__PURE__ */ n.jsx(
|
|
1412
1412
|
"a",
|
|
1413
1413
|
{
|
|
@@ -1416,7 +1416,7 @@ const Le = [
|
|
|
1416
1416
|
rel: "noreferrer",
|
|
1417
1417
|
className: a(
|
|
1418
1418
|
'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',
|
|
1419
|
-
|
|
1419
|
+
o == null ? void 0 : o.linksMainLink
|
|
1420
1420
|
),
|
|
1421
1421
|
children: r ? e.mobileTitle : e.title
|
|
1422
1422
|
}
|
|
@@ -1430,19 +1430,19 @@ const Le = [
|
|
|
1430
1430
|
target: "_blank",
|
|
1431
1431
|
rel: "noreferrer",
|
|
1432
1432
|
classes: {
|
|
1433
|
-
link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary",
|
|
1433
|
+
link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", o == null ? void 0 : o.linksSubLink)
|
|
1434
1434
|
},
|
|
1435
1435
|
children: t == null ? void 0 : t.text
|
|
1436
1436
|
}
|
|
1437
1437
|
)
|
|
1438
|
-
] }), Pt = ({ mainLink: e, subLink: t, isLoading: r, badge:
|
|
1439
|
-
const { isMobile: l } =
|
|
1440
|
-
return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps:
|
|
1438
|
+
] }), Pt = ({ mainLink: e, subLink: t, isLoading: r, badge: o, loaderProps: i, classes: d }) => {
|
|
1439
|
+
const { isMobile: l } = K();
|
|
1440
|
+
return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1441
1441
|
"div",
|
|
1442
1442
|
{
|
|
1443
1443
|
className: a(
|
|
1444
1444
|
"flex flex-1 items-center justify-between gap-1",
|
|
1445
|
-
{ "justify-center": !
|
|
1445
|
+
{ "justify-center": !o && l },
|
|
1446
1446
|
d == null ? void 0 : d.innerWrapper
|
|
1447
1447
|
),
|
|
1448
1448
|
children: [
|
|
@@ -1455,18 +1455,18 @@ const Le = [
|
|
|
1455
1455
|
/* @__PURE__ */ n.jsx(ne, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
|
|
1456
1456
|
/* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
|
|
1457
1457
|
] }),
|
|
1458
|
-
|
|
1458
|
+
o && /* @__PURE__ */ n.jsx(vt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: o })
|
|
1459
1459
|
]
|
|
1460
1460
|
}
|
|
1461
1461
|
) });
|
|
1462
|
-
}, Dt = ({ mainLink: e, subLink: t, isLoading: r, badge:
|
|
1463
|
-
const { isMobile: l } =
|
|
1464
|
-
return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps:
|
|
1462
|
+
}, Dt = ({ mainLink: e, subLink: t, isLoading: r, badge: o, loaderProps: i, classes: d }) => {
|
|
1463
|
+
const { isMobile: l } = K();
|
|
1464
|
+
return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1465
1465
|
"div",
|
|
1466
1466
|
{
|
|
1467
1467
|
className: a(
|
|
1468
1468
|
"flex flex-1 items-center justify-between gap-1",
|
|
1469
|
-
{ "justify-center": !
|
|
1469
|
+
{ "justify-center": !o && l },
|
|
1470
1470
|
d == null ? void 0 : d.innerWrapper
|
|
1471
1471
|
),
|
|
1472
1472
|
children: [
|
|
@@ -1475,7 +1475,7 @@ const Le = [
|
|
|
1475
1475
|
/* @__PURE__ */ n.jsx(ne, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
|
|
1476
1476
|
/* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
|
|
1477
1477
|
] }),
|
|
1478
|
-
|
|
1478
|
+
o && /* @__PURE__ */ n.jsx(vt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: o })
|
|
1479
1479
|
]
|
|
1480
1480
|
}
|
|
1481
1481
|
) });
|
|
@@ -1487,7 +1487,7 @@ const Le = [
|
|
|
1487
1487
|
return /* @__PURE__ */ n.jsx(Pt, { ...e });
|
|
1488
1488
|
case yt.COMBINE:
|
|
1489
1489
|
default:
|
|
1490
|
-
const { esiaConfig: t, mobileIdConfig: r, subtitle:
|
|
1490
|
+
const { esiaConfig: t, mobileIdConfig: r, subtitle: o, badge: i, classes: d } = e, l = !o && !i ? at.Fragment : "div";
|
|
1491
1491
|
return /* @__PURE__ */ n.jsxs(
|
|
1492
1492
|
"div",
|
|
1493
1493
|
{
|
|
@@ -1497,8 +1497,8 @@ const Le = [
|
|
|
1497
1497
|
),
|
|
1498
1498
|
children: [
|
|
1499
1499
|
/* @__PURE__ */ n.jsxs(l, { className: a("flex w-full items-center justify-between gap-2", d == null ? void 0 : d.topContent), children: [
|
|
1500
|
-
|
|
1501
|
-
|
|
1500
|
+
o && /* @__PURE__ */ n.jsx("h5", { className: a("desk-body-regular-l flex flex-1 text-color-dark", d == null ? void 0 : d.subtitle), children: o }),
|
|
1501
|
+
i && /* @__PURE__ */ n.jsx(vt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
|
|
1502
1502
|
] }),
|
|
1503
1503
|
/* @__PURE__ */ n.jsxs("div", { className: a("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
|
|
1504
1504
|
/* @__PURE__ */ n.jsx(
|
|
@@ -1528,7 +1528,7 @@ const Le = [
|
|
|
1528
1528
|
}
|
|
1529
1529
|
);
|
|
1530
1530
|
}
|
|
1531
|
-
}, En = (e) => ar(e), Lt = ({ links: e, classes: t }) => /* @__PURE__ */ n.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label:
|
|
1531
|
+
}, En = (e) => ar(e), Lt = ({ links: e, classes: t }) => /* @__PURE__ */ n.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: o }) => /* @__PURE__ */ n.jsx(
|
|
1532
1532
|
ct,
|
|
1533
1533
|
{
|
|
1534
1534
|
classes: {
|
|
@@ -1537,19 +1537,19 @@ const Le = [
|
|
|
1537
1537
|
},
|
|
1538
1538
|
intent: "dark",
|
|
1539
1539
|
href: r,
|
|
1540
|
-
children:
|
|
1540
|
+
children: o
|
|
1541
1541
|
},
|
|
1542
1542
|
r
|
|
1543
|
-
)) }), lr = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes:
|
|
1543
|
+
)) }), lr = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: o }) => {
|
|
1544
1544
|
var d, l, u;
|
|
1545
|
-
const { isMobile:
|
|
1546
|
-
return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-2",
|
|
1547
|
-
!
|
|
1548
|
-
/* @__PURE__ */ n.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l",
|
|
1549
|
-
/* @__PURE__ */ n.jsx(Lt, { links: t, classes:
|
|
1545
|
+
const { isMobile: i } = K();
|
|
1546
|
+
return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1547
|
+
!i && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1548
|
+
/* @__PURE__ */ n.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: e }),
|
|
1549
|
+
/* @__PURE__ */ n.jsx(Lt, { links: t, classes: o == null ? void 0 : o.linksList }, "desktop")
|
|
1550
1550
|
] }),
|
|
1551
|
-
|
|
1552
|
-
|
|
1551
|
+
i && /* @__PURE__ */ n.jsx(
|
|
1552
|
+
ot,
|
|
1553
1553
|
{
|
|
1554
1554
|
defaultOpen: !0,
|
|
1555
1555
|
label: e,
|
|
@@ -1562,11 +1562,11 @@ const Le = [
|
|
|
1562
1562
|
},
|
|
1563
1563
|
contentInner: a("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
|
|
1564
1564
|
},
|
|
1565
|
-
children: /* @__PURE__ */ n.jsx(Lt, { links: t, classes:
|
|
1565
|
+
children: /* @__PURE__ */ n.jsx(Lt, { links: t, classes: o == null ? void 0 : o.linksList }, "mobile")
|
|
1566
1566
|
}
|
|
1567
1567
|
)
|
|
1568
1568
|
] });
|
|
1569
|
-
}, ur = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((
|
|
1569
|
+
}, ur = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ n.jsx(lr, { ...t, ...o, classes: r == null ? void 0 : r.columnGroup }, o.groupLabel)) }), pr = M("grid gap-4 grid-cols-1", {
|
|
1570
1570
|
variants: {
|
|
1571
1571
|
variant: {
|
|
1572
1572
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1581,8 +1581,8 @@ const Le = [
|
|
|
1581
1581
|
variant: e,
|
|
1582
1582
|
details: t,
|
|
1583
1583
|
headline: r,
|
|
1584
|
-
mobileAccordionProps:
|
|
1585
|
-
rootAccordionProps:
|
|
1584
|
+
mobileAccordionProps: o,
|
|
1585
|
+
rootAccordionProps: i,
|
|
1586
1586
|
classes: d
|
|
1587
1587
|
}) => {
|
|
1588
1588
|
var l, u, p;
|
|
@@ -1592,25 +1592,25 @@ const Le = [
|
|
|
1592
1592
|
id: j.interLinking,
|
|
1593
1593
|
"data-test-id": j.interLinking,
|
|
1594
1594
|
className: a("min-w-full desktop:min-w-[1140px]", d == null ? void 0 : d.root),
|
|
1595
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1596
|
-
|
|
1595
|
+
children: /* @__PURE__ */ n.jsx(H, { children: /* @__PURE__ */ n.jsx(
|
|
1596
|
+
ot,
|
|
1597
1597
|
{
|
|
1598
1598
|
defaultOpen: !0,
|
|
1599
1599
|
label: /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-left", d == null ? void 0 : d.headline), children: r }),
|
|
1600
|
-
...
|
|
1600
|
+
...i,
|
|
1601
1601
|
classes: {
|
|
1602
|
-
...
|
|
1602
|
+
...i == null ? void 0 : i.classes,
|
|
1603
1603
|
header: {
|
|
1604
|
-
trigger: a("bg-color-blue-grey-100", (u = (l =
|
|
1604
|
+
trigger: a("bg-color-blue-grey-100", (u = (l = i == null ? void 0 : i.classes) == null ? void 0 : l.header) == null ? void 0 : u.trigger)
|
|
1605
1605
|
},
|
|
1606
|
-
content: a("max-w-full bg-color-blue-grey-100 relative", (p =
|
|
1606
|
+
content: a("max-w-full bg-color-blue-grey-100 relative", (p = i == null ? void 0 : i.classes) == null ? void 0 : p.content)
|
|
1607
1607
|
},
|
|
1608
|
-
children: /* @__PURE__ */ n.jsx("div", { className: a(pr({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((m, x) => /* @__PURE__ */ n.jsx(ur, { ...m, ...
|
|
1608
|
+
children: /* @__PURE__ */ n.jsx("div", { className: a(pr({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((m, x) => /* @__PURE__ */ n.jsx(ur, { ...m, ...o, classes: d == null ? void 0 : d.column }, x)) })
|
|
1609
1609
|
}
|
|
1610
1610
|
) })
|
|
1611
1611
|
}
|
|
1612
1612
|
);
|
|
1613
|
-
}, hr = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes:
|
|
1613
|
+
}, hr = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: e && e.map((i, d) => /* @__PURE__ */ n.jsx(
|
|
1614
1614
|
"button",
|
|
1615
1615
|
{
|
|
1616
1616
|
onClick: () => r(d),
|
|
@@ -1619,21 +1619,21 @@ const Le = [
|
|
|
1619
1619
|
{
|
|
1620
1620
|
"bg-icon-primary-default text-color-white": t === d
|
|
1621
1621
|
},
|
|
1622
|
-
|
|
1622
|
+
o == null ? void 0 : o.button
|
|
1623
1623
|
),
|
|
1624
|
-
children:
|
|
1624
|
+
children: i
|
|
1625
1625
|
},
|
|
1626
|
-
|
|
1627
|
-
)) }), mr = (e) => e.variant === "HTML", xr = (e) => e.variant === "DOCUMENTS", fr = (e) => e.variant === "TABLE", cr = ({ html: e, config: t, classes: r, accordionConfig:
|
|
1628
|
-
const
|
|
1629
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(
|
|
1626
|
+
i
|
|
1627
|
+
)) }), mr = (e) => e.variant === "HTML", xr = (e) => e.variant === "DOCUMENTS", fr = (e) => e.variant === "TABLE", cr = ({ html: e, config: t, classes: r, accordionConfig: o }) => {
|
|
1628
|
+
const i = /* @__PURE__ */ n.jsx("div", { className: a(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
|
|
1629
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(ot, { label: t == null ? void 0 : t.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
|
|
1630
1630
|
}, br = (e, t) => ({
|
|
1631
1631
|
rows: e == null ? void 0 : e.map(({ row: r }) => ({
|
|
1632
|
-
row: r == null ? void 0 : r.map((
|
|
1632
|
+
row: r == null ? void 0 : r.map((o, i) => {
|
|
1633
1633
|
var d;
|
|
1634
1634
|
return {
|
|
1635
|
-
...
|
|
1636
|
-
heading: t && ((d = t[
|
|
1635
|
+
...o,
|
|
1636
|
+
heading: t && ((d = t[i]) == null ? void 0 : d.heading)
|
|
1637
1637
|
};
|
|
1638
1638
|
})
|
|
1639
1639
|
}))
|
|
@@ -1651,7 +1651,7 @@ const Le = [
|
|
|
1651
1651
|
threeCols: "grid-cols-3 gap-12"
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
}), yr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a(jr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((
|
|
1654
|
+
}), yr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a(jr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ n.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), kr = M("grid items-center", {
|
|
1655
1655
|
variants: {
|
|
1656
1656
|
columnsVariant: {
|
|
1657
1657
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1662,57 +1662,57 @@ const Le = [
|
|
|
1662
1662
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
|
-
}),
|
|
1665
|
+
}), wr = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: a(kr({ columnsVariant: r, tableVariant: t }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ n.jsx(
|
|
1666
1666
|
"div",
|
|
1667
1667
|
{
|
|
1668
|
-
className: a("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 },
|
|
1668
|
+
className: a("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
|
|
1669
1669
|
children: d && d
|
|
1670
1670
|
},
|
|
1671
1671
|
l
|
|
1672
|
-
)) }),
|
|
1672
|
+
)) }), vr = M("flex flex-col gap-2", {
|
|
1673
1673
|
variants: {
|
|
1674
1674
|
tableVariant: {
|
|
1675
1675
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1676
1676
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
|
-
}),
|
|
1680
|
-
l && /* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary",
|
|
1679
|
+
}), Nr = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: a(vr({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, u) => /* @__PURE__ */ n.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
|
|
1680
|
+
l && /* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
|
|
1681
1681
|
/* @__PURE__ */ n.jsx(
|
|
1682
1682
|
"div",
|
|
1683
1683
|
{
|
|
1684
1684
|
className: a(
|
|
1685
1685
|
"mob-body-regular-l text-color-dark",
|
|
1686
1686
|
{
|
|
1687
|
-
"font-medium": u !== 0 && r === "twoCols" || r === "threeCols" || r === "twoCols" &&
|
|
1687
|
+
"font-medium": u !== 0 && r === "twoCols" || r === "threeCols" || r === "twoCols" && o
|
|
1688
1688
|
},
|
|
1689
|
-
|
|
1689
|
+
i == null ? void 0 : i.cell
|
|
1690
1690
|
),
|
|
1691
1691
|
children: d
|
|
1692
1692
|
}
|
|
1693
1693
|
)
|
|
1694
|
-
] }, u)) }),
|
|
1694
|
+
] }, u)) }), sr = ({ tableVariant: e, rows: t, headings: r, columnsVariant: o, classes: i }) => {
|
|
1695
1695
|
var p;
|
|
1696
|
-
const { isDesktop: d } =
|
|
1697
|
-
return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col",
|
|
1698
|
-
d && u && /* @__PURE__ */ n.jsx(yr, { headings: r, columnsVariant:
|
|
1696
|
+
const { isDesktop: d } = K(), l = ((p = br(t, r)) == null ? void 0 : p.rows) ?? [], u = !!(r && r.length > 0);
|
|
1697
|
+
return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1698
|
+
d && u && /* @__PURE__ */ n.jsx(yr, { headings: r, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1699
1699
|
d ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t == null ? void 0 : t.map((m, x) => /* @__PURE__ */ n.jsx(
|
|
1700
|
-
|
|
1700
|
+
wr,
|
|
1701
1701
|
{
|
|
1702
1702
|
rowIndex: x,
|
|
1703
1703
|
tableVariant: e,
|
|
1704
|
-
columnsVariant:
|
|
1705
|
-
classes:
|
|
1704
|
+
columnsVariant: o,
|
|
1705
|
+
classes: i == null ? void 0 : i.desktopRow,
|
|
1706
1706
|
...m
|
|
1707
1707
|
},
|
|
1708
1708
|
x
|
|
1709
1709
|
)) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l == null ? void 0 : l.map((m, x) => /* @__PURE__ */ n.jsx(
|
|
1710
|
-
|
|
1710
|
+
Nr,
|
|
1711
1711
|
{
|
|
1712
1712
|
headingsExist: u,
|
|
1713
1713
|
tableVariant: e,
|
|
1714
|
-
columnsVariant:
|
|
1715
|
-
classes:
|
|
1714
|
+
columnsVariant: o,
|
|
1715
|
+
classes: i == null ? void 0 : i.desktopRow,
|
|
1716
1716
|
...m
|
|
1717
1717
|
},
|
|
1718
1718
|
x
|
|
@@ -1722,8 +1722,8 @@ const Le = [
|
|
|
1722
1722
|
tableVariant: e,
|
|
1723
1723
|
description: t,
|
|
1724
1724
|
columnsVariant: r,
|
|
1725
|
-
config:
|
|
1726
|
-
rows:
|
|
1725
|
+
config: o,
|
|
1726
|
+
rows: i,
|
|
1727
1727
|
title: d,
|
|
1728
1728
|
headings: l,
|
|
1729
1729
|
accordionConfig: u,
|
|
@@ -1731,7 +1731,7 @@ const Le = [
|
|
|
1731
1731
|
}) => {
|
|
1732
1732
|
const m = /* @__PURE__ */ n.jsxs("div", { className: a(gr({ columnsVariant: r }), p == null ? void 0 : p.wrapper), children: [
|
|
1733
1733
|
d && /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("mb-4 desktop:mb-6", p == null ? void 0 : p.headline), children: d }),
|
|
1734
|
-
/* @__PURE__ */ n.jsx(
|
|
1734
|
+
/* @__PURE__ */ n.jsx(sr, { tableVariant: e, rows: i, headings: l, columnsVariant: r }),
|
|
1735
1735
|
t && /* @__PURE__ */ n.jsx(
|
|
1736
1736
|
"div",
|
|
1737
1737
|
{
|
|
@@ -1740,7 +1740,7 @@ const Le = [
|
|
|
1740
1740
|
}
|
|
1741
1741
|
)
|
|
1742
1742
|
] });
|
|
1743
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children:
|
|
1743
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ n.jsx(ot, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || m }) : m });
|
|
1744
1744
|
}, Tr = {
|
|
1745
1745
|
documentFilled: "files/documentFilled",
|
|
1746
1746
|
documentOutline: "files/documentOutline"
|
|
@@ -1754,7 +1754,7 @@ const Le = [
|
|
|
1754
1754
|
defaultVariants: {
|
|
1755
1755
|
iconType: "documentOutline"
|
|
1756
1756
|
}
|
|
1757
|
-
}), Ir = ({ label: e, size: t, url: r, iconType:
|
|
1757
|
+
}), Ir = ({ label: e, size: t, url: r, iconType: o, classes: i }) => /* @__PURE__ */ n.jsxs(
|
|
1758
1758
|
"a",
|
|
1759
1759
|
{
|
|
1760
1760
|
href: r,
|
|
@@ -1763,36 +1763,36 @@ const Le = [
|
|
|
1763
1763
|
tabIndex: 0,
|
|
1764
1764
|
className: a(
|
|
1765
1765
|
"group flex w-full cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus",
|
|
1766
|
-
|
|
1766
|
+
i == null ? void 0 : i.link
|
|
1767
1767
|
),
|
|
1768
1768
|
children: [
|
|
1769
|
-
/* @__PURE__ */ n.jsx(c, { name: Tr[
|
|
1770
|
-
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-1 flex-col",
|
|
1771
|
-
/* @__PURE__ */ n.jsx("p", { className: a("desk-body-medium-l text-color-dark",
|
|
1772
|
-
/* @__PURE__ */ n.jsxs("div", { className: a("desk-body-regular-m text-color-disabled",
|
|
1769
|
+
/* @__PURE__ */ n.jsx(c, { name: Tr[o], className: a(Er({ iconType: o }), i == null ? void 0 : i.icon) }),
|
|
1770
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1771
|
+
/* @__PURE__ */ n.jsx("p", { className: a("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: e }),
|
|
1772
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
1773
1773
|
Number(t),
|
|
1774
1774
|
" КБ"
|
|
1775
1775
|
] })
|
|
1776
1776
|
] })
|
|
1777
1777
|
]
|
|
1778
1778
|
}
|
|
1779
|
-
), Mr = ({ docs: e, config: t, title: r, iconType:
|
|
1779
|
+
), Mr = ({ docs: e, config: t, title: r, iconType: o, description: i, classes: d, accordionConfig: l }) => {
|
|
1780
1780
|
const u = /* @__PURE__ */ n.jsxs("div", { className: a("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
|
|
1781
1781
|
r && /* @__PURE__ */ n.jsx(L, { as: "h3", className: "mb-4", children: r }),
|
|
1782
|
-
/* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((p) => /* @__PURE__ */ n.jsx(Ir, { iconType:
|
|
1783
|
-
|
|
1782
|
+
/* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((p) => /* @__PURE__ */ n.jsx(Ir, { iconType: o, ...p, classes: d == null ? void 0 : d.singleDocument }, p.label)) }),
|
|
1783
|
+
i && /* @__PURE__ */ n.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1784
1784
|
] });
|
|
1785
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(
|
|
1785
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(ot, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
|
|
1786
1786
|
}, Or = ({ entity: e, classes: t, accordionsConfig: r }) => {
|
|
1787
|
-
var
|
|
1787
|
+
var o, i, d;
|
|
1788
1788
|
switch (!0) {
|
|
1789
1789
|
case mr(e):
|
|
1790
|
-
return (
|
|
1790
|
+
return (o = e.details) == null ? void 0 : o.map((l, u) => {
|
|
1791
1791
|
var p;
|
|
1792
1792
|
return /* @__PURE__ */ n.jsx(cr, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (p = t == null ? void 0 : t.entities) == null ? void 0 : p.html }, u);
|
|
1793
1793
|
});
|
|
1794
1794
|
case xr(e):
|
|
1795
|
-
return (
|
|
1795
|
+
return (i = e.details) == null ? void 0 : i.map((l, u) => {
|
|
1796
1796
|
var p;
|
|
1797
1797
|
return /* @__PURE__ */ n.jsx(
|
|
1798
1798
|
Mr,
|
|
@@ -1820,22 +1820,22 @@ const Le = [
|
|
|
1820
1820
|
default:
|
|
1821
1821
|
return null;
|
|
1822
1822
|
}
|
|
1823
|
-
}, Sr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Or({ entity: e, classes: t, accordionsConfig: r }) }), Mn = ({ headline: e, tabs: t, classes: r, accordionsConfig:
|
|
1823
|
+
}, Sr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Or({ entity: e, classes: t, accordionsConfig: r }) }), Mn = ({ headline: e, tabs: t, classes: r, accordionsConfig: o }) => {
|
|
1824
1824
|
var u, p;
|
|
1825
|
-
const [
|
|
1826
|
-
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(
|
|
1825
|
+
const [i, d] = G(0), l = st(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
|
|
1826
|
+
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(H, { className: a(r == null ? void 0 : r.container), children: [
|
|
1827
1827
|
/* @__PURE__ */ n.jsx(L, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
|
|
1828
|
-
/* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(hr, { tabsNames: l, activeTab:
|
|
1829
|
-
/* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (p = (u = t == null ? void 0 : t[
|
|
1828
|
+
/* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(hr, { tabsNames: l, activeTab: i, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
|
|
1829
|
+
/* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (p = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.contents) == null ? void 0 : p.map((m, x) => /* @__PURE__ */ n.jsx(Sr, { accordionsConfig: o, ...m, classes: r == null ? void 0 : r.entityClasses }, x)) })
|
|
1830
1830
|
] }) });
|
|
1831
|
-
},
|
|
1832
|
-
const
|
|
1833
|
-
return /* @__PURE__ */ $t(
|
|
1831
|
+
}, Br = ({ fields: e, control: t }) => e.map(({ type: r, args: o }) => {
|
|
1832
|
+
const i = ke[r];
|
|
1833
|
+
return /* @__PURE__ */ $t(i, { ...o, key: o.name, control: t });
|
|
1834
1834
|
});
|
|
1835
|
-
class
|
|
1835
|
+
class Fr {
|
|
1836
1836
|
constructor(t) {
|
|
1837
|
-
|
|
1838
|
-
|
|
1837
|
+
it(this, "TEXT_NODE", 3);
|
|
1838
|
+
it(this, "ELEMENT_NODE", 1);
|
|
1839
1839
|
this.options = t;
|
|
1840
1840
|
}
|
|
1841
1841
|
/**
|
|
@@ -1844,8 +1844,8 @@ class Br {
|
|
|
1844
1844
|
* @param elements Массив для сбора элементов
|
|
1845
1845
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1846
1846
|
*/
|
|
1847
|
-
traverse(t, r = "string",
|
|
1848
|
-
const { includeSolidText:
|
|
1847
|
+
traverse(t, r = "string", o) {
|
|
1848
|
+
const { includeSolidText: i, recursive: d, element: l } = this.options || {};
|
|
1849
1849
|
switch (t.nodeType) {
|
|
1850
1850
|
// если узел - элемент
|
|
1851
1851
|
case this.ELEMENT_NODE:
|
|
@@ -1857,24 +1857,24 @@ class Br {
|
|
|
1857
1857
|
if (l && p !== l)
|
|
1858
1858
|
break;
|
|
1859
1859
|
if (r === "node")
|
|
1860
|
-
|
|
1860
|
+
o.push(t);
|
|
1861
1861
|
else {
|
|
1862
1862
|
const m = u.outerHTML.trim();
|
|
1863
|
-
|
|
1863
|
+
o.push(m);
|
|
1864
1864
|
}
|
|
1865
1865
|
if (d)
|
|
1866
1866
|
for (const m of t.childNodes)
|
|
1867
|
-
this.traverse(m, r,
|
|
1867
|
+
this.traverse(m, r, o);
|
|
1868
1868
|
break;
|
|
1869
1869
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
1870
1870
|
case this.TEXT_NODE:
|
|
1871
|
-
if (!
|
|
1871
|
+
if (!i)
|
|
1872
1872
|
break;
|
|
1873
1873
|
if (r === "node")
|
|
1874
|
-
|
|
1874
|
+
o.push(t);
|
|
1875
1875
|
else {
|
|
1876
1876
|
const m = t.textContent;
|
|
1877
|
-
m &&
|
|
1877
|
+
m && o.push(m);
|
|
1878
1878
|
}
|
|
1879
1879
|
break;
|
|
1880
1880
|
}
|
|
@@ -1886,13 +1886,13 @@ class Br {
|
|
|
1886
1886
|
* @returns Массив тегов или нод
|
|
1887
1887
|
*/
|
|
1888
1888
|
async parse(t, r = "string") {
|
|
1889
|
-
const { includeBody:
|
|
1890
|
-
if (
|
|
1889
|
+
const { includeBody: o } = this.options || {}, i = [], d = [], l = await this.parseFromString(t), u = r === "string" ? i : d;
|
|
1890
|
+
if (o)
|
|
1891
1891
|
this.traverse(l.body, r, u);
|
|
1892
1892
|
else
|
|
1893
1893
|
for (const p of l.body.childNodes)
|
|
1894
1894
|
this.traverse(p, r, u);
|
|
1895
|
-
return { stringNodes:
|
|
1895
|
+
return { stringNodes: i, nodes: d };
|
|
1896
1896
|
}
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Считает количество указанных тегов в HTML строке.
|
|
@@ -1910,7 +1910,7 @@ class Hr extends Error {
|
|
|
1910
1910
|
super(t), this.originalError = r, this.name = "BrowserHTMLParserError";
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
|
-
class _r extends
|
|
1913
|
+
class _r extends Fr {
|
|
1914
1914
|
constructor(t) {
|
|
1915
1915
|
super(t);
|
|
1916
1916
|
}
|
|
@@ -1920,7 +1920,7 @@ class _r extends Br {
|
|
|
1920
1920
|
return new DOMParser().parseFromString(t, "text/html");
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
|
-
class
|
|
1923
|
+
class kt {
|
|
1924
1924
|
/**
|
|
1925
1925
|
* Функция для парсинга ноды в react элемент
|
|
1926
1926
|
*/
|
|
@@ -1928,7 +1928,7 @@ class st {
|
|
|
1928
1928
|
if (t.nodeType === this.TEXT_NODE)
|
|
1929
1929
|
return t.textContent ?? null;
|
|
1930
1930
|
if (t.nodeType === this.ELEMENT_NODE) {
|
|
1931
|
-
const r = t,
|
|
1931
|
+
const r = t, o = r.tagName.toLowerCase(), i = {};
|
|
1932
1932
|
for (const l of r.attributes) {
|
|
1933
1933
|
let u = l.name, p = l.value;
|
|
1934
1934
|
switch (l.name) {
|
|
@@ -1952,21 +1952,21 @@ class st {
|
|
|
1952
1952
|
l.value.split(";").forEach((x) => {
|
|
1953
1953
|
const [f, b] = x.split(":");
|
|
1954
1954
|
if (f && b) {
|
|
1955
|
-
const
|
|
1956
|
-
m[
|
|
1955
|
+
const T = f.trim().replace(/-([a-z])/g, (N, w) => w.toUpperCase());
|
|
1956
|
+
m[T] = b.trim();
|
|
1957
1957
|
}
|
|
1958
1958
|
}), p = m;
|
|
1959
1959
|
break;
|
|
1960
1960
|
}
|
|
1961
|
-
|
|
1961
|
+
i[u] = p;
|
|
1962
1962
|
}
|
|
1963
|
-
|
|
1963
|
+
i.key = Math.random().toString(36).substring(2, 9);
|
|
1964
1964
|
const d = [];
|
|
1965
1965
|
for (const l of r.childNodes) {
|
|
1966
1966
|
const u = this.parseNode(l);
|
|
1967
1967
|
u && d.push(u);
|
|
1968
1968
|
}
|
|
1969
|
-
return $t(
|
|
1969
|
+
return $t(o, i, ...d);
|
|
1970
1970
|
}
|
|
1971
1971
|
return null;
|
|
1972
1972
|
}
|
|
@@ -1974,44 +1974,47 @@ class st {
|
|
|
1974
1974
|
* функция для преобразования html строки в react элементы
|
|
1975
1975
|
*/
|
|
1976
1976
|
static async toReactNodes(t, r) {
|
|
1977
|
-
const
|
|
1978
|
-
return
|
|
1977
|
+
const o = new _r(r), { nodes: i } = await o.parse(t, "node");
|
|
1978
|
+
return i.map((d) => this.parseNode(d));
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
|
-
|
|
1981
|
+
it(kt, "TEXT_NODE", 3), it(kt, "ELEMENT_NODE", 1);
|
|
1982
1982
|
const Pr = ({ promises: e }) => {
|
|
1983
|
-
const [t, r] =
|
|
1983
|
+
const [t, r] = G([]);
|
|
1984
1984
|
return Zt(() => {
|
|
1985
1985
|
(async () => {
|
|
1986
1986
|
r(await e);
|
|
1987
1987
|
})();
|
|
1988
1988
|
}, [e]), /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
|
|
1989
|
-
}, ft = ({ html: e, options: t, as: r }) => {
|
|
1990
|
-
const i = r ??
|
|
1991
|
-
return
|
|
1989
|
+
}, ft = ({ html: e, options: t, as: r, ...o }) => {
|
|
1990
|
+
const i = r ?? se, d = r ? o : {}, l = kt.toReactNodes(e, t);
|
|
1991
|
+
return (
|
|
1992
|
+
// @ts-expect-error disable warning
|
|
1993
|
+
/* @__PURE__ */ n.jsx(i, { ...d, children: /* @__PURE__ */ n.jsx(Pr, { promises: l }) })
|
|
1994
|
+
);
|
|
1992
1995
|
}, Dr = ["getFioSchema"], oe = (e, t, r) => {
|
|
1993
|
-
const
|
|
1994
|
-
if (
|
|
1996
|
+
const o = e[t];
|
|
1997
|
+
if (k.isNil(o))
|
|
1995
1998
|
throw new Error(`validation for type ${String(t)} not found`);
|
|
1996
|
-
if (!
|
|
1999
|
+
if (!k.isFunction(o))
|
|
1997
2000
|
throw new Error(`Cannot generate ${String(t)} because is not a function`);
|
|
1998
|
-
return
|
|
2001
|
+
return o(r);
|
|
1999
2002
|
}, Lr = (e, t) => oe(Yt.base, e, t), Qr = (e, t) => oe(Yt.dadata, e, t), zr = (e) => {
|
|
2000
|
-
const r = e.map((
|
|
2001
|
-
const d = Dr.includes(
|
|
2002
|
-
|
|
2003
|
-
|
|
2003
|
+
const r = e.map((o) => ({ name: o.args.name, validation: o.args.validation })).reduce((o, i) => {
|
|
2004
|
+
const d = Dr.includes(i.validation.type) ? Qr(
|
|
2005
|
+
i.validation.type,
|
|
2006
|
+
i.validation.args
|
|
2004
2007
|
) : Lr(
|
|
2005
|
-
|
|
2006
|
-
|
|
2008
|
+
i.validation.type,
|
|
2009
|
+
i.validation.args
|
|
2007
2010
|
);
|
|
2008
|
-
return i
|
|
2011
|
+
return o[i.name] = d, o;
|
|
2009
2012
|
}, {});
|
|
2010
2013
|
return Oe(r);
|
|
2011
2014
|
}, qr = (e, t) => e.enabled ? t.map((r) => ({
|
|
2012
2015
|
name: r.args.name,
|
|
2013
2016
|
...r.args.progress
|
|
2014
|
-
})) : null, Ar = new De(), Ur = ({ children: e }) => /* @__PURE__ */ n.jsx(
|
|
2017
|
+
})) : null, Ar = new De(), Ur = ({ children: e }) => /* @__PURE__ */ n.jsx(we, { client: Ar, children: e }), Vr = (e, t, r, o) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ n.jsx(ft, { html: e.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ n.jsxs(
|
|
2015
2018
|
"label",
|
|
2016
2019
|
{
|
|
2017
2020
|
className: a(
|
|
@@ -2020,78 +2023,97 @@ const Pr = ({ promises: e }) => {
|
|
|
2020
2023
|
"flex items-center justify-items-start gap-x-3"
|
|
2021
2024
|
),
|
|
2022
2025
|
children: [
|
|
2023
|
-
/* @__PURE__ */ n.jsx(Gt.CheckboxBase, { checked: t, onCheckedChange: r }),
|
|
2024
|
-
/* @__PURE__ */ n.jsx(ft, { html: e.content, as: "div" })
|
|
2026
|
+
/* @__PURE__ */ n.jsx(Gt.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: t, onCheckedChange: r }),
|
|
2027
|
+
/* @__PURE__ */ n.jsx(ft, { html: e.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2025
2028
|
]
|
|
2026
2029
|
}
|
|
2027
2030
|
), On = ({
|
|
2028
2031
|
fields: e,
|
|
2029
2032
|
title: t,
|
|
2030
2033
|
progress: r,
|
|
2031
|
-
approvement:
|
|
2032
|
-
chips:
|
|
2033
|
-
submitProps: d
|
|
2034
|
+
approvement: o,
|
|
2035
|
+
chips: i,
|
|
2036
|
+
submitProps: d,
|
|
2037
|
+
classes: l
|
|
2034
2038
|
}) => {
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2039
|
+
var $, Q;
|
|
2040
|
+
const { submitCallback: u, ...p } = d || {}, [m, x] = G(!1), f = zr(e), { control: b, handleSubmit: T } = Ie({
|
|
2041
|
+
schema: f,
|
|
2042
|
+
defaultValues: Se.getZodDefaults(f),
|
|
2038
2043
|
mode: "onBlur"
|
|
2039
|
-
}),
|
|
2040
|
-
|
|
2044
|
+
}), N = qr(r, e), w = Be({ control: b, fields: N || [], schema: f }), _ = (s) => {
|
|
2045
|
+
u && u(s), console.warn(s);
|
|
2041
2046
|
};
|
|
2042
2047
|
return /* @__PURE__ */ n.jsx(Ur, { children: /* @__PURE__ */ n.jsxs(
|
|
2043
2048
|
"div",
|
|
2044
2049
|
{
|
|
2045
2050
|
id: j.form,
|
|
2046
2051
|
"data-test-id": j.form,
|
|
2047
|
-
className:
|
|
2052
|
+
className: a(
|
|
2053
|
+
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2054
|
+
"relative flex flex-col gap-6 rounded-sm border py-8",
|
|
2055
|
+
l == null ? void 0 : l.root
|
|
2056
|
+
),
|
|
2048
2057
|
children: [
|
|
2049
|
-
|
|
2058
|
+
i.enabled && /* @__PURE__ */ n.jsxs(
|
|
2050
2059
|
"div",
|
|
2051
2060
|
{
|
|
2052
2061
|
className: a(
|
|
2053
2062
|
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
2054
2063
|
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
2055
|
-
"right-4 top-4 w-max"
|
|
2064
|
+
"right-4 top-4 w-max",
|
|
2065
|
+
($ = l == null ? void 0 : l.chips) == null ? void 0 : $.root
|
|
2056
2066
|
),
|
|
2057
2067
|
children: [
|
|
2058
|
-
|
|
2059
|
-
|
|
2068
|
+
i.image && /* @__PURE__ */ n.jsx(c, { name: i.image, className: a("size-4", (Q = l == null ? void 0 : l.chips) == null ? void 0 : Q.icon) }),
|
|
2069
|
+
i.content
|
|
2060
2070
|
]
|
|
2061
2071
|
}
|
|
2062
2072
|
),
|
|
2063
|
-
/* @__PURE__ */ n.jsx(L, { as: "h3", children: t }),
|
|
2064
|
-
/* @__PURE__ */ n.jsxs(
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2073
|
+
/* @__PURE__ */ n.jsx(L, { as: "h3", className: l == null ? void 0 : l.title, children: t }),
|
|
2074
|
+
/* @__PURE__ */ n.jsxs(
|
|
2075
|
+
"form",
|
|
2076
|
+
{
|
|
2077
|
+
onSubmit: T(_),
|
|
2078
|
+
className: a("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
|
|
2079
|
+
children: [
|
|
2080
|
+
r.enabled && /* @__PURE__ */ n.jsx(
|
|
2081
|
+
ve,
|
|
2082
|
+
{
|
|
2083
|
+
progress: w,
|
|
2084
|
+
topContent: /* @__PURE__ */ n.jsx(ft, { html: r.title }),
|
|
2085
|
+
bottomContent: /* @__PURE__ */ n.jsx(ft, { html: r.subtitle }),
|
|
2086
|
+
maxPercent: r.maxPercent,
|
|
2087
|
+
classes: l == null ? void 0 : l.progressBar
|
|
2088
|
+
}
|
|
2089
|
+
),
|
|
2090
|
+
/* @__PURE__ */ n.jsx(Br, { control: b, fields: e }),
|
|
2091
|
+
/* @__PURE__ */ n.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
|
|
2092
|
+
Vr(o, m, x, l == null ? void 0 : l.approvement),
|
|
2093
|
+
/* @__PURE__ */ n.jsx(
|
|
2094
|
+
wt,
|
|
2095
|
+
{
|
|
2096
|
+
...p,
|
|
2097
|
+
type: "submit",
|
|
2098
|
+
disabled: o.type === "checkbox" ? !m : !1,
|
|
2099
|
+
className: a(
|
|
2100
|
+
"w-full whitespace-nowrap",
|
|
2101
|
+
{
|
|
2102
|
+
"w-full desktop:w-[216px]": !!o
|
|
2103
|
+
},
|
|
2104
|
+
l == null ? void 0 : l.submit
|
|
2105
|
+
),
|
|
2106
|
+
children: "Отправить форму"
|
|
2107
|
+
}
|
|
2108
|
+
)
|
|
2109
|
+
] })
|
|
2110
|
+
]
|
|
2111
|
+
}
|
|
2112
|
+
)
|
|
2091
2113
|
]
|
|
2092
2114
|
}
|
|
2093
2115
|
) });
|
|
2094
|
-
},
|
|
2116
|
+
}, dt = () => ({
|
|
2095
2117
|
approve: {
|
|
2096
2118
|
icon: {
|
|
2097
2119
|
element: /* @__PURE__ */ n.jsx(c, { name: "status/iconMark" }),
|
|
@@ -2152,34 +2174,34 @@ const Pr = ({ promises: e }) => {
|
|
|
2152
2174
|
text: "Вернуться на главную"
|
|
2153
2175
|
}
|
|
2154
2176
|
}
|
|
2155
|
-
}), Sn = ({ status: e, navigationFn: t }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(
|
|
2177
|
+
}), Sn = ({ status: e, navigationFn: t }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(H, { className: "flex flex-col justify-center", children: /* @__PURE__ */ n.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
|
|
2156
2178
|
/* @__PURE__ */ n.jsx(
|
|
2157
2179
|
"span",
|
|
2158
2180
|
{
|
|
2159
2181
|
className: a(
|
|
2160
2182
|
"flex size-16 items-center justify-center rounded-full bg-color-positive-light",
|
|
2161
|
-
`${
|
|
2183
|
+
`${dt()[e].icon.bg}`
|
|
2162
2184
|
),
|
|
2163
|
-
children:
|
|
2185
|
+
children: dt()[e].icon.element
|
|
2164
2186
|
}
|
|
2165
2187
|
),
|
|
2166
2188
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
|
|
2167
|
-
/* @__PURE__ */ n.jsx(L, { as: "h2", children:
|
|
2168
|
-
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children:
|
|
2189
|
+
/* @__PURE__ */ n.jsx(L, { as: "h2", children: dt()[e].title }),
|
|
2190
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: dt()[e].description })
|
|
2169
2191
|
] }),
|
|
2170
|
-
/* @__PURE__ */ n.jsx(
|
|
2171
|
-
] }) }) }), ie = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ n.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Wr = ({ startsWith: e, endsWith: t, matcher: r, filter:
|
|
2172
|
-
const [d, l] =
|
|
2192
|
+
/* @__PURE__ */ n.jsx(wt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: dt()[e].button.text })
|
|
2193
|
+
] }) }) }), ie = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ n.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Wr = ({ startsWith: e, endsWith: t, matcher: r, filter: o, rootEnabled: i = !0 }) => {
|
|
2194
|
+
const [d, l] = G([]);
|
|
2173
2195
|
return Zt(() => {
|
|
2174
2196
|
if (!Jt)
|
|
2175
2197
|
return;
|
|
2176
|
-
let u = window.location.pathname.split("/").filter((x) => !
|
|
2177
|
-
|
|
2198
|
+
let u = window.location.pathname.split("/").filter((x) => !k.isStringEmpty(x));
|
|
2199
|
+
k.isUndefined(e) || (k.isString(e) ? u = u.slice(u.findIndex((x) => x === e)) : u = u.slice(e)), k.isUndefined(t) || (k.isString(t) ? u = u.slice(0, u.findIndex((x) => x === t) + 1) : u = u.slice(0, t + 1));
|
|
2178
2200
|
let p = [], m = "";
|
|
2179
|
-
if (
|
|
2201
|
+
if (i) {
|
|
2180
2202
|
const x = {
|
|
2181
2203
|
index: 0,
|
|
2182
|
-
id:
|
|
2204
|
+
id: Ft(),
|
|
2183
2205
|
path: "/",
|
|
2184
2206
|
label: "home"
|
|
2185
2207
|
};
|
|
@@ -2190,8 +2212,8 @@ const Pr = ({ promises: e }) => {
|
|
|
2190
2212
|
const b = {
|
|
2191
2213
|
// while root enabled we need to increment index
|
|
2192
2214
|
// cuz we have root breadcrumb
|
|
2193
|
-
index:
|
|
2194
|
-
id:
|
|
2215
|
+
index: i ? f + 1 : f,
|
|
2216
|
+
id: Ft(),
|
|
2195
2217
|
path: m,
|
|
2196
2218
|
label: x
|
|
2197
2219
|
};
|
|
@@ -2199,28 +2221,28 @@ const Pr = ({ promises: e }) => {
|
|
|
2199
2221
|
}), r && (p = p.map((x) => ({
|
|
2200
2222
|
...x,
|
|
2201
2223
|
...r(x)
|
|
2202
|
-
}))), l(
|
|
2203
|
-
}, [t,
|
|
2204
|
-
}, xt = (e, t, r,
|
|
2205
|
-
const l = d ===
|
|
2224
|
+
}))), l(o ? p.filter(o) : p);
|
|
2225
|
+
}, [t, o, r, i, e]), d;
|
|
2226
|
+
}, xt = (e, t, r, o) => e.map((i, d) => {
|
|
2227
|
+
const l = d === o;
|
|
2206
2228
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2207
2229
|
/* @__PURE__ */ n.jsx(
|
|
2208
2230
|
ie,
|
|
2209
2231
|
{
|
|
2210
|
-
breadcrumb:
|
|
2232
|
+
breadcrumb: i,
|
|
2211
2233
|
className: a(r, {
|
|
2212
2234
|
"pointer-events-none text-color-primary-disabled": l
|
|
2213
2235
|
})
|
|
2214
2236
|
}
|
|
2215
2237
|
),
|
|
2216
2238
|
d !== e.length - 1 && t
|
|
2217
|
-
] },
|
|
2218
|
-
}), Gr = ({ separator: e, ellipsis: t, classes: r, ...
|
|
2219
|
-
const [
|
|
2239
|
+
] }, i.id);
|
|
2240
|
+
}), Gr = ({ separator: e, ellipsis: t, classes: r, ...o }) => {
|
|
2241
|
+
const [i, d] = G(!1), l = Ct(null);
|
|
2220
2242
|
Me(l, () => d(!1));
|
|
2221
|
-
const u = Wr(
|
|
2222
|
-
let b = [],
|
|
2223
|
-
return t && (b = u.slice(0, t),
|
|
2243
|
+
const u = Wr(o), { first: p, middle: m, last: x } = st(() => {
|
|
2244
|
+
let b = [], T = [], N = [];
|
|
2245
|
+
return t && (b = u.slice(0, t), T = u.slice(t, u.length - t), N = u.slice(u.length - t)), { first: b, middle: T, last: N };
|
|
2224
2246
|
}, [u, t]), f = e ?? /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
|
|
2225
2247
|
return /* @__PURE__ */ n.jsx(
|
|
2226
2248
|
"div",
|
|
@@ -2250,7 +2272,7 @@ const Pr = ({ promises: e }) => {
|
|
|
2250
2272
|
"w-[280px] rounded-sm bg-color-white",
|
|
2251
2273
|
"customScrollbar-y p-1 opacity-0 shadow-sm",
|
|
2252
2274
|
{
|
|
2253
|
-
"visible opacity-100":
|
|
2275
|
+
"visible opacity-100": i
|
|
2254
2276
|
}
|
|
2255
2277
|
),
|
|
2256
2278
|
children: m.map((b) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
@@ -2283,15 +2305,15 @@ const Pr = ({ promises: e }) => {
|
|
|
2283
2305
|
}
|
|
2284
2306
|
);
|
|
2285
2307
|
};
|
|
2286
|
-
var
|
|
2308
|
+
var lt = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(lt || {});
|
|
2287
2309
|
const Kr = (e, t) => {
|
|
2288
2310
|
switch (t.type) {
|
|
2289
|
-
case
|
|
2311
|
+
case lt.ROOT:
|
|
2290
2312
|
return {
|
|
2291
2313
|
...e,
|
|
2292
2314
|
root: t.payload
|
|
2293
2315
|
};
|
|
2294
|
-
case
|
|
2316
|
+
case lt.CURRENT:
|
|
2295
2317
|
return {
|
|
2296
2318
|
...e,
|
|
2297
2319
|
current: t.payload
|
|
@@ -2303,14 +2325,14 @@ const Kr = (e, t) => {
|
|
|
2303
2325
|
const [t, r] = Ce(Kr, e);
|
|
2304
2326
|
return [t, r];
|
|
2305
2327
|
}, Zr = (e) => ({
|
|
2306
|
-
type:
|
|
2328
|
+
type: lt.CURRENT,
|
|
2307
2329
|
payload: e
|
|
2308
2330
|
}), Xr = (e) => ({
|
|
2309
|
-
type:
|
|
2331
|
+
type: lt.ROOT,
|
|
2310
2332
|
payload: e
|
|
2311
2333
|
}), Jr = ({ categories: e, ...t }) => te(
|
|
2312
2334
|
/* @__PURE__ */ n.jsx(
|
|
2313
|
-
|
|
2335
|
+
Nt.div,
|
|
2314
2336
|
{
|
|
2315
2337
|
...t,
|
|
2316
2338
|
layout: !0,
|
|
@@ -2319,13 +2341,13 @@ const Kr = (e, t) => {
|
|
|
2319
2341
|
transition: { duration: 0.2 },
|
|
2320
2342
|
className: "absolute bg-color-white",
|
|
2321
2343
|
children: /* @__PURE__ */ n.jsx("div", { className: "mx-auto flex w-[1140px] gap-x-[56px] py-10", children: e.map((r) => {
|
|
2322
|
-
var
|
|
2323
|
-
const
|
|
2344
|
+
var i;
|
|
2345
|
+
const o = r.link ? "a" : "p";
|
|
2324
2346
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
2325
2347
|
r.title && /* @__PURE__ */ n.jsxs(
|
|
2326
|
-
|
|
2348
|
+
o,
|
|
2327
2349
|
{
|
|
2328
|
-
href: ((
|
|
2350
|
+
href: ((i = r.link) == null ? void 0 : i.href) ?? void 0,
|
|
2329
2351
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
2330
2352
|
children: [
|
|
2331
2353
|
r.title,
|
|
@@ -2344,11 +2366,11 @@ const Kr = (e, t) => {
|
|
|
2344
2366
|
document.body
|
|
2345
2367
|
), Yr = ({ category: e, active: t, onActiveTabChange: r }) => {
|
|
2346
2368
|
var u, p;
|
|
2347
|
-
const
|
|
2369
|
+
const o = Ct(null), i = (u = o.current) == null ? void 0 : u.getBoundingClientRect(), d = t && !k.isArrayEmpty(e.children), l = k.isArrayEmpty(e.children) ? "a" : "span";
|
|
2348
2370
|
return /* @__PURE__ */ n.jsxs(
|
|
2349
|
-
|
|
2371
|
+
Nt.div,
|
|
2350
2372
|
{
|
|
2351
|
-
ref:
|
|
2373
|
+
ref: o,
|
|
2352
2374
|
className: a(
|
|
2353
2375
|
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
2354
2376
|
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
@@ -2368,7 +2390,7 @@ const Kr = (e, t) => {
|
|
|
2368
2390
|
{
|
|
2369
2391
|
categories: e.children,
|
|
2370
2392
|
style: {
|
|
2371
|
-
top:
|
|
2393
|
+
top: i ? i.top + i.height : 0,
|
|
2372
2394
|
width: window.innerWidth
|
|
2373
2395
|
}
|
|
2374
2396
|
}
|
|
@@ -2377,18 +2399,18 @@ const Kr = (e, t) => {
|
|
|
2377
2399
|
}
|
|
2378
2400
|
);
|
|
2379
2401
|
}, tn = Xt(Yr), en = ({ categories: e }) => {
|
|
2380
|
-
const [t, r] =
|
|
2381
|
-
r(
|
|
2402
|
+
const [t, r] = G(null), o = Kt((i) => {
|
|
2403
|
+
r(i);
|
|
2382
2404
|
}, []);
|
|
2383
|
-
return /* @__PURE__ */ n.jsx(
|
|
2384
|
-
e.map((
|
|
2405
|
+
return /* @__PURE__ */ n.jsx(Ne, { mode: "sync", children: /* @__PURE__ */ n.jsxs("div", { id: "tabs", className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]", children: [
|
|
2406
|
+
e.map((i) => /* @__PURE__ */ n.jsx(
|
|
2385
2407
|
tn,
|
|
2386
2408
|
{
|
|
2387
|
-
category:
|
|
2388
|
-
active: t ===
|
|
2389
|
-
onActiveTabChange:
|
|
2409
|
+
category: i,
|
|
2410
|
+
active: t === i.title,
|
|
2411
|
+
onActiveTabChange: o
|
|
2390
2412
|
},
|
|
2391
|
-
|
|
2413
|
+
i.title
|
|
2392
2414
|
)),
|
|
2393
2415
|
/* @__PURE__ */ n.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
2394
2416
|
] }) });
|
|
@@ -2396,18 +2418,18 @@ const Kr = (e, t) => {
|
|
|
2396
2418
|
category: e,
|
|
2397
2419
|
selectedCategory: t,
|
|
2398
2420
|
onCurrentCategoryChange: r,
|
|
2399
|
-
onRootCategoryChange:
|
|
2400
|
-
active:
|
|
2421
|
+
onRootCategoryChange: o,
|
|
2422
|
+
active: i,
|
|
2401
2423
|
...d
|
|
2402
2424
|
}) => /* @__PURE__ */ n.jsxs(
|
|
2403
2425
|
"div",
|
|
2404
2426
|
{
|
|
2405
2427
|
...d,
|
|
2406
2428
|
onClick: () => {
|
|
2407
|
-
r(e.children[0]),
|
|
2429
|
+
r(e.children[0]), o(e);
|
|
2408
2430
|
},
|
|
2409
2431
|
className: a("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2410
|
-
"text-color-dark":
|
|
2432
|
+
"text-color-dark": i
|
|
2411
2433
|
}),
|
|
2412
2434
|
children: [
|
|
2413
2435
|
/* @__PURE__ */ n.jsx("span", { className: "desk-body-regular-m", children: e.title }),
|
|
@@ -2423,7 +2445,7 @@ const Kr = (e, t) => {
|
|
|
2423
2445
|
"span",
|
|
2424
2446
|
{
|
|
2425
2447
|
onClick: (u) => {
|
|
2426
|
-
u.stopPropagation(), u.nativeEvent.stopPropagation(),
|
|
2448
|
+
u.stopPropagation(), u.nativeEvent.stopPropagation(), o(e), r(l);
|
|
2427
2449
|
},
|
|
2428
2450
|
className: a(
|
|
2429
2451
|
"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",
|
|
@@ -2440,19 +2462,19 @@ const Kr = (e, t) => {
|
|
|
2440
2462
|
]
|
|
2441
2463
|
}
|
|
2442
2464
|
), on = ({ categories: e, helpers: t, phone: r }) => {
|
|
2443
|
-
const [
|
|
2465
|
+
const [o, i] = $r({ root: e[0].children[0], current: e[0].children[0] });
|
|
2444
2466
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2445
2467
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2446
2468
|
/* @__PURE__ */ n.jsx(c, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2447
2469
|
e.map((d) => {
|
|
2448
|
-
const l =
|
|
2470
|
+
const l = o.root.title === d.title;
|
|
2449
2471
|
return /* @__PURE__ */ n.jsx(
|
|
2450
2472
|
nn,
|
|
2451
2473
|
{
|
|
2452
2474
|
category: d,
|
|
2453
|
-
selectedCategory:
|
|
2454
|
-
onCurrentCategoryChange: (u) =>
|
|
2455
|
-
onRootCategoryChange: (u) =>
|
|
2475
|
+
selectedCategory: o.current,
|
|
2476
|
+
onCurrentCategoryChange: (u) => i(Zr(u)),
|
|
2477
|
+
onRootCategoryChange: (u) => i(Xr(u)),
|
|
2456
2478
|
active: l
|
|
2457
2479
|
},
|
|
2458
2480
|
d.title
|
|
@@ -2481,10 +2503,10 @@ const Kr = (e, t) => {
|
|
|
2481
2503
|
}
|
|
2482
2504
|
)
|
|
2483
2505
|
] }),
|
|
2484
|
-
/* @__PURE__ */ n.jsx(rn, { categories:
|
|
2506
|
+
/* @__PURE__ */ n.jsx(rn, { categories: o.current.children })
|
|
2485
2507
|
] });
|
|
2486
2508
|
}, dn = ({ category: e }) => /* @__PURE__ */ n.jsx(
|
|
2487
|
-
|
|
2509
|
+
ot,
|
|
2488
2510
|
{
|
|
2489
2511
|
label: e.title ?? "",
|
|
2490
2512
|
icon: /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
@@ -2502,13 +2524,13 @@ const Kr = (e, t) => {
|
|
|
2502
2524
|
)
|
|
2503
2525
|
},
|
|
2504
2526
|
children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: e.children.map((t) => {
|
|
2505
|
-
var
|
|
2506
|
-
const r = !!t.link,
|
|
2527
|
+
var i;
|
|
2528
|
+
const r = !!t.link, o = r ? "a" : "p";
|
|
2507
2529
|
return /* @__PURE__ */ n.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2508
2530
|
/* @__PURE__ */ n.jsxs(
|
|
2509
|
-
|
|
2531
|
+
o,
|
|
2510
2532
|
{
|
|
2511
|
-
href: r ? (
|
|
2533
|
+
href: r ? (i = t.link) == null ? void 0 : i.href : void 0,
|
|
2512
2534
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2513
2535
|
children: [
|
|
2514
2536
|
t.title,
|
|
@@ -2527,17 +2549,17 @@ const Kr = (e, t) => {
|
|
|
2527
2549
|
), an = (e) => e.map((t) => ({
|
|
2528
2550
|
value: t.title ?? "",
|
|
2529
2551
|
label: t.title ?? ""
|
|
2530
|
-
})), ln = ({ categories: e, helpers: t, phone: r, ...
|
|
2531
|
-
const
|
|
2532
|
-
|
|
2533
|
-
}, p =
|
|
2552
|
+
})), ln = ({ categories: e, helpers: t, phone: r, ...o }) => {
|
|
2553
|
+
const i = an(e), [d, l] = G(i[0]), u = (m) => {
|
|
2554
|
+
k.isUndefined(m) || k.isArray(m) || l(m);
|
|
2555
|
+
}, p = st(() => {
|
|
2534
2556
|
var m;
|
|
2535
|
-
return
|
|
2557
|
+
return k.isUndefined(d) || k.isArray(d) ? [] : ((m = e.find((x) => x.title === d.value)) == null ? void 0 : m.children) ?? [];
|
|
2536
2558
|
}, [d, e]);
|
|
2537
2559
|
return /* @__PURE__ */ n.jsxs(
|
|
2538
|
-
|
|
2560
|
+
Nt.div,
|
|
2539
2561
|
{
|
|
2540
|
-
...
|
|
2562
|
+
...o,
|
|
2541
2563
|
className: a(
|
|
2542
2564
|
"absolute w-full max-w-[calc(636px-32px)]",
|
|
2543
2565
|
"absolute left-1/2 top-full bg-color-white p-4",
|
|
@@ -2547,10 +2569,10 @@ const Kr = (e, t) => {
|
|
|
2547
2569
|
initial: { opacity: 0 },
|
|
2548
2570
|
animate: { opacity: 1 },
|
|
2549
2571
|
children: [
|
|
2550
|
-
/* @__PURE__ */ n.jsx(Gt.SelectBase, { label: "Категория", options:
|
|
2572
|
+
/* @__PURE__ */ n.jsx(Gt.SelectBase, { label: "Категория", options: i, value: d, onChange: u }),
|
|
2551
2573
|
/* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: p.map((m) => {
|
|
2552
2574
|
var x;
|
|
2553
|
-
return
|
|
2575
|
+
return k.isArrayEmpty(m.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (x = m.link) == null ? void 0 : x.href, className: "desk-body-regular-m inline-block w-full", children: m.title }) }, m.title) : /* @__PURE__ */ n.jsx(dn, { category: m }, m.title);
|
|
2554
2576
|
}) }),
|
|
2555
2577
|
/* @__PURE__ */ n.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2556
2578
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
@@ -2571,8 +2593,8 @@ const Kr = (e, t) => {
|
|
|
2571
2593
|
);
|
|
2572
2594
|
}, un = ({ categories: e, helpers: t, phone: r }) => {
|
|
2573
2595
|
var p;
|
|
2574
|
-
const
|
|
2575
|
-
return /* @__PURE__ */ n.jsxs("div", { ref:
|
|
2596
|
+
const o = Ct(null), i = (p = o.current) == null ? void 0 : p.getBoundingClientRect(), [d, l] = G(!1), u = () => l(!d);
|
|
2597
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: o, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
|
|
2576
2598
|
/* @__PURE__ */ n.jsx(c, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2577
2599
|
/* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(c, { name: d ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2578
2600
|
d && te(
|
|
@@ -2582,21 +2604,21 @@ const Kr = (e, t) => {
|
|
|
2582
2604
|
categories: e,
|
|
2583
2605
|
helpers: t,
|
|
2584
2606
|
phone: r,
|
|
2585
|
-
style: { top:
|
|
2607
|
+
style: { top: i ? i.top + i.height : 0 }
|
|
2586
2608
|
}
|
|
2587
2609
|
),
|
|
2588
2610
|
document.body
|
|
2589
2611
|
)
|
|
2590
2612
|
] });
|
|
2591
|
-
},
|
|
2592
|
-
const { isMobile:
|
|
2613
|
+
}, Bn = ({ categories: e, helpers: t, phone: r }) => {
|
|
2614
|
+
const { isMobile: o } = K();
|
|
2593
2615
|
return /* @__PURE__ */ n.jsxs("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2594
|
-
|
|
2616
|
+
o ? /* @__PURE__ */ n.jsx(un, { categories: e.map((i) => i.children).flat(), helpers: t, phone: r }) : /* @__PURE__ */ n.jsx(on, { categories: e, helpers: t, phone: r }),
|
|
2595
2617
|
/* @__PURE__ */ n.jsx(
|
|
2596
2618
|
Gr,
|
|
2597
2619
|
{
|
|
2598
|
-
ellipsis:
|
|
2599
|
-
matcher: (
|
|
2620
|
+
ellipsis: o ? 1 : void 0,
|
|
2621
|
+
matcher: (i) => ({ label: Ee(i.label).split("-").join(" ") })
|
|
2600
2622
|
}
|
|
2601
2623
|
)
|
|
2602
2624
|
] });
|
|
@@ -2604,21 +2626,21 @@ const Kr = (e, t) => {
|
|
|
2604
2626
|
export {
|
|
2605
2627
|
ee as Advantages,
|
|
2606
2628
|
En as AuthProvider,
|
|
2607
|
-
|
|
2629
|
+
Nn as Banner,
|
|
2608
2630
|
_t as BannerWithSeparateImg,
|
|
2609
|
-
|
|
2631
|
+
wn as Benefit,
|
|
2610
2632
|
Gr as Breadcrumbs,
|
|
2611
|
-
|
|
2633
|
+
Y as ButtonWithHandlers,
|
|
2612
2634
|
On as DynamicForm,
|
|
2613
2635
|
Sn as FallbacksView,
|
|
2614
|
-
|
|
2615
|
-
|
|
2636
|
+
Br as FieldMapper,
|
|
2637
|
+
sn as Footer,
|
|
2616
2638
|
_r as HTMLParser,
|
|
2617
2639
|
ft as HTMLRenderer,
|
|
2618
|
-
|
|
2640
|
+
vn as Header,
|
|
2619
2641
|
In as InterLinking,
|
|
2620
2642
|
Tn as LongBanner,
|
|
2621
|
-
|
|
2643
|
+
Bn as SeoHeader,
|
|
2622
2644
|
Cn as Stepper,
|
|
2623
2645
|
Mn as UsefulInfo,
|
|
2624
2646
|
Le as WIDGET_LIST,
|