@scbt-ecom/ui 0.77.3 → 0.78.1
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-PZSikNMt.js → index-BUV7eJPv.js} +3331 -3295
- package/dist/index-BUV7eJPv.js.map +1 -0
- package/dist/lib/shared/ui/dialog/Dialog.d.ts +0 -1
- package/dist/lib/widgets/buttonWithHandlers/model/types.d.ts +5 -1
- package/dist/lib/widgets/dynamicFormDialog/DynamicFormDialog.d.ts +33 -0
- package/dist/lib/widgets/dynamicFormDialog/index.d.ts +1 -0
- package/dist/lib/widgets/dynamicFormDialog/model/index.d.ts +1 -0
- package/dist/lib/widgets/dynamicFormDialog/model/types.d.ts +18 -0
- package/dist/lib/widgets/index.d.ts +1 -0
- package/dist/lib/widgets/model/helpers.d.ts +2 -1
- package/dist/ui.js +523 -559
- package/dist/ui.js.map +1 -1
- package/dist/widget.js +636 -587
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-PZSikNMt.js.map +0 -1
- package/dist/lib/widgets/dynamicForm/model/getDynamicSchema.d.ts +0 -0
package/dist/widget.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Bt = Object.defineProperty;
|
|
2
|
+
var Le = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var x = (t, e, r) => (
|
|
8
|
-
var
|
|
5
|
+
var Pt = (t, e, r) => e in t ? Bt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var de = (t, e, r) => Pt(t, typeof e != "symbol" ? e + "" : e, r), Ce = (t, e, r) => e.has(t) || Le("Cannot " + r);
|
|
7
|
+
var x = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), _ = (t, e, r) => e.has(t) ? Le("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), w = (t, e, r, o) => (Ce(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r), U = (t, e, r) => (Ce(t, e, "access private method"), r);
|
|
8
|
+
var fe = (t, e, r, o) => ({
|
|
9
9
|
set _(i) {
|
|
10
10
|
w(t, e, i, r);
|
|
11
11
|
},
|
|
@@ -13,27 +13,27 @@ var ce = (t, e, r, o) => ({
|
|
|
13
13
|
return x(t, e, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as
|
|
16
|
+
import { S as bt, y as st, Q as Dt, z as S, E as Qe, F as Rt, G as Ht, J as Ve, T as Q, W as zt, X as Lt, Y as Qt, Z as Vt, _ as $e, $ as Ae, a0 as $t, a1 as Ue, a2 as qe, a3 as At, j as n, B as je, c as E, R as P, n as gt, t as Ut, H as L, i as s, v as ye, q as Se, L as qt, o as Ee, A as ae, w as jt, a4 as Wt, r as Kt, U as ke, s as Zt, a5 as Fe, a6 as Xt, M as Yt } from "./index-BUV7eJPv.js";
|
|
17
17
|
import { c as l, T as v } from "./typeGuards-CSiImkUY.js";
|
|
18
|
-
import * as
|
|
19
|
-
import { lazy as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { u as ee, b as
|
|
23
|
-
import { z as
|
|
24
|
-
import { au as
|
|
25
|
-
import { a as
|
|
26
|
-
import { createPortal as
|
|
27
|
-
var R,
|
|
18
|
+
import * as me from "react";
|
|
19
|
+
import { lazy as F, useCallback as yt, useState as D, useMemo as we, createElement as kt, Fragment as Jt, useEffect as ge, useRef as Be, useReducer as Gt, memo as Pe, forwardRef as er } from "react";
|
|
20
|
+
import { i as Ie } from "./isClient-C9aZtt2Q.js";
|
|
21
|
+
import { scrollToElement as tr, createPhoneNumber as ve, getUuid as We, capitalize as rr } from "./utils.js";
|
|
22
|
+
import { u as ee, b as De, a as nr, g as Ne, F as or } from "./useDebounce-BH0d8exl.js";
|
|
23
|
+
import { z as wt, Z as Re } from "./index-DwZjTCDF.js";
|
|
24
|
+
import { au as vt } from "./utils-CnDzHNQ6.js";
|
|
25
|
+
import { a as ir, u as ar } from "./useFieldsProgress-dcSmd8dw.js";
|
|
26
|
+
import { createPortal as Nt } from "react-dom";
|
|
27
|
+
var R, xt, lr = (xt = class extends bt {
|
|
28
28
|
constructor(e = {}) {
|
|
29
29
|
super();
|
|
30
|
-
|
|
30
|
+
_(this, R);
|
|
31
31
|
this.config = e, w(this, R, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
33
|
build(e, r, o) {
|
|
34
|
-
const i = r.queryKey, a = r.queryHash ??
|
|
34
|
+
const i = r.queryKey, a = r.queryHash ?? st(i, r);
|
|
35
35
|
let d = this.get(a);
|
|
36
|
-
return d || (d = new
|
|
36
|
+
return d || (d = new Dt({
|
|
37
37
|
client: e,
|
|
38
38
|
queryKey: i,
|
|
39
39
|
queryHash: a,
|
|
@@ -53,7 +53,7 @@ var R, at, or = (at = class extends mt {
|
|
|
53
53
|
r && (e.destroy(), r === e && x(this, R).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
|
-
|
|
56
|
+
S.batch(() => {
|
|
57
57
|
this.getAll().forEach((e) => {
|
|
58
58
|
this.remove(e);
|
|
59
59
|
});
|
|
@@ -68,42 +68,42 @@ var R, at, or = (at = class extends mt {
|
|
|
68
68
|
find(e) {
|
|
69
69
|
const r = { exact: !0, ...e };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(o) =>
|
|
71
|
+
(o) => Qe(r, o)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
findAll(e = {}) {
|
|
75
75
|
const r = this.getAll();
|
|
76
|
-
return Object.keys(e).length > 0 ? r.filter((o) =>
|
|
76
|
+
return Object.keys(e).length > 0 ? r.filter((o) => Qe(e, o)) : r;
|
|
77
77
|
}
|
|
78
78
|
notify(e) {
|
|
79
|
-
|
|
79
|
+
S.batch(() => {
|
|
80
80
|
this.listeners.forEach((r) => {
|
|
81
81
|
r(e);
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
onFocus() {
|
|
86
|
-
|
|
86
|
+
S.batch(() => {
|
|
87
87
|
this.getAll().forEach((e) => {
|
|
88
88
|
e.onFocus();
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
onOnline() {
|
|
93
|
-
|
|
93
|
+
S.batch(() => {
|
|
94
94
|
this.getAll().forEach((e) => {
|
|
95
95
|
e.onOnline();
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
}, R = new WeakMap(),
|
|
99
|
+
}, R = new WeakMap(), xt), H, T, G, z, q, pt, dr = (pt = class extends Rt {
|
|
100
100
|
constructor(e) {
|
|
101
101
|
super();
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
this.mutationId = e.mutationId, w(this,
|
|
102
|
+
_(this, z);
|
|
103
|
+
_(this, H);
|
|
104
|
+
_(this, T);
|
|
105
|
+
_(this, G);
|
|
106
|
+
this.mutationId = e.mutationId, w(this, T, e.mutationCache), w(this, H, []), this.state = e.state || ur(), this.setOptions(e.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(e) {
|
|
109
109
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -112,21 +112,21 @@ var R, at, or = (at = class extends mt {
|
|
|
112
112
|
return this.options.meta;
|
|
113
113
|
}
|
|
114
114
|
addObserver(e) {
|
|
115
|
-
x(this,
|
|
115
|
+
x(this, H).includes(e) || (x(this, H).push(e), this.clearGcTimeout(), x(this, T).notify({
|
|
116
116
|
type: "observerAdded",
|
|
117
117
|
mutation: this,
|
|
118
118
|
observer: e
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(e) {
|
|
122
|
-
w(this,
|
|
122
|
+
w(this, H, x(this, H).filter((r) => r !== e)), this.scheduleGc(), x(this, T).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: e
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
optionalRemove() {
|
|
129
|
-
x(this,
|
|
129
|
+
x(this, H).length || (this.state.status === "pending" ? this.scheduleGc() : x(this, T).remove(this));
|
|
130
130
|
}
|
|
131
131
|
continue() {
|
|
132
132
|
var e;
|
|
@@ -134,92 +134,92 @@ var R, at, or = (at = class extends mt {
|
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(e) {
|
|
137
|
-
var a, d, u, m, h, p, c, f, b,
|
|
137
|
+
var a, d, u, m, h, p, c, f, b, j, g, N, I, $, M, O, A, Y, pe, le;
|
|
138
138
|
const r = () => {
|
|
139
|
-
U(this,
|
|
139
|
+
U(this, z, q).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
|
-
w(this, G,
|
|
141
|
+
w(this, G, Ht({
|
|
142
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
143
|
-
onFail: (
|
|
144
|
-
U(this,
|
|
143
|
+
onFail: (C, ce) => {
|
|
144
|
+
U(this, z, q).call(this, { type: "failed", failureCount: C, error: ce });
|
|
145
145
|
},
|
|
146
146
|
onPause: () => {
|
|
147
|
-
U(this,
|
|
147
|
+
U(this, z, q).call(this, { type: "pause" });
|
|
148
148
|
},
|
|
149
149
|
onContinue: r,
|
|
150
150
|
retry: this.options.retry ?? 0,
|
|
151
151
|
retryDelay: this.options.retryDelay,
|
|
152
152
|
networkMode: this.options.networkMode,
|
|
153
|
-
canRun: () => x(this,
|
|
153
|
+
canRun: () => x(this, T).canRun(this)
|
|
154
154
|
}));
|
|
155
155
|
const o = this.state.status === "pending", i = !x(this, G).canStart();
|
|
156
156
|
try {
|
|
157
157
|
if (o)
|
|
158
158
|
r();
|
|
159
159
|
else {
|
|
160
|
-
U(this,
|
|
160
|
+
U(this, z, q).call(this, { type: "pending", variables: e, isPaused: i }), await ((d = (a = x(this, T).config).onMutate) == null ? void 0 : d.call(
|
|
161
161
|
a,
|
|
162
162
|
e,
|
|
163
163
|
this
|
|
164
164
|
));
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const ce = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, e));
|
|
166
|
+
ce !== this.state.context && U(this, z, q).call(this, {
|
|
167
167
|
type: "pending",
|
|
168
|
-
context:
|
|
168
|
+
context: ce,
|
|
169
169
|
variables: e,
|
|
170
170
|
isPaused: i
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
const
|
|
174
|
-
return await ((p = (h = x(this,
|
|
173
|
+
const C = await x(this, G).start();
|
|
174
|
+
return await ((p = (h = x(this, T).config).onSuccess) == null ? void 0 : p.call(
|
|
175
175
|
h,
|
|
176
|
-
|
|
176
|
+
C,
|
|
177
177
|
e,
|
|
178
178
|
this.state.context,
|
|
179
179
|
this
|
|
180
|
-
)), await ((f = (c = this.options).onSuccess) == null ? void 0 : f.call(c,
|
|
180
|
+
)), await ((f = (c = this.options).onSuccess) == null ? void 0 : f.call(c, C, e, this.state.context)), await ((j = (b = x(this, T).config).onSettled) == null ? void 0 : j.call(
|
|
181
181
|
b,
|
|
182
|
-
|
|
182
|
+
C,
|
|
183
183
|
null,
|
|
184
184
|
this.state.variables,
|
|
185
185
|
this.state.context,
|
|
186
186
|
this
|
|
187
|
-
)), await ((
|
|
188
|
-
} catch (
|
|
187
|
+
)), await ((N = (g = this.options).onSettled) == null ? void 0 : N.call(g, C, null, e, this.state.context)), U(this, z, q).call(this, { type: "success", data: C }), C;
|
|
188
|
+
} catch (C) {
|
|
189
189
|
try {
|
|
190
|
-
throw await (($ = (
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
throw await (($ = (I = x(this, T).config).onError) == null ? void 0 : $.call(
|
|
191
|
+
I,
|
|
192
|
+
C,
|
|
193
193
|
e,
|
|
194
194
|
this.state.context,
|
|
195
195
|
this
|
|
196
|
-
)), await ((
|
|
196
|
+
)), await ((O = (M = this.options).onError) == null ? void 0 : O.call(
|
|
197
|
+
M,
|
|
197
198
|
C,
|
|
198
|
-
N,
|
|
199
199
|
e,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((Y = (A = x(this,
|
|
201
|
+
)), await ((Y = (A = x(this, T).config).onSettled) == null ? void 0 : Y.call(
|
|
202
202
|
A,
|
|
203
203
|
void 0,
|
|
204
|
-
|
|
204
|
+
C,
|
|
205
205
|
this.state.variables,
|
|
206
206
|
this.state.context,
|
|
207
207
|
this
|
|
208
|
-
)), await ((
|
|
209
|
-
|
|
208
|
+
)), await ((le = (pe = this.options).onSettled) == null ? void 0 : le.call(
|
|
209
|
+
pe,
|
|
210
210
|
void 0,
|
|
211
|
-
|
|
211
|
+
C,
|
|
212
212
|
e,
|
|
213
213
|
this.state.context
|
|
214
|
-
)),
|
|
214
|
+
)), C;
|
|
215
215
|
} finally {
|
|
216
|
-
U(this,
|
|
216
|
+
U(this, z, q).call(this, { type: "error", error: C });
|
|
217
217
|
}
|
|
218
218
|
} finally {
|
|
219
|
-
x(this,
|
|
219
|
+
x(this, T).runNext(this);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
},
|
|
222
|
+
}, H = new WeakMap(), T = new WeakMap(), G = new WeakMap(), z = new WeakSet(), q = function(e) {
|
|
223
223
|
const r = (o) => {
|
|
224
224
|
switch (e.type) {
|
|
225
225
|
case "failed":
|
|
@@ -273,17 +273,17 @@ var R, at, or = (at = class extends mt {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
this.state = r(this.state),
|
|
277
|
-
x(this,
|
|
276
|
+
this.state = r(this.state), S.batch(() => {
|
|
277
|
+
x(this, H).forEach((o) => {
|
|
278
278
|
o.onMutationUpdate(e);
|
|
279
|
-
}), x(this,
|
|
279
|
+
}), x(this, T).notify({
|
|
280
280
|
mutation: this,
|
|
281
281
|
type: "updated",
|
|
282
282
|
action: e
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
},
|
|
286
|
-
function
|
|
285
|
+
}, pt);
|
|
286
|
+
function ur() {
|
|
287
287
|
return {
|
|
288
288
|
context: void 0,
|
|
289
289
|
data: void 0,
|
|
@@ -296,18 +296,18 @@ function ar() {
|
|
|
296
296
|
submittedAt: 0
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
var V,
|
|
299
|
+
var V, B, xe, ct, mr = (ct = class extends bt {
|
|
300
300
|
constructor(e = {}) {
|
|
301
301
|
super();
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
this.config = e, w(this, V, /* @__PURE__ */ new Set()), w(this,
|
|
302
|
+
_(this, V);
|
|
303
|
+
_(this, B);
|
|
304
|
+
_(this, xe);
|
|
305
|
+
this.config = e, w(this, V, /* @__PURE__ */ new Set()), w(this, B, /* @__PURE__ */ new Map()), w(this, xe, 0);
|
|
306
306
|
}
|
|
307
307
|
build(e, r, o) {
|
|
308
|
-
const i = new
|
|
308
|
+
const i = new dr({
|
|
309
309
|
mutationCache: this,
|
|
310
|
-
mutationId: ++
|
|
310
|
+
mutationId: ++fe(this, xe)._,
|
|
311
311
|
options: e.defaultMutationOptions(r),
|
|
312
312
|
state: o
|
|
313
313
|
});
|
|
@@ -315,31 +315,31 @@ var V, F, he, dt, lr = (dt = class extends mt {
|
|
|
315
315
|
}
|
|
316
316
|
add(e) {
|
|
317
317
|
x(this, V).add(e);
|
|
318
|
-
const r =
|
|
318
|
+
const r = be(e);
|
|
319
319
|
if (typeof r == "string") {
|
|
320
|
-
const o = x(this,
|
|
321
|
-
o ? o.push(e) : x(this,
|
|
320
|
+
const o = x(this, B).get(r);
|
|
321
|
+
o ? o.push(e) : x(this, B).set(r, [e]);
|
|
322
322
|
}
|
|
323
323
|
this.notify({ type: "added", mutation: e });
|
|
324
324
|
}
|
|
325
325
|
remove(e) {
|
|
326
326
|
if (x(this, V).delete(e)) {
|
|
327
|
-
const r =
|
|
327
|
+
const r = be(e);
|
|
328
328
|
if (typeof r == "string") {
|
|
329
|
-
const o = x(this,
|
|
329
|
+
const o = x(this, B).get(r);
|
|
330
330
|
if (o)
|
|
331
331
|
if (o.length > 1) {
|
|
332
332
|
const i = o.indexOf(e);
|
|
333
333
|
i !== -1 && o.splice(i, 1);
|
|
334
|
-
} else o[0] === e && x(this,
|
|
334
|
+
} else o[0] === e && x(this, B).delete(r);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
this.notify({ type: "removed", mutation: e });
|
|
338
338
|
}
|
|
339
339
|
canRun(e) {
|
|
340
|
-
const r =
|
|
340
|
+
const r = be(e);
|
|
341
341
|
if (typeof r == "string") {
|
|
342
|
-
const o = x(this,
|
|
342
|
+
const o = x(this, B).get(r), i = o == null ? void 0 : o.find(
|
|
343
343
|
(a) => a.state.status === "pending"
|
|
344
344
|
);
|
|
345
345
|
return !i || i === e;
|
|
@@ -348,18 +348,18 @@ var V, F, he, dt, lr = (dt = class extends mt {
|
|
|
348
348
|
}
|
|
349
349
|
runNext(e) {
|
|
350
350
|
var o;
|
|
351
|
-
const r =
|
|
351
|
+
const r = be(e);
|
|
352
352
|
if (typeof r == "string") {
|
|
353
|
-
const i = (o = x(this,
|
|
353
|
+
const i = (o = x(this, B).get(r)) == null ? void 0 : o.find((a) => a !== e && a.state.isPaused);
|
|
354
354
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
355
355
|
} else
|
|
356
356
|
return Promise.resolve();
|
|
357
357
|
}
|
|
358
358
|
clear() {
|
|
359
|
-
|
|
359
|
+
S.batch(() => {
|
|
360
360
|
x(this, V).forEach((e) => {
|
|
361
361
|
this.notify({ type: "removed", mutation: e });
|
|
362
|
-
}), x(this, V).clear(), x(this,
|
|
362
|
+
}), x(this, V).clear(), x(this, B).clear();
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
getAll() {
|
|
@@ -368,14 +368,14 @@ var V, F, he, dt, lr = (dt = class extends mt {
|
|
|
368
368
|
find(e) {
|
|
369
369
|
const r = { exact: !0, ...e };
|
|
370
370
|
return this.getAll().find(
|
|
371
|
-
(o) =>
|
|
371
|
+
(o) => Ve(r, o)
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
findAll(e = {}) {
|
|
375
|
-
return this.getAll().filter((r) =>
|
|
375
|
+
return this.getAll().filter((r) => Ve(e, r));
|
|
376
376
|
}
|
|
377
377
|
notify(e) {
|
|
378
|
-
|
|
378
|
+
S.batch(() => {
|
|
379
379
|
this.listeners.forEach((r) => {
|
|
380
380
|
r(e);
|
|
381
381
|
});
|
|
@@ -383,73 +383,73 @@ var V, F, he, dt, lr = (dt = class extends mt {
|
|
|
383
383
|
}
|
|
384
384
|
resumePausedMutations() {
|
|
385
385
|
const e = this.getAll().filter((r) => r.state.isPaused);
|
|
386
|
-
return
|
|
386
|
+
return S.batch(
|
|
387
387
|
() => Promise.all(
|
|
388
388
|
e.map((r) => r.continue().catch(Q))
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
}, V = new WeakMap(),
|
|
393
|
-
function
|
|
392
|
+
}, V = new WeakMap(), B = new WeakMap(), xe = new WeakMap(), ct);
|
|
393
|
+
function be(t) {
|
|
394
394
|
var e;
|
|
395
395
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Ke(t) {
|
|
398
398
|
return {
|
|
399
399
|
onFetch: (e, r) => {
|
|
400
|
-
var p, c, f, b,
|
|
401
|
-
const o = e.options, i = (f = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : f.direction, a = ((b = e.state.data) == null ? void 0 : b.pages) || [], d = ((
|
|
400
|
+
var p, c, f, b, j;
|
|
401
|
+
const o = e.options, i = (f = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : f.direction, a = ((b = e.state.data) == null ? void 0 : b.pages) || [], d = ((j = e.state.data) == null ? void 0 : j.pageParams) || [];
|
|
402
402
|
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
403
|
const h = async () => {
|
|
404
404
|
let g = !1;
|
|
405
|
-
const
|
|
406
|
-
Object.defineProperty(
|
|
405
|
+
const N = (M) => {
|
|
406
|
+
Object.defineProperty(M, "signal", {
|
|
407
407
|
enumerable: !0,
|
|
408
408
|
get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
|
|
409
409
|
g = !0;
|
|
410
410
|
}), e.signal)
|
|
411
411
|
});
|
|
412
|
-
},
|
|
412
|
+
}, I = zt(e.options, e.fetchOptions), $ = async (M, O, A) => {
|
|
413
413
|
if (g)
|
|
414
414
|
return Promise.reject();
|
|
415
|
-
if (
|
|
416
|
-
return Promise.resolve(
|
|
415
|
+
if (O == null && M.pages.length)
|
|
416
|
+
return Promise.resolve(M);
|
|
417
417
|
const Y = {
|
|
418
418
|
client: e.client,
|
|
419
419
|
queryKey: e.queryKey,
|
|
420
|
-
pageParam:
|
|
420
|
+
pageParam: O,
|
|
421
421
|
direction: A ? "backward" : "forward",
|
|
422
422
|
meta: e.options.meta
|
|
423
423
|
};
|
|
424
|
-
|
|
425
|
-
const
|
|
424
|
+
N(Y);
|
|
425
|
+
const pe = await I(
|
|
426
426
|
Y
|
|
427
|
-
), { maxPages:
|
|
427
|
+
), { maxPages: le } = e.options, C = A ? Lt : Qt;
|
|
428
428
|
return {
|
|
429
|
-
pages:
|
|
430
|
-
pageParams:
|
|
429
|
+
pages: C(M.pages, pe, le),
|
|
430
|
+
pageParams: C(M.pageParams, O, le)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
433
|
if (i && a.length) {
|
|
434
|
-
const
|
|
434
|
+
const M = i === "backward", O = M ? hr : Ze, A = {
|
|
435
435
|
pages: a,
|
|
436
436
|
pageParams: d
|
|
437
|
-
}, Y =
|
|
438
|
-
u = await $(A, Y,
|
|
437
|
+
}, Y = O(o, A);
|
|
438
|
+
u = await $(A, Y, M);
|
|
439
439
|
} else {
|
|
440
|
-
const
|
|
440
|
+
const M = t ?? a.length;
|
|
441
441
|
do {
|
|
442
|
-
const
|
|
443
|
-
if (m > 0 &&
|
|
442
|
+
const O = m === 0 ? d[0] ?? o.initialPageParam : Ze(o, u);
|
|
443
|
+
if (m > 0 && O == null)
|
|
444
444
|
break;
|
|
445
|
-
u = await $(u,
|
|
446
|
-
} while (m <
|
|
445
|
+
u = await $(u, O), m++;
|
|
446
|
+
} while (m < M);
|
|
447
447
|
}
|
|
448
448
|
return u;
|
|
449
449
|
};
|
|
450
450
|
e.options.persister ? e.fetchFn = () => {
|
|
451
|
-
var g,
|
|
452
|
-
return (
|
|
451
|
+
var g, N;
|
|
452
|
+
return (N = (g = e.options).persister) == null ? void 0 : N.call(
|
|
453
453
|
g,
|
|
454
454
|
h,
|
|
455
455
|
{
|
|
@@ -464,7 +464,7 @@ function $e(t) {
|
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Ze(t, { pages: e, pageParams: r }) {
|
|
468
468
|
const o = e.length - 1;
|
|
469
469
|
return e.length > 0 ? t.getNextPageParam(
|
|
470
470
|
e[o],
|
|
@@ -473,35 +473,35 @@ function Ae(t, { pages: e, pageParams: r }) {
|
|
|
473
473
|
r
|
|
474
474
|
) : void 0;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function hr(t, { pages: e, pageParams: r }) {
|
|
477
477
|
var o;
|
|
478
478
|
return e.length > 0 ? (o = t.getPreviousPageParam) == null ? void 0 : o.call(t, e[0], e, r[0], r) : void 0;
|
|
479
479
|
}
|
|
480
|
-
var
|
|
480
|
+
var k, W, K, te, re, Z, ne, oe, ft, xr = (ft = class {
|
|
481
481
|
constructor(t = {}) {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
w(this,
|
|
482
|
+
_(this, k);
|
|
483
|
+
_(this, W);
|
|
484
|
+
_(this, K);
|
|
485
|
+
_(this, te);
|
|
486
|
+
_(this, re);
|
|
487
|
+
_(this, Z);
|
|
488
|
+
_(this, ne);
|
|
489
|
+
_(this, oe);
|
|
490
|
+
w(this, k, t.queryCache || new lr()), w(this, W, t.mutationCache || new mr()), w(this, K, t.defaultOptions || {}), w(this, te, /* @__PURE__ */ new Map()), w(this, re, /* @__PURE__ */ new Map()), w(this, Z, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
|
|
494
|
-
t && (await this.resumePausedMutations(), x(this,
|
|
495
|
-
})), w(this, oe,
|
|
496
|
-
t && (await this.resumePausedMutations(), x(this,
|
|
493
|
+
fe(this, Z)._++, x(this, Z) === 1 && (w(this, ne, Vt.subscribe(async (t) => {
|
|
494
|
+
t && (await this.resumePausedMutations(), x(this, k).onFocus());
|
|
495
|
+
})), w(this, oe, $e.subscribe(async (t) => {
|
|
496
|
+
t && (await this.resumePausedMutations(), x(this, k).onOnline());
|
|
497
497
|
})));
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var t, e;
|
|
501
|
-
|
|
501
|
+
fe(this, Z)._--, x(this, Z) === 0 && ((t = x(this, ne)) == null || t.call(this), w(this, ne, void 0), (e = x(this, oe)) == null || e.call(this), w(this, oe, void 0));
|
|
502
502
|
}
|
|
503
503
|
isFetching(t) {
|
|
504
|
-
return x(this,
|
|
504
|
+
return x(this, k).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
505
505
|
}
|
|
506
506
|
isMutating(t) {
|
|
507
507
|
return x(this, W).findAll({ ...t, status: "pending" }).length;
|
|
@@ -516,28 +516,28 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
516
516
|
getQueryData(t) {
|
|
517
517
|
var r;
|
|
518
518
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
519
|
-
return (r = x(this,
|
|
519
|
+
return (r = x(this, k).get(e.queryHash)) == null ? void 0 : r.state.data;
|
|
520
520
|
}
|
|
521
521
|
ensureQueryData(t) {
|
|
522
|
-
const e = this.defaultQueryOptions(t), r = x(this,
|
|
523
|
-
return o === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(
|
|
522
|
+
const e = this.defaultQueryOptions(t), r = x(this, k).build(this, e), o = r.state.data;
|
|
523
|
+
return o === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(Ae(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(o));
|
|
524
524
|
}
|
|
525
525
|
getQueriesData(t) {
|
|
526
|
-
return x(this,
|
|
526
|
+
return x(this, k).findAll(t).map(({ queryKey: e, state: r }) => {
|
|
527
527
|
const o = r.data;
|
|
528
528
|
return [e, o];
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
setQueryData(t, e, r) {
|
|
532
|
-
const o = this.defaultQueryOptions({ queryKey: t }), i = x(this,
|
|
532
|
+
const o = this.defaultQueryOptions({ queryKey: t }), i = x(this, k).get(
|
|
533
533
|
o.queryHash
|
|
534
|
-
), a = i == null ? void 0 : i.state.data, d =
|
|
534
|
+
), a = i == null ? void 0 : i.state.data, d = $t(e, a);
|
|
535
535
|
if (d !== void 0)
|
|
536
|
-
return x(this,
|
|
536
|
+
return x(this, k).build(this, o).setData(d, { ...r, manual: !0 });
|
|
537
537
|
}
|
|
538
538
|
setQueriesData(t, e, r) {
|
|
539
|
-
return
|
|
540
|
-
() => x(this,
|
|
539
|
+
return S.batch(
|
|
540
|
+
() => x(this, k).findAll(t).map(({ queryKey: o }) => [
|
|
541
541
|
o,
|
|
542
542
|
this.setQueryData(o, e, r)
|
|
543
543
|
])
|
|
@@ -546,21 +546,21 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
546
546
|
getQueryState(t) {
|
|
547
547
|
var r;
|
|
548
548
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
549
|
-
return (r = x(this,
|
|
549
|
+
return (r = x(this, k).get(
|
|
550
550
|
e.queryHash
|
|
551
551
|
)) == null ? void 0 : r.state;
|
|
552
552
|
}
|
|
553
553
|
removeQueries(t) {
|
|
554
|
-
const e = x(this,
|
|
555
|
-
|
|
554
|
+
const e = x(this, k);
|
|
555
|
+
S.batch(() => {
|
|
556
556
|
e.findAll(t).forEach((r) => {
|
|
557
557
|
e.remove(r);
|
|
558
558
|
});
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
resetQueries(t, e) {
|
|
562
|
-
const r = x(this,
|
|
563
|
-
return
|
|
562
|
+
const r = x(this, k);
|
|
563
|
+
return S.batch(() => (r.findAll(t).forEach((o) => {
|
|
564
564
|
o.reset();
|
|
565
565
|
}), this.refetchQueries(
|
|
566
566
|
{
|
|
@@ -571,13 +571,13 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
571
571
|
)));
|
|
572
572
|
}
|
|
573
573
|
cancelQueries(t, e = {}) {
|
|
574
|
-
const r = { revert: !0, ...e }, o =
|
|
575
|
-
() => x(this,
|
|
574
|
+
const r = { revert: !0, ...e }, o = S.batch(
|
|
575
|
+
() => x(this, k).findAll(t).map((i) => i.cancel(r))
|
|
576
576
|
);
|
|
577
577
|
return Promise.all(o).then(Q).catch(Q);
|
|
578
578
|
}
|
|
579
579
|
invalidateQueries(t, e = {}) {
|
|
580
|
-
return
|
|
580
|
+
return S.batch(() => (x(this, k).findAll(t).forEach((r) => {
|
|
581
581
|
r.invalidate();
|
|
582
582
|
}), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
583
583
|
{
|
|
@@ -591,8 +591,8 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
591
591
|
const r = {
|
|
592
592
|
...e,
|
|
593
593
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
594
|
-
}, o =
|
|
595
|
-
() => x(this,
|
|
594
|
+
}, o = S.batch(
|
|
595
|
+
() => x(this, k).findAll(t).filter((i) => !i.isDisabled() && !i.isStatic()).map((i) => {
|
|
596
596
|
let a = i.fetch(void 0, r);
|
|
597
597
|
return r.throwOnError || (a = a.catch(Q)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
|
|
598
598
|
})
|
|
@@ -602,28 +602,28 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
602
602
|
fetchQuery(t) {
|
|
603
603
|
const e = this.defaultQueryOptions(t);
|
|
604
604
|
e.retry === void 0 && (e.retry = !1);
|
|
605
|
-
const r = x(this,
|
|
605
|
+
const r = x(this, k).build(this, e);
|
|
606
606
|
return r.isStaleByTime(
|
|
607
|
-
|
|
607
|
+
Ae(e.staleTime, r)
|
|
608
608
|
) ? r.fetch(e) : Promise.resolve(r.state.data);
|
|
609
609
|
}
|
|
610
610
|
prefetchQuery(t) {
|
|
611
611
|
return this.fetchQuery(t).then(Q).catch(Q);
|
|
612
612
|
}
|
|
613
613
|
fetchInfiniteQuery(t) {
|
|
614
|
-
return t.behavior =
|
|
614
|
+
return t.behavior = Ke(t.pages), this.fetchQuery(t);
|
|
615
615
|
}
|
|
616
616
|
prefetchInfiniteQuery(t) {
|
|
617
617
|
return this.fetchInfiniteQuery(t).then(Q).catch(Q);
|
|
618
618
|
}
|
|
619
619
|
ensureInfiniteQueryData(t) {
|
|
620
|
-
return t.behavior =
|
|
620
|
+
return t.behavior = Ke(t.pages), this.ensureQueryData(t);
|
|
621
621
|
}
|
|
622
622
|
resumePausedMutations() {
|
|
623
|
-
return
|
|
623
|
+
return $e.isOnline() ? x(this, W).resumePausedMutations() : Promise.resolve();
|
|
624
624
|
}
|
|
625
625
|
getQueryCache() {
|
|
626
|
-
return x(this,
|
|
626
|
+
return x(this, k);
|
|
627
627
|
}
|
|
628
628
|
getMutationCache() {
|
|
629
629
|
return x(this, W);
|
|
@@ -635,7 +635,7 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
635
635
|
w(this, K, t);
|
|
636
636
|
}
|
|
637
637
|
setQueryDefaults(t, e) {
|
|
638
|
-
x(this, te).set(
|
|
638
|
+
x(this, te).set(Ue(t), {
|
|
639
639
|
queryKey: t,
|
|
640
640
|
defaultOptions: e
|
|
641
641
|
});
|
|
@@ -643,11 +643,11 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
643
643
|
getQueryDefaults(t) {
|
|
644
644
|
const e = [...x(this, te).values()], r = {};
|
|
645
645
|
return e.forEach((o) => {
|
|
646
|
-
|
|
646
|
+
qe(t, o.queryKey) && Object.assign(r, o.defaultOptions);
|
|
647
647
|
}), r;
|
|
648
648
|
}
|
|
649
649
|
setMutationDefaults(t, e) {
|
|
650
|
-
x(this, re).set(
|
|
650
|
+
x(this, re).set(Ue(t), {
|
|
651
651
|
mutationKey: t,
|
|
652
652
|
defaultOptions: e
|
|
653
653
|
});
|
|
@@ -655,7 +655,7 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
655
655
|
getMutationDefaults(t) {
|
|
656
656
|
const e = [...x(this, re).values()], r = {};
|
|
657
657
|
return e.forEach((o) => {
|
|
658
|
-
|
|
658
|
+
qe(t, o.mutationKey) && Object.assign(r, o.defaultOptions);
|
|
659
659
|
}), r;
|
|
660
660
|
}
|
|
661
661
|
defaultQueryOptions(t) {
|
|
@@ -667,10 +667,10 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
667
667
|
...t,
|
|
668
668
|
_defaulted: !0
|
|
669
669
|
};
|
|
670
|
-
return e.queryHash || (e.queryHash =
|
|
670
|
+
return e.queryHash || (e.queryHash = st(
|
|
671
671
|
e.queryKey,
|
|
672
672
|
e
|
|
673
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn ===
|
|
673
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === At && (e.enabled = !1), e;
|
|
674
674
|
}
|
|
675
675
|
defaultMutationOptions(t) {
|
|
676
676
|
return t != null && t._defaulted ? t : {
|
|
@@ -681,41 +681,51 @@ var y, W, K, te, re, Z, ne, oe, ut, ur = (ut = class {
|
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
683
|
clear() {
|
|
684
|
-
x(this,
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
const
|
|
688
|
-
header:
|
|
689
|
-
seoHeader:
|
|
690
|
-
banner:
|
|
691
|
-
calculator:
|
|
692
|
-
form:
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
684
|
+
x(this, k).clear(), x(this, W).clear();
|
|
685
|
+
}
|
|
686
|
+
}, k = new WeakMap(), W = new WeakMap(), K = new WeakMap(), te = new WeakMap(), re = new WeakMap(), Z = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), ft);
|
|
687
|
+
const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resolve().then(() => No)), fr = F(() => Promise.resolve().then(() => Hn)), br = F(() => Promise.resolve().then(() => Ln)), sr = F(() => Promise.resolve().then(() => $r)), gr = F(() => Promise.resolve().then(() => Fr)), jr = F(() => Promise.resolve().then(() => on)), yr = F(() => Promise.resolve().then(() => Jr)), kr = F(() => Promise.resolve().then(() => oo)), wr = F(() => Promise.resolve().then(() => Ur)), vr = F(() => Promise.resolve().then(() => _n)), Nr = F(() => Promise.resolve().then(() => Sr)), Cr = {
|
|
688
|
+
header: gr,
|
|
689
|
+
seoHeader: kr,
|
|
690
|
+
banner: pr,
|
|
691
|
+
calculator: cr,
|
|
692
|
+
form: fr,
|
|
693
|
+
formDialog: br,
|
|
694
|
+
stepper: wr,
|
|
695
|
+
benefit: Nr,
|
|
696
|
+
longBanner: yr,
|
|
697
|
+
usefulInfo: vr,
|
|
698
|
+
interLinking: jr,
|
|
699
|
+
footer: sr
|
|
700
|
+
}, Mr = Object.keys(Cr), y = Mr.reduce(
|
|
700
701
|
(t, e) => (t[e] = e, t),
|
|
701
702
|
{}
|
|
702
|
-
),
|
|
703
|
+
), _r = (t) => yt(() => {
|
|
703
704
|
switch (t.handler) {
|
|
704
705
|
case "navigate": {
|
|
705
706
|
const { url: r, target: o, rel: i } = t;
|
|
706
|
-
|
|
707
|
+
Ie && (window == null || window.open(r, o, i));
|
|
707
708
|
break;
|
|
708
709
|
}
|
|
709
710
|
case "scroll": {
|
|
710
711
|
const { widgetId: r } = t ?? "";
|
|
711
|
-
|
|
712
|
+
tr({ widgetId: r });
|
|
712
713
|
break;
|
|
713
714
|
}
|
|
715
|
+
case "dialog": {
|
|
716
|
+
if (!Ie) return;
|
|
717
|
+
const { dialogId: r } = t ?? {}, o = document.getElementById(r);
|
|
718
|
+
if (!o) {
|
|
719
|
+
console.error("Такого элемента в DOM не существует", r);
|
|
720
|
+
break;
|
|
721
|
+
}
|
|
722
|
+
o.show();
|
|
723
|
+
}
|
|
714
724
|
}
|
|
715
725
|
}, [t]), X = ({ handlerOptions: t, className: e, ...r }) => {
|
|
716
|
-
const o =
|
|
717
|
-
return /* @__PURE__ */ n.jsx(
|
|
718
|
-
},
|
|
726
|
+
const o = _r(t);
|
|
727
|
+
return /* @__PURE__ */ n.jsx(je, { className: l(e), onClick: o, ...r, children: r.children });
|
|
728
|
+
}, Ir = E(
|
|
719
729
|
"flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
|
|
720
730
|
{
|
|
721
731
|
variants: {
|
|
@@ -726,7 +736,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
726
736
|
}
|
|
727
737
|
}
|
|
728
738
|
}
|
|
729
|
-
),
|
|
739
|
+
), Tr = ({
|
|
730
740
|
subtitle: t,
|
|
731
741
|
title: e,
|
|
732
742
|
img: r,
|
|
@@ -742,7 +752,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
742
752
|
"li",
|
|
743
753
|
{
|
|
744
754
|
style: { backgroundColor: m ?? "#F3F4F7" },
|
|
745
|
-
className: l(
|
|
755
|
+
className: l(Ir({ variant: u }), { "pb-0": o }, { "pb-12": !o }, i == null ? void 0 : i.root),
|
|
746
756
|
children: [
|
|
747
757
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
748
758
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
@@ -762,7 +772,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
762
772
|
},
|
|
763
773
|
e
|
|
764
774
|
);
|
|
765
|
-
},
|
|
775
|
+
}, Or = E("grid gap-4", {
|
|
766
776
|
variants: {
|
|
767
777
|
variant: {
|
|
768
778
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -770,7 +780,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
770
780
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
771
781
|
}
|
|
772
782
|
}
|
|
773
|
-
}),
|
|
783
|
+
}), Xe = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: y.benefit, "data-test-id": y.benefit, className: l("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ n.jsxs(P, { className: o == null ? void 0 : o.container, children: [
|
|
774
784
|
/* @__PURE__ */ n.jsx(
|
|
775
785
|
"div",
|
|
776
786
|
{
|
|
@@ -778,29 +788,29 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
778
788
|
className: l("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
|
|
779
789
|
}
|
|
780
790
|
),
|
|
781
|
-
/* @__PURE__ */ n.jsx("ul", { className: l(
|
|
782
|
-
] }) }),
|
|
791
|
+
/* @__PURE__ */ n.jsx("ul", { className: l(Or({ variant: r }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx(Tr, { variant: r, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
|
|
792
|
+
] }) }), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
783
793
|
__proto__: null,
|
|
784
|
-
Benefit:
|
|
785
|
-
default:
|
|
786
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
794
|
+
Benefit: Xe,
|
|
795
|
+
default: Xe
|
|
796
|
+
}, Symbol.toStringTag, { value: "Module" })), Er = ({ variant: t, details: e }) => {
|
|
787
797
|
switch (t) {
|
|
788
798
|
case "withButton":
|
|
789
799
|
return /* @__PURE__ */ n.jsx(X, { ...e });
|
|
790
800
|
case "withPhone":
|
|
791
|
-
return /* @__PURE__ */ n.jsx(
|
|
801
|
+
return /* @__PURE__ */ n.jsx(gt, { classes: { root: "items-end" }, ...e, phone: ve(e.phone) });
|
|
792
802
|
default:
|
|
793
803
|
return null;
|
|
794
804
|
}
|
|
795
|
-
},
|
|
805
|
+
}, Ye = (t) => {
|
|
796
806
|
const { logoPath: e = "/", logoType: r = "main", classes: o } = t;
|
|
797
807
|
return /* @__PURE__ */ n.jsx(
|
|
798
808
|
"header",
|
|
799
809
|
{
|
|
800
|
-
id:
|
|
801
|
-
"data-test-id":
|
|
810
|
+
id: y.header,
|
|
811
|
+
"data-test-id": y.header,
|
|
802
812
|
className: l("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
803
|
-
children: /* @__PURE__ */ n.jsx(
|
|
813
|
+
children: /* @__PURE__ */ n.jsx(P, { className: l(o == null ? void 0 : o.container), children: /* @__PURE__ */ n.jsxs("div", { className: l("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
804
814
|
/* @__PURE__ */ n.jsx(
|
|
805
815
|
"a",
|
|
806
816
|
{
|
|
@@ -812,18 +822,18 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
812
822
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
813
823
|
o == null ? void 0 : o.logo
|
|
814
824
|
),
|
|
815
|
-
children:
|
|
825
|
+
children: Ut[r]
|
|
816
826
|
}
|
|
817
827
|
),
|
|
818
|
-
|
|
828
|
+
Er(t)
|
|
819
829
|
] }) })
|
|
820
830
|
}
|
|
821
831
|
);
|
|
822
|
-
},
|
|
832
|
+
}, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
823
833
|
__proto__: null,
|
|
824
|
-
Header:
|
|
825
|
-
default:
|
|
826
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
834
|
+
Header: Ye,
|
|
835
|
+
default: Ye
|
|
836
|
+
}, Symbol.toStringTag, { value: "Module" })), Br = ({
|
|
827
837
|
headTitle: t,
|
|
828
838
|
subtitle: e,
|
|
829
839
|
buttonsConfig: r,
|
|
@@ -835,32 +845,32 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
835
845
|
color: m,
|
|
836
846
|
renderImage: h
|
|
837
847
|
}) => {
|
|
838
|
-
var
|
|
839
|
-
const { isDesktop: p, isMobile: c } = ee(), { primary: f, secondary: b } = r || {},
|
|
848
|
+
var N;
|
|
849
|
+
const { isDesktop: p, isMobile: c } = ee(), { primary: f, secondary: b } = r || {}, j = (I) => h ? h(I) : /* @__PURE__ */ n.jsx("img", { ...I }), g = /* @__PURE__ */ n.jsx(
|
|
840
850
|
"div",
|
|
841
851
|
{
|
|
842
852
|
className: l(
|
|
843
853
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
844
854
|
i == null ? void 0 : i.advantageContainer
|
|
845
855
|
),
|
|
846
|
-
children: (o == null ? void 0 : o.details) && ((
|
|
856
|
+
children: (o == null ? void 0 : o.details) && ((N = o == null ? void 0 : o.details) == null ? void 0 : N.items.length) > 0 && /* @__PURE__ */ n.jsx(Te, { ...o })
|
|
847
857
|
}
|
|
848
858
|
);
|
|
849
859
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
850
860
|
/* @__PURE__ */ n.jsxs(
|
|
851
861
|
"section",
|
|
852
862
|
{
|
|
853
|
-
id:
|
|
854
|
-
"data-test-id":
|
|
863
|
+
id: y.banner,
|
|
864
|
+
"data-test-id": y.banner,
|
|
855
865
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
856
866
|
className: l("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
857
867
|
children: [
|
|
858
|
-
/* @__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:
|
|
868
|
+
/* @__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: j(c ? { src: a.src, alt: u, className: l("h-full w-full object-cover object-center") } : {
|
|
859
869
|
src: d.src,
|
|
860
870
|
alt: u,
|
|
861
871
|
className: l("h-full w-full object-cover object-center")
|
|
862
872
|
}) }),
|
|
863
|
-
/* @__PURE__ */ n.jsxs(
|
|
873
|
+
/* @__PURE__ */ n.jsxs(P, { className: l("h-full", i == null ? void 0 : i.container), children: [
|
|
864
874
|
/* @__PURE__ */ n.jsx("div", { className: l("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ n.jsxs("div", { className: l("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
|
|
865
875
|
/* @__PURE__ */ n.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
866
876
|
/* @__PURE__ */ n.jsx(
|
|
@@ -915,7 +925,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
915
925
|
),
|
|
916
926
|
c && (o == null ? void 0 : o.enabled) && g
|
|
917
927
|
] });
|
|
918
|
-
},
|
|
928
|
+
}, Je = ({
|
|
919
929
|
headTitle: t,
|
|
920
930
|
subtitle: e,
|
|
921
931
|
buttonsConfig: r,
|
|
@@ -927,17 +937,17 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
927
937
|
color: m,
|
|
928
938
|
renderImage: h
|
|
929
939
|
}) => {
|
|
930
|
-
var
|
|
931
|
-
const { isMobile: p } = ee(), { primary: c, secondary: f } = r || {}, b = (
|
|
940
|
+
var j, g;
|
|
941
|
+
const { isMobile: p } = ee(), { primary: c, secondary: f } = r || {}, b = (N) => h ? h(N) : /* @__PURE__ */ n.jsx("img", { ...N });
|
|
932
942
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
933
943
|
/* @__PURE__ */ n.jsx(
|
|
934
944
|
"section",
|
|
935
945
|
{
|
|
936
|
-
id:
|
|
937
|
-
"data-test-id":
|
|
946
|
+
id: y.banner,
|
|
947
|
+
"data-test-id": y.banner,
|
|
938
948
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
939
949
|
className: l("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
940
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
950
|
+
children: /* @__PURE__ */ n.jsxs(P, { className: l("relative", i == null ? void 0 : i.container), children: [
|
|
941
951
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
942
952
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
943
953
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
@@ -1005,10 +1015,10 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1005
1015
|
"div",
|
|
1006
1016
|
{
|
|
1007
1017
|
className: l(
|
|
1008
|
-
"items-center justify-center rounded-md
|
|
1018
|
+
"items-center justify-center rounded-md p-4 pb-8 mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:flex desktop:translate-x-1/2 desktop:p-0",
|
|
1009
1019
|
i == null ? void 0 : i.advantageContainer
|
|
1010
1020
|
),
|
|
1011
|
-
children: (o == null ? void 0 : o.details) && ((
|
|
1021
|
+
children: (o == null ? void 0 : o.details) && ((j = o == null ? void 0 : o.details) == null ? void 0 : j.items.length) > 0 && /* @__PURE__ */ n.jsx(Te, { ...o })
|
|
1012
1022
|
}
|
|
1013
1023
|
)
|
|
1014
1024
|
] })
|
|
@@ -1018,27 +1028,27 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1018
1028
|
"div",
|
|
1019
1029
|
{
|
|
1020
1030
|
className: l(
|
|
1021
|
-
"flex items-center justify-center rounded-md
|
|
1031
|
+
"flex items-center justify-center rounded-md p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
|
|
1022
1032
|
i == null ? void 0 : i.advantageContainer
|
|
1023
1033
|
),
|
|
1024
|
-
children: (o == null ? void 0 : o.details) && ((g = o == null ? void 0 : o.details) == null ? void 0 : g.items.length) > 0 && /* @__PURE__ */ n.jsx(
|
|
1034
|
+
children: (o == null ? void 0 : o.details) && ((g = o == null ? void 0 : o.details) == null ? void 0 : g.items.length) > 0 && /* @__PURE__ */ n.jsx(Te, { ...o })
|
|
1025
1035
|
}
|
|
1026
1036
|
)
|
|
1027
1037
|
] });
|
|
1028
|
-
},
|
|
1038
|
+
}, Ge = ({ variant: t, ...e }) => {
|
|
1029
1039
|
switch (t) {
|
|
1030
1040
|
case "separateImg":
|
|
1031
|
-
return /* @__PURE__ */ n.jsx(
|
|
1041
|
+
return /* @__PURE__ */ n.jsx(Je, { ...e });
|
|
1032
1042
|
case "fullImg":
|
|
1033
|
-
return /* @__PURE__ */ n.jsx(
|
|
1043
|
+
return /* @__PURE__ */ n.jsx(Br, { ...e });
|
|
1034
1044
|
default:
|
|
1035
|
-
return /* @__PURE__ */ n.jsx(
|
|
1045
|
+
return /* @__PURE__ */ n.jsx(Je, { ...e });
|
|
1036
1046
|
}
|
|
1037
|
-
},
|
|
1047
|
+
}, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1038
1048
|
__proto__: null,
|
|
1039
|
-
Banner:
|
|
1040
|
-
default:
|
|
1041
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1049
|
+
Banner: Ge,
|
|
1050
|
+
default: Ge
|
|
1051
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = ({ details: t, classes: e }) => {
|
|
1042
1052
|
const { variant: r, items: o } = t ?? {};
|
|
1043
1053
|
return /* @__PURE__ */ n.jsx(
|
|
1044
1054
|
"div",
|
|
@@ -1058,7 +1068,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1058
1068
|
e == null ? void 0 : e.item
|
|
1059
1069
|
),
|
|
1060
1070
|
children: [
|
|
1061
|
-
/* @__PURE__ */ n.jsx(
|
|
1071
|
+
/* @__PURE__ */ n.jsx(L, { as: "h4", className: l("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
1062
1072
|
/* @__PURE__ */ n.jsx("p", { className: l("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
|
|
1063
1073
|
]
|
|
1064
1074
|
},
|
|
@@ -1066,7 +1076,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1066
1076
|
))
|
|
1067
1077
|
}
|
|
1068
1078
|
);
|
|
1069
|
-
},
|
|
1079
|
+
}, Dr = ({ socialsLinks: t, classes: e }) => /* @__PURE__ */ n.jsx("div", { className: l("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: t == null ? void 0 : t.map(({ iconName: r, href: o }) => /* @__PURE__ */ n.jsx(
|
|
1070
1080
|
"a",
|
|
1071
1081
|
{
|
|
1072
1082
|
className: l("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
@@ -1075,10 +1085,10 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1075
1085
|
children: /* @__PURE__ */ n.jsx(s, { name: r, className: l("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1076
1086
|
},
|
|
1077
1087
|
o
|
|
1078
|
-
)) }),
|
|
1079
|
-
|
|
1088
|
+
)) }), Rr = ({ phones: t, classes: e }) => /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: r, text: o }) => /* @__PURE__ */ n.jsx(
|
|
1089
|
+
gt,
|
|
1080
1090
|
{
|
|
1081
|
-
phone:
|
|
1091
|
+
phone: ve(r),
|
|
1082
1092
|
text: o,
|
|
1083
1093
|
classes: {
|
|
1084
1094
|
root: l(e == null ? void 0 : e.phoneWrapper),
|
|
@@ -1087,7 +1097,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1087
1097
|
}
|
|
1088
1098
|
},
|
|
1089
1099
|
r
|
|
1090
|
-
)) }),
|
|
1100
|
+
)) }), Hr = ({ classes: t, details: e }) => /* @__PURE__ */ n.jsx(
|
|
1091
1101
|
"div",
|
|
1092
1102
|
{
|
|
1093
1103
|
className: l(
|
|
@@ -1098,7 +1108,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1098
1108
|
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
|
|
1099
1109
|
/* @__PURE__ */ n.jsx("div", { className: l("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: o }),
|
|
1100
1110
|
/* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-1", t == null ? void 0 : t.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: d }) => /* @__PURE__ */ n.jsx(
|
|
1101
|
-
|
|
1111
|
+
ye,
|
|
1102
1112
|
{
|
|
1103
1113
|
href: a,
|
|
1104
1114
|
"aria-label": d,
|
|
@@ -1114,13 +1124,13 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1114
1124
|
] }, o))
|
|
1115
1125
|
)
|
|
1116
1126
|
}
|
|
1117
|
-
),
|
|
1127
|
+
), zr = ({ text: t, classes: e }) => /* @__PURE__ */ n.jsx(
|
|
1118
1128
|
"div",
|
|
1119
1129
|
{
|
|
1120
1130
|
className: l("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
1121
1131
|
dangerouslySetInnerHTML: { __html: t }
|
|
1122
1132
|
}
|
|
1123
|
-
),
|
|
1133
|
+
), Lr = ({ classes: t }) => /* @__PURE__ */ n.jsx(
|
|
1124
1134
|
"a",
|
|
1125
1135
|
{
|
|
1126
1136
|
"aria-label": "logo",
|
|
@@ -1128,8 +1138,8 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1128
1138
|
className: l("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
|
|
1129
1139
|
children: /* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoWhite", className: l("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1130
1140
|
}
|
|
1131
|
-
),
|
|
1132
|
-
|
|
1141
|
+
), Qr = ({ classes: t }) => /* @__PURE__ */ n.jsx(
|
|
1142
|
+
ye,
|
|
1133
1143
|
{
|
|
1134
1144
|
intent: "white",
|
|
1135
1145
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1142,9 +1152,9 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1142
1152
|
},
|
|
1143
1153
|
children: "Карта сайта"
|
|
1144
1154
|
}
|
|
1145
|
-
),
|
|
1146
|
-
const [r, o] =
|
|
1147
|
-
return
|
|
1155
|
+
), Vr = ({ text: t, classes: e }) => {
|
|
1156
|
+
const [r, o] = me.useState(!1), [i, a] = me.useState(!1), d = me.useRef(null);
|
|
1157
|
+
return me.useEffect(() => {
|
|
1148
1158
|
const u = d.current;
|
|
1149
1159
|
u && a(u.scrollHeight > u.clientHeight);
|
|
1150
1160
|
}, []), /* @__PURE__ */ n.jsxs("div", { className: l("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
@@ -1170,7 +1180,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1170
1180
|
}
|
|
1171
1181
|
)
|
|
1172
1182
|
] });
|
|
1173
|
-
},
|
|
1183
|
+
}, et = ({
|
|
1174
1184
|
socialsLinks: t,
|
|
1175
1185
|
phones: e,
|
|
1176
1186
|
ligal: r,
|
|
@@ -1181,10 +1191,10 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1181
1191
|
}) => /* @__PURE__ */ n.jsx(
|
|
1182
1192
|
"footer",
|
|
1183
1193
|
{
|
|
1184
|
-
id:
|
|
1185
|
-
"data-test-id":
|
|
1194
|
+
id: y.footer,
|
|
1195
|
+
"data-test-id": y.footer,
|
|
1186
1196
|
className: l("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1187
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1197
|
+
children: /* @__PURE__ */ n.jsx(P, { className: l(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ n.jsxs("div", { className: l("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1188
1198
|
/* @__PURE__ */ n.jsxs(
|
|
1189
1199
|
"div",
|
|
1190
1200
|
{
|
|
@@ -1194,15 +1204,15 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1194
1204
|
),
|
|
1195
1205
|
children: [
|
|
1196
1206
|
/* @__PURE__ */ n.jsxs("div", { className: l(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1197
|
-
/* @__PURE__ */ n.jsx(
|
|
1198
|
-
t.enabled && /* @__PURE__ */ n.jsx(
|
|
1207
|
+
/* @__PURE__ */ n.jsx(Lr, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1208
|
+
t.enabled && /* @__PURE__ */ n.jsx(Dr, { socialsLinks: t.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1199
1209
|
] }),
|
|
1200
|
-
e.enabled && /* @__PURE__ */ n.jsx(
|
|
1210
|
+
e.enabled && /* @__PURE__ */ n.jsx(Rr, { phones: e.items, classes: i == null ? void 0 : i.phonesBlock })
|
|
1201
1211
|
]
|
|
1202
1212
|
}
|
|
1203
1213
|
),
|
|
1204
|
-
!v.isArrayEmpty(a) && /* @__PURE__ */ n.jsx(
|
|
1205
|
-
r.enabled && /* @__PURE__ */ n.jsx(
|
|
1214
|
+
!v.isArrayEmpty(a) && /* @__PURE__ */ n.jsx(Hr, { details: a, classes: i == null ? void 0 : i.navLinks }),
|
|
1215
|
+
r.enabled && /* @__PURE__ */ n.jsx(Vr, { text: r.text }),
|
|
1206
1216
|
/* @__PURE__ */ n.jsxs(
|
|
1207
1217
|
"div",
|
|
1208
1218
|
{
|
|
@@ -1211,18 +1221,18 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1211
1221
|
i == null ? void 0 : i.footerBottom
|
|
1212
1222
|
),
|
|
1213
1223
|
children: [
|
|
1214
|
-
o.enabled && /* @__PURE__ */ n.jsx(
|
|
1215
|
-
d && /* @__PURE__ */ n.jsx(
|
|
1224
|
+
o.enabled && /* @__PURE__ */ n.jsx(zr, { text: o.text, classes: i == null ? void 0 : i.copyright }),
|
|
1225
|
+
d && /* @__PURE__ */ n.jsx(Qr, { classes: i == null ? void 0 : i.siteMap })
|
|
1216
1226
|
]
|
|
1217
1227
|
}
|
|
1218
1228
|
)
|
|
1219
1229
|
] }) })
|
|
1220
1230
|
}
|
|
1221
|
-
),
|
|
1231
|
+
), $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1222
1232
|
__proto__: null,
|
|
1223
|
-
Footer:
|
|
1224
|
-
default:
|
|
1225
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1233
|
+
Footer: et,
|
|
1234
|
+
default: et
|
|
1235
|
+
}, Symbol.toStringTag, { value: "Module" })), Ar = ({ classes: t, index: e, variant: r, title: o, description: i }) => {
|
|
1226
1236
|
const a = r === "withTitleAndDescription" && o;
|
|
1227
1237
|
return /* @__PURE__ */ n.jsxs(
|
|
1228
1238
|
"div",
|
|
@@ -1261,8 +1271,8 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1261
1271
|
]
|
|
1262
1272
|
}
|
|
1263
1273
|
);
|
|
1264
|
-
},
|
|
1265
|
-
/* @__PURE__ */ n.jsx(
|
|
1274
|
+
}, tt = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: y.stepper, "data-test-id": y.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ n.jsx(P, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
1275
|
+
/* @__PURE__ */ n.jsx(L, { as: "h2", className: l("text-color-dark", o == null ? void 0 : o.headline), children: t }),
|
|
1266
1276
|
/* @__PURE__ */ n.jsx(
|
|
1267
1277
|
"div",
|
|
1268
1278
|
{
|
|
@@ -1270,14 +1280,14 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1270
1280
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1271
1281
|
o == null ? void 0 : o.stepsWrapper
|
|
1272
1282
|
),
|
|
1273
|
-
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ n.jsx(
|
|
1283
|
+
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ n.jsx(Ar, { variant: r, ...i, index: a + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
1274
1284
|
}
|
|
1275
1285
|
)
|
|
1276
|
-
] }) }) }),
|
|
1286
|
+
] }) }) }), Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1277
1287
|
__proto__: null,
|
|
1278
|
-
Stepper:
|
|
1279
|
-
default:
|
|
1280
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1288
|
+
Stepper: tt,
|
|
1289
|
+
default: tt
|
|
1290
|
+
}, Symbol.toStringTag, { value: "Module" })), qr = E("", {
|
|
1281
1291
|
variants: {
|
|
1282
1292
|
intent: {
|
|
1283
1293
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -1293,7 +1303,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1293
1303
|
defaultVariants: {
|
|
1294
1304
|
intent: "twoItems"
|
|
1295
1305
|
}
|
|
1296
|
-
}),
|
|
1306
|
+
}), Wr = E("", {
|
|
1297
1307
|
variants: {
|
|
1298
1308
|
intent: {
|
|
1299
1309
|
twoItems: "",
|
|
@@ -1325,7 +1335,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1325
1335
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1326
1336
|
}
|
|
1327
1337
|
]
|
|
1328
|
-
}),
|
|
1338
|
+
}), Kr = E("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1329
1339
|
variants: {
|
|
1330
1340
|
intent: {
|
|
1331
1341
|
twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
|
|
@@ -1335,7 +1345,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1335
1345
|
defaultVariants: {
|
|
1336
1346
|
intent: "twoItems"
|
|
1337
1347
|
}
|
|
1338
|
-
}),
|
|
1348
|
+
}), Zr = E("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1339
1349
|
variants: {
|
|
1340
1350
|
intent: {
|
|
1341
1351
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1361,7 +1371,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1361
1371
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
1362
1372
|
}
|
|
1363
1373
|
]
|
|
1364
|
-
}),
|
|
1374
|
+
}), Xr = ({ data: t, intent: e }) => {
|
|
1365
1375
|
const {
|
|
1366
1376
|
title: r,
|
|
1367
1377
|
description: o,
|
|
@@ -1369,14 +1379,14 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1369
1379
|
enabled: !1
|
|
1370
1380
|
}
|
|
1371
1381
|
} = t;
|
|
1372
|
-
return /* @__PURE__ */ n.jsx("li", { className: l(
|
|
1382
|
+
return /* @__PURE__ */ n.jsx("li", { className: l(Kr({ intent: e })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1373
1383
|
/* @__PURE__ */ n.jsxs("div", { className: l("mb-2 flex items-center gap-2"), children: [
|
|
1374
1384
|
/* @__PURE__ */ n.jsx("h4", { className: l("mob-title-bold-m text-color-dark"), children: r }),
|
|
1375
|
-
i.enabled && /* @__PURE__ */ n.jsx(
|
|
1385
|
+
i.enabled && /* @__PURE__ */ n.jsx(Se, { triggerElement: /* @__PURE__ */ n.jsx(s, { className: l("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1376
1386
|
] }),
|
|
1377
1387
|
/* @__PURE__ */ n.jsx("div", { className: l("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1378
1388
|
] }) });
|
|
1379
|
-
},
|
|
1389
|
+
}, Me = ({ intent: t, headline: e, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: l(qr({ intent: t, desktopHidden: r, mobileHidden: o })), children: e }), Yr = ({ details: t, intent: e, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: l(Wr({ intent: e, withButton: r })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ n.jsx(Xr, { intent: e, data: o }, i)) }), rt = ({
|
|
1380
1390
|
headline: t,
|
|
1381
1391
|
buttonConfig: e,
|
|
1382
1392
|
intent: r = "twoItems",
|
|
@@ -1385,8 +1395,8 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1385
1395
|
classes: a
|
|
1386
1396
|
}) => {
|
|
1387
1397
|
const d = r === "fourItems", u = r === "twoItems", m = i && "url" in i && v.isObject(i) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
|
|
1388
|
-
return /* @__PURE__ */ n.jsx("section", { id:
|
|
1389
|
-
u && /* @__PURE__ */ n.jsx(
|
|
1398
|
+
return /* @__PURE__ */ n.jsx("section", { id: y.longBanner, "data-test-id": y.longBanner, className: l(a == null ? void 0 : a.root), children: /* @__PURE__ */ n.jsxs(P, { className: l(a == null ? void 0 : a.container), children: [
|
|
1399
|
+
u && /* @__PURE__ */ n.jsx(Me, { intent: r, headline: t }),
|
|
1390
1400
|
/* @__PURE__ */ n.jsxs(
|
|
1391
1401
|
"div",
|
|
1392
1402
|
{
|
|
@@ -1395,15 +1405,15 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1395
1405
|
a == null ? void 0 : a.contentContainer
|
|
1396
1406
|
),
|
|
1397
1407
|
children: [
|
|
1398
|
-
d && /* @__PURE__ */ n.jsx(
|
|
1399
|
-
/* @__PURE__ */ n.jsx("div", { className: l(
|
|
1408
|
+
d && /* @__PURE__ */ n.jsx(Me, { intent: r, headline: t, desktopHidden: !0 }),
|
|
1409
|
+
/* @__PURE__ */ n.jsx("div", { className: l(Zr({ intent: r, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
|
|
1400
1410
|
/* @__PURE__ */ n.jsxs(
|
|
1401
1411
|
"div",
|
|
1402
1412
|
{
|
|
1403
1413
|
className: l("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
|
|
1404
1414
|
children: [
|
|
1405
|
-
d && /* @__PURE__ */ n.jsx(
|
|
1406
|
-
/* @__PURE__ */ n.jsx(
|
|
1415
|
+
d && /* @__PURE__ */ n.jsx(Me, { intent: r, headline: t, mobileHidden: !0 }),
|
|
1416
|
+
/* @__PURE__ */ n.jsx(Yr, { details: o, intent: r, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
|
|
1407
1417
|
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ n.jsx(
|
|
1408
1418
|
X,
|
|
1409
1419
|
{
|
|
@@ -1420,15 +1430,15 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1420
1430
|
}
|
|
1421
1431
|
)
|
|
1422
1432
|
] }) });
|
|
1423
|
-
},
|
|
1433
|
+
}, Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1424
1434
|
__proto__: null,
|
|
1425
|
-
LongBanner:
|
|
1426
|
-
default:
|
|
1427
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1435
|
+
LongBanner: rt,
|
|
1436
|
+
default: rt
|
|
1437
|
+
}, Symbol.toStringTag, { value: "Module" })), _e = {
|
|
1428
1438
|
ESIA: "esia",
|
|
1429
1439
|
MOBILE_ID: "mobileId",
|
|
1430
1440
|
COMBINE: "combine"
|
|
1431
|
-
},
|
|
1441
|
+
}, Ct = ({ children: t, isLoading: e, classes: r, loaderProps: o }) => /* @__PURE__ */ n.jsx(
|
|
1432
1442
|
"div",
|
|
1433
1443
|
{
|
|
1434
1444
|
tabIndex: 0,
|
|
@@ -1446,11 +1456,11 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1446
1456
|
{ "items-center": e },
|
|
1447
1457
|
r == null ? void 0 : r.wrapper
|
|
1448
1458
|
),
|
|
1449
|
-
children: e ? /* @__PURE__ */ n.jsx(
|
|
1459
|
+
children: e ? /* @__PURE__ */ n.jsx(qt, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : t
|
|
1450
1460
|
}
|
|
1451
1461
|
)
|
|
1452
1462
|
}
|
|
1453
|
-
),
|
|
1463
|
+
), Gr = ({ ...t }) => /* @__PURE__ */ n.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
1454
1464
|
/* @__PURE__ */ n.jsx(
|
|
1455
1465
|
"path",
|
|
1456
1466
|
{
|
|
@@ -1478,7 +1488,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1478
1488
|
/* @__PURE__ */ n.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1479
1489
|
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1480
1490
|
] }) })
|
|
1481
|
-
] }),
|
|
1491
|
+
] }), Mt = ({ mainLink: t, subLink: e, isMobile: r, classes: o }) => /* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
|
|
1482
1492
|
/* @__PURE__ */ n.jsx(
|
|
1483
1493
|
"a",
|
|
1484
1494
|
{
|
|
@@ -1493,7 +1503,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1493
1503
|
}
|
|
1494
1504
|
),
|
|
1495
1505
|
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ n.jsx(
|
|
1496
|
-
|
|
1506
|
+
ye,
|
|
1497
1507
|
{
|
|
1498
1508
|
intent: "blue",
|
|
1499
1509
|
withUnderline: !0,
|
|
@@ -1506,9 +1516,9 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1506
1516
|
children: e == null ? void 0 : e.text
|
|
1507
1517
|
}
|
|
1508
1518
|
)
|
|
1509
|
-
] }),
|
|
1519
|
+
] }), nt = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
1510
1520
|
const { isMobile: d } = ee();
|
|
1511
|
-
return /* @__PURE__ */ n.jsx(
|
|
1521
|
+
return /* @__PURE__ */ n.jsx(Ct, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1512
1522
|
"div",
|
|
1513
1523
|
{
|
|
1514
1524
|
className: l(
|
|
@@ -1523,16 +1533,16 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1523
1533
|
/* @__PURE__ */ n.jsx(s, { name: "logos/megafon", className: l("relative z-[8] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.megafonLogo) }),
|
|
1524
1534
|
/* @__PURE__ */ n.jsx(s, { name: "logos/beeline", className: l("relative z-[7] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.beelineLogo) })
|
|
1525
1535
|
] }),
|
|
1526
|
-
/* @__PURE__ */ n.jsx(
|
|
1536
|
+
/* @__PURE__ */ n.jsx(Mt, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1527
1537
|
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1528
1538
|
] }),
|
|
1529
|
-
o && /* @__PURE__ */ n.jsx(
|
|
1539
|
+
o && /* @__PURE__ */ n.jsx(Ee, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1530
1540
|
]
|
|
1531
1541
|
}
|
|
1532
1542
|
) });
|
|
1533
|
-
},
|
|
1543
|
+
}, ot = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
1534
1544
|
const { isMobile: d } = ee();
|
|
1535
|
-
return /* @__PURE__ */ n.jsx(
|
|
1545
|
+
return /* @__PURE__ */ n.jsx(Ct, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1536
1546
|
"div",
|
|
1537
1547
|
{
|
|
1538
1548
|
className: l(
|
|
@@ -1542,23 +1552,23 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1542
1552
|
),
|
|
1543
1553
|
children: [
|
|
1544
1554
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1545
|
-
/* @__PURE__ */ n.jsx(
|
|
1546
|
-
/* @__PURE__ */ n.jsx(
|
|
1555
|
+
/* @__PURE__ */ n.jsx(Gr, { className: l("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
|
|
1556
|
+
/* @__PURE__ */ n.jsx(Mt, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1547
1557
|
/* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1548
1558
|
] }),
|
|
1549
|
-
o && /* @__PURE__ */ n.jsx(
|
|
1559
|
+
o && /* @__PURE__ */ n.jsx(Ee, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1550
1560
|
]
|
|
1551
1561
|
}
|
|
1552
1562
|
) });
|
|
1553
|
-
},
|
|
1563
|
+
}, en = (t) => {
|
|
1554
1564
|
switch (t.mode) {
|
|
1555
|
-
case
|
|
1556
|
-
return /* @__PURE__ */ n.jsx(
|
|
1557
|
-
case
|
|
1558
|
-
return /* @__PURE__ */ n.jsx(
|
|
1559
|
-
case
|
|
1565
|
+
case _e.ESIA:
|
|
1566
|
+
return /* @__PURE__ */ n.jsx(ot, { ...t });
|
|
1567
|
+
case _e.MOBILE_ID:
|
|
1568
|
+
return /* @__PURE__ */ n.jsx(nt, { ...t });
|
|
1569
|
+
case _e.COMBINE:
|
|
1560
1570
|
default:
|
|
1561
|
-
const { esiaConfig: e, mobileIdConfig: r, subtitle: o, badge: i, classes: a } = t, d = !o && !i ?
|
|
1571
|
+
const { esiaConfig: e, mobileIdConfig: r, subtitle: o, badge: i, classes: a } = t, d = !o && !i ? me.Fragment : "div";
|
|
1562
1572
|
return /* @__PURE__ */ n.jsxs(
|
|
1563
1573
|
"div",
|
|
1564
1574
|
{
|
|
@@ -1569,11 +1579,11 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1569
1579
|
children: [
|
|
1570
1580
|
/* @__PURE__ */ n.jsxs(d, { className: l("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
|
|
1571
1581
|
o && /* @__PURE__ */ n.jsx("h5", { className: l("desk-body-regular-l flex flex-1 text-color-dark", a == null ? void 0 : a.subtitle), children: o }),
|
|
1572
|
-
i && /* @__PURE__ */ n.jsx(
|
|
1582
|
+
i && /* @__PURE__ */ n.jsx(Ee, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: i })
|
|
1573
1583
|
] }),
|
|
1574
1584
|
/* @__PURE__ */ n.jsxs("div", { className: l("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
|
|
1575
1585
|
/* @__PURE__ */ n.jsx(
|
|
1576
|
-
|
|
1586
|
+
ot,
|
|
1577
1587
|
{
|
|
1578
1588
|
...e,
|
|
1579
1589
|
classes: {
|
|
@@ -1584,7 +1594,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1584
1594
|
}
|
|
1585
1595
|
),
|
|
1586
1596
|
/* @__PURE__ */ n.jsx(
|
|
1587
|
-
|
|
1597
|
+
nt,
|
|
1588
1598
|
{
|
|
1589
1599
|
...r,
|
|
1590
1600
|
classes: {
|
|
@@ -1599,8 +1609,8 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1599
1609
|
}
|
|
1600
1610
|
);
|
|
1601
1611
|
}
|
|
1602
|
-
},
|
|
1603
|
-
|
|
1612
|
+
}, Do = (t) => en(t), it = ({ links: t, classes: e }) => /* @__PURE__ */ n.jsx("nav", { className: l("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: r, label: o }) => /* @__PURE__ */ n.jsx(
|
|
1613
|
+
ye,
|
|
1604
1614
|
{
|
|
1605
1615
|
classes: {
|
|
1606
1616
|
link: l("w-max", e == null ? void 0 : e.linkText),
|
|
@@ -1611,16 +1621,16 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1611
1621
|
children: o
|
|
1612
1622
|
},
|
|
1613
1623
|
r
|
|
1614
|
-
)) }),
|
|
1624
|
+
)) }), tn = ({ groupLabel: t, links: e, mobileAccordionProps: r, classes: o }) => {
|
|
1615
1625
|
var a, d, u;
|
|
1616
1626
|
const { isMobile: i } = ee();
|
|
1617
1627
|
return /* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1618
1628
|
!i && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1619
1629
|
/* @__PURE__ */ n.jsx("h5", { className: l("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: t }),
|
|
1620
|
-
/* @__PURE__ */ n.jsx(
|
|
1630
|
+
/* @__PURE__ */ n.jsx(it, { links: e, classes: o == null ? void 0 : o.linksList }, "desktop")
|
|
1621
1631
|
] }),
|
|
1622
1632
|
i && /* @__PURE__ */ n.jsx(
|
|
1623
|
-
|
|
1633
|
+
ae,
|
|
1624
1634
|
{
|
|
1625
1635
|
defaultOpen: !0,
|
|
1626
1636
|
label: t,
|
|
@@ -1633,11 +1643,11 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1633
1643
|
},
|
|
1634
1644
|
contentInner: l("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
|
|
1635
1645
|
},
|
|
1636
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1646
|
+
children: /* @__PURE__ */ n.jsx(it, { links: e, classes: o == null ? void 0 : o.linksList }, "mobile")
|
|
1637
1647
|
}
|
|
1638
1648
|
)
|
|
1639
1649
|
] });
|
|
1640
|
-
},
|
|
1650
|
+
}, rn = ({ column: t, mobileAccordionProps: e, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ n.jsx(tn, { ...e, ...o, classes: r == null ? void 0 : r.columnGroup }, o.groupLabel)) }), nn = E("grid gap-4 grid-cols-1", {
|
|
1641
1651
|
variants: {
|
|
1642
1652
|
variant: {
|
|
1643
1653
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1648,7 +1658,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1648
1658
|
defaultVariants: {
|
|
1649
1659
|
variant: "fourCols"
|
|
1650
1660
|
}
|
|
1651
|
-
}),
|
|
1661
|
+
}), at = ({
|
|
1652
1662
|
variant: t,
|
|
1653
1663
|
details: e,
|
|
1654
1664
|
headline: r,
|
|
@@ -1661,14 +1671,14 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1661
1671
|
return /* @__PURE__ */ n.jsx(
|
|
1662
1672
|
"section",
|
|
1663
1673
|
{
|
|
1664
|
-
id:
|
|
1665
|
-
"data-test-id":
|
|
1674
|
+
id: y.interLinking,
|
|
1675
|
+
"data-test-id": y.interLinking,
|
|
1666
1676
|
className: l("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1667
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1668
|
-
|
|
1677
|
+
children: /* @__PURE__ */ n.jsx(P, { children: /* @__PURE__ */ n.jsx(
|
|
1678
|
+
ae,
|
|
1669
1679
|
{
|
|
1670
1680
|
defaultOpen: d,
|
|
1671
|
-
label: /* @__PURE__ */ n.jsx(
|
|
1681
|
+
label: /* @__PURE__ */ n.jsx(L, { as: "h4", className: l("text-left", a == null ? void 0 : a.headline), children: r }),
|
|
1672
1682
|
...i,
|
|
1673
1683
|
classes: {
|
|
1674
1684
|
...i == null ? void 0 : i.classes,
|
|
@@ -1677,16 +1687,16 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1677
1687
|
},
|
|
1678
1688
|
content: l("max-w-full bg-color-blue-grey-100 relative", (h = i == null ? void 0 : i.classes) == null ? void 0 : h.content)
|
|
1679
1689
|
},
|
|
1680
|
-
children: /* @__PURE__ */ n.jsx("div", { className: l(
|
|
1690
|
+
children: /* @__PURE__ */ n.jsx("div", { className: l(nn({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.map((p, c) => /* @__PURE__ */ n.jsx(rn, { ...p, ...o, classes: a == null ? void 0 : a.column }, c)) })
|
|
1681
1691
|
}
|
|
1682
1692
|
) })
|
|
1683
1693
|
}
|
|
1684
1694
|
);
|
|
1685
|
-
},
|
|
1695
|
+
}, on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1686
1696
|
__proto__: null,
|
|
1687
|
-
InterLinking:
|
|
1688
|
-
default:
|
|
1689
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1697
|
+
InterLinking: at,
|
|
1698
|
+
default: at
|
|
1699
|
+
}, Symbol.toStringTag, { value: "Module" })), an = ({ tabsNames: t, activeTab: e, setActiveTab: r, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: l("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: t && t.map((i, a) => /* @__PURE__ */ n.jsx(
|
|
1690
1700
|
"button",
|
|
1691
1701
|
{
|
|
1692
1702
|
onClick: () => r(a),
|
|
@@ -1700,10 +1710,10 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1700
1710
|
children: i
|
|
1701
1711
|
},
|
|
1702
1712
|
i
|
|
1703
|
-
)) }),
|
|
1713
|
+
)) }), ln = (t) => t.variant === "HTML", dn = (t) => t.variant === "DOCUMENTS", un = (t) => t.variant === "TABLE", mn = ({ html: t, config: e, classes: r, accordionConfig: o }) => {
|
|
1704
1714
|
const i = /* @__PURE__ */ n.jsx("div", { className: l(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
|
|
1705
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(
|
|
1706
|
-
},
|
|
1715
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(ae, { label: e == null ? void 0 : e.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
|
|
1716
|
+
}, hn = (t, e) => ({
|
|
1707
1717
|
rows: t == null ? void 0 : t.map(({ row: r }) => ({
|
|
1708
1718
|
row: r == null ? void 0 : r.map((o, i) => {
|
|
1709
1719
|
var a;
|
|
@@ -1713,21 +1723,21 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1713
1723
|
};
|
|
1714
1724
|
})
|
|
1715
1725
|
}))
|
|
1716
|
-
}),
|
|
1726
|
+
}), xn = E("flex flex-col", {
|
|
1717
1727
|
variants: {
|
|
1718
1728
|
columnsVariant: {
|
|
1719
1729
|
twoCols: "w-full max-w-[656px]",
|
|
1720
1730
|
threeCols: "w-full max-w-[768px]"
|
|
1721
1731
|
}
|
|
1722
1732
|
}
|
|
1723
|
-
}),
|
|
1733
|
+
}), pn = E("desktop:grid mobile:hidden px-4 mb-4", {
|
|
1724
1734
|
variants: {
|
|
1725
1735
|
columnsVariant: {
|
|
1726
1736
|
twoCols: "grid-cols-2 gap-16",
|
|
1727
1737
|
threeCols: "grid-cols-3 gap-12"
|
|
1728
1738
|
}
|
|
1729
1739
|
}
|
|
1730
|
-
}),
|
|
1740
|
+
}), cn = ({ headings: t, columnsVariant: e, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: l(pn({ columnsVariant: e }), r == null ? void 0 : r.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ n.jsx("div", { className: l("text-color-secondary", r == null ? void 0 : r.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), fn = E("desktop:grid mobile:hidden items-center", {
|
|
1731
1741
|
variants: {
|
|
1732
1742
|
columnsVariant: {
|
|
1733
1743
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1738,21 +1748,21 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1738
1748
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1739
1749
|
}
|
|
1740
1750
|
}
|
|
1741
|
-
}),
|
|
1751
|
+
}), bn = ({ row: t, tableVariant: e, columnsVariant: r, rowIndex: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: l(fn({ columnsVariant: r, tableVariant: e }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a }, d) => /* @__PURE__ */ n.jsx(
|
|
1742
1752
|
"div",
|
|
1743
1753
|
{
|
|
1744
1754
|
className: l("desk-body-regular-l text-color-dark", { "font-medium": d !== 0 }, i == null ? void 0 : i.cell),
|
|
1745
1755
|
children: a && a
|
|
1746
1756
|
},
|
|
1747
1757
|
d
|
|
1748
|
-
)) }),
|
|
1758
|
+
)) }), sn = E("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1749
1759
|
variants: {
|
|
1750
1760
|
tableVariant: {
|
|
1751
1761
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1752
1762
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1753
1763
|
}
|
|
1754
1764
|
}
|
|
1755
|
-
}),
|
|
1765
|
+
}), gn = ({ row: t, tableVariant: e, columnsVariant: r, headingsExist: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: l(sn({ tableVariant: e }), i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a, heading: d }, u) => /* @__PURE__ */ n.jsxs("div", { className: l("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
|
|
1756
1766
|
d && /* @__PURE__ */ n.jsx("div", { className: l("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: d }),
|
|
1757
1767
|
/* @__PURE__ */ n.jsx(
|
|
1758
1768
|
"div",
|
|
@@ -1767,13 +1777,13 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1767
1777
|
children: a
|
|
1768
1778
|
}
|
|
1769
1779
|
)
|
|
1770
|
-
] }, u)) }),
|
|
1780
|
+
] }, u)) }), jn = ({ tableVariant: t, rows: e, headings: r, columnsVariant: o, classes: i }) => {
|
|
1771
1781
|
var u;
|
|
1772
|
-
const a = ((u =
|
|
1782
|
+
const a = ((u = hn(e, r)) == null ? void 0 : u.rows) ?? [], d = !!(r && r.length > 0);
|
|
1773
1783
|
return /* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1774
|
-
d && /* @__PURE__ */ n.jsx(
|
|
1784
|
+
d && /* @__PURE__ */ n.jsx(cn, { headings: r, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1775
1785
|
e == null ? void 0 : e.map((m, h) => /* @__PURE__ */ n.jsx(
|
|
1776
|
-
|
|
1786
|
+
bn,
|
|
1777
1787
|
{
|
|
1778
1788
|
rowIndex: h,
|
|
1779
1789
|
tableVariant: t,
|
|
@@ -1784,7 +1794,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1784
1794
|
h
|
|
1785
1795
|
)),
|
|
1786
1796
|
a == null ? void 0 : a.map((m, h) => /* @__PURE__ */ n.jsx(
|
|
1787
|
-
|
|
1797
|
+
gn,
|
|
1788
1798
|
{
|
|
1789
1799
|
headingsExist: d,
|
|
1790
1800
|
tableVariant: t,
|
|
@@ -1795,7 +1805,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1795
1805
|
h
|
|
1796
1806
|
))
|
|
1797
1807
|
] });
|
|
1798
|
-
},
|
|
1808
|
+
}, yn = ({
|
|
1799
1809
|
tableVariant: t,
|
|
1800
1810
|
description: e,
|
|
1801
1811
|
columnsVariant: r,
|
|
@@ -1806,9 +1816,9 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1806
1816
|
accordionConfig: u,
|
|
1807
1817
|
classes: m
|
|
1808
1818
|
}) => {
|
|
1809
|
-
const h = /* @__PURE__ */ n.jsxs("div", { className: l(
|
|
1810
|
-
a && /* @__PURE__ */ n.jsx(
|
|
1811
|
-
/* @__PURE__ */ n.jsx(
|
|
1819
|
+
const h = /* @__PURE__ */ n.jsxs("div", { className: l(xn({ columnsVariant: r }), m == null ? void 0 : m.wrapper), children: [
|
|
1820
|
+
a && /* @__PURE__ */ n.jsx(L, { as: "h4", className: l("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
|
|
1821
|
+
/* @__PURE__ */ n.jsx(jn, { tableVariant: t, rows: i, headings: d, columnsVariant: r }),
|
|
1812
1822
|
e && /* @__PURE__ */ n.jsx(
|
|
1813
1823
|
"div",
|
|
1814
1824
|
{
|
|
@@ -1817,11 +1827,11 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1817
1827
|
}
|
|
1818
1828
|
)
|
|
1819
1829
|
] });
|
|
1820
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ n.jsx(
|
|
1821
|
-
},
|
|
1830
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ n.jsx(ae, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || h }) : h });
|
|
1831
|
+
}, kn = {
|
|
1822
1832
|
documentFilled: "files/documentFilled",
|
|
1823
1833
|
documentOutline: "files/documentOutline"
|
|
1824
|
-
},
|
|
1834
|
+
}, wn = E("size-8 transition-colors", {
|
|
1825
1835
|
variants: {
|
|
1826
1836
|
iconType: {
|
|
1827
1837
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1831,7 +1841,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1831
1841
|
defaultVariants: {
|
|
1832
1842
|
iconType: "documentOutline"
|
|
1833
1843
|
}
|
|
1834
|
-
}),
|
|
1844
|
+
}), vn = ({ label: t, size: e, url: r, iconType: o, classes: i }) => /* @__PURE__ */ n.jsxs(
|
|
1835
1845
|
"a",
|
|
1836
1846
|
{
|
|
1837
1847
|
href: r,
|
|
@@ -1843,7 +1853,7 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1843
1853
|
i == null ? void 0 : i.link
|
|
1844
1854
|
),
|
|
1845
1855
|
children: [
|
|
1846
|
-
/* @__PURE__ */ n.jsx(s, { name:
|
|
1856
|
+
/* @__PURE__ */ n.jsx(s, { name: kn[o], className: l(wn({ iconType: o }), i == null ? void 0 : i.icon) }),
|
|
1847
1857
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1848
1858
|
/* @__PURE__ */ n.jsx("p", { className: l("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
|
|
1849
1859
|
/* @__PURE__ */ n.jsxs("div", { className: l("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
@@ -1853,26 +1863,26 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1853
1863
|
] })
|
|
1854
1864
|
]
|
|
1855
1865
|
}
|
|
1856
|
-
),
|
|
1866
|
+
), Nn = ({ docs: t, config: e, title: r, iconType: o, description: i, classes: a, accordionConfig: d }) => {
|
|
1857
1867
|
const u = /* @__PURE__ */ n.jsxs("div", { className: l("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
|
|
1858
|
-
r && /* @__PURE__ */ n.jsx(
|
|
1859
|
-
/* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ n.jsx(
|
|
1868
|
+
r && /* @__PURE__ */ n.jsx(L, { as: "h3", className: "mb-4", children: r }),
|
|
1869
|
+
/* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ n.jsx(vn, { iconType: o, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
|
|
1860
1870
|
i && /* @__PURE__ */ n.jsx("div", { className: l("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1861
1871
|
] });
|
|
1862
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(
|
|
1863
|
-
},
|
|
1872
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(ae, { label: e == null ? void 0 : e.accordionTitle, ...d, children: (d == null ? void 0 : d.children) || u }) : u });
|
|
1873
|
+
}, Cn = ({ entity: t, classes: e, accordionsConfig: r }) => {
|
|
1864
1874
|
var o, i, a;
|
|
1865
1875
|
switch (!0) {
|
|
1866
|
-
case
|
|
1876
|
+
case ln(t):
|
|
1867
1877
|
return (o = t.details) == null ? void 0 : o.map((d, u) => {
|
|
1868
1878
|
var m;
|
|
1869
|
-
return /* @__PURE__ */ n.jsx(
|
|
1879
|
+
return /* @__PURE__ */ n.jsx(mn, { ...d, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.html }, u);
|
|
1870
1880
|
});
|
|
1871
|
-
case
|
|
1881
|
+
case dn(t):
|
|
1872
1882
|
return (i = t.details) == null ? void 0 : i.map((d, u) => {
|
|
1873
1883
|
var m;
|
|
1874
1884
|
return /* @__PURE__ */ n.jsx(
|
|
1875
|
-
|
|
1885
|
+
Nn,
|
|
1876
1886
|
{
|
|
1877
1887
|
accordionConfig: r == null ? void 0 : r.documentAccordion,
|
|
1878
1888
|
...d,
|
|
@@ -1881,11 +1891,11 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1881
1891
|
u
|
|
1882
1892
|
);
|
|
1883
1893
|
});
|
|
1884
|
-
case
|
|
1894
|
+
case un(t):
|
|
1885
1895
|
return (a = t.details) == null ? void 0 : a.map((d, u) => {
|
|
1886
1896
|
var m;
|
|
1887
1897
|
return /* @__PURE__ */ n.jsx(
|
|
1888
|
-
|
|
1898
|
+
yn,
|
|
1889
1899
|
{
|
|
1890
1900
|
accordionConfig: r == null ? void 0 : r.tableAccordion,
|
|
1891
1901
|
...d,
|
|
@@ -1897,26 +1907,26 @@ const mr = P(() => Promise.resolve().then(() => Sr)), hr = P(() => Promise.resol
|
|
|
1897
1907
|
default:
|
|
1898
1908
|
return null;
|
|
1899
1909
|
}
|
|
1900
|
-
},
|
|
1910
|
+
}, Mn = ({ entity: t, classes: e, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Cn({ entity: t, classes: e, accordionsConfig: r }) }), lt = ({ headline: t, tabs: e, classes: r, accordionsConfig: o }) => {
|
|
1901
1911
|
var u, m;
|
|
1902
|
-
const [i, a] =
|
|
1903
|
-
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id:
|
|
1904
|
-
/* @__PURE__ */ n.jsx(
|
|
1905
|
-
/* @__PURE__ */ n.jsx("div", { className: l("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(
|
|
1906
|
-
/* @__PURE__ */ n.jsx("div", { className: l("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ n.jsx(
|
|
1912
|
+
const [i, a] = D(0), d = we(() => e == null ? void 0 : e.map((h) => h == null ? void 0 : h.tabName), [e]) ?? [];
|
|
1913
|
+
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: y.usefulInfo, "data-test-id": y.usefulInfo, className: l(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(P, { className: l(r == null ? void 0 : r.container), children: [
|
|
1914
|
+
/* @__PURE__ */ n.jsx(L, { className: l(r == null ? void 0 : r.headline), as: "h2", children: t }),
|
|
1915
|
+
/* @__PURE__ */ n.jsx("div", { className: l("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(an, { tabsNames: d, activeTab: i, setActiveTab: a, classes: r == null ? void 0 : r.tabs }) }),
|
|
1916
|
+
/* @__PURE__ */ n.jsx("div", { className: l("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ n.jsx(Mn, { accordionsConfig: o, ...h, classes: r == null ? void 0 : r.entityClasses }, p)) })
|
|
1907
1917
|
] }) });
|
|
1908
|
-
},
|
|
1918
|
+
}, _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1909
1919
|
__proto__: null,
|
|
1910
|
-
UsefulInfo:
|
|
1911
|
-
default:
|
|
1912
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1913
|
-
const i =
|
|
1914
|
-
return /* @__PURE__ */
|
|
1920
|
+
UsefulInfo: lt,
|
|
1921
|
+
default: lt
|
|
1922
|
+
}, Symbol.toStringTag, { value: "Module" })), He = ({ fields: t, control: e }) => t.map(({ type: r, args: o }) => {
|
|
1923
|
+
const i = jt[r];
|
|
1924
|
+
return /* @__PURE__ */ kt(i, { ...o, key: o.name, control: e });
|
|
1915
1925
|
});
|
|
1916
|
-
class
|
|
1926
|
+
class In {
|
|
1917
1927
|
constructor(e) {
|
|
1918
|
-
|
|
1919
|
-
|
|
1928
|
+
de(this, "TEXT_NODE", 3);
|
|
1929
|
+
de(this, "ELEMENT_NODE", 1);
|
|
1920
1930
|
this.options = e;
|
|
1921
1931
|
}
|
|
1922
1932
|
/**
|
|
@@ -1985,16 +1995,16 @@ class Nn {
|
|
|
1985
1995
|
return r.length;
|
|
1986
1996
|
}
|
|
1987
1997
|
}
|
|
1988
|
-
const
|
|
1989
|
-
class
|
|
1998
|
+
const Tn = typeof window < "u";
|
|
1999
|
+
class On extends In {
|
|
1990
2000
|
constructor(e) {
|
|
1991
2001
|
super(e);
|
|
1992
2002
|
}
|
|
1993
2003
|
async parseFromString(e) {
|
|
1994
|
-
return
|
|
2004
|
+
return Tn ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
|
|
1995
2005
|
}
|
|
1996
2006
|
}
|
|
1997
|
-
class
|
|
2007
|
+
class Oe {
|
|
1998
2008
|
/**
|
|
1999
2009
|
* Функция для парсинга ноды в react элемент
|
|
2000
2010
|
*/
|
|
@@ -2026,7 +2036,7 @@ class Te {
|
|
|
2026
2036
|
d.value.split(";").forEach((p) => {
|
|
2027
2037
|
const [c, f] = p.split(":");
|
|
2028
2038
|
if (c && f) {
|
|
2029
|
-
const b = c.trim().replace(/-([a-z])/g, (
|
|
2039
|
+
const b = c.trim().replace(/-([a-z])/g, (j, g) => g.toUpperCase());
|
|
2030
2040
|
h[b] = f.trim();
|
|
2031
2041
|
}
|
|
2032
2042
|
}), m = h;
|
|
@@ -2040,7 +2050,7 @@ class Te {
|
|
|
2040
2050
|
const u = this.parseNode(d);
|
|
2041
2051
|
u && a.push(u);
|
|
2042
2052
|
}
|
|
2043
|
-
return
|
|
2053
|
+
return kt(o, i, ...a);
|
|
2044
2054
|
}
|
|
2045
2055
|
return null;
|
|
2046
2056
|
}
|
|
@@ -2048,47 +2058,47 @@ class Te {
|
|
|
2048
2058
|
* функция для преобразования html строки в react элементы
|
|
2049
2059
|
*/
|
|
2050
2060
|
static async toReactNodes(e, r) {
|
|
2051
|
-
const o = new
|
|
2061
|
+
const o = new On(r), { nodes: i } = await o.parse(e, "node");
|
|
2052
2062
|
return i.map((a) => this.parseNode(a));
|
|
2053
2063
|
}
|
|
2054
2064
|
}
|
|
2055
|
-
|
|
2056
|
-
const
|
|
2057
|
-
const [e, r] =
|
|
2058
|
-
return
|
|
2065
|
+
de(Oe, "TEXT_NODE", 3), de(Oe, "ELEMENT_NODE", 1);
|
|
2066
|
+
const Sn = ({ promises: t }) => {
|
|
2067
|
+
const [e, r] = D([]);
|
|
2068
|
+
return ge(() => {
|
|
2059
2069
|
(async () => {
|
|
2060
2070
|
r(await t);
|
|
2061
2071
|
})();
|
|
2062
2072
|
}, [t]), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
2063
|
-
},
|
|
2064
|
-
const i = r ??
|
|
2073
|
+
}, ie = ({ html: t, options: e, as: r, ...o }) => {
|
|
2074
|
+
const i = r ?? Jt, a = r ? o : {}, d = Oe.toReactNodes(t, e);
|
|
2065
2075
|
return (
|
|
2066
2076
|
// @ts-expect-error disable warning
|
|
2067
|
-
/* @__PURE__ */ n.jsx(i, { ...a, children: /* @__PURE__ */ n.jsx(
|
|
2077
|
+
/* @__PURE__ */ n.jsx(i, { ...a, children: /* @__PURE__ */ n.jsx(Sn, { promises: d }) })
|
|
2068
2078
|
);
|
|
2069
|
-
},
|
|
2079
|
+
}, En = (t, e) => t.enabled ? e.map((r) => ({
|
|
2070
2080
|
name: r.args.name,
|
|
2071
2081
|
...r.args.progress
|
|
2072
|
-
})) : null,
|
|
2082
|
+
})) : null, Fn = ["getFioSchema"], _t = (t, e, r) => {
|
|
2073
2083
|
const o = t[e];
|
|
2074
2084
|
if (v.isNil(o))
|
|
2075
2085
|
throw new Error(`validation for type ${String(e)} not found`);
|
|
2076
2086
|
if (!v.isFunction(o))
|
|
2077
2087
|
throw new Error(`Cannot generate ${String(e)} because is not a function`);
|
|
2078
2088
|
return o(r);
|
|
2079
|
-
},
|
|
2089
|
+
}, Bn = (t, e) => _t(wt.base, t, e), Pn = (t, e) => _t(wt.dadata, t, e), ze = (t) => {
|
|
2080
2090
|
const r = ((t == null ? void 0 : t.map((o) => ({ name: o.args.name, validation: o.args.validation }))) ?? []).reduce((o, i) => {
|
|
2081
|
-
const a =
|
|
2091
|
+
const a = Fn.includes(i.validation.type) ? Pn(
|
|
2082
2092
|
i.validation.type,
|
|
2083
2093
|
i.validation.args
|
|
2084
|
-
) :
|
|
2094
|
+
) : Bn(
|
|
2085
2095
|
i.validation.type,
|
|
2086
2096
|
i.validation.args
|
|
2087
2097
|
);
|
|
2088
2098
|
return o[i.name] = a, o;
|
|
2089
2099
|
}, {});
|
|
2090
|
-
return
|
|
2091
|
-
},
|
|
2100
|
+
return vt(r);
|
|
2101
|
+
}, Dn = new xr(), It = ({ children: t }) => /* @__PURE__ */ n.jsx(Wt, { client: Dn, children: t }), Rn = (t, e, r, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ n.jsx(ie, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ n.jsxs(
|
|
2092
2102
|
"label",
|
|
2093
2103
|
{
|
|
2094
2104
|
className: l(
|
|
@@ -2097,11 +2107,11 @@ const Tn = ({ promises: t }) => {
|
|
|
2097
2107
|
"flex items-center justify-items-start gap-x-3"
|
|
2098
2108
|
),
|
|
2099
2109
|
children: [
|
|
2100
|
-
/* @__PURE__ */ n.jsx(
|
|
2101
|
-
/* @__PURE__ */ n.jsx(
|
|
2110
|
+
/* @__PURE__ */ n.jsx(ke.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: r }),
|
|
2111
|
+
/* @__PURE__ */ n.jsx(ie, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2102
2112
|
]
|
|
2103
2113
|
}
|
|
2104
|
-
),
|
|
2114
|
+
), dt = ({
|
|
2105
2115
|
fields: t,
|
|
2106
2116
|
title: e,
|
|
2107
2117
|
progress: r,
|
|
@@ -2110,19 +2120,19 @@ const Tn = ({ promises: t }) => {
|
|
|
2110
2120
|
submitProps: a,
|
|
2111
2121
|
classes: d
|
|
2112
2122
|
}) => {
|
|
2113
|
-
var $,
|
|
2114
|
-
const { submitCallback: u, ...m } = a || {}, [h, p] =
|
|
2123
|
+
var $, M;
|
|
2124
|
+
const { submitCallback: u, ...m } = a || {}, [h, p] = D(!1), c = ze(t), f = Re.getZodDefaults(c), { control: b, handleSubmit: j } = De({
|
|
2115
2125
|
schema: c,
|
|
2116
2126
|
defaultValues: f,
|
|
2117
2127
|
mode: "onBlur"
|
|
2118
|
-
}), g =
|
|
2119
|
-
u && u({ ...
|
|
2128
|
+
}), g = En(r, t), N = ir({ control: b, fields: g || [], schema: c }), I = (O) => {
|
|
2129
|
+
u && u({ ...O, agree: h }), console.warn(O);
|
|
2120
2130
|
};
|
|
2121
|
-
return /* @__PURE__ */ n.jsx(
|
|
2131
|
+
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsxs(
|
|
2122
2132
|
"div",
|
|
2123
2133
|
{
|
|
2124
|
-
id:
|
|
2125
|
-
"data-test-id":
|
|
2134
|
+
id: y.form,
|
|
2135
|
+
"data-test-id": y.form,
|
|
2126
2136
|
className: l(
|
|
2127
2137
|
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2128
2138
|
"relative mx-auto flex w-max flex-col gap-6 rounded-sm border py-8",
|
|
@@ -2139,33 +2149,33 @@ const Tn = ({ promises: t }) => {
|
|
|
2139
2149
|
($ = d == null ? void 0 : d.chips) == null ? void 0 : $.root
|
|
2140
2150
|
),
|
|
2141
2151
|
children: [
|
|
2142
|
-
i.image && /* @__PURE__ */ n.jsx(s, { name: i.image, className: l("size-4", (
|
|
2152
|
+
i.image && /* @__PURE__ */ n.jsx(s, { name: i.image, className: l("size-4", (M = d == null ? void 0 : d.chips) == null ? void 0 : M.icon) }),
|
|
2143
2153
|
i.content
|
|
2144
2154
|
]
|
|
2145
2155
|
}
|
|
2146
2156
|
),
|
|
2147
|
-
/* @__PURE__ */ n.jsx(
|
|
2157
|
+
/* @__PURE__ */ n.jsx(L, { as: "h3", className: d == null ? void 0 : d.title, children: e }),
|
|
2148
2158
|
/* @__PURE__ */ n.jsxs(
|
|
2149
2159
|
"form",
|
|
2150
2160
|
{
|
|
2151
|
-
onSubmit:
|
|
2161
|
+
onSubmit: j(I),
|
|
2152
2162
|
className: l("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", d == null ? void 0 : d.form),
|
|
2153
2163
|
children: [
|
|
2154
2164
|
r.enabled && /* @__PURE__ */ n.jsx(
|
|
2155
|
-
|
|
2165
|
+
Kt,
|
|
2156
2166
|
{
|
|
2157
|
-
progress:
|
|
2158
|
-
topContent: /* @__PURE__ */ n.jsx(
|
|
2159
|
-
bottomContent: /* @__PURE__ */ n.jsx(
|
|
2167
|
+
progress: N,
|
|
2168
|
+
topContent: /* @__PURE__ */ n.jsx(ie, { html: r.title }),
|
|
2169
|
+
bottomContent: /* @__PURE__ */ n.jsx(ie, { html: r.subtitle }),
|
|
2160
2170
|
maxPercent: r.maxPercent,
|
|
2161
2171
|
classes: d == null ? void 0 : d.progressBar
|
|
2162
2172
|
}
|
|
2163
2173
|
),
|
|
2164
|
-
/* @__PURE__ */ n.jsx(
|
|
2174
|
+
/* @__PURE__ */ n.jsx(He, { control: b, fields: t }),
|
|
2165
2175
|
/* @__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: [
|
|
2166
|
-
|
|
2176
|
+
Rn(o, h, p, d == null ? void 0 : d.approvement),
|
|
2167
2177
|
/* @__PURE__ */ n.jsx(
|
|
2168
|
-
|
|
2178
|
+
je,
|
|
2169
2179
|
{
|
|
2170
2180
|
...m,
|
|
2171
2181
|
type: "submit",
|
|
@@ -2187,11 +2197,49 @@ const Tn = ({ promises: t }) => {
|
|
|
2187
2197
|
]
|
|
2188
2198
|
}
|
|
2189
2199
|
) });
|
|
2190
|
-
},
|
|
2200
|
+
}, Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2201
|
+
__proto__: null,
|
|
2202
|
+
DynamicForm: dt,
|
|
2203
|
+
default: dt
|
|
2204
|
+
}, Symbol.toStringTag, { value: "Module" })), zn = (t, e, r, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ n.jsx(ie, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ n.jsxs(
|
|
2205
|
+
"label",
|
|
2206
|
+
{
|
|
2207
|
+
className: l(
|
|
2208
|
+
"mob-body-regular-s text-color-dark",
|
|
2209
|
+
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
2210
|
+
"flex items-center justify-items-start gap-x-3"
|
|
2211
|
+
),
|
|
2212
|
+
children: [
|
|
2213
|
+
/* @__PURE__ */ n.jsx(ke.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: r }),
|
|
2214
|
+
/* @__PURE__ */ n.jsx(ie, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2215
|
+
]
|
|
2216
|
+
}
|
|
2217
|
+
), ut = ({
|
|
2218
|
+
fields: t,
|
|
2219
|
+
title: e,
|
|
2220
|
+
approvement: r,
|
|
2221
|
+
submitProps: o,
|
|
2222
|
+
dialogId: i,
|
|
2223
|
+
classes: a,
|
|
2224
|
+
...d
|
|
2225
|
+
}) => {
|
|
2226
|
+
const { submitCallback: u, children: m, ...h } = o ?? {}, [p, c] = D(!1), f = ze(t), b = Re.getZodDefaults(f), { control: j, handleSubmit: g } = De({
|
|
2227
|
+
schema: f,
|
|
2228
|
+
defaultValues: b,
|
|
2229
|
+
mode: "onBlur"
|
|
2230
|
+
}), N = (I) => {
|
|
2231
|
+
u && u({ ...I, agree: p });
|
|
2232
|
+
};
|
|
2233
|
+
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsx(Zt, { id: i, title: e, ...d, children: /* @__PURE__ */ n.jsxs("form", { onSubmit: g(N), className: "flex flex-col gap-6", children: [
|
|
2234
|
+
/* @__PURE__ */ n.jsx(He, { control: j, fields: t }),
|
|
2235
|
+
zn(r, p, c, a == null ? void 0 : a.approvement),
|
|
2236
|
+
/* @__PURE__ */ n.jsx(je, { ...h, type: "submit", disabled: r.type === "checkbox" ? !p : !1, className: "w-full", children: m ?? "Отправить форму" })
|
|
2237
|
+
] }) }) });
|
|
2238
|
+
}, Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2191
2239
|
__proto__: null,
|
|
2192
|
-
|
|
2193
|
-
default:
|
|
2194
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2240
|
+
DynamicFormDialog: ut,
|
|
2241
|
+
default: ut
|
|
2242
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = () => ({
|
|
2195
2243
|
approve: {
|
|
2196
2244
|
icon: {
|
|
2197
2245
|
element: /* @__PURE__ */ n.jsx(s, { name: "status/iconMark" }),
|
|
@@ -2252,26 +2300,26 @@ const Tn = ({ promises: t }) => {
|
|
|
2252
2300
|
text: "Вернуться на главную"
|
|
2253
2301
|
}
|
|
2254
2302
|
}
|
|
2255
|
-
}),
|
|
2303
|
+
}), Ro = ({ status: t, navigationFn: e }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(P, { 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: [
|
|
2256
2304
|
/* @__PURE__ */ n.jsx(
|
|
2257
2305
|
"span",
|
|
2258
2306
|
{
|
|
2259
2307
|
className: l(
|
|
2260
2308
|
"flex size-16 items-center justify-center rounded-full bg-color-positive-light",
|
|
2261
|
-
`${
|
|
2309
|
+
`${ue()[t].icon.bg}`
|
|
2262
2310
|
),
|
|
2263
|
-
children:
|
|
2311
|
+
children: ue()[t].icon.element
|
|
2264
2312
|
}
|
|
2265
2313
|
),
|
|
2266
2314
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
|
|
2267
|
-
/* @__PURE__ */ n.jsx(
|
|
2268
|
-
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children:
|
|
2315
|
+
/* @__PURE__ */ n.jsx(L, { as: "h2", children: ue()[t].title }),
|
|
2316
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: ue()[t].description })
|
|
2269
2317
|
] }),
|
|
2270
|
-
/* @__PURE__ */ n.jsx(
|
|
2271
|
-
] }) }) }), Tt = ({ breadcrumb: t, className: e, ...r }) => /* @__PURE__ */ n.jsx("a", { href: t.path, className: l("desk-body-regular-m", e), ...r, children: t.label }),
|
|
2272
|
-
const [a, d] =
|
|
2273
|
-
return
|
|
2274
|
-
if (!
|
|
2318
|
+
/* @__PURE__ */ n.jsx(je, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: ue()[t].button.text })
|
|
2319
|
+
] }) }) }), Tt = ({ breadcrumb: t, className: e, ...r }) => /* @__PURE__ */ n.jsx("a", { href: t.path, className: l("desk-body-regular-m", e), ...r, children: t.label }), Qn = ({ startsWith: t, endsWith: e, matcher: r, filter: o, rootEnabled: i = !0 }) => {
|
|
2320
|
+
const [a, d] = D([]);
|
|
2321
|
+
return ge(() => {
|
|
2322
|
+
if (!Ie)
|
|
2275
2323
|
return;
|
|
2276
2324
|
let u = window.location.pathname.split("/").filter((p) => !v.isStringEmpty(p));
|
|
2277
2325
|
v.isUndefined(t) || (v.isString(t) ? u = u.slice(u.findIndex((p) => p === t)) : u = u.slice(t)), v.isUndefined(e) || (v.isString(e) ? u = u.slice(0, u.findIndex((p) => p === e) + 1) : u = u.slice(0, e + 1));
|
|
@@ -2279,7 +2327,7 @@ const Tn = ({ promises: t }) => {
|
|
|
2279
2327
|
if (i) {
|
|
2280
2328
|
const p = {
|
|
2281
2329
|
index: 0,
|
|
2282
|
-
id:
|
|
2330
|
+
id: We(),
|
|
2283
2331
|
path: "/",
|
|
2284
2332
|
label: "home"
|
|
2285
2333
|
};
|
|
@@ -2291,7 +2339,7 @@ const Tn = ({ promises: t }) => {
|
|
|
2291
2339
|
// while root enabled we need to increment index
|
|
2292
2340
|
// cuz we have root breadcrumb
|
|
2293
2341
|
index: i ? c + 1 : c,
|
|
2294
|
-
id:
|
|
2342
|
+
id: We(),
|
|
2295
2343
|
path: h,
|
|
2296
2344
|
label: p
|
|
2297
2345
|
};
|
|
@@ -2301,7 +2349,7 @@ const Tn = ({ promises: t }) => {
|
|
|
2301
2349
|
...r(p)
|
|
2302
2350
|
}))), d(o ? m.filter(o) : m);
|
|
2303
2351
|
}, [e, o, r, i, t]), a;
|
|
2304
|
-
},
|
|
2352
|
+
}, se = (t, e, r, o) => t.map((i, a) => {
|
|
2305
2353
|
const d = a === o;
|
|
2306
2354
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2307
2355
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2315,12 +2363,12 @@ const Tn = ({ promises: t }) => {
|
|
|
2315
2363
|
),
|
|
2316
2364
|
a !== t.length - 1 && e
|
|
2317
2365
|
] }, i.id);
|
|
2318
|
-
}),
|
|
2319
|
-
const [i, a] =
|
|
2320
|
-
|
|
2321
|
-
const u =
|
|
2322
|
-
let f = [], b = [],
|
|
2323
|
-
return e && (f = u.slice(0, e), b = u.slice(e, u.length - e),
|
|
2366
|
+
}), Vn = ({ separator: t, ellipsis: e, classes: r, ...o }) => {
|
|
2367
|
+
const [i, a] = D(!1), d = Be(null);
|
|
2368
|
+
nr(d, () => a(!1));
|
|
2369
|
+
const u = Qn(o), { first: m, middle: h, last: p } = we(() => {
|
|
2370
|
+
let f = [], b = [], j = [];
|
|
2371
|
+
return e && (f = u.slice(0, e), b = u.slice(e, u.length - e), j = u.slice(u.length - e)), { first: f, middle: b, last: j };
|
|
2324
2372
|
}, [u, e]), c = t ?? /* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: l("size-4", r == null ? void 0 : r.separator) });
|
|
2325
2373
|
return /* @__PURE__ */ n.jsx(
|
|
2326
2374
|
"div",
|
|
@@ -2336,7 +2384,7 @@ const Tn = ({ promises: t }) => {
|
|
|
2336
2384
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2337
2385
|
// render hidden breadcrumbs
|
|
2338
2386
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2339
|
-
|
|
2387
|
+
se(m, c, r == null ? void 0 : r.breadcrumb),
|
|
2340
2388
|
c,
|
|
2341
2389
|
h.length > 0 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2342
2390
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
@@ -2370,28 +2418,28 @@ const Tn = ({ promises: t }) => {
|
|
|
2370
2418
|
] }),
|
|
2371
2419
|
c
|
|
2372
2420
|
] }),
|
|
2373
|
-
|
|
2421
|
+
se(p, c, r == null ? void 0 : r.breadcrumb, p.length - 1)
|
|
2374
2422
|
] })
|
|
2375
2423
|
) : (
|
|
2376
2424
|
// otherwise render all breadcrumbs
|
|
2377
|
-
|
|
2425
|
+
se(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2378
2426
|
) })
|
|
2379
2427
|
) : (
|
|
2380
2428
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2381
|
-
|
|
2429
|
+
se(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2382
2430
|
)
|
|
2383
2431
|
}
|
|
2384
2432
|
);
|
|
2385
2433
|
};
|
|
2386
|
-
var
|
|
2387
|
-
const
|
|
2434
|
+
var he = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(he || {});
|
|
2435
|
+
const $n = (t, e) => {
|
|
2388
2436
|
switch (e.type) {
|
|
2389
|
-
case
|
|
2437
|
+
case he.ROOT:
|
|
2390
2438
|
return {
|
|
2391
2439
|
...t,
|
|
2392
2440
|
root: e.payload
|
|
2393
2441
|
};
|
|
2394
|
-
case
|
|
2442
|
+
case he.CURRENT:
|
|
2395
2443
|
return {
|
|
2396
2444
|
...t,
|
|
2397
2445
|
current: e.payload
|
|
@@ -2399,20 +2447,20 @@ const Hn = (t, e) => {
|
|
|
2399
2447
|
default:
|
|
2400
2448
|
return t;
|
|
2401
2449
|
}
|
|
2402
|
-
},
|
|
2403
|
-
const [e, r] =
|
|
2450
|
+
}, An = (t) => {
|
|
2451
|
+
const [e, r] = Gt($n, t);
|
|
2404
2452
|
return [e, r];
|
|
2405
|
-
},
|
|
2406
|
-
type:
|
|
2453
|
+
}, Un = (t) => ({
|
|
2454
|
+
type: he.CURRENT,
|
|
2407
2455
|
payload: t
|
|
2408
|
-
}),
|
|
2409
|
-
type:
|
|
2456
|
+
}), qn = (t) => ({
|
|
2457
|
+
type: he.ROOT,
|
|
2410
2458
|
payload: t
|
|
2411
|
-
}),
|
|
2459
|
+
}), Wn = ({ categories: t, ...e }) => {
|
|
2412
2460
|
var r, o;
|
|
2413
|
-
return
|
|
2461
|
+
return Nt(
|
|
2414
2462
|
/* @__PURE__ */ n.jsx(
|
|
2415
|
-
|
|
2463
|
+
Fe.div,
|
|
2416
2464
|
{
|
|
2417
2465
|
...e,
|
|
2418
2466
|
layout: !0,
|
|
@@ -2448,11 +2496,11 @@ const Hn = (t, e) => {
|
|
|
2448
2496
|
*/
|
|
2449
2497
|
((o = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : o.body) ?? document.body
|
|
2450
2498
|
);
|
|
2451
|
-
},
|
|
2499
|
+
}, Kn = er(({ category: t, active: e, onActiveTabChange: r }, o) => {
|
|
2452
2500
|
var m, h;
|
|
2453
2501
|
const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), d = e && !v.isArrayEmpty(t.children), u = v.isArrayEmpty(t.children) ? "a" : "span";
|
|
2454
2502
|
return /* @__PURE__ */ n.jsxs(
|
|
2455
|
-
|
|
2503
|
+
Fe.div,
|
|
2456
2504
|
{
|
|
2457
2505
|
ref: o,
|
|
2458
2506
|
className: l(
|
|
@@ -2470,7 +2518,7 @@ const Hn = (t, e) => {
|
|
|
2470
2518
|
children: [
|
|
2471
2519
|
/* @__PURE__ */ n.jsx(u, { href: u === "a" ? (h = t.link) == null ? void 0 : h.href : void 0, className: "desk-body-regular-m outline-none", children: t.title }),
|
|
2472
2520
|
d && /* @__PURE__ */ n.jsx(
|
|
2473
|
-
|
|
2521
|
+
Wn,
|
|
2474
2522
|
{
|
|
2475
2523
|
categories: t.children,
|
|
2476
2524
|
style: {
|
|
@@ -2483,11 +2531,11 @@ const Hn = (t, e) => {
|
|
|
2483
2531
|
]
|
|
2484
2532
|
}
|
|
2485
2533
|
);
|
|
2486
|
-
}),
|
|
2487
|
-
const [e, r] =
|
|
2534
|
+
}), Zn = Pe(Kn), Xn = ({ categories: t }) => {
|
|
2535
|
+
const [e, r] = D(null), o = yt((a) => {
|
|
2488
2536
|
r(a);
|
|
2489
|
-
}, []), i =
|
|
2490
|
-
return /* @__PURE__ */ n.jsx(
|
|
2537
|
+
}, []), i = Be(null);
|
|
2538
|
+
return /* @__PURE__ */ n.jsx(Xt, { mode: "sync", children: /* @__PURE__ */ n.jsxs(
|
|
2491
2539
|
"div",
|
|
2492
2540
|
{
|
|
2493
2541
|
ref: i,
|
|
@@ -2495,7 +2543,7 @@ const Hn = (t, e) => {
|
|
|
2495
2543
|
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2496
2544
|
children: [
|
|
2497
2545
|
t.map((a) => /* @__PURE__ */ n.jsx(
|
|
2498
|
-
|
|
2546
|
+
Zn,
|
|
2499
2547
|
{
|
|
2500
2548
|
ref: i,
|
|
2501
2549
|
category: a,
|
|
@@ -2508,7 +2556,7 @@ const Hn = (t, e) => {
|
|
|
2508
2556
|
]
|
|
2509
2557
|
}
|
|
2510
2558
|
) });
|
|
2511
|
-
},
|
|
2559
|
+
}, Yn = Pe(Xn), Jn = ({
|
|
2512
2560
|
category: t,
|
|
2513
2561
|
selectedCategory: e,
|
|
2514
2562
|
onCurrentCategoryChange: r,
|
|
@@ -2555,20 +2603,20 @@ const Hn = (t, e) => {
|
|
|
2555
2603
|
)
|
|
2556
2604
|
]
|
|
2557
2605
|
}
|
|
2558
|
-
),
|
|
2559
|
-
const [o, i] =
|
|
2606
|
+
), Gn = ({ categories: t, helpers: e, phone: r }) => {
|
|
2607
|
+
const [o, i] = An({ root: t[0].children[0], current: t[0].children[0] });
|
|
2560
2608
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2561
2609
|
/* @__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: [
|
|
2562
2610
|
/* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2563
2611
|
t.map((a) => {
|
|
2564
2612
|
const d = o.root.title === a.title;
|
|
2565
2613
|
return /* @__PURE__ */ n.jsx(
|
|
2566
|
-
|
|
2614
|
+
Jn,
|
|
2567
2615
|
{
|
|
2568
2616
|
category: a,
|
|
2569
2617
|
selectedCategory: o.current,
|
|
2570
|
-
onCurrentCategoryChange: (u) => i(
|
|
2571
|
-
onRootCategoryChange: (u) => i(
|
|
2618
|
+
onCurrentCategoryChange: (u) => i(Un(u)),
|
|
2619
|
+
onRootCategoryChange: (u) => i(qn(u)),
|
|
2572
2620
|
active: d
|
|
2573
2621
|
},
|
|
2574
2622
|
a.title
|
|
@@ -2593,14 +2641,14 @@ const Hn = (t, e) => {
|
|
|
2593
2641
|
{
|
|
2594
2642
|
href: `tel:${r}`,
|
|
2595
2643
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2596
|
-
children:
|
|
2644
|
+
children: ve(r, "x xxx xxx xx xx")
|
|
2597
2645
|
}
|
|
2598
2646
|
)
|
|
2599
2647
|
] }),
|
|
2600
|
-
/* @__PURE__ */ n.jsx(
|
|
2648
|
+
/* @__PURE__ */ n.jsx(Yn, { categories: o.current.children })
|
|
2601
2649
|
] });
|
|
2602
|
-
},
|
|
2603
|
-
|
|
2650
|
+
}, eo = ({ category: t }) => /* @__PURE__ */ n.jsx(
|
|
2651
|
+
ae,
|
|
2604
2652
|
{
|
|
2605
2653
|
label: t.title ?? "",
|
|
2606
2654
|
icon: /* @__PURE__ */ n.jsx(s, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
@@ -2640,18 +2688,18 @@ const Hn = (t, e) => {
|
|
|
2640
2688
|
}) })
|
|
2641
2689
|
},
|
|
2642
2690
|
t.title
|
|
2643
|
-
),
|
|
2691
|
+
), to = (t) => t.map((e) => ({
|
|
2644
2692
|
value: e.title ?? "",
|
|
2645
2693
|
label: e.title ?? ""
|
|
2646
|
-
})),
|
|
2647
|
-
const i =
|
|
2694
|
+
})), ro = ({ categories: t, helpers: e, phone: r, ...o }) => {
|
|
2695
|
+
const i = to(t), [a, d] = D(i[0]), u = (h) => {
|
|
2648
2696
|
v.isUndefined(h) || v.isArray(h) || d(h);
|
|
2649
|
-
}, m =
|
|
2697
|
+
}, m = we(() => {
|
|
2650
2698
|
var h;
|
|
2651
2699
|
return v.isUndefined(a) || v.isArray(a) ? [] : ((h = t.find((p) => p.title === a.value)) == null ? void 0 : h.children) ?? [];
|
|
2652
2700
|
}, [a, t]);
|
|
2653
2701
|
return /* @__PURE__ */ n.jsxs(
|
|
2654
|
-
|
|
2702
|
+
Fe.div,
|
|
2655
2703
|
{
|
|
2656
2704
|
...o,
|
|
2657
2705
|
className: l(
|
|
@@ -2663,10 +2711,10 @@ const Hn = (t, e) => {
|
|
|
2663
2711
|
initial: { opacity: 0 },
|
|
2664
2712
|
animate: { opacity: 1 },
|
|
2665
2713
|
children: [
|
|
2666
|
-
/* @__PURE__ */ n.jsx(
|
|
2714
|
+
/* @__PURE__ */ n.jsx(ke.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
|
|
2667
2715
|
/* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((h) => {
|
|
2668
2716
|
var p;
|
|
2669
|
-
return v.isArrayEmpty(h.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (p = h.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: h.title }) }, h.title) : /* @__PURE__ */ n.jsx(
|
|
2717
|
+
return v.isArrayEmpty(h.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (p = h.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: h.title }) }, h.title) : /* @__PURE__ */ n.jsx(eo, { category: h }, h.title);
|
|
2670
2718
|
}) }),
|
|
2671
2719
|
/* @__PURE__ */ n.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2672
2720
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
@@ -2679,21 +2727,21 @@ const Hn = (t, e) => {
|
|
|
2679
2727
|
}),
|
|
2680
2728
|
/* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: `tel:${r}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2681
2729
|
/* @__PURE__ */ n.jsx(s, { name: "communication/phone", className: "size-4" }),
|
|
2682
|
-
|
|
2730
|
+
ve(r)
|
|
2683
2731
|
] }) })
|
|
2684
2732
|
] })
|
|
2685
2733
|
]
|
|
2686
2734
|
}
|
|
2687
2735
|
);
|
|
2688
|
-
},
|
|
2736
|
+
}, no = ({ categories: t, helpers: e, phone: r }) => {
|
|
2689
2737
|
var m, h, p;
|
|
2690
|
-
const o =
|
|
2738
|
+
const o = Be(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, d] = D(!1), u = () => d(!a);
|
|
2691
2739
|
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: [
|
|
2692
2740
|
/* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2693
2741
|
/* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(s, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2694
|
-
a &&
|
|
2742
|
+
a && Nt(
|
|
2695
2743
|
/* @__PURE__ */ n.jsx(
|
|
2696
|
-
|
|
2744
|
+
ro,
|
|
2697
2745
|
{
|
|
2698
2746
|
categories: t,
|
|
2699
2747
|
helpers: e,
|
|
@@ -2707,23 +2755,23 @@ const Hn = (t, e) => {
|
|
|
2707
2755
|
((p = (h = document.body.querySelector("#modal-preview")) == null ? void 0 : h.contentDocument) == null ? void 0 : p.body) ?? document.body
|
|
2708
2756
|
)
|
|
2709
2757
|
] });
|
|
2710
|
-
},
|
|
2758
|
+
}, mt = ({ categories: t, helpers: e, phone: r }) => {
|
|
2711
2759
|
const { isMobile: o } = ee();
|
|
2712
|
-
return /* @__PURE__ */ n.jsxs("div", { id:
|
|
2713
|
-
o ? /* @__PURE__ */ n.jsx(
|
|
2760
|
+
return /* @__PURE__ */ n.jsxs("div", { id: y.seoHeader, "data-test-id": y.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2761
|
+
o ? /* @__PURE__ */ n.jsx(no, { categories: t.map((i) => i.children).flat(), helpers: e, phone: r }) : /* @__PURE__ */ n.jsx(Gn, { categories: t, helpers: e, phone: r }),
|
|
2714
2762
|
/* @__PURE__ */ n.jsx(
|
|
2715
|
-
|
|
2763
|
+
Vn,
|
|
2716
2764
|
{
|
|
2717
2765
|
ellipsis: o ? 1 : void 0,
|
|
2718
|
-
matcher: (i) => ({ label:
|
|
2766
|
+
matcher: (i) => ({ label: rr(i.label).split("-").join(" ") })
|
|
2719
2767
|
}
|
|
2720
2768
|
)
|
|
2721
2769
|
] });
|
|
2722
|
-
},
|
|
2770
|
+
}, oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2723
2771
|
__proto__: null,
|
|
2724
|
-
SeoHeader:
|
|
2725
|
-
default:
|
|
2726
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2772
|
+
SeoHeader: mt,
|
|
2773
|
+
default: mt
|
|
2774
|
+
}, Symbol.toStringTag, { value: "Module" })), Ot = (t) => typeof t != "string" && "formula" in t, St = (t, e) => {
|
|
2727
2775
|
let r = e;
|
|
2728
2776
|
const o = {
|
|
2729
2777
|
style: t
|
|
@@ -2739,30 +2787,30 @@ const Hn = (t, e) => {
|
|
|
2739
2787
|
return null;
|
|
2740
2788
|
}
|
|
2741
2789
|
return new Intl.NumberFormat("ru-RU", o).format(r);
|
|
2742
|
-
},
|
|
2790
|
+
}, io = (t, e) => {
|
|
2743
2791
|
switch (t) {
|
|
2744
2792
|
case "text":
|
|
2745
2793
|
return e;
|
|
2746
2794
|
default:
|
|
2747
|
-
return
|
|
2795
|
+
return St(t, Number(e));
|
|
2748
2796
|
}
|
|
2749
|
-
},
|
|
2750
|
-
const r = Object.entries(e).map(([m, h]) => [m, v.isNil(h) ? "1" : h]), o = r.map(([m]) => m), i = r.map(([, m]) => m), a =
|
|
2797
|
+
}, ao = (t) => Object.values(t).reduce((r, o) => r.merge(ze(o.fields)), vt({})), lo = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, Et = (t, e) => {
|
|
2798
|
+
const r = Object.entries(e).map(([m, h]) => [m, v.isNil(h) ? "1" : h]), o = r.map(([m]) => m), i = r.map(([, m]) => m), a = lo(t, Object.fromEntries(r)), u = new Function(...o, `return ${a};`)(...i.map(Number));
|
|
2751
2799
|
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2752
|
-
},
|
|
2800
|
+
}, uo = (t, e) => t.map((r) => ({
|
|
2753
2801
|
...r,
|
|
2754
|
-
value:
|
|
2755
|
-
})),
|
|
2756
|
-
e && /* @__PURE__ */ n.jsx(
|
|
2802
|
+
value: Ot(r.value) ? Et(r.value.formula, e) : r.value
|
|
2803
|
+
})), mo = ({ subtitle: t, title: e }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: (e || t) && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2804
|
+
e && /* @__PURE__ */ n.jsx(L, { as: "h3", children: e }),
|
|
2757
2805
|
t && /* @__PURE__ */ n.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
|
|
2758
|
-
] }) }),
|
|
2806
|
+
] }) }), ho = ({ rootDescription: t, rootValue: e, suffix: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2759
2807
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
|
|
2760
|
-
/* @__PURE__ */ n.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ n.jsx("span", { children:
|
|
2761
|
-
] }),
|
|
2808
|
+
/* @__PURE__ */ n.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ n.jsx("span", { children: St(r, Number(e)) }) })
|
|
2809
|
+
] }), xo = ({ hint: t, value: e, label: r, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2762
2810
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2763
2811
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: r }),
|
|
2764
2812
|
t && /* @__PURE__ */ n.jsx(
|
|
2765
|
-
|
|
2813
|
+
Se,
|
|
2766
2814
|
{
|
|
2767
2815
|
withCloseBtn: !1,
|
|
2768
2816
|
triggerElement: /* @__PURE__ */ n.jsx(s, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
@@ -2777,23 +2825,23 @@ const Hn = (t, e) => {
|
|
|
2777
2825
|
"[&&]:desk-title-bold-s": a,
|
|
2778
2826
|
"text-color-primary-default": i === "blue"
|
|
2779
2827
|
}),
|
|
2780
|
-
children:
|
|
2828
|
+
children: io(o, e)
|
|
2781
2829
|
}
|
|
2782
2830
|
)
|
|
2783
|
-
] }),
|
|
2784
|
-
const { watch: e } =
|
|
2785
|
-
return /* @__PURE__ */ n.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ n.jsx(
|
|
2786
|
-
},
|
|
2831
|
+
] }), po = ({ infoList: t }) => {
|
|
2832
|
+
const { watch: e } = Ne(), r = e(), o = uo(t, r);
|
|
2833
|
+
return /* @__PURE__ */ n.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ n.jsx(xo, { ...i }, i.label)) });
|
|
2834
|
+
}, co = ({ iconName: t, text: e, hint: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2787
2835
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2788
2836
|
/* @__PURE__ */ n.jsx(s, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
2789
2837
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
|
|
2790
2838
|
] }),
|
|
2791
|
-
r && /* @__PURE__ */ n.jsx(
|
|
2792
|
-
] }),
|
|
2793
|
-
t && /* @__PURE__ */ n.jsx(
|
|
2839
|
+
r && /* @__PURE__ */ n.jsx(Se, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ n.jsx(s, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ n.jsx("p", { children: r }) })
|
|
2840
|
+
] }), fo = ({ assistHint: t, buttonsConfig: e, bottomDescription: r }) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
2841
|
+
t && /* @__PURE__ */ n.jsx(co, { ...t }),
|
|
2794
2842
|
/* @__PURE__ */ n.jsx("div", { className: l("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(X, { className: "w-full", ...o }, i)) }),
|
|
2795
2843
|
r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: r })
|
|
2796
|
-
] }),
|
|
2844
|
+
] }), bo = ({
|
|
2797
2845
|
rootDescription: t,
|
|
2798
2846
|
bottomDescription: e,
|
|
2799
2847
|
rootValue: r,
|
|
@@ -2804,18 +2852,18 @@ const Hn = (t, e) => {
|
|
|
2804
2852
|
suffix: u,
|
|
2805
2853
|
assistHint: m
|
|
2806
2854
|
}) => /* @__PURE__ */ n.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
|
|
2807
|
-
/* @__PURE__ */ n.jsx(
|
|
2808
|
-
/* @__PURE__ */ n.jsx(
|
|
2809
|
-
/* @__PURE__ */ n.jsx(
|
|
2810
|
-
/* @__PURE__ */ n.jsx(
|
|
2811
|
-
] }),
|
|
2855
|
+
/* @__PURE__ */ n.jsx(ho, { suffix: u, rootValue: r, rootDescription: t }),
|
|
2856
|
+
/* @__PURE__ */ n.jsx(mo, { title: o, subtitle: i }),
|
|
2857
|
+
/* @__PURE__ */ n.jsx(po, { infoList: d }),
|
|
2858
|
+
/* @__PURE__ */ n.jsx(fo, { assistHint: m, buttonsConfig: a, bottomDescription: e })
|
|
2859
|
+
] }), so = 2e4, Ft = ({
|
|
2812
2860
|
slidersGroupConfig: t,
|
|
2813
2861
|
additionalSliderGroupConfig: e
|
|
2814
2862
|
}) => {
|
|
2815
|
-
const [r, o] =
|
|
2816
|
-
return
|
|
2817
|
-
|
|
2818
|
-
}, [g,
|
|
2863
|
+
const [r, o] = D(!1), { watch: i, setValue: a } = Ne(), d = t == null ? void 0 : t.fields.find(({ args: I }) => I.name === "sum"), { args: u } = d || {}, { max: m, name: h, defaultValue: p } = u || {}, c = i(h), { min: f, name: b } = (e == null ? void 0 : e.args) ?? {}, j = i(b), g = Number(m ?? 0) - (c ?? p);
|
|
2864
|
+
return ge(() => {
|
|
2865
|
+
j > g && a(b, g);
|
|
2866
|
+
}, [g, j, a, c]), ge(() => {
|
|
2819
2867
|
Number(m) === c && o(!1);
|
|
2820
2868
|
}, [o, m, c]), {
|
|
2821
2869
|
sliderVisible: r,
|
|
@@ -2826,20 +2874,20 @@ const Hn = (t, e) => {
|
|
|
2826
2874
|
sumValue: c,
|
|
2827
2875
|
additionalSliderMax: g,
|
|
2828
2876
|
onCheckedChange: () => {
|
|
2829
|
-
o((
|
|
2877
|
+
o((I) => !I), j <= 0 && a(b, f), Number(m) === c && (a(h ?? "", c - so), a(b, f));
|
|
2830
2878
|
},
|
|
2831
2879
|
sliderSumExist: !v.isObjectEmpty(d == null ? void 0 : d.args),
|
|
2832
2880
|
sliderSumCorrectType: (d == null ? void 0 : d.args.componentType) === "algorithmic" || (d == null ? void 0 : d.args.componentType) === "step"
|
|
2833
2881
|
};
|
|
2834
|
-
},
|
|
2882
|
+
}, go = (t) => {
|
|
2835
2883
|
switch (t) {
|
|
2836
2884
|
case "content1":
|
|
2837
2885
|
return /* @__PURE__ */ n.jsx("div", { children: "content 1" });
|
|
2838
2886
|
case "content2":
|
|
2839
2887
|
return /* @__PURE__ */ n.jsx("div", { children: "content 2" });
|
|
2840
2888
|
}
|
|
2841
|
-
},
|
|
2842
|
-
const [i, a] =
|
|
2889
|
+
}, jo = ({ triggerText: t, modalTitle: e, description: r, contentVariant: o }) => {
|
|
2890
|
+
const [i, a] = ar(!1);
|
|
2843
2891
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
2844
2892
|
r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: r }),
|
|
2845
2893
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2850,26 +2898,26 @@ const Hn = (t, e) => {
|
|
|
2850
2898
|
children: t
|
|
2851
2899
|
}
|
|
2852
2900
|
),
|
|
2853
|
-
/* @__PURE__ */ n.jsx(
|
|
2901
|
+
/* @__PURE__ */ n.jsx(Yt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: go(o) })
|
|
2854
2902
|
] });
|
|
2855
2903
|
}, J = ({ fields: t }) => {
|
|
2856
|
-
const { control: e } =
|
|
2857
|
-
return /* @__PURE__ */ n.jsx(
|
|
2858
|
-
},
|
|
2904
|
+
const { control: e } = Ne();
|
|
2905
|
+
return /* @__PURE__ */ n.jsx(He, { control: e, fields: t });
|
|
2906
|
+
}, yo = ({
|
|
2859
2907
|
slidersGroupConfig: t,
|
|
2860
2908
|
additionalSliderGroupConfig: e
|
|
2861
2909
|
}) => {
|
|
2862
|
-
const { control: r } =
|
|
2910
|
+
const { control: r } = Ne(), { sliderVisible: o, additionalSliderMax: i, onCheckedChange: a } = Ft({
|
|
2863
2911
|
slidersGroupConfig: t,
|
|
2864
2912
|
additionalSliderGroupConfig: e
|
|
2865
2913
|
});
|
|
2866
2914
|
return v.isNil(e == null ? void 0 : e.args) || !(e != null && e.args) ? null : /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
2867
2915
|
/* @__PURE__ */ n.jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
2868
|
-
/* @__PURE__ */ n.jsx(
|
|
2916
|
+
/* @__PURE__ */ n.jsx(ke.SwitchBase, { checked: o, onCheckedChange: a }),
|
|
2869
2917
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
2870
2918
|
] }),
|
|
2871
2919
|
o && /* @__PURE__ */ n.jsx(
|
|
2872
|
-
|
|
2920
|
+
jt.SliderControl,
|
|
2873
2921
|
{
|
|
2874
2922
|
...e.args,
|
|
2875
2923
|
control: r,
|
|
@@ -2880,14 +2928,14 @@ const Hn = (t, e) => {
|
|
|
2880
2928
|
}
|
|
2881
2929
|
)
|
|
2882
2930
|
] });
|
|
2883
|
-
},
|
|
2931
|
+
}, ko = ({ modalConfig: t, fieldsGroup: e }) => {
|
|
2884
2932
|
var i;
|
|
2885
|
-
const { sliderSumExist: r, sliderSumCorrectType: o } =
|
|
2933
|
+
const { sliderSumExist: r, sliderSumCorrectType: o } = Ft({
|
|
2886
2934
|
slidersGroupConfig: e.slidersGroupConfig,
|
|
2887
2935
|
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2888
2936
|
});
|
|
2889
2937
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2890
|
-
(t == null ? void 0 : t.triggerText) && (t == null ? void 0 : t.contentVariant) && /* @__PURE__ */ n.jsx(
|
|
2938
|
+
(t == null ? void 0 : t.triggerText) && (t == null ? void 0 : t.contentVariant) && /* @__PURE__ */ n.jsx(jo, { ...t }),
|
|
2891
2939
|
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(J, { ...e == null ? void 0 : e.selectGroupConfig }) }),
|
|
2892
2940
|
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ n.jsx(J, { ...e == null ? void 0 : e.slidersGroupConfig }),
|
|
2893
2941
|
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ n.jsx(J, { ...e == null ? void 0 : e.radioGroupTabConfig }),
|
|
@@ -2896,14 +2944,14 @@ const Hn = (t, e) => {
|
|
|
2896
2944
|
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ n.jsx(J, { ...e == null ? void 0 : e.radioGroupCardConfig }),
|
|
2897
2945
|
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(J, { ...e == null ? void 0 : e.switchGroupConfig }) }),
|
|
2898
2946
|
((i = e.additionalSliderGroupConfig) == null ? void 0 : i.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig && r && o && /* @__PURE__ */ n.jsx(
|
|
2899
|
-
|
|
2947
|
+
yo,
|
|
2900
2948
|
{
|
|
2901
2949
|
slidersGroupConfig: e.slidersGroupConfig,
|
|
2902
2950
|
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2903
2951
|
}
|
|
2904
2952
|
)
|
|
2905
2953
|
] });
|
|
2906
|
-
},
|
|
2954
|
+
}, wo = Pe(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: r }) => /* @__PURE__ */ n.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ n.jsx(
|
|
2907
2955
|
"button",
|
|
2908
2956
|
{
|
|
2909
2957
|
onClick: () => r(o),
|
|
@@ -2914,26 +2962,26 @@ const Hn = (t, e) => {
|
|
|
2914
2962
|
children: i
|
|
2915
2963
|
},
|
|
2916
2964
|
o
|
|
2917
|
-
)) })),
|
|
2965
|
+
)) })), vo = ({
|
|
2918
2966
|
calculatorInfoConfig: t,
|
|
2919
2967
|
calculatorFieldsConfig: e
|
|
2920
2968
|
}) => {
|
|
2921
|
-
const r =
|
|
2969
|
+
const r = ao(e == null ? void 0 : e.fieldsGroup), o = De({
|
|
2922
2970
|
schema: r,
|
|
2923
2971
|
mode: "onBlur",
|
|
2924
|
-
defaultValues:
|
|
2925
|
-
}), i = o.watch(), { rootValue: a } = t, d =
|
|
2926
|
-
return /* @__PURE__ */ n.jsx(
|
|
2927
|
-
/* @__PURE__ */ n.jsx(
|
|
2928
|
-
/* @__PURE__ */ n.jsx(
|
|
2972
|
+
defaultValues: Re.getZodDefaults(r)
|
|
2973
|
+
}), i = o.watch(), { rootValue: a } = t, d = Ot(a) ? Et(a.formula, i) : a, u = { ...t, rootValue: d };
|
|
2974
|
+
return /* @__PURE__ */ n.jsx(or, { ...o, children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2975
|
+
/* @__PURE__ */ n.jsx(ko, { ...e }),
|
|
2976
|
+
/* @__PURE__ */ n.jsx(bo, { ...u })
|
|
2929
2977
|
] }) });
|
|
2930
|
-
},
|
|
2978
|
+
}, ht = ({ calculators: t, headline: e }) => {
|
|
2931
2979
|
var m;
|
|
2932
|
-
const r = t.length > 1, [o, i] =
|
|
2933
|
-
return /* @__PURE__ */ n.jsx("section", { id:
|
|
2934
|
-
/* @__PURE__ */ n.jsx(
|
|
2980
|
+
const r = t.length > 1, [o, i] = D(r ? (m = t[0]) == null ? void 0 : m.name : ""), a = we(() => t == null ? void 0 : t.map(({ name: h, label: p }) => ({ name: h, label: p })), [t]), d = r ? a == null ? void 0 : a.findIndex((h) => h.name === o) : 0, u = t[d];
|
|
2981
|
+
return /* @__PURE__ */ n.jsx("section", { id: y.calculator, children: /* @__PURE__ */ n.jsx(P, { children: /* @__PURE__ */ n.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2982
|
+
/* @__PURE__ */ n.jsx(L, { className: "mb-12", as: "h2", children: e }),
|
|
2935
2983
|
r && /* @__PURE__ */ n.jsx(
|
|
2936
|
-
|
|
2984
|
+
wo,
|
|
2937
2985
|
{
|
|
2938
2986
|
calculatorTabs: a,
|
|
2939
2987
|
activeCalculator: o,
|
|
@@ -2941,7 +2989,7 @@ const Hn = (t, e) => {
|
|
|
2941
2989
|
}
|
|
2942
2990
|
),
|
|
2943
2991
|
/* @__PURE__ */ n.jsx(
|
|
2944
|
-
|
|
2992
|
+
vo,
|
|
2945
2993
|
{
|
|
2946
2994
|
name: u.name,
|
|
2947
2995
|
label: u.label,
|
|
@@ -2950,36 +2998,37 @@ const Hn = (t, e) => {
|
|
|
2950
2998
|
}
|
|
2951
2999
|
)
|
|
2952
3000
|
] }) }) });
|
|
2953
|
-
},
|
|
3001
|
+
}, No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2954
3002
|
__proto__: null,
|
|
2955
|
-
Calculator:
|
|
2956
|
-
default:
|
|
3003
|
+
Calculator: ht,
|
|
3004
|
+
default: ht
|
|
2957
3005
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2958
3006
|
export {
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
3007
|
+
Te as Advantages,
|
|
3008
|
+
Do as AuthProvider,
|
|
3009
|
+
Ge as Banner,
|
|
3010
|
+
Je as BannerWithSeparateImg,
|
|
3011
|
+
Xe as Benefit,
|
|
3012
|
+
Vn as Breadcrumbs,
|
|
2965
3013
|
X as ButtonWithHandlers,
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
3014
|
+
ht as Calculator,
|
|
3015
|
+
vo as CalculatorView,
|
|
3016
|
+
dt as DynamicForm,
|
|
3017
|
+
ut as DynamicFormDialog,
|
|
3018
|
+
Ro as FallbacksView,
|
|
3019
|
+
He as FieldMapper,
|
|
3020
|
+
et as Footer,
|
|
3021
|
+
On as HTMLParser,
|
|
3022
|
+
ie as HTMLRenderer,
|
|
3023
|
+
Ye as Header,
|
|
3024
|
+
at as InterLinking,
|
|
3025
|
+
Mr as KEYS_OF_WIDGET_LIST,
|
|
3026
|
+
rt as LongBanner,
|
|
3027
|
+
mt as SeoHeader,
|
|
3028
|
+
tt as Stepper,
|
|
3029
|
+
lt as UsefulInfo,
|
|
3030
|
+
Cr as WIDGET_LIST_MAP,
|
|
3031
|
+
Dn as queryClient,
|
|
3032
|
+
y as widgetIds
|
|
2984
3033
|
};
|
|
2985
3034
|
//# sourceMappingURL=widget.js.map
|