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