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