@scbt-ecom/ui 0.87.2 → 0.89.0
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/userFeedback/UserFeedback.d.ts +11 -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 +3 -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 +1342 -1217
- 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 st = (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) => st(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
|
|
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 wt, Z as vt, _ as Ht, $ as T, a0 as Ae, a1 as zt, a2 as Lt, a3 as qe, a4 as $, a5 as Qt, a6 as Vt, a7 as $t, a8 as Wt, a9 as Ue, aa as Ke, ab as At, ac as Ze, ad as Ye, ae as qt, B as pe, c as R, R as F, n as Nt, F as Ut, E as D, i as f, Q as ce, r as Kt, t as Zt, p as Ce, L as Yt, o as De, A as de, U as Re, af as Xt, q as Jt, W as Se, z as Gt, ag as se, ah as er, M as tr } 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 E, useCallback as Ct, useState as O, memo as fe, useMemo as ge, createElement as Ie, useRef as He, useReducer as rr, forwardRef as nr, useEffect as ve } from "react";
|
|
21
|
+
import { i as Xe } from "./isClient-C9aZtt2Q.js";
|
|
22
|
+
import { s as or, c as Me, r as ie, a as ir, l as ar } from "./renderImage-ViVSYcgG.js";
|
|
23
|
+
import { u as le, b as _e, a as dr, g as Oe, F as lr } from "./useDebounce-5MeprqTX.js";
|
|
24
|
+
import { z as ze, Z as Te } from "./index-Bu5RfW_Z.js";
|
|
25
|
+
import { au as Le } from "./utils-BAhmwXLC.js";
|
|
26
|
+
import { b as ur, u as mr, a as xr } from "./useFieldsProgress-C918amw-.js";
|
|
27
|
+
import { createPortal as St } from "react-dom";
|
|
28
|
+
var L, bt, hr = (bt = class extends wt {
|
|
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 ?? vt(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(), bt), Q, M, G, V, q, jt, pr = (jt = class extends zt {
|
|
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 || cr(), 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, B, k, I, P, H, v, C, z, Y, be, je;
|
|
139
139
|
const r = () => {
|
|
140
|
-
|
|
140
|
+
A(this, V, q).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, Lt({
|
|
143
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
144
|
+
onFail: (w, X) => {
|
|
145
|
+
A(this, V, q).call(this, { type: "failed", failureCount: w, error: X });
|
|
146
146
|
},
|
|
147
147
|
onPause: () => {
|
|
148
|
-
|
|
148
|
+
A(this, V, q).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, q).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, q).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 ((B = (y = h(this, M).config).onSettled) == null ? void 0 : B.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, q).call(this, { type: "success", data: w }), w;
|
|
189
189
|
} catch (w) {
|
|
190
190
|
try {
|
|
191
|
-
throw await ((
|
|
192
|
-
|
|
191
|
+
throw await ((H = (P = h(this, M).config).onError) == null ? void 0 : H.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 = (z = h(this, M).config).onSettled) == null ? void 0 : Y.call(
|
|
203
|
+
z,
|
|
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, q).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(), q = 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
|
+
}, jt);
|
|
287
|
+
function cr() {
|
|
288
288
|
return {
|
|
289
289
|
context: void 0,
|
|
290
290
|
data: void 0,
|
|
@@ -297,214 +297,214 @@ function hr() {
|
|
|
297
297
|
submittedAt: 0
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
var
|
|
301
|
-
constructor(
|
|
300
|
+
var W, s, he, yt, fr = (yt = class extends wt {
|
|
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, s);
|
|
305
|
+
N(this, he);
|
|
306
|
+
this.config = e, j(this, W, /* @__PURE__ */ new Set()), j(this, s, /* @__PURE__ */ new Map()), j(this, he, 0);
|
|
307
307
|
}
|
|
308
|
-
build(
|
|
309
|
-
const i = new
|
|
308
|
+
build(e, r, n) {
|
|
309
|
+
const i = new pr({
|
|
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, s).get(r);
|
|
322
|
+
n ? n.push(e) : h(this, s).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, s).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, s).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, s).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, s).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, s).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) => qe(r, n)
|
|
373
373
|
);
|
|
374
374
|
}
|
|
375
|
-
findAll(
|
|
376
|
-
return this.getAll().filter((r) =>
|
|
375
|
+
findAll(e = {}) {
|
|
376
|
+
return this.getAll().filter((r) => qe(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(), s = new WeakMap(), he = new WeakMap(), yt);
|
|
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, B;
|
|
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 = ((B = e.state.data) == null ? void 0 : B.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 = Qt(e.options, e.fetchOptions), H = async (v, C, z) => {
|
|
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: z ? "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 = z ? Vt : $t;
|
|
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 ? gr : Ge, z = {
|
|
435
|
+
pages: a,
|
|
436
436
|
pageParams: l
|
|
437
|
-
},
|
|
438
|
-
u = await z
|
|
437
|
+
}, Y = C(n, z);
|
|
438
|
+
u = await H(z, 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
|
-
u = await
|
|
445
|
+
u = await H(u, C), x++;
|
|
446
446
|
} while (x < v);
|
|
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 gr(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, U, K, te, re, Z, ne, oe, kt, br = (kt = class {
|
|
481
|
+
constructor(t = {}) {
|
|
482
482
|
N(this, b);
|
|
483
|
+
N(this, U);
|
|
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 hr()), j(this, U, t.mutationCache || new fr()), 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, Wt.subscribe(async (t) => {
|
|
494
|
+
t && (await this.resumePausedMutations(), h(this, b).onFocus());
|
|
495
|
+
})), j(this, oe, Ue.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, U).findAll({ ...t, status: "pending" }).length;
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
@@ -513,209 +513,209 @@ 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 = At(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 Ue.isOnline() ? h(this, U).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, U);
|
|
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 = vt(
|
|
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, U).clear();
|
|
685
|
+
}
|
|
686
|
+
}, b = new WeakMap(), U = new WeakMap(), K = new WeakMap(), te = new WeakMap(), re = new WeakMap(), Z = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), kt);
|
|
687
|
+
const jr = E(() => Promise.resolve().then(() => Vr)), yr = E(() => Promise.resolve().then(() => Fo)), kr = E(() => Promise.resolve().then(() => An)), wr = E(() => Promise.resolve().then(() => Un)), vr = E(() => Promise.resolve().then(() => Yr)), Nr = E(() => Promise.resolve().then(() => zr)), Cr = E(() => Promise.resolve().then(() => cn)), Sr = E(() => Promise.resolve().then(() => ln)), Ir = E(() => Promise.resolve().then(() => ho)), Mr = E(() => Promise.resolve().then(() => en)), _r = E(() => Promise.resolve().then(() => Rn)), Or = E(() => Promise.resolve().then(() => sr)), Tr = E(() => Promise.resolve().then(() => Po)), Fr = {
|
|
688
|
+
header: Nr,
|
|
689
|
+
seoHeader: Ir,
|
|
690
|
+
banner: jr,
|
|
691
|
+
calculator: yr,
|
|
692
|
+
form: kr,
|
|
693
|
+
formDialog: wr,
|
|
694
|
+
stepper: Mr,
|
|
695
|
+
benefit: Or,
|
|
696
|
+
longBanner: Sr,
|
|
697
|
+
usefulInfo: _r,
|
|
698
|
+
interLinking: Cr,
|
|
699
|
+
footer: vr,
|
|
700
|
+
infoBlock: Tr
|
|
701
|
+
}, Br = Object.keys(Fr), g = Br.reduce(
|
|
702
|
+
(t, e) => (t[e] = e, t),
|
|
703
703
|
{}
|
|
704
|
-
),
|
|
705
|
-
switch (
|
|
704
|
+
), Er = (t) => Ct(() => {
|
|
705
|
+
switch (t.handler) {
|
|
706
706
|
case "navigate": {
|
|
707
|
-
const { url: r, target: n, rel: i } =
|
|
708
|
-
|
|
707
|
+
const { url: r, target: n, rel: i } = t;
|
|
708
|
+
Xe && (window == null || window.open(r, n, i));
|
|
709
709
|
break;
|
|
710
710
|
}
|
|
711
711
|
case "scroll": {
|
|
712
|
-
const { widgetId: r } =
|
|
713
|
-
|
|
712
|
+
const { widgetId: r } = t ?? "";
|
|
713
|
+
or({ widgetId: r });
|
|
714
714
|
break;
|
|
715
715
|
}
|
|
716
716
|
case "dialog": {
|
|
717
|
-
if (!
|
|
718
|
-
const { dialogId: r } =
|
|
717
|
+
if (!Xe) return;
|
|
718
|
+
const { dialogId: r } = t ?? {}, n = document.getElementById(r);
|
|
719
719
|
if (!n) {
|
|
720
720
|
console.error("Такого элемента в DOM не существует", r);
|
|
721
721
|
break;
|
|
@@ -723,10 +723,10 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
723
723
|
n.show();
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
}, [
|
|
727
|
-
const n =
|
|
728
|
-
return /* @__PURE__ */ o.jsx(
|
|
729
|
-
},
|
|
726
|
+
}, [t]), ee = ({ handlerOptions: t, className: e, ...r }) => {
|
|
727
|
+
const n = Er(t);
|
|
728
|
+
return /* @__PURE__ */ o.jsx(pe, { className: d(e), onClick: n, ...r, children: r.children });
|
|
729
|
+
}, Pr = R(
|
|
730
730
|
"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
731
|
{
|
|
732
732
|
variants: {
|
|
@@ -737,43 +737,43 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
|
-
),
|
|
741
|
-
subtitle:
|
|
742
|
-
title:
|
|
740
|
+
), Dr = ({
|
|
741
|
+
subtitle: t,
|
|
742
|
+
title: e,
|
|
743
743
|
img: r,
|
|
744
744
|
mobileImg: n,
|
|
745
745
|
classes: i,
|
|
746
|
-
withButton:
|
|
746
|
+
withButton: a,
|
|
747
747
|
button: l,
|
|
748
748
|
variant: u,
|
|
749
749
|
color: x
|
|
750
750
|
}) => {
|
|
751
|
-
const { isDesktop: m } =
|
|
751
|
+
const { isDesktop: m } = le();
|
|
752
752
|
return /* @__PURE__ */ o.jsxs(
|
|
753
753
|
"li",
|
|
754
754
|
{
|
|
755
755
|
style: { backgroundColor: x ?? "#F3F4F7" },
|
|
756
|
-
className:
|
|
756
|
+
className: d(Pr({ variant: u }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
|
|
757
757
|
children: [
|
|
758
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
759
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
760
|
-
/* @__PURE__ */ o.jsx("div", { dangerouslySetInnerHTML: { __html:
|
|
758
|
+
/* @__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: [
|
|
759
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
760
|
+
/* @__PURE__ */ o.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className: d("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
761
761
|
/* @__PURE__ */ o.jsx(
|
|
762
762
|
"div",
|
|
763
763
|
{
|
|
764
|
-
dangerouslySetInnerHTML: { __html:
|
|
765
|
-
className:
|
|
764
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
765
|
+
className: d("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
|
|
766
766
|
}
|
|
767
767
|
)
|
|
768
768
|
] }),
|
|
769
|
-
|
|
769
|
+
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
770
|
] }),
|
|
771
|
-
(n || m) && r && /* @__PURE__ */ o.jsx("div", { className:
|
|
771
|
+
(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
772
|
]
|
|
773
773
|
},
|
|
774
|
-
|
|
774
|
+
e
|
|
775
775
|
);
|
|
776
|
-
},
|
|
776
|
+
}, Rr = R("grid gap-4", {
|
|
777
777
|
variants: {
|
|
778
778
|
variant: {
|
|
779
779
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -781,132 +781,132 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
781
781
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
|
-
}),
|
|
784
|
+
}), 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
785
|
/* @__PURE__ */ o.jsx(
|
|
786
786
|
"div",
|
|
787
787
|
{
|
|
788
|
-
dangerouslySetInnerHTML: { __html:
|
|
789
|
-
className:
|
|
788
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
789
|
+
className: d("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", n == null ? void 0 : n.heading)
|
|
790
790
|
}
|
|
791
791
|
),
|
|
792
|
-
/* @__PURE__ */ o.jsx("ul", { className:
|
|
793
|
-
] }) }),
|
|
792
|
+
/* @__PURE__ */ o.jsx("ul", { className: d(Rr({ variant: r }), n == null ? void 0 : n.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ o.jsx(Dr, { variant: r, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
|
|
793
|
+
] }) }), sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
794
794
|
__proto__: null,
|
|
795
|
-
Benefit:
|
|
796
|
-
default:
|
|
797
|
-
}, Symbol.toStringTag, { value: "Module" })), Hr = ({ variant:
|
|
798
|
-
switch (
|
|
795
|
+
Benefit: et,
|
|
796
|
+
default: et
|
|
797
|
+
}, Symbol.toStringTag, { value: "Module" })), Hr = ({ variant: t, details: e }) => {
|
|
798
|
+
switch (t) {
|
|
799
799
|
case "withButton":
|
|
800
|
-
return /* @__PURE__ */ o.jsx(
|
|
800
|
+
return /* @__PURE__ */ o.jsx(ee, { ...e });
|
|
801
801
|
case "withPhone":
|
|
802
|
-
return /* @__PURE__ */ o.jsx(
|
|
802
|
+
return /* @__PURE__ */ o.jsx(Nt, { classes: { root: "items-end" }, ...e, phone: Me(e.phone) });
|
|
803
803
|
default:
|
|
804
804
|
return null;
|
|
805
805
|
}
|
|
806
|
-
},
|
|
807
|
-
const { logoPath:
|
|
806
|
+
}, tt = (t) => {
|
|
807
|
+
const { logoPath: e = "/", logoType: r = "main", classes: n } = t;
|
|
808
808
|
return /* @__PURE__ */ o.jsx(
|
|
809
809
|
"header",
|
|
810
810
|
{
|
|
811
811
|
id: g.header,
|
|
812
812
|
"data-test-id": g.header,
|
|
813
|
-
className:
|
|
814
|
-
children: /* @__PURE__ */ o.jsx(
|
|
813
|
+
className: d("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", n == null ? void 0 : n.root),
|
|
814
|
+
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
815
|
/* @__PURE__ */ o.jsx(
|
|
816
816
|
"a",
|
|
817
817
|
{
|
|
818
|
-
href:
|
|
818
|
+
href: e,
|
|
819
819
|
"aria-label": "logo",
|
|
820
820
|
target: "_blank",
|
|
821
821
|
rel: "noreferrer",
|
|
822
|
-
className:
|
|
822
|
+
className: d(
|
|
823
823
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
824
824
|
n == null ? void 0 : n.logo
|
|
825
825
|
),
|
|
826
|
-
children:
|
|
826
|
+
children: Ut[r]
|
|
827
827
|
}
|
|
828
828
|
),
|
|
829
|
-
Hr(
|
|
829
|
+
Hr(t)
|
|
830
830
|
] }) })
|
|
831
831
|
}
|
|
832
832
|
);
|
|
833
|
-
},
|
|
833
|
+
}, zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
834
834
|
__proto__: null,
|
|
835
|
-
Header:
|
|
836
|
-
default:
|
|
837
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
838
|
-
const { primary: r, secondary: n } =
|
|
835
|
+
Header: tt,
|
|
836
|
+
default: tt
|
|
837
|
+
}, Symbol.toStringTag, { value: "Module" })), It = ({ buttonConfig: t, classes: e }) => {
|
|
838
|
+
const { primary: r, secondary: n } = t || {};
|
|
839
839
|
return /* @__PURE__ */ o.jsxs(
|
|
840
840
|
"div",
|
|
841
841
|
{
|
|
842
|
-
className:
|
|
842
|
+
className: d(
|
|
843
843
|
"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
844
|
{ "flex items-center gap-4": n == null ? void 0 : n.enabled },
|
|
845
|
-
|
|
845
|
+
e == null ? void 0 : e.group
|
|
846
846
|
),
|
|
847
847
|
children: [
|
|
848
848
|
r.enabled && /* @__PURE__ */ o.jsx(
|
|
849
|
-
|
|
849
|
+
ee,
|
|
850
850
|
{
|
|
851
|
-
className:
|
|
851
|
+
className: d("w-full desktop:max-w-[216px]", e == null ? void 0 : e.primary),
|
|
852
852
|
size: "lg",
|
|
853
853
|
intent: "primary",
|
|
854
854
|
...r.buttonContent
|
|
855
855
|
}
|
|
856
856
|
),
|
|
857
857
|
(n == null ? void 0 : n.enabled) && /* @__PURE__ */ o.jsx(
|
|
858
|
-
|
|
858
|
+
ee,
|
|
859
859
|
{
|
|
860
860
|
intent: "secondary",
|
|
861
861
|
size: "lg",
|
|
862
|
-
className:
|
|
862
|
+
className: d("w-full desktop:max-w-[216px]", e == null ? void 0 : e.secondary),
|
|
863
863
|
...r.buttonContent
|
|
864
864
|
}
|
|
865
865
|
)
|
|
866
866
|
]
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
|
-
},
|
|
870
|
-
const { variant: r, items: n } =
|
|
871
|
-
return /* @__PURE__ */ o.jsx("div", { className:
|
|
869
|
+
}, Ne = ({ details: t, classes: e }) => {
|
|
870
|
+
const { variant: r, items: n } = t ?? {};
|
|
871
|
+
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
872
|
"div",
|
|
873
873
|
{
|
|
874
874
|
id: "advantages",
|
|
875
|
-
className:
|
|
875
|
+
className: d(
|
|
876
876
|
"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
877
|
{ "desktop:max-w-[860px]": r === "threeCards" },
|
|
878
878
|
{ "desktop:max-w-[1140px]": r === "fourCards" },
|
|
879
|
-
|
|
879
|
+
e == null ? void 0 : e.advantagesContainer
|
|
880
880
|
),
|
|
881
|
-
children: n == null ? void 0 : n.map(({ title: i, description:
|
|
881
|
+
children: n == null ? void 0 : n.map(({ title: i, description: a }) => /* @__PURE__ */ o.jsxs(
|
|
882
882
|
"div",
|
|
883
883
|
{
|
|
884
|
-
className:
|
|
884
|
+
className: d(
|
|
885
885
|
'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
|
-
|
|
886
|
+
e == null ? void 0 : e.item
|
|
887
887
|
),
|
|
888
888
|
children: [
|
|
889
|
-
/* @__PURE__ */ o.jsx(
|
|
890
|
-
/* @__PURE__ */ o.jsx("p", { className:
|
|
889
|
+
/* @__PURE__ */ o.jsx(D, { as: "h4", className: d("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
890
|
+
/* @__PURE__ */ o.jsx("p", { className: d("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
|
|
891
891
|
]
|
|
892
892
|
},
|
|
893
893
|
i
|
|
894
894
|
))
|
|
895
895
|
}
|
|
896
896
|
) });
|
|
897
|
-
},
|
|
898
|
-
headTitle:
|
|
899
|
-
subtitle:
|
|
897
|
+
}, Lr = ({
|
|
898
|
+
headTitle: t,
|
|
899
|
+
subtitle: e,
|
|
900
900
|
buttonsConfig: r,
|
|
901
901
|
advantages: n,
|
|
902
902
|
classes: i,
|
|
903
|
-
imageDesktop:
|
|
903
|
+
imageDesktop: a,
|
|
904
904
|
imageMobile: l,
|
|
905
905
|
renderImageCb: u,
|
|
906
906
|
backgroundColor: x
|
|
907
907
|
}) => {
|
|
908
|
-
var
|
|
909
|
-
const { isMobile: m } =
|
|
908
|
+
var c;
|
|
909
|
+
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
910
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
911
911
|
/* @__PURE__ */ o.jsxs(
|
|
912
912
|
"section",
|
|
@@ -914,43 +914,43 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
914
914
|
id: g.banner,
|
|
915
915
|
"data-test-id": g.banner,
|
|
916
916
|
style: { backgroundColor: x ?? "#d9edff" },
|
|
917
|
-
className:
|
|
917
|
+
className: d("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
918
918
|
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 ?
|
|
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 ? ie({
|
|
920
920
|
imgProps: {
|
|
921
921
|
className: "h-full w-full object-cover object-center",
|
|
922
922
|
...l
|
|
923
923
|
},
|
|
924
924
|
renderImageCb: u
|
|
925
|
-
}) :
|
|
925
|
+
}) : ie({
|
|
926
926
|
imgProps: {
|
|
927
927
|
className: "h-full w-full object-cover object-center",
|
|
928
|
-
...
|
|
928
|
+
...a
|
|
929
929
|
},
|
|
930
930
|
renderImageCb: u
|
|
931
931
|
}) }),
|
|
932
|
-
/* @__PURE__ */ o.jsxs(
|
|
933
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
932
|
+
/* @__PURE__ */ o.jsxs(F, { className: d("h-full", i == null ? void 0 : i.container), children: [
|
|
933
|
+
/* @__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
934
|
/* @__PURE__ */ o.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
935
935
|
/* @__PURE__ */ o.jsx(
|
|
936
936
|
"div",
|
|
937
937
|
{
|
|
938
|
-
dangerouslySetInnerHTML: { __html:
|
|
939
|
-
className:
|
|
938
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
939
|
+
className: d("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
940
940
|
}
|
|
941
941
|
),
|
|
942
942
|
/* @__PURE__ */ o.jsx(
|
|
943
943
|
"div",
|
|
944
944
|
{
|
|
945
|
-
dangerouslySetInnerHTML: { __html:
|
|
946
|
-
className:
|
|
945
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
946
|
+
className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
947
947
|
}
|
|
948
948
|
)
|
|
949
949
|
] }),
|
|
950
|
-
/* @__PURE__ */ o.jsx(
|
|
950
|
+
/* @__PURE__ */ o.jsx(It, { buttonConfig: r })
|
|
951
951
|
] }) }),
|
|
952
952
|
(n == null ? void 0 : n.enabled) && p && /* @__PURE__ */ o.jsx(
|
|
953
|
-
|
|
953
|
+
Ne,
|
|
954
954
|
{
|
|
955
955
|
classes: {
|
|
956
956
|
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 +963,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
963
963
|
}
|
|
964
964
|
),
|
|
965
965
|
(n == null ? void 0 : n.enabled) && p && /* @__PURE__ */ o.jsx(
|
|
966
|
-
|
|
966
|
+
Ne,
|
|
967
967
|
{
|
|
968
968
|
classes: {
|
|
969
969
|
root: "px-4 pt-4 mobile:bg-color-white desktop:hidden"
|
|
@@ -972,13 +972,13 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
972
972
|
}
|
|
973
973
|
)
|
|
974
974
|
] });
|
|
975
|
-
},
|
|
976
|
-
headTitle:
|
|
977
|
-
subtitle:
|
|
975
|
+
}, Qr = ({
|
|
976
|
+
headTitle: t,
|
|
977
|
+
subtitle: e,
|
|
978
978
|
buttonsConfig: r,
|
|
979
979
|
advantages: n,
|
|
980
980
|
classes: i,
|
|
981
|
-
renderImageCb:
|
|
981
|
+
renderImageCb: a,
|
|
982
982
|
imageDesktop: l,
|
|
983
983
|
imageMobile: u,
|
|
984
984
|
backgroundColor: x
|
|
@@ -991,29 +991,29 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
991
991
|
id: g.banner,
|
|
992
992
|
style: { backgroundColor: x ?? "#d9edff" },
|
|
993
993
|
"data-test-id": g.banner,
|
|
994
|
-
className:
|
|
994
|
+
className: d("", i == null ? void 0 : i.root),
|
|
995
995
|
children: [
|
|
996
|
-
/* @__PURE__ */ o.jsxs(
|
|
997
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
996
|
+
/* @__PURE__ */ o.jsxs(F, { className: d("relative desktop:h-[456px]", i == null ? void 0 : i.container), children: [
|
|
997
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
998
998
|
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
999
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
999
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
1000
1000
|
/* @__PURE__ */ o.jsx(
|
|
1001
1001
|
"div",
|
|
1002
1002
|
{
|
|
1003
|
-
dangerouslySetInnerHTML: { __html:
|
|
1004
|
-
className:
|
|
1003
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
1004
|
+
className: d("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
1005
1005
|
}
|
|
1006
1006
|
),
|
|
1007
1007
|
/* @__PURE__ */ o.jsx(
|
|
1008
1008
|
"div",
|
|
1009
1009
|
{
|
|
1010
|
-
dangerouslySetInnerHTML: { __html:
|
|
1011
|
-
className:
|
|
1010
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
1011
|
+
className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
1012
1012
|
}
|
|
1013
1013
|
)
|
|
1014
1014
|
] }),
|
|
1015
1015
|
/* @__PURE__ */ o.jsx(
|
|
1016
|
-
|
|
1016
|
+
It,
|
|
1017
1017
|
{
|
|
1018
1018
|
buttonConfig: r,
|
|
1019
1019
|
classes: {
|
|
@@ -1025,38 +1025,38 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1025
1025
|
/* @__PURE__ */ o.jsx(
|
|
1026
1026
|
"div",
|
|
1027
1027
|
{
|
|
1028
|
-
className:
|
|
1028
|
+
className: d(
|
|
1029
1029
|
"relative flex h-[356px] justify-center desktop:hidden desktop:h-[456px] desktop:w-[550px]",
|
|
1030
1030
|
i == null ? void 0 : i.imageContainer
|
|
1031
1031
|
),
|
|
1032
|
-
children:
|
|
1032
|
+
children: ie({
|
|
1033
1033
|
imgProps: {
|
|
1034
1034
|
className: "h-full object-contain",
|
|
1035
1035
|
...u
|
|
1036
1036
|
},
|
|
1037
|
-
renderImageCb:
|
|
1037
|
+
renderImageCb: a
|
|
1038
1038
|
})
|
|
1039
1039
|
}
|
|
1040
1040
|
),
|
|
1041
1041
|
/* @__PURE__ */ o.jsx(
|
|
1042
1042
|
"div",
|
|
1043
1043
|
{
|
|
1044
|
-
className:
|
|
1044
|
+
className: d(
|
|
1045
1045
|
"relative flex h-[356px] justify-center mobile:hidden desktop:h-[456px] desktop:w-[550px]",
|
|
1046
1046
|
i == null ? void 0 : i.imageContainer
|
|
1047
1047
|
),
|
|
1048
|
-
children:
|
|
1048
|
+
children: ie({
|
|
1049
1049
|
imgProps: {
|
|
1050
1050
|
className: "h-full object-contain",
|
|
1051
1051
|
...l
|
|
1052
1052
|
},
|
|
1053
|
-
renderImageCb:
|
|
1053
|
+
renderImageCb: a
|
|
1054
1054
|
})
|
|
1055
1055
|
}
|
|
1056
1056
|
)
|
|
1057
1057
|
] }),
|
|
1058
1058
|
(n == null ? void 0 : n.enabled) && m && /* @__PURE__ */ o.jsx(
|
|
1059
|
-
|
|
1059
|
+
Ne,
|
|
1060
1060
|
{
|
|
1061
1061
|
classes: {
|
|
1062
1062
|
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 +1066,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1066
1066
|
)
|
|
1067
1067
|
] }),
|
|
1068
1068
|
(n == null ? void 0 : n.enabled) && m && /* @__PURE__ */ o.jsx(
|
|
1069
|
-
|
|
1069
|
+
Ne,
|
|
1070
1070
|
{
|
|
1071
1071
|
classes: {
|
|
1072
1072
|
root: "px-4 pt-4 mobile:bg-color-white desktop:hidden"
|
|
@@ -1077,58 +1077,58 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1077
1077
|
]
|
|
1078
1078
|
}
|
|
1079
1079
|
);
|
|
1080
|
-
},
|
|
1081
|
-
switch (
|
|
1080
|
+
}, rt = ({ variant: t, ...e }) => {
|
|
1081
|
+
switch (t) {
|
|
1082
1082
|
case "fullImg":
|
|
1083
|
-
return /* @__PURE__ */ o.jsx(
|
|
1083
|
+
return /* @__PURE__ */ o.jsx(Lr, { ...e });
|
|
1084
1084
|
default:
|
|
1085
|
-
return /* @__PURE__ */ o.jsx(
|
|
1085
|
+
return /* @__PURE__ */ o.jsx(Qr, { ...e });
|
|
1086
1086
|
}
|
|
1087
|
-
},
|
|
1087
|
+
}, Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1088
1088
|
__proto__: null,
|
|
1089
|
-
Banner:
|
|
1090
|
-
default:
|
|
1091
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1089
|
+
Banner: rt,
|
|
1090
|
+
default: rt
|
|
1091
|
+
}, Symbol.toStringTag, { value: "Module" })), $r = ({ 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
1092
|
"a",
|
|
1093
1093
|
{
|
|
1094
|
-
className:
|
|
1094
|
+
className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1095
1095
|
href: n,
|
|
1096
1096
|
"aria-label": r.replace("social/", ""),
|
|
1097
1097
|
...i,
|
|
1098
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1098
|
+
children: /* @__PURE__ */ o.jsx(f, { name: r, className: d("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1099
1099
|
},
|
|
1100
1100
|
n
|
|
1101
|
-
)) }),
|
|
1102
|
-
|
|
1101
|
+
)) }), Wr = ({ 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(
|
|
1102
|
+
Nt,
|
|
1103
1103
|
{
|
|
1104
|
-
phone:
|
|
1104
|
+
phone: Me(r),
|
|
1105
1105
|
text: n,
|
|
1106
1106
|
classes: {
|
|
1107
|
-
root:
|
|
1108
|
-
text:
|
|
1109
|
-
link:
|
|
1107
|
+
root: d(e == null ? void 0 : e.phoneWrapper),
|
|
1108
|
+
text: d("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
1109
|
+
link: d("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
1110
1110
|
}
|
|
1111
1111
|
},
|
|
1112
1112
|
r
|
|
1113
|
-
)) }),
|
|
1113
|
+
)) }), Ar = ({ classes: t, details: e }) => /* @__PURE__ */ o.jsx(
|
|
1114
1114
|
"div",
|
|
1115
1115
|
{
|
|
1116
|
-
className:
|
|
1116
|
+
className: d(
|
|
1117
1117
|
"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
|
-
|
|
1118
|
+
t == null ? void 0 : t.navRoot
|
|
1119
1119
|
),
|
|
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
|
-
|
|
1120
|
+
children: e == null ? void 0 : e.map(
|
|
1121
|
+
({ 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: [
|
|
1122
|
+
/* @__PURE__ */ o.jsx("div", { className: d("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: n }),
|
|
1123
|
+
/* @__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(
|
|
1124
|
+
ce,
|
|
1125
1125
|
{
|
|
1126
|
-
href:
|
|
1126
|
+
href: a,
|
|
1127
1127
|
"aria-label": l,
|
|
1128
1128
|
intent: "white",
|
|
1129
1129
|
classes: {
|
|
1130
|
-
link:
|
|
1131
|
-
icon:
|
|
1130
|
+
link: t == null ? void 0 : t.navLink,
|
|
1131
|
+
icon: t == null ? void 0 : t.navLinkIcon
|
|
1132
1132
|
},
|
|
1133
1133
|
...u,
|
|
1134
1134
|
children: l
|
|
@@ -1138,22 +1138,27 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1138
1138
|
] }, n))
|
|
1139
1139
|
)
|
|
1140
1140
|
}
|
|
1141
|
-
),
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1141
|
+
), qr = ({ text: t, classes: e }) => {
|
|
1142
|
+
const r = (/* @__PURE__ */ new Date()).getFullYear();
|
|
1143
|
+
return /* @__PURE__ */ o.jsx(
|
|
1144
|
+
"div",
|
|
1145
|
+
{
|
|
1146
|
+
className: d("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
1147
|
+
dangerouslySetInnerHTML: {
|
|
1148
|
+
__html: `<div style="display: inline-flex; gap: 4px"><span>© 2004-${r}</span> ${t}</div>`
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
);
|
|
1152
|
+
}, Ur = ({ classes: t }) => /* @__PURE__ */ o.jsx(
|
|
1148
1153
|
"a",
|
|
1149
1154
|
{
|
|
1150
1155
|
"aria-label": "logo",
|
|
1151
1156
|
href: "https://sovcombank.ru/",
|
|
1152
|
-
className:
|
|
1153
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1157
|
+
className: d("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
|
|
1158
|
+
children: /* @__PURE__ */ o.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1154
1159
|
}
|
|
1155
|
-
),
|
|
1156
|
-
|
|
1160
|
+
), Kr = ({ classes: t }) => /* @__PURE__ */ o.jsx(
|
|
1161
|
+
ce,
|
|
1157
1162
|
{
|
|
1158
1163
|
intent: "white",
|
|
1159
1164
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1161,23 +1166,23 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1161
1166
|
"aria-label": "site-map",
|
|
1162
1167
|
rel: "noreferrer",
|
|
1163
1168
|
classes: {
|
|
1164
|
-
link:
|
|
1165
|
-
icon:
|
|
1169
|
+
link: d("mobile:mt-6", t == null ? void 0 : t.siteMapLink),
|
|
1170
|
+
icon: t == null ? void 0 : t.siteMapLinkIcon
|
|
1166
1171
|
},
|
|
1167
1172
|
children: "Карта сайта"
|
|
1168
1173
|
}
|
|
1169
|
-
),
|
|
1170
|
-
const [r, n] =
|
|
1171
|
-
return
|
|
1174
|
+
), Zr = ({ text: t, classes: e }) => {
|
|
1175
|
+
const [r, n] = me.useState(!1), [i, a] = me.useState(!1), l = me.useRef(null);
|
|
1176
|
+
return me.useEffect(() => {
|
|
1172
1177
|
const u = l.current;
|
|
1173
|
-
u &&
|
|
1174
|
-
}, []), /* @__PURE__ */ o.jsxs("div", { className:
|
|
1178
|
+
u && a(u.scrollHeight > u.clientHeight);
|
|
1179
|
+
}, []), /* @__PURE__ */ o.jsxs("div", { className: d("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1175
1180
|
/* @__PURE__ */ o.jsx(
|
|
1176
1181
|
"div",
|
|
1177
1182
|
{
|
|
1178
1183
|
ref: l,
|
|
1179
|
-
className:
|
|
1180
|
-
dangerouslySetInnerHTML: { __html:
|
|
1184
|
+
className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !r }, e == null ? void 0 : e.ligalText),
|
|
1185
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
1181
1186
|
}
|
|
1182
1187
|
),
|
|
1183
1188
|
i && /* @__PURE__ */ o.jsx(
|
|
@@ -1186,113 +1191,113 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1186
1191
|
tabIndex: 0,
|
|
1187
1192
|
role: "button",
|
|
1188
1193
|
onClick: () => n((u) => !u),
|
|
1189
|
-
className:
|
|
1194
|
+
className: d(
|
|
1190
1195
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1191
|
-
|
|
1196
|
+
e == null ? void 0 : e.ligalButton
|
|
1192
1197
|
),
|
|
1193
1198
|
children: "Подробнее"
|
|
1194
1199
|
}
|
|
1195
1200
|
)
|
|
1196
1201
|
] });
|
|
1197
|
-
},
|
|
1198
|
-
socialsLinks:
|
|
1199
|
-
phones:
|
|
1202
|
+
}, nt = ({
|
|
1203
|
+
socialsLinks: t,
|
|
1204
|
+
phones: e,
|
|
1200
1205
|
ligal: r,
|
|
1201
1206
|
copyright: n,
|
|
1202
1207
|
classes: i,
|
|
1203
|
-
details:
|
|
1208
|
+
details: a,
|
|
1204
1209
|
siteMap: l = !0
|
|
1205
1210
|
}) => /* @__PURE__ */ o.jsx(
|
|
1206
1211
|
"footer",
|
|
1207
1212
|
{
|
|
1208
1213
|
id: g.footer,
|
|
1209
1214
|
"data-test-id": g.footer,
|
|
1210
|
-
className:
|
|
1211
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1215
|
+
className: d("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1216
|
+
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: [
|
|
1212
1217
|
/* @__PURE__ */ o.jsxs(
|
|
1213
1218
|
"div",
|
|
1214
1219
|
{
|
|
1215
|
-
className:
|
|
1220
|
+
className: d(
|
|
1216
1221
|
"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",
|
|
1217
1222
|
i == null ? void 0 : i.footerHead
|
|
1218
1223
|
),
|
|
1219
1224
|
children: [
|
|
1220
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1221
|
-
/* @__PURE__ */ o.jsx(
|
|
1222
|
-
|
|
1225
|
+
/* @__PURE__ */ o.jsxs("div", { className: d(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1226
|
+
/* @__PURE__ */ o.jsx(Ur, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1227
|
+
t.enabled && /* @__PURE__ */ o.jsx($r, { socialsLinks: t.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1223
1228
|
] }),
|
|
1224
|
-
|
|
1229
|
+
e.enabled && /* @__PURE__ */ o.jsx(Wr, { phones: e.items, classes: i == null ? void 0 : i.phonesBlock })
|
|
1225
1230
|
]
|
|
1226
1231
|
}
|
|
1227
1232
|
),
|
|
1228
|
-
!_.isArrayEmpty(
|
|
1229
|
-
r.enabled && /* @__PURE__ */ o.jsx(
|
|
1233
|
+
!_.isArrayEmpty(a) && /* @__PURE__ */ o.jsx(Ar, { details: a, classes: i == null ? void 0 : i.navLinks }),
|
|
1234
|
+
r.enabled && /* @__PURE__ */ o.jsx(Zr, { text: r.text }),
|
|
1230
1235
|
/* @__PURE__ */ o.jsxs(
|
|
1231
1236
|
"div",
|
|
1232
1237
|
{
|
|
1233
|
-
className:
|
|
1238
|
+
className: d(
|
|
1234
1239
|
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
1235
1240
|
i == null ? void 0 : i.footerBottom
|
|
1236
1241
|
),
|
|
1237
1242
|
children: [
|
|
1238
|
-
n.enabled && /* @__PURE__ */ o.jsx(
|
|
1239
|
-
l && /* @__PURE__ */ o.jsx(
|
|
1243
|
+
n.enabled && /* @__PURE__ */ o.jsx(qr, { text: n.text, classes: i == null ? void 0 : i.copyright }),
|
|
1244
|
+
l && /* @__PURE__ */ o.jsx(Kr, { classes: i == null ? void 0 : i.siteMap })
|
|
1240
1245
|
]
|
|
1241
1246
|
}
|
|
1242
1247
|
)
|
|
1243
1248
|
] }) })
|
|
1244
1249
|
}
|
|
1245
|
-
),
|
|
1250
|
+
), Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1246
1251
|
__proto__: null,
|
|
1247
|
-
Footer:
|
|
1248
|
-
default:
|
|
1249
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1250
|
-
var
|
|
1251
|
-
const { classes:
|
|
1252
|
+
Footer: nt,
|
|
1253
|
+
default: nt
|
|
1254
|
+
}, Symbol.toStringTag, { value: "Module" })), Xr = (t) => {
|
|
1255
|
+
var a, l;
|
|
1256
|
+
const { classes: e, index: r, title: n, description: i } = t;
|
|
1252
1257
|
return /* @__PURE__ */ o.jsxs(
|
|
1253
1258
|
"div",
|
|
1254
1259
|
{
|
|
1255
|
-
className:
|
|
1260
|
+
className: d(
|
|
1256
1261
|
"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",
|
|
1257
|
-
|
|
1262
|
+
e == null ? void 0 : e.singleStep
|
|
1258
1263
|
),
|
|
1259
1264
|
children: [
|
|
1260
1265
|
/* @__PURE__ */ o.jsx(
|
|
1261
1266
|
"div",
|
|
1262
1267
|
{
|
|
1263
|
-
className:
|
|
1268
|
+
className: d(
|
|
1264
1269
|
"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",
|
|
1265
|
-
|
|
1270
|
+
e == null ? void 0 : e.numeric
|
|
1266
1271
|
),
|
|
1267
1272
|
children: r
|
|
1268
1273
|
}
|
|
1269
1274
|
),
|
|
1270
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1271
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1275
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.stepContainer), children: [
|
|
1276
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col gap-2"), children: [
|
|
1272
1277
|
n && /* @__PURE__ */ o.jsx(
|
|
1273
1278
|
"div",
|
|
1274
1279
|
{
|
|
1275
1280
|
dangerouslySetInnerHTML: { __html: n },
|
|
1276
|
-
className:
|
|
1281
|
+
className: d("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", e == null ? void 0 : e.title)
|
|
1277
1282
|
}
|
|
1278
1283
|
),
|
|
1279
1284
|
/* @__PURE__ */ o.jsx(
|
|
1280
1285
|
"div",
|
|
1281
1286
|
{
|
|
1282
1287
|
dangerouslySetInnerHTML: { __html: i ?? "" },
|
|
1283
|
-
className:
|
|
1288
|
+
className: d("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.description)
|
|
1284
1289
|
}
|
|
1285
1290
|
)
|
|
1286
1291
|
] }),
|
|
1287
|
-
|
|
1292
|
+
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 }) })
|
|
1288
1293
|
] })
|
|
1289
1294
|
]
|
|
1290
1295
|
}
|
|
1291
1296
|
);
|
|
1292
|
-
},
|
|
1293
|
-
const [r, n] =
|
|
1297
|
+
}, Jr = ({ currentStepper: t, classes: e }) => {
|
|
1298
|
+
const [r, n] = O(0), { carouselClasses: i, carouselSlideClasses: a } = e || {};
|
|
1294
1299
|
return /* @__PURE__ */ o.jsx(
|
|
1295
|
-
|
|
1300
|
+
Kt,
|
|
1296
1301
|
{
|
|
1297
1302
|
carouselOptions: {
|
|
1298
1303
|
dragFree: !1
|
|
@@ -1312,67 +1317,67 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1312
1317
|
},
|
|
1313
1318
|
...i
|
|
1314
1319
|
},
|
|
1315
|
-
children:
|
|
1316
|
-
|
|
1320
|
+
children: t.details.map((l, u) => /* @__PURE__ */ o.jsx(
|
|
1321
|
+
Zt,
|
|
1317
1322
|
{
|
|
1318
1323
|
variant: "fullScreen",
|
|
1319
1324
|
slideIndex: u,
|
|
1320
1325
|
...l,
|
|
1321
1326
|
classes: {
|
|
1322
1327
|
slide: "mobile:w-[328px] desktop:w-[1140px]",
|
|
1323
|
-
...
|
|
1328
|
+
...a
|
|
1324
1329
|
}
|
|
1325
1330
|
},
|
|
1326
1331
|
u
|
|
1327
1332
|
))
|
|
1328
1333
|
}
|
|
1329
1334
|
);
|
|
1330
|
-
},
|
|
1335
|
+
}, Gr = 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(
|
|
1331
1336
|
"button",
|
|
1332
1337
|
{
|
|
1333
1338
|
onClick: () => r(i),
|
|
1334
|
-
className:
|
|
1339
|
+
className: d(
|
|
1335
1340
|
"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",
|
|
1336
|
-
{ "bg-icon-primary-default text-color-white":
|
|
1341
|
+
{ "bg-icon-primary-default text-color-white": e === i },
|
|
1337
1342
|
n == null ? void 0 : n.tab
|
|
1338
1343
|
),
|
|
1339
1344
|
children: i
|
|
1340
1345
|
},
|
|
1341
1346
|
i
|
|
1342
|
-
)) })),
|
|
1347
|
+
)) })), ot = ({ steppers: t, classes: e }) => {
|
|
1343
1348
|
var x, m;
|
|
1344
|
-
const r =
|
|
1345
|
-
return /* @__PURE__ */ o.jsx("section", { id: g.stepper, "data-test-id": g.stepper, className:
|
|
1346
|
-
/* @__PURE__ */ o.jsx(
|
|
1349
|
+
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];
|
|
1350
|
+
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: [
|
|
1351
|
+
/* @__PURE__ */ o.jsx(D, { as: "h2", className: d("text-color-dark", e == null ? void 0 : e.headline), children: u.headline }),
|
|
1347
1352
|
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-6 desktop:gap-10", children: [
|
|
1348
1353
|
r && /* @__PURE__ */ o.jsx(
|
|
1349
|
-
|
|
1354
|
+
Gr,
|
|
1350
1355
|
{
|
|
1351
|
-
stepperTabs:
|
|
1356
|
+
stepperTabs: a,
|
|
1352
1357
|
activeStepper: n,
|
|
1353
1358
|
setActiveStepper: i,
|
|
1354
|
-
classes:
|
|
1359
|
+
classes: e == null ? void 0 : e.stepperTabs
|
|
1355
1360
|
}
|
|
1356
1361
|
),
|
|
1357
|
-
u.withImages && /* @__PURE__ */ o.jsx(
|
|
1362
|
+
u.withImages && /* @__PURE__ */ o.jsx(Jr, { classes: e == null ? void 0 : e.stepperCarousel, currentStepper: u }),
|
|
1358
1363
|
/* @__PURE__ */ o.jsx(
|
|
1359
1364
|
"div",
|
|
1360
1365
|
{
|
|
1361
|
-
className:
|
|
1366
|
+
className: d(
|
|
1362
1367
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1363
|
-
|
|
1368
|
+
e == null ? void 0 : e.stepsWrapper,
|
|
1364
1369
|
{ "mobile:hidden": u.withImages }
|
|
1365
1370
|
),
|
|
1366
|
-
children: (m = u.details) == null ? void 0 : m.map((p,
|
|
1371
|
+
children: (m = u.details) == null ? void 0 : m.map((p, c) => /* @__PURE__ */ Ie(Xr, { ...p, key: p.description, index: c + 1, classes: e == null ? void 0 : e.step }))
|
|
1367
1372
|
}
|
|
1368
1373
|
)
|
|
1369
1374
|
] })
|
|
1370
1375
|
] }) }) }, u.headline);
|
|
1371
|
-
},
|
|
1376
|
+
}, en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1372
1377
|
__proto__: null,
|
|
1373
|
-
Stepper:
|
|
1374
|
-
default:
|
|
1375
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1378
|
+
Stepper: ot,
|
|
1379
|
+
default: ot
|
|
1380
|
+
}, Symbol.toStringTag, { value: "Module" })), tn = R("", {
|
|
1376
1381
|
variants: {
|
|
1377
1382
|
intent: {
|
|
1378
1383
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -1388,7 +1393,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1388
1393
|
defaultVariants: {
|
|
1389
1394
|
intent: "twoItems"
|
|
1390
1395
|
}
|
|
1391
|
-
}),
|
|
1396
|
+
}), rn = R("", {
|
|
1392
1397
|
variants: {
|
|
1393
1398
|
intent: {
|
|
1394
1399
|
twoItems: "",
|
|
@@ -1420,7 +1425,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1420
1425
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1421
1426
|
}
|
|
1422
1427
|
]
|
|
1423
|
-
}),
|
|
1428
|
+
}), nn = R("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1424
1429
|
variants: {
|
|
1425
1430
|
intent: {
|
|
1426
1431
|
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',
|
|
@@ -1430,7 +1435,7 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1430
1435
|
defaultVariants: {
|
|
1431
1436
|
intent: "twoItems"
|
|
1432
1437
|
}
|
|
1433
|
-
}),
|
|
1438
|
+
}), on = R("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1434
1439
|
variants: {
|
|
1435
1440
|
intent: {
|
|
1436
1441
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1456,56 +1461,56 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1456
1461
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
1457
1462
|
}
|
|
1458
1463
|
]
|
|
1459
|
-
}),
|
|
1464
|
+
}), an = ({ data: t, intent: e }) => {
|
|
1460
1465
|
const {
|
|
1461
1466
|
title: r,
|
|
1462
1467
|
description: n,
|
|
1463
1468
|
popover: i = {
|
|
1464
1469
|
enabled: !1
|
|
1465
1470
|
}
|
|
1466
|
-
} =
|
|
1467
|
-
return /* @__PURE__ */ o.jsx("li", { className:
|
|
1468
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1469
|
-
/* @__PURE__ */ o.jsx("h4", { className:
|
|
1470
|
-
i.enabled && /* @__PURE__ */ o.jsx(
|
|
1471
|
+
} = t;
|
|
1472
|
+
return /* @__PURE__ */ o.jsx("li", { className: d(nn({ intent: e })), children: /* @__PURE__ */ o.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1473
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
|
|
1474
|
+
/* @__PURE__ */ o.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: r }),
|
|
1475
|
+
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 })
|
|
1471
1476
|
] }),
|
|
1472
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1477
|
+
/* @__PURE__ */ o.jsx("div", { className: d("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: n } })
|
|
1473
1478
|
] }) });
|
|
1474
|
-
},
|
|
1475
|
-
headline:
|
|
1476
|
-
buttonConfig:
|
|
1479
|
+
}, Ee = ({ intent: t, headline: e, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: d(tn({ intent: t, desktopHidden: r, mobileHidden: n })), children: e }), dn = ({ details: t, intent: e, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: d(rn({ intent: e, withButton: r })), children: t == null ? void 0 : t.map((n, i) => /* @__PURE__ */ o.jsx(an, { intent: e, data: n }, i)) }), it = ({
|
|
1480
|
+
headline: t,
|
|
1481
|
+
buttonConfig: e,
|
|
1477
1482
|
intent: r = "twoItems",
|
|
1478
1483
|
details: n,
|
|
1479
1484
|
image: i,
|
|
1480
|
-
classes:
|
|
1485
|
+
classes: a
|
|
1481
1486
|
}) => {
|
|
1482
1487
|
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;
|
|
1483
|
-
return /* @__PURE__ */ o.jsx("section", { id: g.longBanner, "data-test-id": g.longBanner, className: a
|
|
1484
|
-
u && /* @__PURE__ */ o.jsx(
|
|
1488
|
+
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: [
|
|
1489
|
+
u && /* @__PURE__ */ o.jsx(Ee, { intent: r, headline: t }),
|
|
1485
1490
|
/* @__PURE__ */ o.jsxs(
|
|
1486
1491
|
"div",
|
|
1487
1492
|
{
|
|
1488
|
-
className:
|
|
1493
|
+
className: d(
|
|
1489
1494
|
"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",
|
|
1490
|
-
|
|
1495
|
+
a == null ? void 0 : a.contentContainer
|
|
1491
1496
|
),
|
|
1492
1497
|
children: [
|
|
1493
|
-
l && /* @__PURE__ */ o.jsx(
|
|
1494
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1498
|
+
l && /* @__PURE__ */ o.jsx(Ee, { intent: r, headline: t, desktopHidden: !0 }),
|
|
1499
|
+
/* @__PURE__ */ o.jsx("div", { className: d(on({ intent: r, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: x }),
|
|
1495
1500
|
/* @__PURE__ */ o.jsxs(
|
|
1496
1501
|
"div",
|
|
1497
1502
|
{
|
|
1498
|
-
className:
|
|
1503
|
+
className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
|
|
1499
1504
|
children: [
|
|
1500
|
-
l && /* @__PURE__ */ o.jsx(
|
|
1501
|
-
/* @__PURE__ */ o.jsx(
|
|
1502
|
-
(
|
|
1503
|
-
|
|
1505
|
+
l && /* @__PURE__ */ o.jsx(Ee, { intent: r, headline: t, mobileHidden: !0 }),
|
|
1506
|
+
/* @__PURE__ */ o.jsx(dn, { details: n, intent: r, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
|
|
1507
|
+
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ o.jsx(
|
|
1508
|
+
ee,
|
|
1504
1509
|
{
|
|
1505
|
-
className:
|
|
1510
|
+
className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
|
|
1506
1511
|
size: "lg",
|
|
1507
1512
|
intent: "secondary",
|
|
1508
|
-
...
|
|
1513
|
+
...e.buttonContent
|
|
1509
1514
|
}
|
|
1510
1515
|
)
|
|
1511
1516
|
]
|
|
@@ -1515,19 +1520,19 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1515
1520
|
}
|
|
1516
1521
|
)
|
|
1517
1522
|
] }) });
|
|
1518
|
-
},
|
|
1523
|
+
}, ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1519
1524
|
__proto__: null,
|
|
1520
|
-
LongBanner:
|
|
1521
|
-
default:
|
|
1522
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1525
|
+
LongBanner: it,
|
|
1526
|
+
default: it
|
|
1527
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = {
|
|
1523
1528
|
ESIA: "esia",
|
|
1524
1529
|
MOBILE_ID: "mobileId",
|
|
1525
1530
|
COMBINE: "combine"
|
|
1526
|
-
},
|
|
1531
|
+
}, Mt = ({ children: t, isLoading: e, classes: r, loaderProps: n }) => /* @__PURE__ */ o.jsx(
|
|
1527
1532
|
"div",
|
|
1528
1533
|
{
|
|
1529
1534
|
tabIndex: 0,
|
|
1530
|
-
className:
|
|
1535
|
+
className: d(
|
|
1531
1536
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
1532
1537
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
1533
1538
|
r == null ? void 0 : r.root
|
|
@@ -1535,17 +1540,17 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1535
1540
|
children: /* @__PURE__ */ o.jsx(
|
|
1536
1541
|
"div",
|
|
1537
1542
|
{
|
|
1538
|
-
className:
|
|
1543
|
+
className: d(
|
|
1539
1544
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
1540
1545
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
1541
|
-
{ "items-center":
|
|
1546
|
+
{ "items-center": e },
|
|
1542
1547
|
r == null ? void 0 : r.wrapper
|
|
1543
1548
|
),
|
|
1544
|
-
children:
|
|
1549
|
+
children: e ? /* @__PURE__ */ o.jsx(Yt, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...n }) : t
|
|
1545
1550
|
}
|
|
1546
1551
|
)
|
|
1547
1552
|
}
|
|
1548
|
-
),
|
|
1553
|
+
), un = ({ ...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: [
|
|
1549
1554
|
/* @__PURE__ */ o.jsx(
|
|
1550
1555
|
"path",
|
|
1551
1556
|
{
|
|
@@ -1573,113 +1578,113 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1573
1578
|
/* @__PURE__ */ o.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1574
1579
|
/* @__PURE__ */ o.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1575
1580
|
] }) })
|
|
1576
|
-
] }),
|
|
1581
|
+
] }), _t = ({ mainLink: t, subLink: e, isMobile: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col", n == null ? void 0 : n.linksWrapper), children: [
|
|
1577
1582
|
/* @__PURE__ */ o.jsx(
|
|
1578
1583
|
"a",
|
|
1579
1584
|
{
|
|
1580
|
-
href:
|
|
1585
|
+
href: t.href,
|
|
1581
1586
|
target: "_blank",
|
|
1582
1587
|
rel: "noreferrer",
|
|
1583
|
-
className:
|
|
1588
|
+
className: d(
|
|
1584
1589
|
'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',
|
|
1585
1590
|
n == null ? void 0 : n.linksMainLink
|
|
1586
1591
|
),
|
|
1587
|
-
children: r ?
|
|
1592
|
+
children: r ? t.mobileTitle : t.title
|
|
1588
1593
|
}
|
|
1589
1594
|
),
|
|
1590
|
-
(
|
|
1591
|
-
|
|
1595
|
+
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ o.jsx(
|
|
1596
|
+
ce,
|
|
1592
1597
|
{
|
|
1593
1598
|
intent: "blue",
|
|
1594
1599
|
withUnderline: !0,
|
|
1595
|
-
href:
|
|
1600
|
+
href: e == null ? void 0 : e.href,
|
|
1596
1601
|
target: "_blank",
|
|
1597
1602
|
rel: "noreferrer",
|
|
1598
1603
|
classes: {
|
|
1599
|
-
link:
|
|
1604
|
+
link: d("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", n == null ? void 0 : n.linksSubLink)
|
|
1600
1605
|
},
|
|
1601
|
-
children:
|
|
1606
|
+
children: e == null ? void 0 : e.text
|
|
1602
1607
|
}
|
|
1603
1608
|
)
|
|
1604
|
-
] }),
|
|
1605
|
-
const { isMobile: l } =
|
|
1606
|
-
return /* @__PURE__ */ o.jsx(
|
|
1609
|
+
] }), at = ({ mainLink: t, subLink: e, isLoading: r, badge: n, loaderProps: i, classes: a }) => {
|
|
1610
|
+
const { isMobile: l } = le();
|
|
1611
|
+
return /* @__PURE__ */ o.jsx(Mt, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1607
1612
|
"div",
|
|
1608
1613
|
{
|
|
1609
|
-
className:
|
|
1614
|
+
className: d(
|
|
1610
1615
|
"flex flex-1 items-center justify-between gap-1",
|
|
1611
1616
|
{ "justify-center": !n && l },
|
|
1612
|
-
|
|
1617
|
+
a == null ? void 0 : a.innerWrapper
|
|
1613
1618
|
),
|
|
1614
1619
|
children: [
|
|
1615
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1620
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1616
1621
|
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
1617
|
-
/* @__PURE__ */ o.jsx(
|
|
1618
|
-
/* @__PURE__ */ o.jsx(
|
|
1619
|
-
/* @__PURE__ */ o.jsx(
|
|
1622
|
+
/* @__PURE__ */ o.jsx(f, { name: "logos/mts", className: d("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
|
|
1623
|
+
/* @__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) }),
|
|
1624
|
+
/* @__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) })
|
|
1620
1625
|
] }),
|
|
1621
|
-
/* @__PURE__ */ o.jsx(
|
|
1622
|
-
/* @__PURE__ */ o.jsx(
|
|
1626
|
+
/* @__PURE__ */ o.jsx(_t, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
|
|
1627
|
+
/* @__PURE__ */ o.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1623
1628
|
] }),
|
|
1624
|
-
n && /* @__PURE__ */ o.jsx(
|
|
1629
|
+
n && /* @__PURE__ */ o.jsx(De, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: n })
|
|
1625
1630
|
]
|
|
1626
1631
|
}
|
|
1627
1632
|
) });
|
|
1628
|
-
},
|
|
1629
|
-
const { isMobile: l } =
|
|
1630
|
-
return /* @__PURE__ */ o.jsx(
|
|
1633
|
+
}, dt = ({ mainLink: t, subLink: e, isLoading: r, badge: n, loaderProps: i, classes: a }) => {
|
|
1634
|
+
const { isMobile: l } = le();
|
|
1635
|
+
return /* @__PURE__ */ o.jsx(Mt, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1631
1636
|
"div",
|
|
1632
1637
|
{
|
|
1633
|
-
className:
|
|
1638
|
+
className: d(
|
|
1634
1639
|
"flex flex-1 items-center justify-between gap-1",
|
|
1635
1640
|
{ "justify-center": !n && l },
|
|
1636
|
-
|
|
1641
|
+
a == null ? void 0 : a.innerWrapper
|
|
1637
1642
|
),
|
|
1638
1643
|
children: [
|
|
1639
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1640
|
-
/* @__PURE__ */ o.jsx(
|
|
1641
|
-
/* @__PURE__ */ o.jsx(
|
|
1642
|
-
/* @__PURE__ */ o.jsx(
|
|
1644
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1645
|
+
/* @__PURE__ */ o.jsx(un, { className: d("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
|
|
1646
|
+
/* @__PURE__ */ o.jsx(_t, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
|
|
1647
|
+
/* @__PURE__ */ o.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1643
1648
|
] }),
|
|
1644
|
-
n && /* @__PURE__ */ o.jsx(
|
|
1649
|
+
n && /* @__PURE__ */ o.jsx(De, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: n })
|
|
1645
1650
|
]
|
|
1646
1651
|
}
|
|
1647
1652
|
) });
|
|
1648
|
-
},
|
|
1649
|
-
switch (
|
|
1650
|
-
case
|
|
1651
|
-
return /* @__PURE__ */ o.jsx(
|
|
1652
|
-
case
|
|
1653
|
-
return /* @__PURE__ */ o.jsx(
|
|
1654
|
-
case
|
|
1653
|
+
}, mn = (t) => {
|
|
1654
|
+
switch (t.mode) {
|
|
1655
|
+
case Pe.ESIA:
|
|
1656
|
+
return /* @__PURE__ */ o.jsx(dt, { ...t });
|
|
1657
|
+
case Pe.MOBILE_ID:
|
|
1658
|
+
return /* @__PURE__ */ o.jsx(at, { ...t });
|
|
1659
|
+
case Pe.COMBINE:
|
|
1655
1660
|
default:
|
|
1656
|
-
const { esiaConfig:
|
|
1661
|
+
const { esiaConfig: e, mobileIdConfig: r, subtitle: n, badge: i, classes: a } = t, l = !n && !i ? me.Fragment : "div";
|
|
1657
1662
|
return /* @__PURE__ */ o.jsxs(
|
|
1658
1663
|
"div",
|
|
1659
1664
|
{
|
|
1660
|
-
className:
|
|
1665
|
+
className: d(
|
|
1661
1666
|
"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",
|
|
1662
|
-
|
|
1667
|
+
a == null ? void 0 : a.root
|
|
1663
1668
|
),
|
|
1664
1669
|
children: [
|
|
1665
|
-
/* @__PURE__ */ o.jsxs(l, { className:
|
|
1666
|
-
n && /* @__PURE__ */ o.jsx("h5", { className:
|
|
1667
|
-
i && /* @__PURE__ */ o.jsx(
|
|
1670
|
+
/* @__PURE__ */ o.jsxs(l, { className: d("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
|
|
1671
|
+
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 }),
|
|
1672
|
+
i && /* @__PURE__ */ o.jsx(De, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: i })
|
|
1668
1673
|
] }),
|
|
1669
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1674
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
|
|
1670
1675
|
/* @__PURE__ */ o.jsx(
|
|
1671
|
-
|
|
1676
|
+
dt,
|
|
1672
1677
|
{
|
|
1673
|
-
...
|
|
1678
|
+
...e,
|
|
1674
1679
|
classes: {
|
|
1675
1680
|
root: "p-0 outline-0 h-[74px]",
|
|
1676
1681
|
arrowIcon: "hidden",
|
|
1677
|
-
...
|
|
1682
|
+
...e.classes
|
|
1678
1683
|
}
|
|
1679
1684
|
}
|
|
1680
1685
|
),
|
|
1681
1686
|
/* @__PURE__ */ o.jsx(
|
|
1682
|
-
|
|
1687
|
+
at,
|
|
1683
1688
|
{
|
|
1684
1689
|
...r,
|
|
1685
1690
|
classes: {
|
|
@@ -1694,12 +1699,12 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1694
1699
|
}
|
|
1695
1700
|
);
|
|
1696
1701
|
}
|
|
1697
|
-
},
|
|
1698
|
-
|
|
1702
|
+
}, ei = (t) => mn(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(
|
|
1703
|
+
ce,
|
|
1699
1704
|
{
|
|
1700
1705
|
classes: {
|
|
1701
|
-
link:
|
|
1702
|
-
icon:
|
|
1706
|
+
link: d("w-max", e == null ? void 0 : e.linkText),
|
|
1707
|
+
icon: d(e == null ? void 0 : e.linkIcon)
|
|
1703
1708
|
},
|
|
1704
1709
|
intent: "dark",
|
|
1705
1710
|
href: r,
|
|
@@ -1707,33 +1712,33 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1707
1712
|
children: n
|
|
1708
1713
|
},
|
|
1709
1714
|
r
|
|
1710
|
-
)) }),
|
|
1711
|
-
var
|
|
1712
|
-
const { isMobile: i } =
|
|
1713
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1715
|
+
)) }), xn = ({ groupLabel: t, links: e, mobileAccordionProps: r, classes: n }) => {
|
|
1716
|
+
var a, l, u;
|
|
1717
|
+
const { isMobile: i } = le();
|
|
1718
|
+
return /* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col gap-2", n == null ? void 0 : n.columnGroup), children: [
|
|
1714
1719
|
!i && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1715
|
-
/* @__PURE__ */ o.jsx("h5", { className:
|
|
1716
|
-
/* @__PURE__ */ o.jsx(
|
|
1720
|
+
/* @__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 }),
|
|
1721
|
+
/* @__PURE__ */ o.jsx(lt, { links: e, classes: n == null ? void 0 : n.linksList }, "desktop")
|
|
1717
1722
|
] }),
|
|
1718
1723
|
i && /* @__PURE__ */ o.jsx(
|
|
1719
|
-
|
|
1724
|
+
de,
|
|
1720
1725
|
{
|
|
1721
1726
|
defaultOpen: !0,
|
|
1722
|
-
label:
|
|
1723
|
-
icon: /* @__PURE__ */ o.jsx(
|
|
1727
|
+
label: t,
|
|
1728
|
+
icon: /* @__PURE__ */ o.jsx(f, { name: "arrows/arrowRight", className: d("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1724
1729
|
...r,
|
|
1725
1730
|
classes: {
|
|
1726
1731
|
...r == null ? void 0 : r.classes,
|
|
1727
1732
|
header: {
|
|
1728
|
-
trigger:
|
|
1733
|
+
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)
|
|
1729
1734
|
},
|
|
1730
|
-
contentInner:
|
|
1735
|
+
contentInner: d("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
|
|
1731
1736
|
},
|
|
1732
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1737
|
+
children: /* @__PURE__ */ o.jsx(lt, { links: e, classes: n == null ? void 0 : n.linksList }, "mobile")
|
|
1733
1738
|
}
|
|
1734
1739
|
)
|
|
1735
1740
|
] });
|
|
1736
|
-
},
|
|
1741
|
+
}, hn = ({ 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(xn, { ...e, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), pn = R("grid gap-4 grid-cols-1", {
|
|
1737
1742
|
variants: {
|
|
1738
1743
|
variant: {
|
|
1739
1744
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1744,13 +1749,13 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1744
1749
|
defaultVariants: {
|
|
1745
1750
|
variant: "fourCols"
|
|
1746
1751
|
}
|
|
1747
|
-
}),
|
|
1748
|
-
variant:
|
|
1749
|
-
details:
|
|
1752
|
+
}), ut = ({
|
|
1753
|
+
variant: t,
|
|
1754
|
+
details: e,
|
|
1750
1755
|
headline: r,
|
|
1751
1756
|
mobileAccordionProps: n,
|
|
1752
1757
|
rootAccordionProps: i,
|
|
1753
|
-
classes:
|
|
1758
|
+
classes: a,
|
|
1754
1759
|
defaultOpen: l
|
|
1755
1760
|
}) => {
|
|
1756
1761
|
var u, x, m;
|
|
@@ -1759,71 +1764,71 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1759
1764
|
{
|
|
1760
1765
|
id: g.interLinking,
|
|
1761
1766
|
"data-test-id": g.interLinking,
|
|
1762
|
-
className:
|
|
1763
|
-
children: /* @__PURE__ */ o.jsx(
|
|
1764
|
-
|
|
1767
|
+
className: d("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1768
|
+
children: /* @__PURE__ */ o.jsx(F, { children: /* @__PURE__ */ o.jsx(
|
|
1769
|
+
de,
|
|
1765
1770
|
{
|
|
1766
1771
|
defaultOpen: l,
|
|
1767
|
-
label: /* @__PURE__ */ o.jsx(
|
|
1772
|
+
label: /* @__PURE__ */ o.jsx(D, { as: "h4", className: d("text-left", a == null ? void 0 : a.headline), children: r }),
|
|
1768
1773
|
...i,
|
|
1769
1774
|
classes: {
|
|
1770
1775
|
...i == null ? void 0 : i.classes,
|
|
1771
1776
|
header: {
|
|
1772
|
-
trigger:
|
|
1777
|
+
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)
|
|
1773
1778
|
},
|
|
1774
|
-
content:
|
|
1779
|
+
content: d("max-w-full bg-color-blue-grey-100 relative", (m = i == null ? void 0 : i.classes) == null ? void 0 : m.content)
|
|
1775
1780
|
},
|
|
1776
|
-
children: /* @__PURE__ */ o.jsx("div", { className:
|
|
1781
|
+
children: /* @__PURE__ */ o.jsx("div", { className: d(pn({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.map((p, c) => /* @__PURE__ */ o.jsx(hn, { ...p, ...n, classes: a == null ? void 0 : a.column }, c)) })
|
|
1777
1782
|
}
|
|
1778
1783
|
) })
|
|
1779
1784
|
}
|
|
1780
1785
|
);
|
|
1781
|
-
},
|
|
1786
|
+
}, cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1782
1787
|
__proto__: null,
|
|
1783
|
-
InterLinking:
|
|
1784
|
-
default:
|
|
1785
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1788
|
+
InterLinking: ut,
|
|
1789
|
+
default: ut
|
|
1790
|
+
}, Symbol.toStringTag, { value: "Module" })), fn = ({ 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(
|
|
1786
1791
|
"button",
|
|
1787
1792
|
{
|
|
1788
|
-
onClick: () => r(
|
|
1789
|
-
className:
|
|
1793
|
+
onClick: () => r(a),
|
|
1794
|
+
className: d(
|
|
1790
1795
|
"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",
|
|
1791
1796
|
{
|
|
1792
|
-
"bg-icon-primary-default text-color-white":
|
|
1797
|
+
"bg-icon-primary-default text-color-white": e === a
|
|
1793
1798
|
},
|
|
1794
1799
|
n == null ? void 0 : n.button
|
|
1795
1800
|
),
|
|
1796
1801
|
children: i
|
|
1797
1802
|
},
|
|
1798
1803
|
i
|
|
1799
|
-
)) }),
|
|
1800
|
-
const i = /* @__PURE__ */ o.jsx("div", { className:
|
|
1801
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
1802
|
-
},
|
|
1803
|
-
rows:
|
|
1804
|
+
)) }), gn = (t) => t.variant === "HTML", bn = (t) => t.variant === "DOCUMENTS", jn = (t) => t.variant === "TABLE", yn = ({ html: t, config: e, classes: r, accordionConfig: n }) => {
|
|
1805
|
+
const i = /* @__PURE__ */ o.jsx("div", { className: d(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
|
|
1806
|
+
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 });
|
|
1807
|
+
}, kn = (t, e) => ({
|
|
1808
|
+
rows: t == null ? void 0 : t.map(({ row: r }) => ({
|
|
1804
1809
|
row: r == null ? void 0 : r.map((n, i) => {
|
|
1805
|
-
var
|
|
1810
|
+
var a;
|
|
1806
1811
|
return {
|
|
1807
1812
|
...n,
|
|
1808
|
-
heading:
|
|
1813
|
+
heading: e && ((a = e[i]) == null ? void 0 : a.heading)
|
|
1809
1814
|
};
|
|
1810
1815
|
})
|
|
1811
1816
|
}))
|
|
1812
|
-
}),
|
|
1817
|
+
}), wn = R("flex flex-col", {
|
|
1813
1818
|
variants: {
|
|
1814
1819
|
columnsVariant: {
|
|
1815
1820
|
twoCols: "w-full max-w-[656px]",
|
|
1816
1821
|
threeCols: "w-full max-w-[768px]"
|
|
1817
1822
|
}
|
|
1818
1823
|
}
|
|
1819
|
-
}),
|
|
1824
|
+
}), vn = R("desktop:grid mobile:hidden px-4 mb-4", {
|
|
1820
1825
|
variants: {
|
|
1821
1826
|
columnsVariant: {
|
|
1822
1827
|
twoCols: "grid-cols-2 gap-16",
|
|
1823
1828
|
threeCols: "grid-cols-3 gap-12"
|
|
1824
1829
|
}
|
|
1825
1830
|
}
|
|
1826
|
-
}),
|
|
1831
|
+
}), Nn = ({ headings: t, columnsVariant: e, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: d(vn({ 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)) }), Cn = R("desktop:grid mobile:hidden items-center", {
|
|
1827
1832
|
variants: {
|
|
1828
1833
|
columnsVariant: {
|
|
1829
1834
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1834,56 +1839,56 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1834
1839
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1835
1840
|
}
|
|
1836
1841
|
}
|
|
1837
|
-
}),
|
|
1842
|
+
}), Sn = ({ row: t, tableVariant: e, columnsVariant: r, rowIndex: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: d(Cn({ 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(
|
|
1838
1843
|
"div",
|
|
1839
1844
|
{
|
|
1840
|
-
className:
|
|
1841
|
-
children:
|
|
1845
|
+
className: d("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
|
|
1846
|
+
children: a && a
|
|
1842
1847
|
},
|
|
1843
1848
|
l
|
|
1844
|
-
)) }),
|
|
1849
|
+
)) }), In = R("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1845
1850
|
variants: {
|
|
1846
1851
|
tableVariant: {
|
|
1847
1852
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1848
1853
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1849
1854
|
}
|
|
1850
1855
|
}
|
|
1851
|
-
}),
|
|
1852
|
-
l && /* @__PURE__ */ o.jsx("div", { className:
|
|
1856
|
+
}), Mn = ({ row: t, tableVariant: e, columnsVariant: r, headingsExist: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: d(In({ 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: [
|
|
1857
|
+
l && /* @__PURE__ */ o.jsx("div", { className: d("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
|
|
1853
1858
|
/* @__PURE__ */ o.jsx(
|
|
1854
1859
|
"div",
|
|
1855
1860
|
{
|
|
1856
|
-
className:
|
|
1861
|
+
className: d(
|
|
1857
1862
|
"mob-body-regular-l text-color-dark",
|
|
1858
1863
|
{
|
|
1859
1864
|
"font-medium": u !== 0 && r === "twoCols" || r === "threeCols" || r === "twoCols" && n
|
|
1860
1865
|
},
|
|
1861
1866
|
i == null ? void 0 : i.cell
|
|
1862
1867
|
),
|
|
1863
|
-
children:
|
|
1868
|
+
children: a
|
|
1864
1869
|
}
|
|
1865
1870
|
)
|
|
1866
|
-
] }, u)) }),
|
|
1871
|
+
] }, u)) }), _n = ({ tableVariant: t, rows: e, headings: r, columnsVariant: n, classes: i }) => {
|
|
1867
1872
|
var u;
|
|
1868
|
-
const
|
|
1869
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1870
|
-
l && /* @__PURE__ */ o.jsx(
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
+
const a = ((u = kn(e, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
|
|
1874
|
+
return /* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1875
|
+
l && /* @__PURE__ */ o.jsx(Nn, { headings: r, columnsVariant: n, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1876
|
+
e == null ? void 0 : e.map((x, m) => /* @__PURE__ */ o.jsx(
|
|
1877
|
+
Sn,
|
|
1873
1878
|
{
|
|
1874
1879
|
rowIndex: m,
|
|
1875
|
-
tableVariant:
|
|
1880
|
+
tableVariant: t,
|
|
1876
1881
|
columnsVariant: n,
|
|
1877
1882
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1878
1883
|
...x
|
|
1879
1884
|
},
|
|
1880
1885
|
m
|
|
1881
1886
|
)),
|
|
1882
|
-
|
|
1883
|
-
|
|
1887
|
+
a == null ? void 0 : a.map((x, m) => /* @__PURE__ */ o.jsx(
|
|
1888
|
+
Mn,
|
|
1884
1889
|
{
|
|
1885
1890
|
headingsExist: l,
|
|
1886
|
-
tableVariant:
|
|
1891
|
+
tableVariant: t,
|
|
1887
1892
|
columnsVariant: n,
|
|
1888
1893
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1889
1894
|
...x
|
|
@@ -1891,33 +1896,33 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1891
1896
|
m
|
|
1892
1897
|
))
|
|
1893
1898
|
] });
|
|
1894
|
-
},
|
|
1895
|
-
tableVariant:
|
|
1896
|
-
description:
|
|
1899
|
+
}, On = ({
|
|
1900
|
+
tableVariant: t,
|
|
1901
|
+
description: e,
|
|
1897
1902
|
columnsVariant: r,
|
|
1898
1903
|
config: n,
|
|
1899
1904
|
rows: i,
|
|
1900
|
-
title:
|
|
1905
|
+
title: a,
|
|
1901
1906
|
headings: l,
|
|
1902
1907
|
accordionConfig: u,
|
|
1903
1908
|
classes: x
|
|
1904
1909
|
}) => {
|
|
1905
|
-
const m = /* @__PURE__ */ o.jsxs("div", { className:
|
|
1906
|
-
|
|
1907
|
-
/* @__PURE__ */ o.jsx(
|
|
1908
|
-
|
|
1910
|
+
const m = /* @__PURE__ */ o.jsxs("div", { className: d(wn({ columnsVariant: r }), x == null ? void 0 : x.wrapper), children: [
|
|
1911
|
+
a && /* @__PURE__ */ o.jsx(D, { as: "h4", className: d("mb-4 desktop:mb-6", x == null ? void 0 : x.headline), children: a }),
|
|
1912
|
+
/* @__PURE__ */ o.jsx(_n, { tableVariant: t, rows: i, headings: l, columnsVariant: r }),
|
|
1913
|
+
e && /* @__PURE__ */ o.jsx(
|
|
1909
1914
|
"div",
|
|
1910
1915
|
{
|
|
1911
|
-
className:
|
|
1912
|
-
dangerouslySetInnerHTML: { __html:
|
|
1916
|
+
className: d("mt-2 [&&]:desk-body-regular-m desktop:mt-2", x == null ? void 0 : x.description),
|
|
1917
|
+
dangerouslySetInnerHTML: { __html: e ?? "" }
|
|
1913
1918
|
}
|
|
1914
1919
|
)
|
|
1915
1920
|
] });
|
|
1916
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ o.jsx(
|
|
1917
|
-
},
|
|
1921
|
+
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 });
|
|
1922
|
+
}, Tn = {
|
|
1918
1923
|
documentFilled: "files/documentFilled",
|
|
1919
1924
|
documentOutline: "files/documentOutline"
|
|
1920
|
-
},
|
|
1925
|
+
}, Fn = R("size-8 transition-colors", {
|
|
1921
1926
|
variants: {
|
|
1922
1927
|
iconType: {
|
|
1923
1928
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1927,65 +1932,65 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1927
1932
|
defaultVariants: {
|
|
1928
1933
|
iconType: "documentOutline"
|
|
1929
1934
|
}
|
|
1930
|
-
}),
|
|
1935
|
+
}), Bn = ({ label: t, size: e, url: r, iconType: n, classes: i }) => /* @__PURE__ */ o.jsxs(
|
|
1931
1936
|
"a",
|
|
1932
1937
|
{
|
|
1933
1938
|
href: r,
|
|
1934
1939
|
target: "_blank",
|
|
1935
1940
|
rel: "noreferrer",
|
|
1936
1941
|
tabIndex: 0,
|
|
1937
|
-
className:
|
|
1942
|
+
className: d(
|
|
1938
1943
|
"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",
|
|
1939
1944
|
i == null ? void 0 : i.link
|
|
1940
1945
|
),
|
|
1941
1946
|
children: [
|
|
1942
|
-
/* @__PURE__ */ o.jsx(
|
|
1943
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1944
|
-
/* @__PURE__ */ o.jsx("p", { className:
|
|
1945
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1946
|
-
Number(
|
|
1947
|
+
/* @__PURE__ */ o.jsx(f, { name: Tn[n], className: d(Fn({ iconType: n }), i == null ? void 0 : i.icon) }),
|
|
1948
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1949
|
+
/* @__PURE__ */ o.jsx("p", { className: d("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
|
|
1950
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
1951
|
+
Number(e),
|
|
1947
1952
|
" КБ"
|
|
1948
1953
|
] })
|
|
1949
1954
|
] })
|
|
1950
1955
|
]
|
|
1951
1956
|
}
|
|
1952
|
-
),
|
|
1953
|
-
const u = /* @__PURE__ */ o.jsxs("div", { className:
|
|
1954
|
-
r && /* @__PURE__ */ o.jsx(
|
|
1955
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
1956
|
-
i && /* @__PURE__ */ o.jsx("div", { className:
|
|
1957
|
+
), En = ({ docs: t, config: e, title: r, iconType: n, description: i, classes: a, accordionConfig: l }) => {
|
|
1958
|
+
const u = /* @__PURE__ */ o.jsxs("div", { className: d("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
|
|
1959
|
+
r && /* @__PURE__ */ o.jsx(D, { as: "h3", className: "mb-4", children: r }),
|
|
1960
|
+
/* @__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(Bn, { iconType: n, ...x, classes: a == null ? void 0 : a.singleDocument }, x.label)) }),
|
|
1961
|
+
i && /* @__PURE__ */ o.jsx("div", { className: d("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1957
1962
|
] });
|
|
1958
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
1959
|
-
},
|
|
1960
|
-
var n, i,
|
|
1963
|
+
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 });
|
|
1964
|
+
}, Pn = ({ entity: t, classes: e, accordionsConfig: r }) => {
|
|
1965
|
+
var n, i, a;
|
|
1961
1966
|
switch (!0) {
|
|
1962
|
-
case
|
|
1963
|
-
return (n =
|
|
1967
|
+
case gn(t):
|
|
1968
|
+
return (n = t.details) == null ? void 0 : n.map((l, u) => {
|
|
1964
1969
|
var x;
|
|
1965
|
-
return /* @__PURE__ */ o.jsx(
|
|
1970
|
+
return /* @__PURE__ */ o.jsx(yn, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (x = e == null ? void 0 : e.entities) == null ? void 0 : x.html }, u);
|
|
1966
1971
|
});
|
|
1967
|
-
case
|
|
1968
|
-
return (i =
|
|
1972
|
+
case bn(t):
|
|
1973
|
+
return (i = t.details) == null ? void 0 : i.map((l, u) => {
|
|
1969
1974
|
var x;
|
|
1970
1975
|
return /* @__PURE__ */ o.jsx(
|
|
1971
|
-
|
|
1976
|
+
En,
|
|
1972
1977
|
{
|
|
1973
1978
|
accordionConfig: r == null ? void 0 : r.documentAccordion,
|
|
1974
1979
|
...l,
|
|
1975
|
-
classes: (x =
|
|
1980
|
+
classes: (x = e == null ? void 0 : e.entities) == null ? void 0 : x.documents
|
|
1976
1981
|
},
|
|
1977
1982
|
u
|
|
1978
1983
|
);
|
|
1979
1984
|
});
|
|
1980
|
-
case
|
|
1981
|
-
return (
|
|
1985
|
+
case jn(t):
|
|
1986
|
+
return (a = t.details) == null ? void 0 : a.map((l, u) => {
|
|
1982
1987
|
var x;
|
|
1983
1988
|
return /* @__PURE__ */ o.jsx(
|
|
1984
|
-
|
|
1989
|
+
On,
|
|
1985
1990
|
{
|
|
1986
1991
|
accordionConfig: r == null ? void 0 : r.tableAccordion,
|
|
1987
1992
|
...l,
|
|
1988
|
-
classes: (x =
|
|
1993
|
+
classes: (x = e == null ? void 0 : e.entities) == null ? void 0 : x.table
|
|
1989
1994
|
},
|
|
1990
1995
|
u
|
|
1991
1996
|
);
|
|
@@ -1993,27 +1998,27 @@ const gr = B(() => Promise.resolve().then(() => Qr)), br = B(() => Promise.resol
|
|
|
1993
1998
|
default:
|
|
1994
1999
|
return null;
|
|
1995
2000
|
}
|
|
1996
|
-
},
|
|
2001
|
+
}, Dn = ({ entity: t, classes: e, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Pn({ entity: t, classes: e, accordionsConfig: r }) }), mt = ({ headline: t, tabs: e, classes: r, accordionsConfig: n }) => {
|
|
1997
2002
|
var u, x;
|
|
1998
|
-
const [i,
|
|
1999
|
-
return !
|
|
2000
|
-
/* @__PURE__ */ o.jsx(
|
|
2001
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
2002
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
2003
|
+
const [i, a] = O(0), l = ge(() => e == null ? void 0 : e.map((m) => m == null ? void 0 : m.tabName), [e]) ?? [];
|
|
2004
|
+
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: [
|
|
2005
|
+
/* @__PURE__ */ o.jsx(D, { className: d(r == null ? void 0 : r.headline), as: "h2", children: t }),
|
|
2006
|
+
/* @__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(fn, { tabsNames: l, activeTab: i, setActiveTab: a, classes: r == null ? void 0 : r.tabs }) }),
|
|
2007
|
+
/* @__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(Dn, { accordionsConfig: n, ...m, classes: r == null ? void 0 : r.entityClasses }, p)) })
|
|
2003
2008
|
] }) });
|
|
2004
|
-
},
|
|
2009
|
+
}, Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2005
2010
|
__proto__: null,
|
|
2006
|
-
UsefulInfo:
|
|
2007
|
-
default:
|
|
2008
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2009
|
-
const i =
|
|
2010
|
-
return /* @__PURE__ */
|
|
2011
|
+
UsefulInfo: mt,
|
|
2012
|
+
default: mt
|
|
2013
|
+
}, Symbol.toStringTag, { value: "Module" })), Qe = ({ fields: t, control: e }) => t.map(({ type: r, args: n }) => {
|
|
2014
|
+
const i = Re[r];
|
|
2015
|
+
return /* @__PURE__ */ Ie(i, { ...n, key: n.name, control: e });
|
|
2011
2016
|
});
|
|
2012
|
-
class
|
|
2013
|
-
constructor(
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
this.options =
|
|
2017
|
+
class sn {
|
|
2018
|
+
constructor(e) {
|
|
2019
|
+
Fe(this, "TEXT_NODE", 3);
|
|
2020
|
+
Fe(this, "ELEMENT_NODE", 1);
|
|
2021
|
+
this.options = e;
|
|
2017
2022
|
}
|
|
2018
2023
|
/**
|
|
2019
2024
|
* Рекурсивно обходит DOM дерево и собирает данные в зависимости от опций.
|
|
@@ -2021,12 +2026,12 @@ class Dn {
|
|
|
2021
2026
|
* @param elements Массив для сбора элементов
|
|
2022
2027
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
2023
2028
|
*/
|
|
2024
|
-
traverse(
|
|
2025
|
-
const { includeSolidText: i, recursive:
|
|
2026
|
-
switch (
|
|
2029
|
+
traverse(e, r = "string", n) {
|
|
2030
|
+
const { includeSolidText: i, recursive: a, element: l } = this.options || {};
|
|
2031
|
+
switch (e.nodeType) {
|
|
2027
2032
|
// если узел - элемент
|
|
2028
2033
|
case this.ELEMENT_NODE:
|
|
2029
|
-
const u =
|
|
2034
|
+
const u = e, x = u.tagName.toLowerCase();
|
|
2030
2035
|
if (x === "script") {
|
|
2031
2036
|
console.warn("Found script node. For better security this node will be skipped.");
|
|
2032
2037
|
break;
|
|
@@ -2034,13 +2039,13 @@ class Dn {
|
|
|
2034
2039
|
if (l && x !== l)
|
|
2035
2040
|
break;
|
|
2036
2041
|
if (r === "node")
|
|
2037
|
-
n.push(
|
|
2042
|
+
n.push(e);
|
|
2038
2043
|
else {
|
|
2039
2044
|
const m = u.outerHTML.trim();
|
|
2040
2045
|
n.push(m);
|
|
2041
2046
|
}
|
|
2042
|
-
if (
|
|
2043
|
-
for (const m of
|
|
2047
|
+
if (a)
|
|
2048
|
+
for (const m of e.childNodes)
|
|
2044
2049
|
this.traverse(m, r, n);
|
|
2045
2050
|
break;
|
|
2046
2051
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
@@ -2048,9 +2053,9 @@ class Dn {
|
|
|
2048
2053
|
if (!i)
|
|
2049
2054
|
break;
|
|
2050
2055
|
if (r === "node")
|
|
2051
|
-
n.push(
|
|
2056
|
+
n.push(e);
|
|
2052
2057
|
else {
|
|
2053
|
-
const m =
|
|
2058
|
+
const m = e.textContent;
|
|
2054
2059
|
m && n.push(m);
|
|
2055
2060
|
}
|
|
2056
2061
|
break;
|
|
@@ -2062,94 +2067,94 @@ class Dn {
|
|
|
2062
2067
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
2063
2068
|
* @returns Массив тегов или нод
|
|
2064
2069
|
*/
|
|
2065
|
-
async parse(
|
|
2066
|
-
const { includeBody: n } = this.options || {}, i = [],
|
|
2070
|
+
async parse(e, r = "string") {
|
|
2071
|
+
const { includeBody: n } = this.options || {}, i = [], a = [], l = await this.parseFromString(e), u = r === "string" ? i : a;
|
|
2067
2072
|
if (n)
|
|
2068
2073
|
this.traverse(l.body, r, u);
|
|
2069
2074
|
else
|
|
2070
2075
|
for (const x of l.body.childNodes)
|
|
2071
2076
|
this.traverse(x, r, u);
|
|
2072
|
-
return { stringNodes: i, nodes:
|
|
2077
|
+
return { stringNodes: i, nodes: a };
|
|
2073
2078
|
}
|
|
2074
2079
|
/**
|
|
2075
2080
|
* Считает количество указанных тегов в HTML строке.
|
|
2076
2081
|
* @param html HTML строка
|
|
2077
2082
|
* @returns Количество найденных тегов
|
|
2078
2083
|
*/
|
|
2079
|
-
async countElements(
|
|
2080
|
-
const { stringNodes: r } = await this.parse(
|
|
2084
|
+
async countElements(e) {
|
|
2085
|
+
const { stringNodes: r } = await this.parse(e, "string");
|
|
2081
2086
|
return r.length;
|
|
2082
2087
|
}
|
|
2083
2088
|
}
|
|
2084
2089
|
const Hn = typeof window < "u";
|
|
2085
|
-
class
|
|
2086
|
-
constructor(
|
|
2087
|
-
super(
|
|
2090
|
+
class ti extends sn {
|
|
2091
|
+
constructor(e) {
|
|
2092
|
+
super(e);
|
|
2088
2093
|
}
|
|
2089
|
-
async parseFromString(
|
|
2090
|
-
return Hn ? new DOMParser().parseFromString(
|
|
2094
|
+
async parseFromString(e) {
|
|
2095
|
+
return Hn ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
|
|
2091
2096
|
}
|
|
2092
2097
|
}
|
|
2093
|
-
const
|
|
2094
|
-
const n =
|
|
2095
|
-
return /* @__PURE__ */ o.jsx(n, { dangerouslySetInnerHTML: { __html:
|
|
2096
|
-
},
|
|
2098
|
+
const ae = ({ html: t, as: e, ...r }) => {
|
|
2099
|
+
const n = e ?? "div";
|
|
2100
|
+
return /* @__PURE__ */ o.jsx(n, { dangerouslySetInnerHTML: { __html: t }, ...r });
|
|
2101
|
+
}, zn = (t, e) => t.enabled ? e.map((r) => ({
|
|
2097
2102
|
name: r.args.name,
|
|
2098
2103
|
...r.args.progress
|
|
2099
|
-
})) : null,
|
|
2100
|
-
const n = e
|
|
2104
|
+
})) : null, Ln = ["getFioSchema"], Ot = (t, e, r) => {
|
|
2105
|
+
const n = t[e];
|
|
2101
2106
|
if (_.isNil(n))
|
|
2102
|
-
throw new Error(`validation for type ${String(
|
|
2107
|
+
throw new Error(`validation for type ${String(e)} not found`);
|
|
2103
2108
|
if (!_.isFunction(n))
|
|
2104
|
-
throw new Error(`Cannot generate ${String(
|
|
2109
|
+
throw new Error(`Cannot generate ${String(e)} because is not a function`);
|
|
2105
2110
|
return n(r);
|
|
2106
|
-
},
|
|
2107
|
-
const r = ((
|
|
2108
|
-
const
|
|
2111
|
+
}, Qn = (t, e) => Ot(ze.base, t, e), Vn = (t, e) => Ot(ze.dadata, t, e), Ve = (t) => {
|
|
2112
|
+
const r = ((t == null ? void 0 : t.map((n) => ({ name: n.args.name, validation: n.args.validation }))) ?? []).reduce((n, i) => {
|
|
2113
|
+
const a = Ln.includes(i.validation.type) ? Vn(
|
|
2109
2114
|
i.validation.type,
|
|
2110
2115
|
i.validation.args
|
|
2111
|
-
) :
|
|
2116
|
+
) : Qn(
|
|
2112
2117
|
i.validation.type,
|
|
2113
2118
|
i.validation.args
|
|
2114
2119
|
);
|
|
2115
|
-
return n[i.name] =
|
|
2120
|
+
return n[i.name] = a, n;
|
|
2116
2121
|
}, {});
|
|
2117
|
-
return
|
|
2118
|
-
},
|
|
2122
|
+
return Le(r);
|
|
2123
|
+
}, $n = new br(), Tt = ({ children: t }) => /* @__PURE__ */ o.jsx(Xt, { client: $n, children: t }), Wn = (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(
|
|
2119
2124
|
"label",
|
|
2120
2125
|
{
|
|
2121
|
-
className:
|
|
2126
|
+
className: d(
|
|
2122
2127
|
"mob-body-regular-s text-color-dark",
|
|
2123
2128
|
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
2124
2129
|
"flex items-center justify-items-start gap-x-3"
|
|
2125
2130
|
),
|
|
2126
2131
|
children: [
|
|
2127
|
-
/* @__PURE__ */ o.jsx(
|
|
2128
|
-
/* @__PURE__ */ o.jsx(
|
|
2132
|
+
/* @__PURE__ */ o.jsx(Se.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: e, onCheckedChange: r }),
|
|
2133
|
+
/* @__PURE__ */ o.jsx(ae, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2129
2134
|
]
|
|
2130
2135
|
}
|
|
2131
|
-
),
|
|
2132
|
-
fields:
|
|
2133
|
-
title:
|
|
2136
|
+
), xt = ({
|
|
2137
|
+
fields: t,
|
|
2138
|
+
title: e,
|
|
2134
2139
|
progress: r,
|
|
2135
2140
|
approvement: n,
|
|
2136
2141
|
chips: i,
|
|
2137
|
-
submitProps:
|
|
2142
|
+
submitProps: a,
|
|
2138
2143
|
classes: l,
|
|
2139
2144
|
buttonGroup: u
|
|
2140
2145
|
}) => {
|
|
2141
|
-
var
|
|
2142
|
-
const { submitCallback: x } =
|
|
2143
|
-
schema:
|
|
2144
|
-
defaultValues:
|
|
2146
|
+
var H, v;
|
|
2147
|
+
const { submitCallback: x } = a || {}, [m, p] = O(!1), c = Ve(t), S = Te.getZodDefaults(c), { control: y, handleSubmit: B } = _e({
|
|
2148
|
+
schema: c,
|
|
2149
|
+
defaultValues: S,
|
|
2145
2150
|
mode: "onBlur"
|
|
2146
|
-
}), k =
|
|
2151
|
+
}), k = zn(r, t), I = ur({ control: y, fields: k || [], schema: c }), P = (C) => {
|
|
2147
2152
|
x && x({ ...C, agree: m });
|
|
2148
2153
|
};
|
|
2149
|
-
return /* @__PURE__ */ o.jsx(
|
|
2150
|
-
|
|
2154
|
+
return /* @__PURE__ */ o.jsx(Tt, { 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(
|
|
2155
|
+
F,
|
|
2151
2156
|
{
|
|
2152
|
-
className:
|
|
2157
|
+
className: d(
|
|
2153
2158
|
"!max-w-[636px] border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2154
2159
|
"relative mx-auto flex flex-col gap-6 rounded-sm py-8 desktop:border"
|
|
2155
2160
|
),
|
|
@@ -2157,48 +2162,48 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2157
2162
|
i.enabled && /* @__PURE__ */ o.jsxs(
|
|
2158
2163
|
"div",
|
|
2159
2164
|
{
|
|
2160
|
-
className:
|
|
2165
|
+
className: d(
|
|
2161
2166
|
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
2162
2167
|
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
2163
2168
|
"right-4 top-4 w-max",
|
|
2164
|
-
(
|
|
2169
|
+
(H = l == null ? void 0 : l.chips) == null ? void 0 : H.root
|
|
2165
2170
|
),
|
|
2166
2171
|
children: [
|
|
2167
|
-
i.image && /* @__PURE__ */ o.jsx(
|
|
2172
|
+
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) }),
|
|
2168
2173
|
i.content
|
|
2169
2174
|
]
|
|
2170
2175
|
}
|
|
2171
2176
|
),
|
|
2172
|
-
/* @__PURE__ */ o.jsx(
|
|
2173
|
-
/* @__PURE__ */ o.jsx(
|
|
2177
|
+
/* @__PURE__ */ o.jsx(D, { as: "h2", className: d("desktop:hidden", l == null ? void 0 : l.title), children: e }),
|
|
2178
|
+
/* @__PURE__ */ o.jsx(D, { as: "h3", className: d("mobile:hidden", l == null ? void 0 : l.title), children: e }),
|
|
2174
2179
|
/* @__PURE__ */ o.jsxs(
|
|
2175
2180
|
"form",
|
|
2176
2181
|
{
|
|
2177
|
-
onSubmit:
|
|
2178
|
-
className:
|
|
2182
|
+
onSubmit: B(P),
|
|
2183
|
+
className: d("flex w-full flex-col gap-y-6", "desktop:gap-y-8", l == null ? void 0 : l.form),
|
|
2179
2184
|
children: [
|
|
2180
2185
|
r.enabled && /* @__PURE__ */ o.jsx(
|
|
2181
|
-
|
|
2186
|
+
Jt,
|
|
2182
2187
|
{
|
|
2183
|
-
progress:
|
|
2184
|
-
topContent: /* @__PURE__ */ o.jsx(
|
|
2185
|
-
bottomContent: /* @__PURE__ */ o.jsx(
|
|
2188
|
+
progress: I,
|
|
2189
|
+
topContent: /* @__PURE__ */ o.jsx(ae, { html: r.title }),
|
|
2190
|
+
bottomContent: /* @__PURE__ */ o.jsx(ae, { html: r.subtitle }),
|
|
2186
2191
|
maxPercent: r.maxPercent,
|
|
2187
2192
|
classes: l == null ? void 0 : l.progressBar
|
|
2188
2193
|
}
|
|
2189
2194
|
),
|
|
2190
|
-
/* @__PURE__ */ o.jsx(
|
|
2195
|
+
/* @__PURE__ */ o.jsx(Qe, { control: y, fields: t }),
|
|
2191
2196
|
/* @__PURE__ */ o.jsxs("div", { className: "mob-body-regular-m flex flex-col items-start justify-center gap-4", children: [
|
|
2192
|
-
|
|
2193
|
-
/* @__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,
|
|
2194
|
-
const
|
|
2195
|
-
return /* @__PURE__ */
|
|
2196
|
-
|
|
2197
|
+
Wn(n, m, p, l == null ? void 0 : l.approvement),
|
|
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, z) => {
|
|
2199
|
+
const Y = C.type === "submit" && n.type === "checkbox" ? !m : !1;
|
|
2200
|
+
return /* @__PURE__ */ Ie(
|
|
2201
|
+
pe,
|
|
2197
2202
|
{
|
|
2198
2203
|
...C,
|
|
2199
|
-
key:
|
|
2200
|
-
disabled:
|
|
2201
|
-
className:
|
|
2204
|
+
key: z,
|
|
2205
|
+
disabled: Y,
|
|
2206
|
+
className: d(
|
|
2202
2207
|
"w-full whitespace-nowrap",
|
|
2203
2208
|
{
|
|
2204
2209
|
"w-full": !!n
|
|
@@ -2215,70 +2220,70 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2215
2220
|
]
|
|
2216
2221
|
}
|
|
2217
2222
|
) }) });
|
|
2218
|
-
},
|
|
2223
|
+
}, An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2219
2224
|
__proto__: null,
|
|
2220
|
-
DynamicForm:
|
|
2221
|
-
default:
|
|
2222
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2225
|
+
DynamicForm: xt,
|
|
2226
|
+
default: xt
|
|
2227
|
+
}, Symbol.toStringTag, { value: "Module" })), qn = (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(
|
|
2223
2228
|
"label",
|
|
2224
2229
|
{
|
|
2225
|
-
className:
|
|
2230
|
+
className: d(
|
|
2226
2231
|
"mob-body-regular-s text-color-dark",
|
|
2227
2232
|
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
2228
2233
|
"flex items-center justify-items-start gap-x-3"
|
|
2229
2234
|
),
|
|
2230
2235
|
children: [
|
|
2231
|
-
/* @__PURE__ */ o.jsx(
|
|
2232
|
-
/* @__PURE__ */ o.jsx(
|
|
2236
|
+
/* @__PURE__ */ o.jsx(Se.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: e, onCheckedChange: r }),
|
|
2237
|
+
/* @__PURE__ */ o.jsx(ae, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2233
2238
|
]
|
|
2234
2239
|
}
|
|
2235
|
-
),
|
|
2236
|
-
fields:
|
|
2237
|
-
title:
|
|
2240
|
+
), ht = ({
|
|
2241
|
+
fields: t,
|
|
2242
|
+
title: e,
|
|
2238
2243
|
approvement: r,
|
|
2239
2244
|
submitProps: n,
|
|
2240
2245
|
dialogId: i,
|
|
2241
|
-
classes:
|
|
2246
|
+
classes: a,
|
|
2242
2247
|
buttonGroup: l,
|
|
2243
2248
|
...u
|
|
2244
2249
|
}) => {
|
|
2245
|
-
const { submitCallback: x } = n ?? {}, [m, p] =
|
|
2246
|
-
schema:
|
|
2247
|
-
defaultValues:
|
|
2250
|
+
const { submitCallback: x } = n ?? {}, [m, p] = O(!1), c = Ve(t), S = Te.getZodDefaults(c), { control: y, handleSubmit: B } = _e({
|
|
2251
|
+
schema: c,
|
|
2252
|
+
defaultValues: S,
|
|
2248
2253
|
mode: "onBlur"
|
|
2249
|
-
}), k = (
|
|
2250
|
-
x && x({ ...
|
|
2254
|
+
}), k = (I) => {
|
|
2255
|
+
x && x({ ...I, agree: m });
|
|
2251
2256
|
};
|
|
2252
|
-
return /* @__PURE__ */ o.jsx(
|
|
2253
|
-
/* @__PURE__ */ o.jsx(
|
|
2254
|
-
|
|
2255
|
-
l == null ? void 0 : l.map((
|
|
2256
|
-
const
|
|
2257
|
-
return /* @__PURE__ */
|
|
2258
|
-
|
|
2257
|
+
return /* @__PURE__ */ o.jsx(Tt, { children: /* @__PURE__ */ o.jsx(Gt, { id: i, title: e, ...u, children: /* @__PURE__ */ o.jsxs("form", { onSubmit: B(k), className: "flex flex-col gap-6", children: [
|
|
2258
|
+
/* @__PURE__ */ o.jsx(Qe, { control: y, fields: t }),
|
|
2259
|
+
qn(r, m, p, a == null ? void 0 : a.approvement),
|
|
2260
|
+
l == null ? void 0 : l.map((I, P) => {
|
|
2261
|
+
const H = I.type === "submit" && r.type === "checkbox" ? !m : !1;
|
|
2262
|
+
return /* @__PURE__ */ Ie(
|
|
2263
|
+
pe,
|
|
2259
2264
|
{
|
|
2260
|
-
...
|
|
2261
|
-
key:
|
|
2262
|
-
disabled:
|
|
2263
|
-
className:
|
|
2265
|
+
...I,
|
|
2266
|
+
key: P,
|
|
2267
|
+
disabled: H,
|
|
2268
|
+
className: d(
|
|
2264
2269
|
"w-full whitespace-nowrap",
|
|
2265
2270
|
{
|
|
2266
2271
|
"w-full": !!r
|
|
2267
2272
|
},
|
|
2268
|
-
|
|
2273
|
+
a == null ? void 0 : a.submit
|
|
2269
2274
|
)
|
|
2270
2275
|
}
|
|
2271
2276
|
);
|
|
2272
2277
|
})
|
|
2273
2278
|
] }) }) });
|
|
2274
|
-
},
|
|
2279
|
+
}, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2275
2280
|
__proto__: null,
|
|
2276
|
-
DynamicFormDialog:
|
|
2277
|
-
default:
|
|
2278
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2281
|
+
DynamicFormDialog: ht,
|
|
2282
|
+
default: ht
|
|
2283
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = () => ({
|
|
2279
2284
|
approve: {
|
|
2280
2285
|
icon: {
|
|
2281
|
-
element: /* @__PURE__ */ o.jsx(
|
|
2286
|
+
element: /* @__PURE__ */ o.jsx(f, { name: "status/iconMark" }),
|
|
2282
2287
|
bg: "bg-color-positive-light"
|
|
2283
2288
|
},
|
|
2284
2289
|
title: "Ваша заявка отправлена",
|
|
@@ -2293,7 +2298,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2293
2298
|
},
|
|
2294
2299
|
repeated: {
|
|
2295
2300
|
icon: {
|
|
2296
|
-
element: /* @__PURE__ */ o.jsx(
|
|
2301
|
+
element: /* @__PURE__ */ o.jsx(f, { name: "status/iconUser" }),
|
|
2297
2302
|
bg: "bg-color-positive-light"
|
|
2298
2303
|
},
|
|
2299
2304
|
title: "Мы вас узнали",
|
|
@@ -2308,7 +2313,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2308
2313
|
},
|
|
2309
2314
|
error: {
|
|
2310
2315
|
icon: {
|
|
2311
|
-
element: /* @__PURE__ */ o.jsx(
|
|
2316
|
+
element: /* @__PURE__ */ o.jsx(f, { name: "status/iconRetry" }),
|
|
2312
2317
|
bg: "bg-color-warning-light"
|
|
2313
2318
|
},
|
|
2314
2319
|
title: "Что-то пошло не так",
|
|
@@ -2323,7 +2328,7 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2323
2328
|
},
|
|
2324
2329
|
reject: {
|
|
2325
2330
|
icon: {
|
|
2326
|
-
element: /* @__PURE__ */ o.jsx(
|
|
2331
|
+
element: /* @__PURE__ */ o.jsx(f, { name: "status/badSmile" }),
|
|
2327
2332
|
bg: "bg-color-negative-light"
|
|
2328
2333
|
},
|
|
2329
2334
|
title: "Нам очень жаль",
|
|
@@ -2336,23 +2341,23 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2336
2341
|
text: "Вернуться на главную"
|
|
2337
2342
|
}
|
|
2338
2343
|
}
|
|
2339
|
-
}),
|
|
2344
|
+
}), ri = ({ 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: [
|
|
2340
2345
|
/* @__PURE__ */ o.jsx(
|
|
2341
2346
|
"span",
|
|
2342
2347
|
{
|
|
2343
|
-
className:
|
|
2348
|
+
className: d(
|
|
2344
2349
|
"flex size-16 items-center justify-center rounded-full bg-color-positive-light",
|
|
2345
|
-
`${
|
|
2350
|
+
`${ue()[t].icon.bg}`
|
|
2346
2351
|
),
|
|
2347
|
-
children:
|
|
2352
|
+
children: ue()[t].icon.element
|
|
2348
2353
|
}
|
|
2349
2354
|
),
|
|
2350
2355
|
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
|
|
2351
|
-
/* @__PURE__ */ o.jsx(
|
|
2352
|
-
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children:
|
|
2356
|
+
/* @__PURE__ */ o.jsx(D, { as: "h2", children: ue()[t].title }),
|
|
2357
|
+
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: ue()[t].description })
|
|
2353
2358
|
] }),
|
|
2354
|
-
/* @__PURE__ */ o.jsx(
|
|
2355
|
-
] }) }) }),
|
|
2359
|
+
/* @__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 })
|
|
2360
|
+
] }) }) }), Ft = ({ breadcrumb: t, className: e, ...r }) => /* @__PURE__ */ o.jsx("a", { href: t.path, className: d("desk-body-regular-m", e), ...r, children: t.label }), Kn = [
|
|
2356
2361
|
{
|
|
2357
2362
|
label: "Главная",
|
|
2358
2363
|
path: "https://sovcombank.ru/apply/credit/kredit-na-kartu/"
|
|
@@ -2365,52 +2370,52 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2365
2370
|
label: "В Тольятти",
|
|
2366
2371
|
disabled: !0
|
|
2367
2372
|
}
|
|
2368
|
-
],
|
|
2369
|
-
const l =
|
|
2373
|
+
], we = (t, e, r, n) => t.map((i, a) => {
|
|
2374
|
+
const l = a === n;
|
|
2370
2375
|
return /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
2371
2376
|
/* @__PURE__ */ o.jsx(
|
|
2372
|
-
|
|
2377
|
+
Ft,
|
|
2373
2378
|
{
|
|
2374
2379
|
breadcrumb: i,
|
|
2375
|
-
className:
|
|
2380
|
+
className: d(r, {
|
|
2376
2381
|
"pointer-events-none text-color-primary-disabled": l,
|
|
2377
2382
|
"text-color-blue-grey-600": i.disabled
|
|
2378
2383
|
})
|
|
2379
2384
|
}
|
|
2380
2385
|
),
|
|
2381
|
-
|
|
2386
|
+
a !== t.length - 1 && e
|
|
2382
2387
|
] }, i.label);
|
|
2383
|
-
}),
|
|
2384
|
-
const [i,
|
|
2385
|
-
dr(l, () =>
|
|
2386
|
-
const { first: u, middle: x, last: m } =
|
|
2387
|
-
let
|
|
2388
|
-
return
|
|
2389
|
-
}, [n,
|
|
2388
|
+
}), Zn = ({ separator: t, ellipsis: e, classes: r, breadcrumbs: n = Kn }) => {
|
|
2389
|
+
const [i, a] = O(!1), l = He(null);
|
|
2390
|
+
dr(l, () => a(!1));
|
|
2391
|
+
const { first: u, middle: x, last: m } = ge(() => {
|
|
2392
|
+
let c = [], S = [], y = [];
|
|
2393
|
+
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 };
|
|
2394
|
+
}, [n, e]), p = t ?? /* @__PURE__ */ o.jsx(f, { name: "arrows/arrowRight", className: d("size-4", r == null ? void 0 : r.separator) });
|
|
2390
2395
|
return /* @__PURE__ */ o.jsx(
|
|
2391
2396
|
"div",
|
|
2392
2397
|
{
|
|
2393
|
-
className:
|
|
2398
|
+
className: d(
|
|
2394
2399
|
"flex max-w-[840px] flex-wrap items-center",
|
|
2395
2400
|
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
2396
2401
|
r == null ? void 0 : r.root
|
|
2397
2402
|
),
|
|
2398
|
-
children:
|
|
2403
|
+
children: e ? (
|
|
2399
2404
|
// if ellipsis provided, render hidden breadcrumbs
|
|
2400
|
-
/* @__PURE__ */ o.jsx(o.Fragment, { children: n.length >
|
|
2405
|
+
/* @__PURE__ */ o.jsx(o.Fragment, { children: n.length > e * 2 + 1 ? (
|
|
2401
2406
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2402
2407
|
// render hidden breadcrumbs
|
|
2403
2408
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2404
|
-
|
|
2409
|
+
we(u, p, r == null ? void 0 : r.breadcrumb),
|
|
2405
2410
|
p,
|
|
2406
2411
|
x.length > 0 && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2407
2412
|
/* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
|
|
2408
|
-
/* @__PURE__ */ o.jsx("button", { onClick: () =>
|
|
2413
|
+
/* @__PURE__ */ o.jsx("button", { onClick: () => a(!0), children: "..." }),
|
|
2409
2414
|
/* @__PURE__ */ o.jsx(
|
|
2410
2415
|
"ul",
|
|
2411
2416
|
{
|
|
2412
2417
|
ref: l,
|
|
2413
|
-
className:
|
|
2418
|
+
className: d(
|
|
2414
2419
|
"invisible absolute max-h-[264px] overflow-y-auto",
|
|
2415
2420
|
"w-[280px] rounded-sm bg-color-white",
|
|
2416
2421
|
"customScrollbar-y p-1 opacity-0 shadow-sm",
|
|
@@ -2418,85 +2423,85 @@ const dt = ({ html: e, as: t, ...r }) => {
|
|
|
2418
2423
|
"visible opacity-100": i
|
|
2419
2424
|
}
|
|
2420
2425
|
),
|
|
2421
|
-
children: x.map((
|
|
2422
|
-
|
|
2426
|
+
children: x.map((c) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
2427
|
+
Ft,
|
|
2423
2428
|
{
|
|
2424
|
-
breadcrumb:
|
|
2425
|
-
className:
|
|
2429
|
+
breadcrumb: c,
|
|
2430
|
+
className: d(
|
|
2426
2431
|
"desk-body-regular-l inline-block py-3",
|
|
2427
2432
|
"w-full rounded-sm bg-color-white px-2",
|
|
2428
2433
|
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
2429
2434
|
r == null ? void 0 : r.breadcrumb
|
|
2430
2435
|
)
|
|
2431
2436
|
}
|
|
2432
|
-
) },
|
|
2437
|
+
) }, c.label))
|
|
2433
2438
|
}
|
|
2434
2439
|
)
|
|
2435
2440
|
] }),
|
|
2436
2441
|
p
|
|
2437
2442
|
] }),
|
|
2438
|
-
|
|
2443
|
+
we(m, p, r == null ? void 0 : r.breadcrumb, m.length - 1)
|
|
2439
2444
|
] })
|
|
2440
2445
|
) : (
|
|
2441
2446
|
// otherwise render all breadcrumbs
|
|
2442
|
-
|
|
2447
|
+
we(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
|
|
2443
2448
|
) })
|
|
2444
2449
|
) : (
|
|
2445
2450
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2446
|
-
|
|
2451
|
+
we(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
|
|
2447
2452
|
)
|
|
2448
2453
|
}
|
|
2449
2454
|
);
|
|
2450
2455
|
};
|
|
2451
|
-
var
|
|
2452
|
-
const
|
|
2453
|
-
switch (
|
|
2454
|
-
case
|
|
2456
|
+
var xe = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(xe || {});
|
|
2457
|
+
const Yn = (t, e) => {
|
|
2458
|
+
switch (e.type) {
|
|
2459
|
+
case xe.ROOT:
|
|
2455
2460
|
return {
|
|
2456
|
-
...
|
|
2457
|
-
root:
|
|
2461
|
+
...t,
|
|
2462
|
+
root: e.payload
|
|
2458
2463
|
};
|
|
2459
|
-
case
|
|
2464
|
+
case xe.CURRENT:
|
|
2460
2465
|
return {
|
|
2461
|
-
...
|
|
2462
|
-
current:
|
|
2466
|
+
...t,
|
|
2467
|
+
current: e.payload
|
|
2463
2468
|
};
|
|
2464
2469
|
default:
|
|
2465
|
-
return
|
|
2470
|
+
return t;
|
|
2466
2471
|
}
|
|
2467
|
-
},
|
|
2468
|
-
const [
|
|
2469
|
-
return [
|
|
2470
|
-
},
|
|
2471
|
-
type:
|
|
2472
|
-
payload:
|
|
2473
|
-
}),
|
|
2474
|
-
type:
|
|
2475
|
-
payload:
|
|
2476
|
-
}),
|
|
2472
|
+
}, Xn = (t) => {
|
|
2473
|
+
const [e, r] = rr(Yn, t);
|
|
2474
|
+
return [e, r];
|
|
2475
|
+
}, Jn = (t) => ({
|
|
2476
|
+
type: xe.CURRENT,
|
|
2477
|
+
payload: t
|
|
2478
|
+
}), Gn = (t) => ({
|
|
2479
|
+
type: xe.ROOT,
|
|
2480
|
+
payload: t
|
|
2481
|
+
}), eo = ({ categories: t, ...e }) => {
|
|
2477
2482
|
var r, n;
|
|
2478
|
-
return
|
|
2483
|
+
return St(
|
|
2479
2484
|
/* @__PURE__ */ o.jsx(
|
|
2480
|
-
|
|
2485
|
+
se.div,
|
|
2481
2486
|
{
|
|
2482
|
-
...
|
|
2487
|
+
...e,
|
|
2483
2488
|
layout: !0,
|
|
2484
2489
|
initial: { opacity: 0 },
|
|
2485
2490
|
animate: { opacity: 1 },
|
|
2486
2491
|
transition: { duration: 0.2 },
|
|
2487
2492
|
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]',
|
|
2488
|
-
children: /* @__PURE__ */ o.jsx("div", { className: "mx-auto flex w-full max-w-[1140px] gap-x-[56px] py-10", children:
|
|
2493
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "mx-auto flex w-full max-w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
|
|
2489
2494
|
var l;
|
|
2490
|
-
const
|
|
2495
|
+
const a = i.link ? "a" : "p";
|
|
2491
2496
|
return /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
2492
2497
|
i.title && /* @__PURE__ */ o.jsxs(
|
|
2493
|
-
|
|
2498
|
+
a,
|
|
2494
2499
|
{
|
|
2495
2500
|
href: ((l = i.link) == null ? void 0 : l.href) ?? void 0,
|
|
2496
2501
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
2497
2502
|
children: [
|
|
2498
2503
|
i.title,
|
|
2499
|
-
/* @__PURE__ */ o.jsx(
|
|
2504
|
+
/* @__PURE__ */ o.jsx(f, { name: "arrows/arrowLink", className: "size-6" })
|
|
2500
2505
|
]
|
|
2501
2506
|
}
|
|
2502
2507
|
),
|
|
@@ -2513,14 +2518,14 @@ const Zn = (e, t) => {
|
|
|
2513
2518
|
*/
|
|
2514
2519
|
((n = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : n.body) ?? document.body
|
|
2515
2520
|
);
|
|
2516
|
-
},
|
|
2521
|
+
}, to = nr(({ category: t, active: e, onActiveTabChange: r }, n) => {
|
|
2517
2522
|
var x, m;
|
|
2518
|
-
const i = n && "current" in n ? n : null,
|
|
2523
|
+
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";
|
|
2519
2524
|
return /* @__PURE__ */ o.jsxs(
|
|
2520
|
-
|
|
2525
|
+
se.div,
|
|
2521
2526
|
{
|
|
2522
2527
|
ref: n,
|
|
2523
|
-
className:
|
|
2528
|
+
className: d(
|
|
2524
2529
|
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
2525
2530
|
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
2526
2531
|
"after:w-0 after:-translate-x-1/2 after:bg-color-primary-default after:duration-100",
|
|
@@ -2529,85 +2534,85 @@ const Zn = (e, t) => {
|
|
|
2529
2534
|
"after:w-full": l
|
|
2530
2535
|
}
|
|
2531
2536
|
),
|
|
2532
|
-
onMouseEnter: () => r(
|
|
2537
|
+
onMouseEnter: () => r(t.title),
|
|
2533
2538
|
onMouseLeave: () => r(null),
|
|
2534
|
-
onFocus: () => r(
|
|
2539
|
+
onFocus: () => r(t.title),
|
|
2535
2540
|
children: [
|
|
2536
|
-
/* @__PURE__ */ o.jsx(u, { href: u === "a" ? (m =
|
|
2541
|
+
/* @__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 }),
|
|
2537
2542
|
l && /* @__PURE__ */ o.jsx(
|
|
2538
|
-
|
|
2543
|
+
eo,
|
|
2539
2544
|
{
|
|
2540
|
-
categories:
|
|
2545
|
+
categories: t.children,
|
|
2541
2546
|
style: {
|
|
2542
|
-
top:
|
|
2547
|
+
top: a ? a.top + a.height : 0
|
|
2543
2548
|
}
|
|
2544
2549
|
}
|
|
2545
2550
|
)
|
|
2546
2551
|
]
|
|
2547
2552
|
}
|
|
2548
2553
|
);
|
|
2549
|
-
}),
|
|
2550
|
-
const [
|
|
2551
|
-
r(
|
|
2552
|
-
}, []), i =
|
|
2553
|
-
return /* @__PURE__ */ o.jsx(
|
|
2554
|
+
}), ro = fe(to), no = ({ categories: t }) => {
|
|
2555
|
+
const [e, r] = O(null), n = Ct((a) => {
|
|
2556
|
+
r(a);
|
|
2557
|
+
}, []), i = He(null);
|
|
2558
|
+
return /* @__PURE__ */ o.jsx(er, { mode: "sync", children: /* @__PURE__ */ o.jsxs(
|
|
2554
2559
|
"div",
|
|
2555
2560
|
{
|
|
2556
2561
|
ref: i,
|
|
2557
2562
|
id: "tabs",
|
|
2558
2563
|
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2559
2564
|
children: [
|
|
2560
|
-
|
|
2561
|
-
|
|
2565
|
+
t.map((a) => /* @__PURE__ */ o.jsx(
|
|
2566
|
+
ro,
|
|
2562
2567
|
{
|
|
2563
2568
|
ref: i,
|
|
2564
|
-
category:
|
|
2565
|
-
active:
|
|
2569
|
+
category: a,
|
|
2570
|
+
active: e === a.title,
|
|
2566
2571
|
onActiveTabChange: n
|
|
2567
2572
|
},
|
|
2568
|
-
|
|
2573
|
+
a.title
|
|
2569
2574
|
)),
|
|
2570
2575
|
/* @__PURE__ */ o.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
2571
2576
|
]
|
|
2572
2577
|
}
|
|
2573
2578
|
) });
|
|
2574
|
-
},
|
|
2575
|
-
category:
|
|
2576
|
-
selectedCategory:
|
|
2579
|
+
}, oo = fe(no), io = ({
|
|
2580
|
+
category: t,
|
|
2581
|
+
selectedCategory: e,
|
|
2577
2582
|
onCurrentCategoryChange: r,
|
|
2578
2583
|
onRootCategoryChange: n,
|
|
2579
2584
|
active: i,
|
|
2580
|
-
...
|
|
2585
|
+
...a
|
|
2581
2586
|
}) => /* @__PURE__ */ o.jsxs(
|
|
2582
2587
|
"div",
|
|
2583
2588
|
{
|
|
2584
|
-
...
|
|
2589
|
+
...a,
|
|
2585
2590
|
onClick: () => {
|
|
2586
|
-
r(
|
|
2591
|
+
r(t.children[0]), n(t);
|
|
2587
2592
|
},
|
|
2588
|
-
className:
|
|
2593
|
+
className: d("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2589
2594
|
"text-color-dark": i
|
|
2590
2595
|
}),
|
|
2591
2596
|
children: [
|
|
2592
|
-
/* @__PURE__ */ o.jsx("span", { className: "desk-body-regular-m", children:
|
|
2593
|
-
|
|
2597
|
+
/* @__PURE__ */ o.jsx("span", { className: "desk-body-regular-m", children: t.title }),
|
|
2598
|
+
t.children.length > 1 && /* @__PURE__ */ o.jsx(
|
|
2594
2599
|
"div",
|
|
2595
2600
|
{
|
|
2596
|
-
className:
|
|
2601
|
+
className: d(
|
|
2597
2602
|
"absolute right-0 top-full z-10 flex w-max flex-col",
|
|
2598
2603
|
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
2599
2604
|
"rounded-sm p-1"
|
|
2600
2605
|
),
|
|
2601
|
-
children:
|
|
2606
|
+
children: t.children.map((l) => /* @__PURE__ */ o.jsx(
|
|
2602
2607
|
"span",
|
|
2603
2608
|
{
|
|
2604
2609
|
onClick: (u) => {
|
|
2605
|
-
u.stopPropagation(), u.nativeEvent.stopPropagation(), n(
|
|
2610
|
+
u.stopPropagation(), u.nativeEvent.stopPropagation(), n(t), r(l);
|
|
2606
2611
|
},
|
|
2607
|
-
className:
|
|
2612
|
+
className: d(
|
|
2608
2613
|
"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",
|
|
2609
2614
|
{
|
|
2610
|
-
"text-color-primary-default":
|
|
2615
|
+
"text-color-primary-default": e.title === l.title
|
|
2611
2616
|
}
|
|
2612
2617
|
),
|
|
2613
2618
|
children: l.title
|
|
@@ -2618,37 +2623,37 @@ const Zn = (e, t) => {
|
|
|
2618
2623
|
)
|
|
2619
2624
|
]
|
|
2620
2625
|
}
|
|
2621
|
-
),
|
|
2622
|
-
const [n, i] =
|
|
2626
|
+
), ao = ({ categories: t, helpers: e, phone: r }) => {
|
|
2627
|
+
const [n, i] = Xn({ root: t[0].children[0], current: t[0].children[0] });
|
|
2623
2628
|
return /* @__PURE__ */ o.jsxs("div", { className: "mobile:hidden", children: [
|
|
2624
2629
|
/* @__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: [
|
|
2625
|
-
/* @__PURE__ */ o.jsx(
|
|
2626
|
-
|
|
2627
|
-
const l = n.root.title ===
|
|
2630
|
+
/* @__PURE__ */ o.jsx(f, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2631
|
+
t.map((a) => {
|
|
2632
|
+
const l = n.root.title === a.title;
|
|
2628
2633
|
return /* @__PURE__ */ o.jsx(
|
|
2629
|
-
|
|
2634
|
+
io,
|
|
2630
2635
|
{
|
|
2631
|
-
category:
|
|
2636
|
+
category: a,
|
|
2632
2637
|
selectedCategory: n.current,
|
|
2633
|
-
onCurrentCategoryChange: (u) => i(
|
|
2634
|
-
onRootCategoryChange: (u) => i(
|
|
2638
|
+
onCurrentCategoryChange: (u) => i(Jn(u)),
|
|
2639
|
+
onRootCategoryChange: (u) => i(Gn(u)),
|
|
2635
2640
|
active: l
|
|
2636
2641
|
},
|
|
2637
|
-
|
|
2642
|
+
a.title
|
|
2638
2643
|
);
|
|
2639
2644
|
}),
|
|
2640
2645
|
/* @__PURE__ */ o.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2641
|
-
|
|
2646
|
+
e.map((a) => /* @__PURE__ */ o.jsxs(
|
|
2642
2647
|
"a",
|
|
2643
2648
|
{
|
|
2644
|
-
href:
|
|
2649
|
+
href: a.link.href,
|
|
2645
2650
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2646
2651
|
children: [
|
|
2647
|
-
|
|
2648
|
-
|
|
2652
|
+
a.link.icon && /* @__PURE__ */ o.jsx(f, { name: a.link.icon, className: "size-4" }),
|
|
2653
|
+
a.title
|
|
2649
2654
|
]
|
|
2650
2655
|
},
|
|
2651
|
-
|
|
2656
|
+
a.title
|
|
2652
2657
|
)),
|
|
2653
2658
|
/* @__PURE__ */ o.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2654
2659
|
/* @__PURE__ */ o.jsx(
|
|
@@ -2656,68 +2661,68 @@ const Zn = (e, t) => {
|
|
|
2656
2661
|
{
|
|
2657
2662
|
href: `tel:${r}`,
|
|
2658
2663
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2659
|
-
children:
|
|
2664
|
+
children: Me(r, "x xxx xxx xx xx")
|
|
2660
2665
|
}
|
|
2661
2666
|
)
|
|
2662
2667
|
] }),
|
|
2663
|
-
/* @__PURE__ */ o.jsx(
|
|
2668
|
+
/* @__PURE__ */ o.jsx(oo, { categories: n.current.children })
|
|
2664
2669
|
] });
|
|
2665
|
-
},
|
|
2666
|
-
|
|
2670
|
+
}, lo = ({ category: t }) => /* @__PURE__ */ o.jsx(
|
|
2671
|
+
de,
|
|
2667
2672
|
{
|
|
2668
|
-
label:
|
|
2669
|
-
icon: /* @__PURE__ */ o.jsx(
|
|
2673
|
+
label: t.title ?? "",
|
|
2674
|
+
icon: /* @__PURE__ */ o.jsx(f, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
2670
2675
|
classes: {
|
|
2671
2676
|
root: "w-full",
|
|
2672
2677
|
header: {
|
|
2673
2678
|
trigger: "py-2 data-[open=false]:bg-color-white",
|
|
2674
2679
|
label: "desk-body-regular-m"
|
|
2675
2680
|
},
|
|
2676
|
-
content:
|
|
2681
|
+
content: d(
|
|
2677
2682
|
"relative",
|
|
2678
2683
|
'after:content-"" after:absolute after:w-[calc(100%-32px)]',
|
|
2679
2684
|
"after:bottom-0 after:left-1/2 after:-translate-x-1/2",
|
|
2680
2685
|
"after:h-[1px] after:bg-color-blue-grey-200"
|
|
2681
2686
|
)
|
|
2682
2687
|
},
|
|
2683
|
-
children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children:
|
|
2688
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: t.children.map((e) => {
|
|
2684
2689
|
var i;
|
|
2685
|
-
const r = !!
|
|
2690
|
+
const r = !!e.link, n = r ? "a" : "p";
|
|
2686
2691
|
return /* @__PURE__ */ o.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2687
2692
|
/* @__PURE__ */ o.jsxs(
|
|
2688
2693
|
n,
|
|
2689
2694
|
{
|
|
2690
|
-
href: r ? (i =
|
|
2695
|
+
href: r ? (i = e.link) == null ? void 0 : i.href : void 0,
|
|
2691
2696
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2692
2697
|
children: [
|
|
2693
|
-
|
|
2694
|
-
/* @__PURE__ */ o.jsx(
|
|
2698
|
+
e.title,
|
|
2699
|
+
/* @__PURE__ */ o.jsx(f, { name: "arrows/arrowLink" })
|
|
2695
2700
|
]
|
|
2696
2701
|
}
|
|
2697
2702
|
),
|
|
2698
|
-
|
|
2703
|
+
e.children.map((a) => {
|
|
2699
2704
|
var l;
|
|
2700
|
-
return /* @__PURE__ */ o.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ o.jsx("a", { href: (l =
|
|
2705
|
+
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);
|
|
2701
2706
|
})
|
|
2702
|
-
] },
|
|
2707
|
+
] }, e.title);
|
|
2703
2708
|
}) })
|
|
2704
2709
|
},
|
|
2705
|
-
|
|
2706
|
-
),
|
|
2707
|
-
value:
|
|
2708
|
-
label:
|
|
2709
|
-
})),
|
|
2710
|
-
const i =
|
|
2710
|
+
t.title
|
|
2711
|
+
), uo = (t) => t.map((e) => ({
|
|
2712
|
+
value: e.title ?? "",
|
|
2713
|
+
label: e.title ?? ""
|
|
2714
|
+
})), mo = ({ categories: t, helpers: e, phone: r, ...n }) => {
|
|
2715
|
+
const i = uo(t), [a, l] = O(i[0]), u = (m) => {
|
|
2711
2716
|
_.isUndefined(m) || _.isArray(m) || l(m);
|
|
2712
|
-
}, x =
|
|
2717
|
+
}, x = ge(() => {
|
|
2713
2718
|
var m;
|
|
2714
|
-
return _.isUndefined(
|
|
2715
|
-
}, [
|
|
2719
|
+
return _.isUndefined(a) || _.isArray(a) ? [] : ((m = t.find((p) => p.title === a.value)) == null ? void 0 : m.children) ?? [];
|
|
2720
|
+
}, [a, t]);
|
|
2716
2721
|
return /* @__PURE__ */ o.jsxs(
|
|
2717
|
-
|
|
2722
|
+
se.div,
|
|
2718
2723
|
{
|
|
2719
2724
|
...n,
|
|
2720
|
-
className:
|
|
2725
|
+
className: d(
|
|
2721
2726
|
"absolute z-10 w-full max-w-[calc(636px-32px)]",
|
|
2722
2727
|
"absolute left-1/2 top-full bg-color-white p-4",
|
|
2723
2728
|
"-translate-x-1/2 overflow-x-hidden",
|
|
@@ -2726,45 +2731,45 @@ const Zn = (e, t) => {
|
|
|
2726
2731
|
initial: { opacity: 0 },
|
|
2727
2732
|
animate: { opacity: 1 },
|
|
2728
2733
|
children: [
|
|
2729
|
-
/* @__PURE__ */ o.jsx(
|
|
2734
|
+
/* @__PURE__ */ o.jsx(Se.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
|
|
2730
2735
|
/* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: x.map((m) => {
|
|
2731
2736
|
var p;
|
|
2732
|
-
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(
|
|
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(lo, { category: m }, m.title);
|
|
2733
2738
|
}) }),
|
|
2734
2739
|
/* @__PURE__ */ o.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2735
2740
|
/* @__PURE__ */ o.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2736
|
-
|
|
2737
|
-
var p,
|
|
2741
|
+
e.map((m) => {
|
|
2742
|
+
var p, c;
|
|
2738
2743
|
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: [
|
|
2739
|
-
((
|
|
2744
|
+
((c = m.link) == null ? void 0 : c.icon) && /* @__PURE__ */ o.jsx(f, { name: m.link.icon, className: "size-4" }),
|
|
2740
2745
|
m.title
|
|
2741
2746
|
] }) }, m.title);
|
|
2742
2747
|
}),
|
|
2743
2748
|
/* @__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: [
|
|
2744
|
-
/* @__PURE__ */ o.jsx(
|
|
2745
|
-
|
|
2749
|
+
/* @__PURE__ */ o.jsx(f, { name: "communication/phone", className: "size-4" }),
|
|
2750
|
+
Me(r)
|
|
2746
2751
|
] }) })
|
|
2747
2752
|
] })
|
|
2748
2753
|
]
|
|
2749
2754
|
}
|
|
2750
2755
|
);
|
|
2751
|
-
},
|
|
2756
|
+
}, xo = ({ categories: t, helpers: e, phone: r }) => {
|
|
2752
2757
|
var x, m, p;
|
|
2753
|
-
const n =
|
|
2758
|
+
const n = He(null), i = (x = n.current) == null ? void 0 : x.getBoundingClientRect(), [a, l] = O(!1), u = () => l(!a);
|
|
2754
2759
|
return /* @__PURE__ */ o.jsxs(
|
|
2755
2760
|
"div",
|
|
2756
2761
|
{
|
|
2757
2762
|
ref: n,
|
|
2758
2763
|
className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4 desktop:hidden",
|
|
2759
2764
|
children: [
|
|
2760
|
-
/* @__PURE__ */ o.jsx(
|
|
2761
|
-
/* @__PURE__ */ o.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ o.jsx(
|
|
2762
|
-
|
|
2765
|
+
/* @__PURE__ */ o.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2766
|
+
/* @__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" }) }),
|
|
2767
|
+
a && St(
|
|
2763
2768
|
/* @__PURE__ */ o.jsx(
|
|
2764
|
-
|
|
2769
|
+
mo,
|
|
2765
2770
|
{
|
|
2766
|
-
categories:
|
|
2767
|
-
helpers:
|
|
2771
|
+
categories: t,
|
|
2772
|
+
helpers: e,
|
|
2768
2773
|
phone: r,
|
|
2769
2774
|
style: { top: i ? i.top + i.height : 0 }
|
|
2770
2775
|
}
|
|
@@ -2777,30 +2782,30 @@ const Zn = (e, t) => {
|
|
|
2777
2782
|
]
|
|
2778
2783
|
}
|
|
2779
2784
|
);
|
|
2780
|
-
},
|
|
2781
|
-
const { isMobile:
|
|
2782
|
-
return /* @__PURE__ */ o.jsx("div", { id: g.seoHeader, "data-test-id": g.seoHeader, className:
|
|
2783
|
-
/* @__PURE__ */ o.jsx(
|
|
2784
|
-
/* @__PURE__ */ o.jsx(
|
|
2785
|
+
}, pt = ({ categories: t, helpers: e, phone: r, breadcrumbs: n, classes: i }) => {
|
|
2786
|
+
const { isMobile: a } = le();
|
|
2787
|
+
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: [
|
|
2788
|
+
/* @__PURE__ */ o.jsx(xo, { categories: t.map((l) => l.children).flat(), helpers: e, phone: r }),
|
|
2789
|
+
/* @__PURE__ */ o.jsx(ao, { categories: t, helpers: e, phone: r }),
|
|
2785
2790
|
/* @__PURE__ */ o.jsx(
|
|
2786
|
-
|
|
2791
|
+
Zn,
|
|
2787
2792
|
{
|
|
2788
|
-
ellipsis:
|
|
2793
|
+
ellipsis: a ? 1 : void 0,
|
|
2789
2794
|
breadcrumbs: n,
|
|
2790
|
-
matcher: (l) => ({ label:
|
|
2795
|
+
matcher: (l) => ({ label: ir(l.label).split("-").join(" ") })
|
|
2791
2796
|
}
|
|
2792
2797
|
)
|
|
2793
2798
|
] }) });
|
|
2794
|
-
},
|
|
2799
|
+
}, ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2795
2800
|
__proto__: null,
|
|
2796
|
-
SeoHeader:
|
|
2797
|
-
default:
|
|
2798
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2799
|
-
let r =
|
|
2801
|
+
SeoHeader: pt,
|
|
2802
|
+
default: pt
|
|
2803
|
+
}, Symbol.toStringTag, { value: "Module" })), Bt = (t) => typeof t != "string" && "formula" in t, Et = (t, e) => {
|
|
2804
|
+
let r = e;
|
|
2800
2805
|
const n = {
|
|
2801
|
-
style:
|
|
2806
|
+
style: t
|
|
2802
2807
|
};
|
|
2803
|
-
switch (
|
|
2808
|
+
switch (t) {
|
|
2804
2809
|
case "currency":
|
|
2805
2810
|
n.currency = "RUB", n.minimumFractionDigits = 0, n.maximumFractionDigits = 0;
|
|
2806
2811
|
break;
|
|
@@ -2811,252 +2816,252 @@ const Zn = (e, t) => {
|
|
|
2811
2816
|
return null;
|
|
2812
2817
|
}
|
|
2813
2818
|
return new Intl.NumberFormat("ru-RU", n).format(r);
|
|
2814
|
-
},
|
|
2815
|
-
switch (
|
|
2819
|
+
}, po = (t, e) => {
|
|
2820
|
+
switch (t) {
|
|
2816
2821
|
case "text":
|
|
2817
|
-
return
|
|
2822
|
+
return e;
|
|
2818
2823
|
default:
|
|
2819
|
-
return
|
|
2824
|
+
return Et(t, Number(e));
|
|
2820
2825
|
}
|
|
2821
|
-
},
|
|
2822
|
-
const r = Object.entries(
|
|
2826
|
+
}, co = (t) => Object.values(t).reduce((r, n) => r.merge(Ve(n.fields)), Le({})), fo = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, Pt = (t, e) => {
|
|
2827
|
+
const r = Object.entries(e).map(([x, m]) => [x, _.isNil(m) ? "1" : m]), n = r.map(([x]) => x), i = r.map(([, x]) => x), a = fo(t, Object.fromEntries(r)), u = new Function(...n, `return ${a};`)(...i.map(Number));
|
|
2823
2828
|
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2824
|
-
},
|
|
2829
|
+
}, go = (t, e) => t.map((r) => ({
|
|
2825
2830
|
...r,
|
|
2826
|
-
value:
|
|
2827
|
-
})),
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
] }) }),
|
|
2831
|
-
/* @__PURE__ */ o.jsx("p", { className:
|
|
2832
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
2833
|
-
] }),
|
|
2831
|
+
value: Bt(r.value) ? Pt(r.value.formula, e) : r.value
|
|
2832
|
+
})), bo = ({ 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: [
|
|
2833
|
+
e && /* @__PURE__ */ o.jsx(D, { as: "h3", className: r == null ? void 0 : r.title, children: e }),
|
|
2834
|
+
t && /* @__PURE__ */ o.jsx("div", { className: d("desk-body-regular-l text-color-dark", r == null ? void 0 : r.subtitle), children: t })
|
|
2835
|
+
] }) }), jo = ({ 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: [
|
|
2836
|
+
/* @__PURE__ */ o.jsx("p", { className: d("desk-body-regular-l text-color-dark", n == null ? void 0 : n.description), children: t }),
|
|
2837
|
+
/* @__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: Et(r, Number(e)) })
|
|
2838
|
+
] }), yo = ({ 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: [
|
|
2834
2839
|
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2835
2840
|
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: r }),
|
|
2836
|
-
|
|
2837
|
-
|
|
2841
|
+
t && /* @__PURE__ */ o.jsx(
|
|
2842
|
+
Ce,
|
|
2838
2843
|
{
|
|
2839
2844
|
withCloseBtn: !1,
|
|
2840
|
-
triggerElement: /* @__PURE__ */ o.jsx(
|
|
2841
|
-
children: /* @__PURE__ */ o.jsx("p", { children:
|
|
2845
|
+
triggerElement: /* @__PURE__ */ o.jsx(f, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
2846
|
+
children: /* @__PURE__ */ o.jsx("p", { children: t })
|
|
2842
2847
|
}
|
|
2843
2848
|
)
|
|
2844
2849
|
] }),
|
|
2845
2850
|
/* @__PURE__ */ o.jsx(
|
|
2846
2851
|
"span",
|
|
2847
2852
|
{
|
|
2848
|
-
className:
|
|
2849
|
-
"[&&]:desk-title-bold-s":
|
|
2853
|
+
className: d("desk-body-medium-l text-color-dark", {
|
|
2854
|
+
"[&&]:desk-title-bold-s": a,
|
|
2850
2855
|
"text-color-primary-default": i === "blue"
|
|
2851
2856
|
}),
|
|
2852
|
-
children:
|
|
2857
|
+
children: po(n, e)
|
|
2853
2858
|
}
|
|
2854
2859
|
)
|
|
2855
|
-
] }),
|
|
2856
|
-
const { watch: r } =
|
|
2857
|
-
return /* @__PURE__ */ o.jsx("div", { className:
|
|
2858
|
-
},
|
|
2859
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
2860
|
-
/* @__PURE__ */ o.jsx(
|
|
2861
|
-
/* @__PURE__ */ o.jsx("p", { className:
|
|
2860
|
+
] }), ko = ({ infoList: t, classes: e }) => {
|
|
2861
|
+
const { watch: r } = Oe(), n = r(), i = go(t, n);
|
|
2862
|
+
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(yo, { ...a }, a.label)) });
|
|
2863
|
+
}, wo = ({ 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: [
|
|
2864
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex items-center gap-1", n == null ? void 0 : n.block), children: [
|
|
2865
|
+
/* @__PURE__ */ o.jsx(f, { name: t, className: d("size-6 text-icon-blue-grey-800", n == null ? void 0 : n.icon) }),
|
|
2866
|
+
/* @__PURE__ */ o.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", n == null ? void 0 : n.description), children: e })
|
|
2862
2867
|
] }),
|
|
2863
2868
|
r && /* @__PURE__ */ o.jsx(
|
|
2864
|
-
|
|
2869
|
+
Ce,
|
|
2865
2870
|
{
|
|
2866
2871
|
withCloseBtn: !1,
|
|
2867
|
-
triggerElement: /* @__PURE__ */ o.jsx(
|
|
2872
|
+
triggerElement: /* @__PURE__ */ o.jsx(f, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }),
|
|
2868
2873
|
...i,
|
|
2869
2874
|
children: r
|
|
2870
2875
|
}
|
|
2871
2876
|
)
|
|
2872
|
-
] }),
|
|
2873
|
-
|
|
2874
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
2875
|
-
r && /* @__PURE__ */ o.jsx("p", { className:
|
|
2876
|
-
] }),
|
|
2877
|
-
rootDescription:
|
|
2878
|
-
bottomDescription:
|
|
2877
|
+
] }), vo = ({ assistHint: t, buttonsConfig: e, bottomDescription: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { children: [
|
|
2878
|
+
t && /* @__PURE__ */ o.jsx(wo, { ...t, classes: n == null ? void 0 : n.assistHint }),
|
|
2879
|
+
/* @__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)) }),
|
|
2880
|
+
r && /* @__PURE__ */ o.jsx("p", { className: d("desk-body-regular-m mt-4 text-color-secondary", n == null ? void 0 : n.bottomDescription), children: r })
|
|
2881
|
+
] }), No = ({
|
|
2882
|
+
rootDescription: t,
|
|
2883
|
+
bottomDescription: e,
|
|
2879
2884
|
rootValue: r,
|
|
2880
2885
|
title: n,
|
|
2881
2886
|
subtitle: i,
|
|
2882
|
-
buttonsConfig:
|
|
2887
|
+
buttonsConfig: a,
|
|
2883
2888
|
infoList: l,
|
|
2884
2889
|
suffix: u,
|
|
2885
2890
|
assistHint: x,
|
|
2886
2891
|
classes: m
|
|
2887
|
-
}) => /* @__PURE__ */ o.jsxs("div", { className:
|
|
2892
|
+
}) => /* @__PURE__ */ o.jsxs("div", { className: d("w-[456px] rounded-md bg-color-blue-grey-100 p-8", m == null ? void 0 : m.wrapper), children: [
|
|
2888
2893
|
/* @__PURE__ */ o.jsx(
|
|
2889
|
-
|
|
2894
|
+
jo,
|
|
2890
2895
|
{
|
|
2891
2896
|
suffix: u,
|
|
2892
2897
|
rootValue: r,
|
|
2893
|
-
rootDescription:
|
|
2898
|
+
rootDescription: t,
|
|
2894
2899
|
classes: m == null ? void 0 : m.calculatedBlock
|
|
2895
2900
|
}
|
|
2896
2901
|
),
|
|
2897
|
-
/* @__PURE__ */ o.jsx(
|
|
2898
|
-
/* @__PURE__ */ o.jsx(
|
|
2902
|
+
/* @__PURE__ */ o.jsx(bo, { title: n, subtitle: i, classes: m == null ? void 0 : m.calculatedInfoHead }),
|
|
2903
|
+
/* @__PURE__ */ o.jsx(ko, { infoList: l, classes: m == null ? void 0 : m.calculatorInfoBody }),
|
|
2899
2904
|
/* @__PURE__ */ o.jsx(
|
|
2900
|
-
|
|
2905
|
+
vo,
|
|
2901
2906
|
{
|
|
2902
2907
|
assistHint: x,
|
|
2903
|
-
buttonsConfig:
|
|
2904
|
-
bottomDescription:
|
|
2908
|
+
buttonsConfig: a,
|
|
2909
|
+
bottomDescription: e,
|
|
2905
2910
|
classes: m == null ? void 0 : m.calculatorInfoFooter
|
|
2906
2911
|
}
|
|
2907
2912
|
)
|
|
2908
|
-
] }),
|
|
2909
|
-
slidersGroupConfig:
|
|
2910
|
-
additionalSliderGroupConfig:
|
|
2913
|
+
] }), Co = 2e4, Dt = ({
|
|
2914
|
+
slidersGroupConfig: t,
|
|
2915
|
+
additionalSliderGroupConfig: e
|
|
2911
2916
|
}) => {
|
|
2912
|
-
const [r, n] =
|
|
2913
|
-
return
|
|
2914
|
-
|
|
2915
|
-
}, [k,
|
|
2916
|
-
Number(x) ===
|
|
2917
|
-
}, [n, x,
|
|
2917
|
+
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) ?? {}, B = i(y), k = Number(x ?? 0) - (c ?? p);
|
|
2918
|
+
return ve(() => {
|
|
2919
|
+
B > k && a(y, k);
|
|
2920
|
+
}, [k, B, a, c]), ve(() => {
|
|
2921
|
+
Number(x) === c && n(!1);
|
|
2922
|
+
}, [n, x, c]), {
|
|
2918
2923
|
sliderVisible: r,
|
|
2919
2924
|
setSliderVisible: n,
|
|
2920
2925
|
sumMax: x,
|
|
2921
2926
|
sumName: m,
|
|
2922
2927
|
sumDefaultValue: p,
|
|
2923
|
-
sumValue:
|
|
2928
|
+
sumValue: c,
|
|
2924
2929
|
additionalSliderMax: k,
|
|
2925
2930
|
onCheckedChange: () => {
|
|
2926
|
-
n((
|
|
2931
|
+
n((P) => !P), B <= 0 && a(y, S), Number(x) === c && (a(m ?? "", c - Co), a(y, S));
|
|
2927
2932
|
},
|
|
2928
2933
|
sliderSumExist: !_.isObjectEmpty(l == null ? void 0 : l.args),
|
|
2929
2934
|
sliderSumCorrectType: (l == null ? void 0 : l.args.componentType) === "algorithmic" || (l == null ? void 0 : l.args.componentType) === "step"
|
|
2930
2935
|
};
|
|
2931
|
-
},
|
|
2932
|
-
switch (
|
|
2936
|
+
}, So = (t) => {
|
|
2937
|
+
switch (t) {
|
|
2933
2938
|
case "content1":
|
|
2934
2939
|
return /* @__PURE__ */ o.jsx("div", { children: "content 1" });
|
|
2935
2940
|
case "content2":
|
|
2936
2941
|
return /* @__PURE__ */ o.jsx("div", { children: "content 2" });
|
|
2937
2942
|
}
|
|
2938
|
-
},
|
|
2939
|
-
triggerText:
|
|
2940
|
-
modalTitle:
|
|
2943
|
+
}, Io = ({
|
|
2944
|
+
triggerText: t,
|
|
2945
|
+
modalTitle: e,
|
|
2941
2946
|
description: r,
|
|
2942
2947
|
classes: n,
|
|
2943
2948
|
modalProps: i,
|
|
2944
|
-
contentVariant:
|
|
2949
|
+
contentVariant: a
|
|
2945
2950
|
}) => {
|
|
2946
|
-
const [l, u] =
|
|
2947
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
2948
|
-
r && /* @__PURE__ */ o.jsx("p", { className:
|
|
2951
|
+
const [l, u] = mr(!1);
|
|
2952
|
+
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: [
|
|
2953
|
+
r && /* @__PURE__ */ o.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", n == null ? void 0 : n.description), children: r }),
|
|
2949
2954
|
/* @__PURE__ */ o.jsx(
|
|
2950
2955
|
"button",
|
|
2951
2956
|
{
|
|
2952
2957
|
onClick: () => u(!0),
|
|
2953
|
-
className:
|
|
2958
|
+
className: d(
|
|
2954
2959
|
"desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
|
|
2955
2960
|
n == null ? void 0 : n.button
|
|
2956
2961
|
),
|
|
2957
|
-
children:
|
|
2962
|
+
children: t
|
|
2958
2963
|
}
|
|
2959
2964
|
),
|
|
2960
|
-
/* @__PURE__ */ o.jsx(tr, { title:
|
|
2965
|
+
/* @__PURE__ */ o.jsx(tr, { title: e, isModalOpen: l, closeModal: () => u(!1), ...i, children: So(a) })
|
|
2961
2966
|
] });
|
|
2962
|
-
},
|
|
2963
|
-
const { control:
|
|
2964
|
-
return /* @__PURE__ */ o.jsx(
|
|
2965
|
-
},
|
|
2966
|
-
slidersGroupConfig:
|
|
2967
|
-
additionalSliderGroupConfig:
|
|
2967
|
+
}, J = ({ fields: t }) => {
|
|
2968
|
+
const { control: e } = Oe();
|
|
2969
|
+
return /* @__PURE__ */ o.jsx(Qe, { control: e, fields: t });
|
|
2970
|
+
}, Mo = ({
|
|
2971
|
+
slidersGroupConfig: t,
|
|
2972
|
+
additionalSliderGroupConfig: e,
|
|
2968
2973
|
classes: r
|
|
2969
2974
|
}) => {
|
|
2970
|
-
const { control: n } =
|
|
2971
|
-
slidersGroupConfig:
|
|
2972
|
-
additionalSliderGroupConfig:
|
|
2975
|
+
const { control: n } = Oe(), { sliderVisible: i, additionalSliderMax: a, onCheckedChange: l } = Dt({
|
|
2976
|
+
slidersGroupConfig: t,
|
|
2977
|
+
additionalSliderGroupConfig: e
|
|
2973
2978
|
});
|
|
2974
|
-
return _.isNil(
|
|
2975
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
2976
|
-
/* @__PURE__ */ o.jsx(
|
|
2979
|
+
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: [
|
|
2980
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("inline-flex items-center gap-2", r == null ? void 0 : r.block), children: [
|
|
2981
|
+
/* @__PURE__ */ o.jsx(Se.SwitchBase, { checked: i, onCheckedChange: l }),
|
|
2977
2982
|
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
2978
2983
|
] }),
|
|
2979
2984
|
i && /* @__PURE__ */ o.jsx(
|
|
2980
|
-
|
|
2985
|
+
Re.SliderControl,
|
|
2981
2986
|
{
|
|
2982
|
-
...
|
|
2987
|
+
...e.args,
|
|
2983
2988
|
control: n,
|
|
2984
2989
|
componentType: "algorithmic",
|
|
2985
2990
|
suffix: "currency",
|
|
2986
|
-
defaultValue:
|
|
2987
|
-
max:
|
|
2991
|
+
defaultValue: e == null ? void 0 : e.args.min,
|
|
2992
|
+
max: a
|
|
2988
2993
|
}
|
|
2989
2994
|
)
|
|
2990
2995
|
] });
|
|
2991
|
-
},
|
|
2992
|
-
var
|
|
2993
|
-
const { sliderSumExist: n, sliderSumCorrectType: i } =
|
|
2994
|
-
slidersGroupConfig:
|
|
2995
|
-
additionalSliderGroupConfig:
|
|
2996
|
+
}, _o = ({ modalConfig: t, fieldsGroup: e, classes: r }) => {
|
|
2997
|
+
var a;
|
|
2998
|
+
const { sliderSumExist: n, sliderSumCorrectType: i } = Dt({
|
|
2999
|
+
slidersGroupConfig: e.slidersGroupConfig,
|
|
3000
|
+
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2996
3001
|
});
|
|
2997
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
2998
|
-
(
|
|
2999
|
-
(
|
|
3000
|
-
(
|
|
3001
|
-
(
|
|
3002
|
-
(
|
|
3003
|
-
(
|
|
3004
|
-
(
|
|
3005
|
-
(
|
|
3006
|
-
((
|
|
3007
|
-
|
|
3002
|
+
return /* @__PURE__ */ o.jsxs("div", { className: d("flex flex-1 flex-col gap-8", r == null ? void 0 : r.rootFieldsWrapper), children: [
|
|
3003
|
+
(t == null ? void 0 : t.triggerText) && (t == null ? void 0 : t.contentVariant) && /* @__PURE__ */ o.jsx(Io, { classes: r == null ? void 0 : r.modalClasses, ...t }),
|
|
3004
|
+
(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 }) }),
|
|
3005
|
+
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ o.jsx(J, { ...e == null ? void 0 : e.slidersGroupConfig }),
|
|
3006
|
+
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ o.jsx(J, { ...e == null ? void 0 : e.radioGroupTabConfig }),
|
|
3007
|
+
(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 }) }),
|
|
3008
|
+
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ o.jsx(J, { ...e == null ? void 0 : e.radioGroupConfig }),
|
|
3009
|
+
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ o.jsx(J, { ...e == null ? void 0 : e.radioGroupCardConfig }),
|
|
3010
|
+
(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 }) }),
|
|
3011
|
+
((a = e.additionalSliderGroupConfig) == null ? void 0 : a.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig && n && i && /* @__PURE__ */ o.jsx(
|
|
3012
|
+
Mo,
|
|
3008
3013
|
{
|
|
3009
|
-
slidersGroupConfig:
|
|
3010
|
-
additionalSliderGroupConfig:
|
|
3014
|
+
slidersGroupConfig: e.slidersGroupConfig,
|
|
3015
|
+
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
3011
3016
|
}
|
|
3012
3017
|
)
|
|
3013
3018
|
] });
|
|
3014
|
-
},
|
|
3019
|
+
}, Oo = 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(
|
|
3015
3020
|
"button",
|
|
3016
3021
|
{
|
|
3017
3022
|
onClick: () => r(i),
|
|
3018
|
-
className:
|
|
3023
|
+
className: d(
|
|
3019
3024
|
"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",
|
|
3020
|
-
{ "bg-icon-primary-default text-color-white":
|
|
3025
|
+
{ "bg-icon-primary-default text-color-white": e === i },
|
|
3021
3026
|
n == null ? void 0 : n.tab
|
|
3022
3027
|
),
|
|
3023
|
-
children:
|
|
3028
|
+
children: a
|
|
3024
3029
|
},
|
|
3025
3030
|
i
|
|
3026
|
-
)) })),
|
|
3027
|
-
calculatorInfoConfig:
|
|
3028
|
-
calculatorFieldsConfig:
|
|
3031
|
+
)) })), To = ({
|
|
3032
|
+
calculatorInfoConfig: t,
|
|
3033
|
+
calculatorFieldsConfig: e,
|
|
3029
3034
|
classes: r
|
|
3030
3035
|
}) => {
|
|
3031
|
-
const n =
|
|
3036
|
+
const n = co(e == null ? void 0 : e.fieldsGroup), i = _e({
|
|
3032
3037
|
schema: n,
|
|
3033
3038
|
mode: "onBlur",
|
|
3034
|
-
defaultValues:
|
|
3035
|
-
}),
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
}, [
|
|
3039
|
-
const u =
|
|
3040
|
-
return /* @__PURE__ */ o.jsx(
|
|
3041
|
-
/* @__PURE__ */ o.jsx(
|
|
3042
|
-
/* @__PURE__ */ o.jsx(
|
|
3039
|
+
defaultValues: Te.getZodDefaults(n)
|
|
3040
|
+
}), a = i.watch(), { rootValue: l } = t;
|
|
3041
|
+
ve(() => {
|
|
3042
|
+
ar.setItem("calculatorData", JSON.stringify(a));
|
|
3043
|
+
}, [a]);
|
|
3044
|
+
const u = Bt(l) ? Pt(l.formula, a) : l, x = { ...t, rootValue: u };
|
|
3045
|
+
return /* @__PURE__ */ o.jsx(lr, { ...i, children: /* @__PURE__ */ o.jsxs("div", { className: d("flex items-start gap-16", r == null ? void 0 : r.wrapper), children: [
|
|
3046
|
+
/* @__PURE__ */ o.jsx(_o, { ...e, classes: r == null ? void 0 : r.calculatorFields }),
|
|
3047
|
+
/* @__PURE__ */ o.jsx(No, { ...x, classes: r == null ? void 0 : r.calculatorInfo })
|
|
3043
3048
|
] }) });
|
|
3044
|
-
},
|
|
3049
|
+
}, ct = ({ calculators: t, headline: e, classes: r }) => {
|
|
3045
3050
|
var m;
|
|
3046
|
-
const n =
|
|
3047
|
-
return /* @__PURE__ */ o.jsx("section", { id: g.calculator, "data-test-id": g.calculator, className:
|
|
3048
|
-
/* @__PURE__ */ o.jsx(
|
|
3051
|
+
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];
|
|
3052
|
+
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: [
|
|
3053
|
+
/* @__PURE__ */ o.jsx(D, { className: d("mb-12", r == null ? void 0 : r.headline), as: "h2", children: e }),
|
|
3049
3054
|
n && /* @__PURE__ */ o.jsx(
|
|
3050
|
-
|
|
3055
|
+
Oo,
|
|
3051
3056
|
{
|
|
3052
3057
|
calculatorTabs: l,
|
|
3053
3058
|
activeCalculator: i,
|
|
3054
|
-
setActiveCalculator:
|
|
3059
|
+
setActiveCalculator: a,
|
|
3055
3060
|
classes: r == null ? void 0 : r.calculatorTabs
|
|
3056
3061
|
}
|
|
3057
3062
|
),
|
|
3058
3063
|
/* @__PURE__ */ o.jsx(
|
|
3059
|
-
|
|
3064
|
+
To,
|
|
3060
3065
|
{
|
|
3061
3066
|
name: x.name,
|
|
3062
3067
|
label: x.label,
|
|
@@ -3066,61 +3071,61 @@ const Zn = (e, t) => {
|
|
|
3066
3071
|
}
|
|
3067
3072
|
)
|
|
3068
3073
|
] }) }) });
|
|
3069
|
-
},
|
|
3074
|
+
}, Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3070
3075
|
__proto__: null,
|
|
3071
|
-
Calculator:
|
|
3072
|
-
default:
|
|
3073
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3074
|
-
heading:
|
|
3075
|
-
buttonsGroup:
|
|
3076
|
+
Calculator: ct,
|
|
3077
|
+
default: ct
|
|
3078
|
+
}, Symbol.toStringTag, { value: "Module" })), Bo = ({ 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)) }), Eo = ({
|
|
3079
|
+
heading: t,
|
|
3080
|
+
buttonsGroup: e,
|
|
3076
3081
|
imageMobile: r,
|
|
3077
3082
|
renderImageCb: n,
|
|
3078
3083
|
description: i,
|
|
3079
|
-
linksList:
|
|
3084
|
+
linksList: a,
|
|
3080
3085
|
classes: l
|
|
3081
3086
|
}) => {
|
|
3082
|
-
const u =
|
|
3083
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
3084
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
3085
|
-
/* @__PURE__ */ o.jsx(
|
|
3087
|
+
const u = e && (e == null ? void 0 : e.length) > 0, x = a && (a == null ? void 0 : a.length) > 0;
|
|
3088
|
+
return /* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col", l == null ? void 0 : l.wrapper), children: [
|
|
3089
|
+
/* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col gap-4 mobile:mb-2", l == null ? void 0 : l.textBlock), children: [
|
|
3090
|
+
/* @__PURE__ */ o.jsx(D, { as: "h2", className: d(l == null ? void 0 : l.heading), children: t }),
|
|
3086
3091
|
i && /* @__PURE__ */ o.jsx(
|
|
3087
3092
|
"p",
|
|
3088
3093
|
{
|
|
3089
3094
|
dangerouslySetInnerHTML: { __html: i },
|
|
3090
|
-
className:
|
|
3095
|
+
className: d("desk-body-regular-l text-color-dark", l == null ? void 0 : l.description)
|
|
3091
3096
|
}
|
|
3092
3097
|
)
|
|
3093
3098
|
] }),
|
|
3094
|
-
/* @__PURE__ */ o.jsx("div", { className:
|
|
3099
|
+
/* @__PURE__ */ o.jsx("div", { className: d("h-full w-full desktop:hidden", l == null ? void 0 : l.imageMobileWrapper), children: ie({
|
|
3095
3100
|
imgProps: {
|
|
3096
|
-
className:
|
|
3101
|
+
className: d("object-contain w-full h-full", l == null ? void 0 : l.imageMobile),
|
|
3097
3102
|
...r
|
|
3098
3103
|
},
|
|
3099
3104
|
renderImageCb: n
|
|
3100
3105
|
}) }),
|
|
3101
|
-
u && /* @__PURE__ */ o.jsx("div", { className:
|
|
3102
|
-
x && /* @__PURE__ */ o.jsx(
|
|
3106
|
+
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)) }),
|
|
3107
|
+
x && /* @__PURE__ */ o.jsx(Bo, { linksList: a, classes: l == null ? void 0 : l.linksList })
|
|
3103
3108
|
] });
|
|
3104
|
-
},
|
|
3105
|
-
const { size:
|
|
3109
|
+
}, ft = (t) => {
|
|
3110
|
+
const { size: e = "md", renderImageCb: r, backgroundColor: n = "#F4F8FE", imageDesktop: i, classes: a, ...l } = t;
|
|
3106
3111
|
return /* @__PURE__ */ o.jsx(
|
|
3107
3112
|
"section",
|
|
3108
3113
|
{
|
|
3109
3114
|
id: g.infoBlock,
|
|
3110
3115
|
"data-test-id": g.infoBlock,
|
|
3111
3116
|
style: { backgroundColor: n },
|
|
3112
|
-
className:
|
|
3113
|
-
children: /* @__PURE__ */ o.jsx(
|
|
3114
|
-
/* @__PURE__ */ o.jsx(
|
|
3117
|
+
className: d("py-14", a == null ? void 0 : a.root),
|
|
3118
|
+
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: [
|
|
3119
|
+
/* @__PURE__ */ o.jsx(Eo, { renderImageCb: r, classes: a == null ? void 0 : a.rootContent, ...l }),
|
|
3115
3120
|
/* @__PURE__ */ o.jsx(
|
|
3116
3121
|
"div",
|
|
3117
3122
|
{
|
|
3118
|
-
className:
|
|
3119
|
-
"h-[238px]":
|
|
3123
|
+
className: d("h-[200px] w-full max-w-[432px] mobile:hidden", a == null ? void 0 : a.imageDesktopWrapper, {
|
|
3124
|
+
"h-[238px]": e === "md"
|
|
3120
3125
|
}),
|
|
3121
|
-
children:
|
|
3126
|
+
children: ie({
|
|
3122
3127
|
imgProps: {
|
|
3123
|
-
className:
|
|
3128
|
+
className: d("object-contain w-full h-full", a == null ? void 0 : a.imageDesktop),
|
|
3124
3129
|
...i
|
|
3125
3130
|
},
|
|
3126
3131
|
renderImageCb: r
|
|
@@ -3130,37 +3135,157 @@ const Zn = (e, t) => {
|
|
|
3130
3135
|
] }) })
|
|
3131
3136
|
}
|
|
3132
3137
|
);
|
|
3133
|
-
},
|
|
3138
|
+
}, Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3134
3139
|
__proto__: null,
|
|
3135
|
-
InfoBlock:
|
|
3136
|
-
default:
|
|
3137
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
3140
|
+
InfoBlock: ft,
|
|
3141
|
+
default: ft
|
|
3142
|
+
}, Symbol.toStringTag, { value: "Module" })), Do = (t) => {
|
|
3143
|
+
const [e, r] = O(0), [n, i] = O(0);
|
|
3144
|
+
return {
|
|
3145
|
+
selectedRating: e,
|
|
3146
|
+
hoveredRatings: n,
|
|
3147
|
+
handleMouseEnter: (x) => {
|
|
3148
|
+
i(x);
|
|
3149
|
+
},
|
|
3150
|
+
handleMouseLeave: () => {
|
|
3151
|
+
i(e);
|
|
3152
|
+
},
|
|
3153
|
+
handleSelectRating: (x) => {
|
|
3154
|
+
r(x), t("review");
|
|
3155
|
+
}
|
|
3156
|
+
};
|
|
3157
|
+
}, gt = Le({
|
|
3158
|
+
review: ze.base.getStringSchema({ required: !1 })
|
|
3159
|
+
}), Ro = fe(() => {
|
|
3160
|
+
const t = xr({ ids: ["banner"] }), [e, r] = O(!1);
|
|
3161
|
+
return ve(() => {
|
|
3162
|
+
r(!1);
|
|
3163
|
+
const n = setTimeout(() => {
|
|
3164
|
+
r(!0);
|
|
3165
|
+
}, 1e4);
|
|
3166
|
+
return () => clearTimeout(n);
|
|
3167
|
+
}, []), /* @__PURE__ */ o.jsx(
|
|
3168
|
+
"div",
|
|
3169
|
+
{
|
|
3170
|
+
className: d(
|
|
3171
|
+
"invisible flex size-16 items-center justify-center rounded-full bg-color-secondary-default opacity-0 transition-all hover:bg-color-secondary-hover",
|
|
3172
|
+
{ "opacity-1 visible": e && !t }
|
|
3173
|
+
),
|
|
3174
|
+
children: /* @__PURE__ */ o.jsx(f, { name: "general/heart", className: "size-7 fill-transparent stroke-white stroke-[3px]" })
|
|
3175
|
+
}
|
|
3176
|
+
);
|
|
3177
|
+
}), so = () => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-center gap-4 text-center", children: [
|
|
3178
|
+
/* @__PURE__ */ o.jsx(f, { name: "status/succesCircle" }),
|
|
3179
|
+
/* @__PURE__ */ o.jsx("p", { className: "desk-body-medium-l", children: "Спасибо за оценку!" })
|
|
3180
|
+
] }), Ho = ({ submitCallback: t, rating: e, setFormStep: r }) => {
|
|
3181
|
+
const { control: n, handleSubmit: i } = _e({
|
|
3182
|
+
mode: "onBlur",
|
|
3183
|
+
schema: gt,
|
|
3184
|
+
defaultValues: Te.getZodDefaults(gt)
|
|
3185
|
+
}), a = async (l) => {
|
|
3186
|
+
var u;
|
|
3187
|
+
t && (await t({
|
|
3188
|
+
rating: e,
|
|
3189
|
+
pageUrl: (u = window == null ? void 0 : window.location) == null ? void 0 : u.href,
|
|
3190
|
+
...l
|
|
3191
|
+
}), r("finally"));
|
|
3192
|
+
};
|
|
3193
|
+
return /* @__PURE__ */ o.jsxs("form", { onSubmit: i(a), className: "flex flex-col gap-4", children: [
|
|
3194
|
+
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-2 text-center", children: [
|
|
3195
|
+
/* @__PURE__ */ o.jsx("p", { className: "desk-body-medium-l", children: "Расскажите о впечатлениях" }),
|
|
3196
|
+
/* @__PURE__ */ o.jsxs("p", { className: "desk-body-regular-l", children: [
|
|
3197
|
+
"Вам нравится сайт банка?",
|
|
3198
|
+
/* @__PURE__ */ o.jsx("br", {}),
|
|
3199
|
+
" У вас есть предложения по его улучшению?"
|
|
3200
|
+
] })
|
|
3201
|
+
] }),
|
|
3202
|
+
/* @__PURE__ */ o.jsx(Re.TextareaControl, { control: n, name: "review", label: "Поделитесь вашим мнением" }),
|
|
3203
|
+
/* @__PURE__ */ o.jsx(pe, { type: "submit", size: "sm", intent: "negative", className: "w-full", children: "Отправить" })
|
|
3204
|
+
] });
|
|
3205
|
+
}, zo = Array(5).fill(0), Lo = ({
|
|
3206
|
+
handleMouseLeave: t,
|
|
3207
|
+
hoveredRatings: e,
|
|
3208
|
+
selectedRating: r,
|
|
3209
|
+
handleSelectRating: n,
|
|
3210
|
+
handleMouseEnter: i
|
|
3211
|
+
}) => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
|
|
3212
|
+
/* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-2 text-center", children: [
|
|
3213
|
+
/* @__PURE__ */ o.jsx("p", { className: "desk-body-medium-l", children: "Ваше мнение важно для нас!" }),
|
|
3214
|
+
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l", children: "Пожалуйста, оцените работу сайта, чтобы мы сделали его еще удобнее" })
|
|
3215
|
+
] }),
|
|
3216
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex items-center gap-2", children: zo.map((a, l) => /* @__PURE__ */ o.jsx(
|
|
3217
|
+
"button",
|
|
3218
|
+
{
|
|
3219
|
+
className: "size-8",
|
|
3220
|
+
onMouseEnter: () => i(l + 1),
|
|
3221
|
+
onMouseLeave: () => t(),
|
|
3222
|
+
onClick: () => n(l + 1),
|
|
3223
|
+
children: /* @__PURE__ */ o.jsx(
|
|
3224
|
+
f,
|
|
3225
|
+
{
|
|
3226
|
+
name: "general/heart",
|
|
3227
|
+
className: d("fill-[#b0c0d2] transition-colors duration-12", {
|
|
3228
|
+
"fill-secondary-default": l < (e || r)
|
|
3229
|
+
})
|
|
3230
|
+
}
|
|
3231
|
+
)
|
|
3232
|
+
},
|
|
3233
|
+
l
|
|
3234
|
+
)) })
|
|
3235
|
+
] }), Qo = ({ formStep: t, setFormStep: e, ratingProps: r, submitCallback: n }) => {
|
|
3236
|
+
switch (t) {
|
|
3237
|
+
case "rating":
|
|
3238
|
+
return /* @__PURE__ */ o.jsx(Lo, { ...r });
|
|
3239
|
+
case "review":
|
|
3240
|
+
return /* @__PURE__ */ o.jsx(Ho, { submitCallback: n, setFormStep: e, rating: r.selectedRating });
|
|
3241
|
+
case "finally":
|
|
3242
|
+
return /* @__PURE__ */ o.jsx(so, {});
|
|
3243
|
+
}
|
|
3244
|
+
}, ni = ({ submitCallback: t }) => {
|
|
3245
|
+
const [e, r] = O("rating"), n = Do(r);
|
|
3246
|
+
return /* @__PURE__ */ o.jsx("div", { className: "fixed right-5 top-[80%] z-[1000]", children: /* @__PURE__ */ o.jsx(
|
|
3247
|
+
Ce,
|
|
3248
|
+
{
|
|
3249
|
+
side: "top",
|
|
3250
|
+
align: "end",
|
|
3251
|
+
sideOffset: 10,
|
|
3252
|
+
withArrow: !1,
|
|
3253
|
+
withCloseBtn: !1,
|
|
3254
|
+
classes: {
|
|
3255
|
+
content: "max-w-[330px] w-[330px] p-6"
|
|
3256
|
+
},
|
|
3257
|
+
triggerElement: /* @__PURE__ */ o.jsx(Ro, {}),
|
|
3258
|
+
children: /* @__PURE__ */ o.jsx("div", { className: "w-full", children: Qo({ formStep: e, setFormStep: r, ratingProps: n, submitCallback: t }) })
|
|
3259
|
+
}
|
|
3260
|
+
) });
|
|
3261
|
+
};
|
|
3138
3262
|
export {
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3263
|
+
ei as AuthProvider,
|
|
3264
|
+
rt as Banner,
|
|
3265
|
+
Qr as BannerWithSeparateImg,
|
|
3266
|
+
et as Benefit,
|
|
3267
|
+
Zn as Breadcrumbs,
|
|
3268
|
+
ee as ButtonWithHandlers,
|
|
3269
|
+
ct as Calculator,
|
|
3270
|
+
To as CalculatorView,
|
|
3271
|
+
xt as DynamicForm,
|
|
3272
|
+
ht as DynamicFormDialog,
|
|
3273
|
+
ri as FallbacksView,
|
|
3274
|
+
Qe as FieldMapper,
|
|
3275
|
+
nt as Footer,
|
|
3276
|
+
ti as HTMLParser,
|
|
3277
|
+
ae as HTMLRenderer,
|
|
3278
|
+
tt as Header,
|
|
3279
|
+
ft as InfoBlock,
|
|
3280
|
+
ut as InterLinking,
|
|
3281
|
+
Br as KEYS_OF_WIDGET_LIST,
|
|
3282
|
+
it as LongBanner,
|
|
3283
|
+
pt as SeoHeader,
|
|
3284
|
+
ot as Stepper,
|
|
3285
|
+
mt as UsefulInfo,
|
|
3286
|
+
ni as UserFeedback,
|
|
3287
|
+
Fr as WIDGET_LIST_MAP,
|
|
3288
|
+
$n as queryClient,
|
|
3164
3289
|
g as widgetIds
|
|
3165
3290
|
};
|
|
3166
3291
|
//# sourceMappingURL=widget.js.map
|