@scbt-ecom/ui 0.74.1 → 0.75.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-B6MrMsbc.js → index-21RJaFeE.js} +4898 -4884
- package/dist/{index-B6MrMsbc.js.map → index-21RJaFeE.js.map} +1 -1
- package/dist/index-BcOxdcOI.js +561 -0
- package/dist/{index-CrR6G9lz.js.map → index-BcOxdcOI.js.map} +1 -1
- package/dist/shared/ui/formElements/controlled/slider/SliderControl.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/slider/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/model/index.d.ts +2 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/model/types.d.ts +10 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/Slider.d.ts +3 -1
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/SliderAlgorithmic.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/SliderMarks.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/SliderStep.d.ts +1 -1
- package/dist/ui.js +3 -3
- package/dist/{utils-k3uzuyeN.js → utils-CaWgHX_C.js} +1224 -1256
- package/dist/utils-CaWgHX_C.js.map +1 -0
- package/dist/validation.js +47 -47
- package/dist/validation.js.map +1 -1
- package/dist/widget.js +953 -891
- package/dist/widget.js.map +1 -1
- package/dist/widgets/calculator/ui/calculatorFields/CalculatorFields.d.ts +4 -1
- package/dist/widgets/calculator/ui/calculatorFields/hooks/index.d.ts +1 -0
- package/dist/widgets/calculator/ui/calculatorFields/hooks/useAdditionalSlider.d.ts +19 -0
- package/dist/widgets/calculator/ui/calculatorFields/ui/AdditionalSlider.d.ts +8 -0
- package/dist/widgets/calculator/ui/calculatorFields/ui/FieldsGroup.d.ts +6 -1
- package/dist/widgets/calculator/ui/calculatorFields/ui/index.d.ts +1 -0
- package/dist/widgets/model/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-CrR6G9lz.js +0 -446
- package/dist/utils-k3uzuyeN.js.map +0 -1
package/dist/widget.js
CHANGED
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
throw TypeError(
|
|
1
|
+
var yt = Object.defineProperty;
|
|
2
|
+
var Re = (t) => {
|
|
3
|
+
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var h = (
|
|
8
|
-
var
|
|
5
|
+
var kt = (t, e, r) => e in t ? yt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var ae = (t, e, r) => kt(t, typeof e != "symbol" ? e + "" : e, r), we = (t, e, r) => e.has(t) || Re("Cannot " + r);
|
|
7
|
+
var h = (t, e, r) => (we(t, e, "read from private field"), r ? r.call(t) : e.get(t)), I = (t, e, r) => e.has(t) ? Re("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), w = (t, e, r, o) => (we(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r), q = (t, e, r) => (we(t, e, "access private method"), r);
|
|
8
|
+
var pe = (t, e, r, o) => ({
|
|
9
9
|
set _(i) {
|
|
10
|
-
|
|
10
|
+
w(t, e, i, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return h(
|
|
13
|
+
return h(t, e, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as
|
|
17
|
-
import { T as
|
|
18
|
-
import * as
|
|
19
|
-
import { useCallback as
|
|
20
|
-
import { scrollToElement as
|
|
21
|
-
import { i as
|
|
22
|
-
import { u as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { a as
|
|
26
|
-
import { createPortal as
|
|
27
|
-
var
|
|
28
|
-
constructor(
|
|
16
|
+
import { S as Je, x as Ge, Q as wt, y as E, z as _e, E as Nt, F as vt, G as He, J as z, T as Ct, W as It, X as Tt, Y as Mt, Z as De, _ as Pe, $ as Et, a0 as Le, a1 as ze, a2 as Ot, j as n, B as Te, c as O, R as S, n as et, s as Ft, H as P, i as f, t as je, q as Me, L as St, o as Ee, A as oe, v as tt, a3 as Bt, r as Rt, U as Oe, a4 as Fe, a5 as _t, M as Ht } from "./index-21RJaFeE.js";
|
|
17
|
+
import { T as g, c as d } from "./typeGuards-CSiImkUY.js";
|
|
18
|
+
import * as le from "react";
|
|
19
|
+
import { useCallback as rt, useState as L, useMemo as se, createElement as nt, Fragment as Dt, useEffect as be, useRef as Se, useReducer as Pt, memo as Be, forwardRef as Lt } from "react";
|
|
20
|
+
import { scrollToElement as zt, createPhoneNumber as ye, getUuid as Qe, capitalize as Qt } from "./utils.js";
|
|
21
|
+
import { i as ot } from "./isClient-C9aZtt2Q.js";
|
|
22
|
+
import { u as G, b as it, a as Vt, g as ke, F as At } from "./useDebounce-BH0d8exl.js";
|
|
23
|
+
import { z as at, Z as dt } from "./index-BcOxdcOI.js";
|
|
24
|
+
import { au as lt } from "./utils-CaWgHX_C.js";
|
|
25
|
+
import { a as qt, u as Ut } from "./useFieldsProgress-dcSmd8dw.js";
|
|
26
|
+
import { createPortal as ut } from "react-dom";
|
|
27
|
+
var _, $e, Wt = ($e = class extends Je {
|
|
28
|
+
constructor(e = {}) {
|
|
29
29
|
super();
|
|
30
|
-
|
|
31
|
-
this.config =
|
|
30
|
+
I(this, _);
|
|
31
|
+
this.config = e, w(this, _, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
|
-
build(
|
|
34
|
-
const i = r.queryKey, a = r.queryHash ??
|
|
33
|
+
build(e, r, o) {
|
|
34
|
+
const i = r.queryKey, a = r.queryHash ?? Ge(i, r);
|
|
35
35
|
let l = this.get(a);
|
|
36
|
-
return l || (l = new
|
|
37
|
-
client:
|
|
36
|
+
return l || (l = new wt({
|
|
37
|
+
client: e,
|
|
38
38
|
queryKey: i,
|
|
39
39
|
queryHash: a,
|
|
40
|
-
options:
|
|
40
|
+
options: e.defaultQueryOptions(r),
|
|
41
41
|
state: o,
|
|
42
|
-
defaultOptions:
|
|
42
|
+
defaultOptions: e.getQueryDefaults(i)
|
|
43
43
|
}), this.add(l)), l;
|
|
44
44
|
}
|
|
45
|
-
add(
|
|
46
|
-
h(this,
|
|
45
|
+
add(e) {
|
|
46
|
+
h(this, _).has(e.queryHash) || (h(this, _).set(e.queryHash, e), this.notify({
|
|
47
47
|
type: "added",
|
|
48
|
-
query:
|
|
48
|
+
query: e
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
|
-
remove(
|
|
52
|
-
const r = h(this,
|
|
53
|
-
r && (
|
|
51
|
+
remove(e) {
|
|
52
|
+
const r = h(this, _).get(e.queryHash);
|
|
53
|
+
r && (e.destroy(), r === e && h(this, _).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
56
|
E.batch(() => {
|
|
57
|
-
this.getAll().forEach((
|
|
58
|
-
this.remove(
|
|
57
|
+
this.getAll().forEach((e) => {
|
|
58
|
+
this.remove(e);
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
get(
|
|
63
|
-
return h(this,
|
|
62
|
+
get(e) {
|
|
63
|
+
return h(this, _).get(e);
|
|
64
64
|
}
|
|
65
65
|
getAll() {
|
|
66
|
-
return [...h(this,
|
|
66
|
+
return [...h(this, _).values()];
|
|
67
67
|
}
|
|
68
|
-
find(
|
|
69
|
-
const r = { exact: !0, ...
|
|
68
|
+
find(e) {
|
|
69
|
+
const r = { exact: !0, ...e };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(o) =>
|
|
71
|
+
(o) => _e(r, o)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
|
-
findAll(
|
|
74
|
+
findAll(e = {}) {
|
|
75
75
|
const r = this.getAll();
|
|
76
|
-
return Object.keys(
|
|
76
|
+
return Object.keys(e).length > 0 ? r.filter((o) => _e(e, o)) : r;
|
|
77
77
|
}
|
|
78
|
-
notify(
|
|
78
|
+
notify(e) {
|
|
79
79
|
E.batch(() => {
|
|
80
80
|
this.listeners.forEach((r) => {
|
|
81
|
-
r(
|
|
81
|
+
r(e);
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
onFocus() {
|
|
86
86
|
E.batch(() => {
|
|
87
|
-
this.getAll().forEach((
|
|
88
|
-
|
|
87
|
+
this.getAll().forEach((e) => {
|
|
88
|
+
e.onFocus();
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
onOnline() {
|
|
93
93
|
E.batch(() => {
|
|
94
|
-
this.getAll().forEach((
|
|
95
|
-
|
|
94
|
+
this.getAll().forEach((e) => {
|
|
95
|
+
e.onOnline();
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
},
|
|
100
|
-
constructor(
|
|
99
|
+
}, _ = new WeakMap(), $e), H, T, J, D, U, Ze, Kt = (Ze = class extends Nt {
|
|
100
|
+
constructor(e) {
|
|
101
101
|
super();
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
this.mutationId =
|
|
102
|
+
I(this, D);
|
|
103
|
+
I(this, H);
|
|
104
|
+
I(this, T);
|
|
105
|
+
I(this, J);
|
|
106
|
+
this.mutationId = e.mutationId, w(this, T, e.mutationCache), w(this, H, []), this.state = e.state || $t(), this.setOptions(e.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
|
-
setOptions(
|
|
109
|
-
this.options =
|
|
108
|
+
setOptions(e) {
|
|
109
|
+
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
110
110
|
}
|
|
111
111
|
get meta() {
|
|
112
112
|
return this.options.meta;
|
|
113
113
|
}
|
|
114
|
-
addObserver(
|
|
115
|
-
h(this,
|
|
114
|
+
addObserver(e) {
|
|
115
|
+
h(this, H).includes(e) || (h(this, H).push(e), this.clearGcTimeout(), h(this, T).notify({
|
|
116
116
|
type: "observerAdded",
|
|
117
117
|
mutation: this,
|
|
118
|
-
observer:
|
|
118
|
+
observer: e
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
|
-
removeObserver(
|
|
122
|
-
|
|
121
|
+
removeObserver(e) {
|
|
122
|
+
w(this, H, h(this, H).filter((r) => r !== e)), this.scheduleGc(), h(this, T).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
|
-
observer:
|
|
125
|
+
observer: e
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
optionalRemove() {
|
|
129
|
-
h(this,
|
|
129
|
+
h(this, H).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, T).remove(this));
|
|
130
130
|
}
|
|
131
131
|
continue() {
|
|
132
|
-
var
|
|
133
|
-
return ((
|
|
132
|
+
var e;
|
|
133
|
+
return ((e = h(this, J)) == null ? void 0 : e.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
|
-
async execute(
|
|
137
|
-
var a, l, u, m, x, p, c,
|
|
136
|
+
async execute(e) {
|
|
137
|
+
var a, l, u, m, x, p, c, b, s, N, k, B, R, V, C, M, A, X, xe, ie;
|
|
138
138
|
const r = () => {
|
|
139
|
-
|
|
139
|
+
q(this, D, U).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
|
-
|
|
142
|
-
fn: () => this.options.mutationFn ? this.options.mutationFn(
|
|
143
|
-
onFail: (
|
|
144
|
-
|
|
141
|
+
w(this, J, vt({
|
|
142
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
143
|
+
onFail: (v, he) => {
|
|
144
|
+
q(this, D, U).call(this, { type: "failed", failureCount: v, error: he });
|
|
145
145
|
},
|
|
146
146
|
onPause: () => {
|
|
147
|
-
|
|
147
|
+
q(this, D, U).call(this, { type: "pause" });
|
|
148
148
|
},
|
|
149
149
|
onContinue: r,
|
|
150
150
|
retry: this.options.retry ?? 0,
|
|
@@ -157,76 +157,76 @@ var B, Ut, We = (Ut = class extends Zt {
|
|
|
157
157
|
if (o)
|
|
158
158
|
r();
|
|
159
159
|
else {
|
|
160
|
-
|
|
160
|
+
q(this, D, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((l = (a = h(this, T).config).onMutate) == null ? void 0 : l.call(
|
|
161
161
|
a,
|
|
162
|
-
|
|
162
|
+
e,
|
|
163
163
|
this
|
|
164
164
|
));
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const he = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, e));
|
|
166
|
+
he !== this.state.context && q(this, D, U).call(this, {
|
|
167
167
|
type: "pending",
|
|
168
|
-
context:
|
|
169
|
-
variables:
|
|
168
|
+
context: he,
|
|
169
|
+
variables: e,
|
|
170
170
|
isPaused: i
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
const
|
|
173
|
+
const v = await h(this, J).start();
|
|
174
174
|
return await ((p = (x = h(this, T).config).onSuccess) == null ? void 0 : p.call(
|
|
175
175
|
x,
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
v,
|
|
177
|
+
e,
|
|
178
178
|
this.state.context,
|
|
179
179
|
this
|
|
180
|
-
)), await ((
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
)), await ((b = (c = this.options).onSuccess) == null ? void 0 : b.call(c, v, e, this.state.context)), await ((N = (s = h(this, T).config).onSettled) == null ? void 0 : N.call(
|
|
181
|
+
s,
|
|
182
|
+
v,
|
|
183
183
|
null,
|
|
184
184
|
this.state.variables,
|
|
185
185
|
this.state.context,
|
|
186
186
|
this
|
|
187
|
-
)), await ((
|
|
188
|
-
} catch (
|
|
187
|
+
)), await ((B = (k = this.options).onSettled) == null ? void 0 : B.call(k, v, null, e, this.state.context)), q(this, D, U).call(this, { type: "success", data: v }), v;
|
|
188
|
+
} catch (v) {
|
|
189
189
|
try {
|
|
190
|
-
throw await ((
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
190
|
+
throw await ((V = (R = h(this, T).config).onError) == null ? void 0 : V.call(
|
|
191
|
+
R,
|
|
192
|
+
v,
|
|
193
|
+
e,
|
|
194
194
|
this.state.context,
|
|
195
195
|
this
|
|
196
|
-
)), await ((M = (
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
)), await ((M = (C = this.options).onError) == null ? void 0 : M.call(
|
|
197
|
+
C,
|
|
198
|
+
v,
|
|
199
|
+
e,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((
|
|
202
|
-
|
|
201
|
+
)), await ((X = (A = h(this, T).config).onSettled) == null ? void 0 : X.call(
|
|
202
|
+
A,
|
|
203
203
|
void 0,
|
|
204
|
-
|
|
204
|
+
v,
|
|
205
205
|
this.state.variables,
|
|
206
206
|
this.state.context,
|
|
207
207
|
this
|
|
208
|
-
)), await ((
|
|
209
|
-
|
|
208
|
+
)), await ((ie = (xe = this.options).onSettled) == null ? void 0 : ie.call(
|
|
209
|
+
xe,
|
|
210
210
|
void 0,
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
v,
|
|
212
|
+
e,
|
|
213
213
|
this.state.context
|
|
214
|
-
)),
|
|
214
|
+
)), v;
|
|
215
215
|
} finally {
|
|
216
|
-
|
|
216
|
+
q(this, D, U).call(this, { type: "error", error: v });
|
|
217
217
|
}
|
|
218
218
|
} finally {
|
|
219
219
|
h(this, T).runNext(this);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
},
|
|
222
|
+
}, H = new WeakMap(), T = new WeakMap(), J = new WeakMap(), D = new WeakSet(), U = function(e) {
|
|
223
223
|
const r = (o) => {
|
|
224
|
-
switch (
|
|
224
|
+
switch (e.type) {
|
|
225
225
|
case "failed":
|
|
226
226
|
return {
|
|
227
227
|
...o,
|
|
228
|
-
failureCount:
|
|
229
|
-
failureReason:
|
|
228
|
+
failureCount: e.failureCount,
|
|
229
|
+
failureReason: e.error
|
|
230
230
|
};
|
|
231
231
|
case "pause":
|
|
232
232
|
return {
|
|
@@ -241,20 +241,20 @@ var B, Ut, We = (Ut = class extends Zt {
|
|
|
241
241
|
case "pending":
|
|
242
242
|
return {
|
|
243
243
|
...o,
|
|
244
|
-
context:
|
|
244
|
+
context: e.context,
|
|
245
245
|
data: void 0,
|
|
246
246
|
failureCount: 0,
|
|
247
247
|
failureReason: null,
|
|
248
248
|
error: null,
|
|
249
|
-
isPaused:
|
|
249
|
+
isPaused: e.isPaused,
|
|
250
250
|
status: "pending",
|
|
251
|
-
variables:
|
|
251
|
+
variables: e.variables,
|
|
252
252
|
submittedAt: Date.now()
|
|
253
253
|
};
|
|
254
254
|
case "success":
|
|
255
255
|
return {
|
|
256
256
|
...o,
|
|
257
|
-
data:
|
|
257
|
+
data: e.data,
|
|
258
258
|
failureCount: 0,
|
|
259
259
|
failureReason: null,
|
|
260
260
|
error: null,
|
|
@@ -265,25 +265,25 @@ var B, Ut, We = (Ut = class extends Zt {
|
|
|
265
265
|
return {
|
|
266
266
|
...o,
|
|
267
267
|
data: void 0,
|
|
268
|
-
error:
|
|
268
|
+
error: e.error,
|
|
269
269
|
failureCount: o.failureCount + 1,
|
|
270
|
-
failureReason:
|
|
270
|
+
failureReason: e.error,
|
|
271
271
|
isPaused: !1,
|
|
272
272
|
status: "error"
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
this.state = r(this.state), E.batch(() => {
|
|
277
|
-
h(this,
|
|
278
|
-
o.onMutationUpdate(
|
|
277
|
+
h(this, H).forEach((o) => {
|
|
278
|
+
o.onMutationUpdate(e);
|
|
279
279
|
}), h(this, T).notify({
|
|
280
280
|
mutation: this,
|
|
281
281
|
type: "updated",
|
|
282
|
-
action:
|
|
282
|
+
action: e
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
},
|
|
286
|
-
function $
|
|
285
|
+
}, Ze);
|
|
286
|
+
function $t() {
|
|
287
287
|
return {
|
|
288
288
|
context: void 0,
|
|
289
289
|
data: void 0,
|
|
@@ -296,215 +296,215 @@ function $e() {
|
|
|
296
296
|
submittedAt: 0
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
constructor(
|
|
299
|
+
var Q, F, me, Xe, Zt = (Xe = class extends Je {
|
|
300
|
+
constructor(e = {}) {
|
|
301
301
|
super();
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
this.config =
|
|
302
|
+
I(this, Q);
|
|
303
|
+
I(this, F);
|
|
304
|
+
I(this, me);
|
|
305
|
+
this.config = e, w(this, Q, /* @__PURE__ */ new Set()), w(this, F, /* @__PURE__ */ new Map()), w(this, me, 0);
|
|
306
306
|
}
|
|
307
|
-
build(
|
|
308
|
-
const i = new
|
|
307
|
+
build(e, r, o) {
|
|
308
|
+
const i = new Kt({
|
|
309
309
|
mutationCache: this,
|
|
310
|
-
mutationId: ++
|
|
311
|
-
options:
|
|
310
|
+
mutationId: ++pe(this, me)._,
|
|
311
|
+
options: e.defaultMutationOptions(r),
|
|
312
312
|
state: o
|
|
313
313
|
});
|
|
314
314
|
return this.add(i), i;
|
|
315
315
|
}
|
|
316
|
-
add(
|
|
317
|
-
h(this,
|
|
318
|
-
const r =
|
|
316
|
+
add(e) {
|
|
317
|
+
h(this, Q).add(e);
|
|
318
|
+
const r = ce(e);
|
|
319
319
|
if (typeof r == "string") {
|
|
320
|
-
const o = h(this,
|
|
321
|
-
o ? o.push(
|
|
320
|
+
const o = h(this, F).get(r);
|
|
321
|
+
o ? o.push(e) : h(this, F).set(r, [e]);
|
|
322
322
|
}
|
|
323
|
-
this.notify({ type: "added", mutation:
|
|
323
|
+
this.notify({ type: "added", mutation: e });
|
|
324
324
|
}
|
|
325
|
-
remove(
|
|
326
|
-
if (h(this,
|
|
327
|
-
const r =
|
|
325
|
+
remove(e) {
|
|
326
|
+
if (h(this, Q).delete(e)) {
|
|
327
|
+
const r = ce(e);
|
|
328
328
|
if (typeof r == "string") {
|
|
329
|
-
const o = h(this,
|
|
329
|
+
const o = h(this, F).get(r);
|
|
330
330
|
if (o)
|
|
331
331
|
if (o.length > 1) {
|
|
332
|
-
const i = o.indexOf(
|
|
332
|
+
const i = o.indexOf(e);
|
|
333
333
|
i !== -1 && o.splice(i, 1);
|
|
334
|
-
} else o[0] ===
|
|
334
|
+
} else o[0] === e && h(this, F).delete(r);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
this.notify({ type: "removed", mutation:
|
|
337
|
+
this.notify({ type: "removed", mutation: e });
|
|
338
338
|
}
|
|
339
|
-
canRun(
|
|
340
|
-
const r =
|
|
339
|
+
canRun(e) {
|
|
340
|
+
const r = ce(e);
|
|
341
341
|
if (typeof r == "string") {
|
|
342
|
-
const o = h(this,
|
|
342
|
+
const o = h(this, F).get(r), i = o == null ? void 0 : o.find(
|
|
343
343
|
(a) => a.state.status === "pending"
|
|
344
344
|
);
|
|
345
|
-
return !i || i ===
|
|
345
|
+
return !i || i === e;
|
|
346
346
|
} else
|
|
347
347
|
return !0;
|
|
348
348
|
}
|
|
349
|
-
runNext(
|
|
349
|
+
runNext(e) {
|
|
350
350
|
var o;
|
|
351
|
-
const r =
|
|
351
|
+
const r = ce(e);
|
|
352
352
|
if (typeof r == "string") {
|
|
353
|
-
const i = (o = h(this,
|
|
353
|
+
const i = (o = h(this, F).get(r)) == null ? void 0 : o.find((a) => a !== e && a.state.isPaused);
|
|
354
354
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
355
355
|
} else
|
|
356
356
|
return Promise.resolve();
|
|
357
357
|
}
|
|
358
358
|
clear() {
|
|
359
359
|
E.batch(() => {
|
|
360
|
-
h(this,
|
|
361
|
-
this.notify({ type: "removed", mutation:
|
|
362
|
-
}), h(this,
|
|
360
|
+
h(this, Q).forEach((e) => {
|
|
361
|
+
this.notify({ type: "removed", mutation: e });
|
|
362
|
+
}), h(this, Q).clear(), h(this, F).clear();
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
getAll() {
|
|
366
|
-
return Array.from(h(this,
|
|
366
|
+
return Array.from(h(this, Q));
|
|
367
367
|
}
|
|
368
|
-
find(
|
|
369
|
-
const r = { exact: !0, ...
|
|
368
|
+
find(e) {
|
|
369
|
+
const r = { exact: !0, ...e };
|
|
370
370
|
return this.getAll().find(
|
|
371
|
-
(o) =>
|
|
371
|
+
(o) => He(r, o)
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
|
-
findAll(
|
|
375
|
-
return this.getAll().filter((r) =>
|
|
374
|
+
findAll(e = {}) {
|
|
375
|
+
return this.getAll().filter((r) => He(e, r));
|
|
376
376
|
}
|
|
377
|
-
notify(
|
|
377
|
+
notify(e) {
|
|
378
378
|
E.batch(() => {
|
|
379
379
|
this.listeners.forEach((r) => {
|
|
380
|
-
r(
|
|
380
|
+
r(e);
|
|
381
381
|
});
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
resumePausedMutations() {
|
|
385
|
-
const
|
|
385
|
+
const e = this.getAll().filter((r) => r.state.isPaused);
|
|
386
386
|
return E.batch(
|
|
387
387
|
() => Promise.all(
|
|
388
|
-
|
|
388
|
+
e.map((r) => r.continue().catch(z))
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
},
|
|
393
|
-
function
|
|
394
|
-
var
|
|
395
|
-
return (
|
|
392
|
+
}, Q = new WeakMap(), F = new WeakMap(), me = new WeakMap(), Xe);
|
|
393
|
+
function ce(t) {
|
|
394
|
+
var e;
|
|
395
|
+
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Ve(t) {
|
|
398
398
|
return {
|
|
399
|
-
onFetch: (
|
|
400
|
-
var p, c,
|
|
401
|
-
const o =
|
|
399
|
+
onFetch: (e, r) => {
|
|
400
|
+
var p, c, b, s, N;
|
|
401
|
+
const o = e.options, i = (b = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : b.direction, a = ((s = e.state.data) == null ? void 0 : s.pages) || [], l = ((N = e.state.data) == null ? void 0 : N.pageParams) || [];
|
|
402
402
|
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
403
|
const x = async () => {
|
|
404
|
-
let
|
|
405
|
-
const
|
|
406
|
-
Object.defineProperty(
|
|
404
|
+
let k = !1;
|
|
405
|
+
const B = (C) => {
|
|
406
|
+
Object.defineProperty(C, "signal", {
|
|
407
407
|
enumerable: !0,
|
|
408
|
-
get: () => (
|
|
409
|
-
|
|
410
|
-
}),
|
|
408
|
+
get: () => (e.signal.aborted ? k = !0 : e.signal.addEventListener("abort", () => {
|
|
409
|
+
k = !0;
|
|
410
|
+
}), e.signal)
|
|
411
411
|
});
|
|
412
|
-
},
|
|
413
|
-
if (
|
|
412
|
+
}, R = Ct(e.options, e.fetchOptions), V = async (C, M, A) => {
|
|
413
|
+
if (k)
|
|
414
414
|
return Promise.reject();
|
|
415
|
-
if (M == null &&
|
|
416
|
-
return Promise.resolve(
|
|
417
|
-
const
|
|
418
|
-
client:
|
|
419
|
-
queryKey:
|
|
415
|
+
if (M == null && C.pages.length)
|
|
416
|
+
return Promise.resolve(C);
|
|
417
|
+
const X = {
|
|
418
|
+
client: e.client,
|
|
419
|
+
queryKey: e.queryKey,
|
|
420
420
|
pageParam: M,
|
|
421
|
-
direction:
|
|
422
|
-
meta:
|
|
421
|
+
direction: A ? "backward" : "forward",
|
|
422
|
+
meta: e.options.meta
|
|
423
423
|
};
|
|
424
|
-
|
|
425
|
-
const
|
|
426
|
-
|
|
427
|
-
), { maxPages:
|
|
424
|
+
B(X);
|
|
425
|
+
const xe = await R(
|
|
426
|
+
X
|
|
427
|
+
), { maxPages: ie } = e.options, v = A ? It : Tt;
|
|
428
428
|
return {
|
|
429
|
-
pages:
|
|
430
|
-
pageParams:
|
|
429
|
+
pages: v(C.pages, xe, ie),
|
|
430
|
+
pageParams: v(C.pageParams, M, ie)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
433
|
if (i && a.length) {
|
|
434
|
-
const
|
|
434
|
+
const C = i === "backward", M = C ? Xt : Ae, A = {
|
|
435
435
|
pages: a,
|
|
436
436
|
pageParams: l
|
|
437
|
-
},
|
|
438
|
-
u = await
|
|
437
|
+
}, X = M(o, A);
|
|
438
|
+
u = await V(A, X, C);
|
|
439
439
|
} else {
|
|
440
|
-
const
|
|
440
|
+
const C = t ?? a.length;
|
|
441
441
|
do {
|
|
442
|
-
const M = m === 0 ? l[0] ?? o.initialPageParam :
|
|
442
|
+
const M = m === 0 ? l[0] ?? o.initialPageParam : Ae(o, u);
|
|
443
443
|
if (m > 0 && M == null)
|
|
444
444
|
break;
|
|
445
|
-
u = await
|
|
446
|
-
} while (m <
|
|
445
|
+
u = await V(u, M), m++;
|
|
446
|
+
} while (m < C);
|
|
447
447
|
}
|
|
448
448
|
return u;
|
|
449
449
|
};
|
|
450
|
-
|
|
451
|
-
var
|
|
452
|
-
return (
|
|
453
|
-
|
|
450
|
+
e.options.persister ? e.fetchFn = () => {
|
|
451
|
+
var k, B;
|
|
452
|
+
return (B = (k = e.options).persister) == null ? void 0 : B.call(
|
|
453
|
+
k,
|
|
454
454
|
x,
|
|
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 = x;
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
const o =
|
|
469
|
-
return
|
|
470
|
-
|
|
471
|
-
|
|
467
|
+
function Ae(t, { pages: e, pageParams: r }) {
|
|
468
|
+
const o = e.length - 1;
|
|
469
|
+
return e.length > 0 ? t.getNextPageParam(
|
|
470
|
+
e[o],
|
|
471
|
+
e,
|
|
472
472
|
r[o],
|
|
473
473
|
r
|
|
474
474
|
) : void 0;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Xt(t, { pages: e, pageParams: r }) {
|
|
477
477
|
var o;
|
|
478
|
-
return
|
|
478
|
+
return e.length > 0 ? (o = t.getPreviousPageParam) == null ? void 0 : o.call(t, e[0], e, r[0], r) : void 0;
|
|
479
479
|
}
|
|
480
|
-
var
|
|
481
|
-
constructor(
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
480
|
+
var y, W, K, ee, te, $, re, ne, Ye, Yt = (Ye = class {
|
|
481
|
+
constructor(t = {}) {
|
|
482
|
+
I(this, y);
|
|
483
|
+
I(this, W);
|
|
484
|
+
I(this, K);
|
|
485
|
+
I(this, ee);
|
|
486
|
+
I(this, te);
|
|
487
|
+
I(this, $);
|
|
488
|
+
I(this, re);
|
|
489
|
+
I(this, ne);
|
|
490
|
+
w(this, y, t.queryCache || new Wt()), w(this, W, t.mutationCache || new Zt()), w(this, K, t.defaultOptions || {}), w(this, ee, /* @__PURE__ */ new Map()), w(this, te, /* @__PURE__ */ new Map()), w(this, $, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
})),
|
|
496
|
-
|
|
493
|
+
pe(this, $)._++, h(this, $) === 1 && (w(this, re, Mt.subscribe(async (t) => {
|
|
494
|
+
t && (await this.resumePausedMutations(), h(this, y).onFocus());
|
|
495
|
+
})), w(this, ne, De.subscribe(async (t) => {
|
|
496
|
+
t && (await this.resumePausedMutations(), h(this, y).onOnline());
|
|
497
497
|
})));
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
|
-
var
|
|
501
|
-
|
|
500
|
+
var t, e;
|
|
501
|
+
pe(this, $)._--, h(this, $) === 0 && ((t = h(this, re)) == null || t.call(this), w(this, re, void 0), (e = h(this, ne)) == null || e.call(this), w(this, ne, void 0));
|
|
502
502
|
}
|
|
503
|
-
isFetching(
|
|
504
|
-
return h(this,
|
|
503
|
+
isFetching(t) {
|
|
504
|
+
return h(this, y).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
505
505
|
}
|
|
506
|
-
isMutating(
|
|
507
|
-
return h(this,
|
|
506
|
+
isMutating(t) {
|
|
507
|
+
return h(this, W).findAll({ ...t, status: "pending" }).length;
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
@@ -513,178 +513,178 @@ var j, U, W, tt, et, K, rt, nt, $t, Je = ($t = 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,
|
|
518
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
519
|
+
return (r = h(this, y).get(e.queryHash)) == null ? void 0 : r.state.data;
|
|
520
520
|
}
|
|
521
|
-
ensureQueryData(
|
|
522
|
-
const
|
|
523
|
-
return o === void 0 ? this.fetchQuery(
|
|
521
|
+
ensureQueryData(t) {
|
|
522
|
+
const e = this.defaultQueryOptions(t), r = h(this, y).build(this, e), o = r.state.data;
|
|
523
|
+
return o === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(Pe(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(o));
|
|
524
524
|
}
|
|
525
|
-
getQueriesData(
|
|
526
|
-
return h(this,
|
|
525
|
+
getQueriesData(t) {
|
|
526
|
+
return h(this, y).findAll(t).map(({ queryKey: e, state: r }) => {
|
|
527
527
|
const o = r.data;
|
|
528
|
-
return [
|
|
528
|
+
return [e, o];
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
setQueryData(
|
|
532
|
-
const o = this.defaultQueryOptions({ queryKey:
|
|
531
|
+
setQueryData(t, e, r) {
|
|
532
|
+
const o = this.defaultQueryOptions({ queryKey: t }), i = h(this, y).get(
|
|
533
533
|
o.queryHash
|
|
534
|
-
), a = i == null ? void 0 : i.state.data, l =
|
|
534
|
+
), a = i == null ? void 0 : i.state.data, l = Et(e, a);
|
|
535
535
|
if (l !== void 0)
|
|
536
|
-
return h(this,
|
|
536
|
+
return h(this, y).build(this, o).setData(l, { ...r, manual: !0 });
|
|
537
537
|
}
|
|
538
|
-
setQueriesData(
|
|
538
|
+
setQueriesData(t, e, r) {
|
|
539
539
|
return E.batch(
|
|
540
|
-
() => h(this,
|
|
540
|
+
() => h(this, y).findAll(t).map(({ queryKey: o }) => [
|
|
541
541
|
o,
|
|
542
|
-
this.setQueryData(o,
|
|
542
|
+
this.setQueryData(o, e, r)
|
|
543
543
|
])
|
|
544
544
|
);
|
|
545
545
|
}
|
|
546
|
-
getQueryState(
|
|
546
|
+
getQueryState(t) {
|
|
547
547
|
var r;
|
|
548
|
-
const
|
|
549
|
-
return (r = h(this,
|
|
550
|
-
|
|
548
|
+
const e = this.defaultQueryOptions({ queryKey: t });
|
|
549
|
+
return (r = h(this, y).get(
|
|
550
|
+
e.queryHash
|
|
551
551
|
)) == null ? void 0 : r.state;
|
|
552
552
|
}
|
|
553
|
-
removeQueries(
|
|
554
|
-
const
|
|
553
|
+
removeQueries(t) {
|
|
554
|
+
const e = h(this, y);
|
|
555
555
|
E.batch(() => {
|
|
556
|
-
|
|
557
|
-
|
|
556
|
+
e.findAll(t).forEach((r) => {
|
|
557
|
+
e.remove(r);
|
|
558
558
|
});
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
resetQueries(
|
|
562
|
-
const r = h(this,
|
|
563
|
-
return E.batch(() => (r.findAll(
|
|
561
|
+
resetQueries(t, e) {
|
|
562
|
+
const r = h(this, y);
|
|
563
|
+
return E.batch(() => (r.findAll(t).forEach((o) => {
|
|
564
564
|
o.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,
|
|
573
|
+
cancelQueries(t, e = {}) {
|
|
574
|
+
const r = { revert: !0, ...e }, o = E.batch(
|
|
575
|
+
() => h(this, y).findAll(t).map((i) => i.cancel(r))
|
|
576
576
|
);
|
|
577
|
-
return Promise.all(o).then(
|
|
577
|
+
return Promise.all(o).then(z).catch(z);
|
|
578
578
|
}
|
|
579
|
-
invalidateQueries(
|
|
580
|
-
return E.batch(() => (h(this,
|
|
579
|
+
invalidateQueries(t, e = {}) {
|
|
580
|
+
return E.batch(() => (h(this, y).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:
|
|
592
|
+
...e,
|
|
593
|
+
cancelRefetch: e.cancelRefetch ?? !0
|
|
594
594
|
}, o = E.batch(
|
|
595
|
-
() => h(this,
|
|
595
|
+
() => h(this, y).findAll(t).filter((i) => !i.isDisabled()).map((i) => {
|
|
596
596
|
let a = i.fetch(void 0, r);
|
|
597
|
-
return r.throwOnError || (a = a.catch(
|
|
597
|
+
return r.throwOnError || (a = a.catch(z)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
|
|
598
598
|
})
|
|
599
599
|
);
|
|
600
|
-
return Promise.all(o).then(
|
|
600
|
+
return Promise.all(o).then(z);
|
|
601
601
|
}
|
|
602
|
-
fetchQuery(
|
|
603
|
-
const
|
|
604
|
-
|
|
605
|
-
const r = h(this,
|
|
602
|
+
fetchQuery(t) {
|
|
603
|
+
const e = this.defaultQueryOptions(t);
|
|
604
|
+
e.retry === void 0 && (e.retry = !1);
|
|
605
|
+
const r = h(this, y).build(this, e);
|
|
606
606
|
return r.isStaleByTime(
|
|
607
|
-
|
|
608
|
-
) ? r.fetch(
|
|
607
|
+
Pe(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(z).catch(z);
|
|
612
612
|
}
|
|
613
|
-
fetchInfiniteQuery(
|
|
614
|
-
return
|
|
613
|
+
fetchInfiniteQuery(t) {
|
|
614
|
+
return t.behavior = Ve(t.pages), this.fetchQuery(t);
|
|
615
615
|
}
|
|
616
|
-
prefetchInfiniteQuery(
|
|
617
|
-
return this.fetchInfiniteQuery(
|
|
616
|
+
prefetchInfiniteQuery(t) {
|
|
617
|
+
return this.fetchInfiniteQuery(t).then(z).catch(z);
|
|
618
618
|
}
|
|
619
|
-
ensureInfiniteQueryData(
|
|
620
|
-
return
|
|
619
|
+
ensureInfiniteQueryData(t) {
|
|
620
|
+
return t.behavior = Ve(t.pages), this.ensureQueryData(t);
|
|
621
621
|
}
|
|
622
622
|
resumePausedMutations() {
|
|
623
|
-
return
|
|
623
|
+
return De.isOnline() ? h(this, W).resumePausedMutations() : Promise.resolve();
|
|
624
624
|
}
|
|
625
625
|
getQueryCache() {
|
|
626
|
-
return h(this,
|
|
626
|
+
return h(this, y);
|
|
627
627
|
}
|
|
628
628
|
getMutationCache() {
|
|
629
|
-
return h(this,
|
|
629
|
+
return h(this, W);
|
|
630
630
|
}
|
|
631
631
|
getDefaultOptions() {
|
|
632
|
-
return h(this,
|
|
632
|
+
return h(this, K);
|
|
633
633
|
}
|
|
634
|
-
setDefaultOptions(
|
|
635
|
-
|
|
634
|
+
setDefaultOptions(t) {
|
|
635
|
+
w(this, K, t);
|
|
636
636
|
}
|
|
637
|
-
setQueryDefaults(
|
|
638
|
-
h(this,
|
|
639
|
-
queryKey:
|
|
640
|
-
defaultOptions:
|
|
637
|
+
setQueryDefaults(t, e) {
|
|
638
|
+
h(this, ee).set(Le(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, ee).values()], r = {};
|
|
645
|
+
return e.forEach((o) => {
|
|
646
|
+
ze(t, o.queryKey) && Object.assign(r, o.defaultOptions);
|
|
647
647
|
}), r;
|
|
648
648
|
}
|
|
649
|
-
setMutationDefaults(
|
|
650
|
-
h(this,
|
|
651
|
-
mutationKey:
|
|
652
|
-
defaultOptions:
|
|
649
|
+
setMutationDefaults(t, e) {
|
|
650
|
+
h(this, te).set(Le(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, te).values()], r = {};
|
|
657
|
+
return e.forEach((o) => {
|
|
658
|
+
ze(t, o.mutationKey) && Object.assign(r, o.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 = Ge(
|
|
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 === Ot && (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,
|
|
684
|
+
h(this, y).clear(), h(this, W).clear();
|
|
685
685
|
}
|
|
686
|
-
},
|
|
687
|
-
const
|
|
686
|
+
}, y = new WeakMap(), W = new WeakMap(), K = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), $ = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), Ye);
|
|
687
|
+
const Jt = [
|
|
688
688
|
"header",
|
|
689
689
|
"footer",
|
|
690
690
|
"interLinking",
|
|
@@ -696,45 +696,45 @@ const Ye = [
|
|
|
696
696
|
"form",
|
|
697
697
|
"seoHeader",
|
|
698
698
|
"calculator"
|
|
699
|
-
],
|
|
700
|
-
(
|
|
699
|
+
], j = Jt.reduce(
|
|
700
|
+
(t, e) => (t[e] = e, t),
|
|
701
701
|
{}
|
|
702
|
-
),
|
|
703
|
-
const o = e
|
|
704
|
-
if (
|
|
705
|
-
throw new Error(`validation for type ${String(
|
|
706
|
-
if (!
|
|
707
|
-
throw new Error(`Cannot generate ${String(
|
|
702
|
+
), Gt = ["getFioSchema"], mt = (t, e, r) => {
|
|
703
|
+
const o = t[e];
|
|
704
|
+
if (g.isNil(o))
|
|
705
|
+
throw new Error(`validation for type ${String(e)} not found`);
|
|
706
|
+
if (!g.isFunction(o))
|
|
707
|
+
throw new Error(`Cannot generate ${String(e)} because is not a function`);
|
|
708
708
|
return o(r);
|
|
709
|
-
},
|
|
710
|
-
const r =
|
|
711
|
-
const a =
|
|
709
|
+
}, er = (t, e) => mt(at.base, t, e), tr = (t, e) => mt(at.dadata, t, e), xt = (t) => {
|
|
710
|
+
const r = ((t == null ? void 0 : t.map((o) => ({ name: o.args.name, validation: o.args.validation }))) ?? []).reduce((o, i) => {
|
|
711
|
+
const a = Gt.includes(i.validation.type) ? tr(
|
|
712
712
|
i.validation.type,
|
|
713
713
|
i.validation.args
|
|
714
|
-
) :
|
|
714
|
+
) : er(
|
|
715
715
|
i.validation.type,
|
|
716
716
|
i.validation.args
|
|
717
717
|
);
|
|
718
718
|
return o[i.name] = a, o;
|
|
719
719
|
}, {});
|
|
720
|
-
return
|
|
721
|
-
}, rr = (
|
|
722
|
-
switch (
|
|
720
|
+
return lt(r);
|
|
721
|
+
}, rr = (t) => rt(() => {
|
|
722
|
+
switch (t.handler) {
|
|
723
723
|
case "navigate": {
|
|
724
|
-
const { url: r, target: o, rel: i } =
|
|
725
|
-
|
|
724
|
+
const { url: r, target: o, rel: i } = t;
|
|
725
|
+
ot && (window == null || window.open(r, o, i));
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
728
728
|
case "scroll": {
|
|
729
|
-
const { widgetId: r } =
|
|
730
|
-
|
|
729
|
+
const { widgetId: r } = t ?? "";
|
|
730
|
+
zt({ widgetId: r });
|
|
731
731
|
break;
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
}, [
|
|
735
|
-
const o = rr(
|
|
736
|
-
return /* @__PURE__ */ n.jsx(
|
|
737
|
-
}, nr =
|
|
734
|
+
}, [t]), Z = ({ handlerOptions: t, className: e, ...r }) => {
|
|
735
|
+
const o = rr(t);
|
|
736
|
+
return /* @__PURE__ */ n.jsx(Te, { className: d(e), onClick: o, ...r, children: r.children });
|
|
737
|
+
}, nr = O(
|
|
738
738
|
"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",
|
|
739
739
|
{
|
|
740
740
|
variants: {
|
|
@@ -746,8 +746,8 @@ const Ye = [
|
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
748
|
), or = ({
|
|
749
|
-
subtitle:
|
|
750
|
-
title:
|
|
749
|
+
subtitle: t,
|
|
750
|
+
title: e,
|
|
751
751
|
img: r,
|
|
752
752
|
mobileImg: o,
|
|
753
753
|
classes: i,
|
|
@@ -756,7 +756,7 @@ const Ye = [
|
|
|
756
756
|
variant: u,
|
|
757
757
|
color: m
|
|
758
758
|
}) => {
|
|
759
|
-
const { isDesktop: x } =
|
|
759
|
+
const { isDesktop: x } = G();
|
|
760
760
|
return /* @__PURE__ */ n.jsxs(
|
|
761
761
|
"li",
|
|
762
762
|
{
|
|
@@ -765,23 +765,23 @@ const Ye = [
|
|
|
765
765
|
children: [
|
|
766
766
|
/* @__PURE__ */ n.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: [
|
|
767
767
|
/* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
768
|
-
/* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html:
|
|
768
|
+
/* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className: d("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
769
769
|
/* @__PURE__ */ n.jsx(
|
|
770
770
|
"div",
|
|
771
771
|
{
|
|
772
|
-
dangerouslySetInnerHTML: { __html:
|
|
772
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
773
773
|
className: d("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
|
|
774
774
|
}
|
|
775
775
|
)
|
|
776
776
|
] }),
|
|
777
|
-
a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx(
|
|
777
|
+
a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx(Z, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
|
|
778
778
|
] }),
|
|
779
|
-
(o || x) && r && /* @__PURE__ */ n.jsx("div", { className: d("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r &&
|
|
779
|
+
(o || x) && r && /* @__PURE__ */ n.jsx("div", { className: d("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && g.isObject(r) ? /* @__PURE__ */ n.jsx("img", { className: d("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: r.alt }) : r })
|
|
780
780
|
]
|
|
781
781
|
},
|
|
782
|
-
|
|
782
|
+
e
|
|
783
783
|
);
|
|
784
|
-
}, ir =
|
|
784
|
+
}, ir = O("grid gap-4", {
|
|
785
785
|
variants: {
|
|
786
786
|
variant: {
|
|
787
787
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -789,37 +789,37 @@ const Ye = [
|
|
|
789
789
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
}),
|
|
792
|
+
}), Zn = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: d("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ n.jsxs(S, { className: o == null ? void 0 : o.container, children: [
|
|
793
793
|
/* @__PURE__ */ n.jsx(
|
|
794
794
|
"div",
|
|
795
795
|
{
|
|
796
|
-
dangerouslySetInnerHTML: { __html:
|
|
796
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
797
797
|
className: d("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
|
|
798
798
|
}
|
|
799
799
|
),
|
|
800
|
-
/* @__PURE__ */ n.jsx("ul", { className: d(ir({ variant: r }), o == null ? void 0 : o.grid), children:
|
|
801
|
-
] }) }), ar = ({ variant:
|
|
802
|
-
switch (
|
|
800
|
+
/* @__PURE__ */ n.jsx("ul", { className: d(ir({ variant: r }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx(or, { variant: r, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
|
|
801
|
+
] }) }), ar = ({ variant: t, details: e }) => {
|
|
802
|
+
switch (t) {
|
|
803
803
|
case "withButton":
|
|
804
|
-
return /* @__PURE__ */ n.jsx(
|
|
804
|
+
return /* @__PURE__ */ n.jsx(Z, { ...e });
|
|
805
805
|
case "withPhone":
|
|
806
|
-
return /* @__PURE__ */ n.jsx(
|
|
806
|
+
return /* @__PURE__ */ n.jsx(et, { classes: { root: "items-end" }, ...e, phone: ye(e.phone) });
|
|
807
807
|
default:
|
|
808
808
|
return null;
|
|
809
809
|
}
|
|
810
|
-
},
|
|
811
|
-
const { logoPath:
|
|
810
|
+
}, Xn = (t) => {
|
|
811
|
+
const { logoPath: e = "/", logoType: r = "main", classes: o } = t;
|
|
812
812
|
return /* @__PURE__ */ n.jsx(
|
|
813
813
|
"header",
|
|
814
814
|
{
|
|
815
|
-
id:
|
|
816
|
-
"data-test-id":
|
|
815
|
+
id: j.header,
|
|
816
|
+
"data-test-id": j.header,
|
|
817
817
|
className: d("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
818
818
|
children: /* @__PURE__ */ n.jsx(S, { className: d(o == null ? void 0 : o.container), children: /* @__PURE__ */ n.jsxs("div", { className: d("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
819
819
|
/* @__PURE__ */ n.jsx(
|
|
820
820
|
"a",
|
|
821
821
|
{
|
|
822
|
-
href:
|
|
822
|
+
href: e,
|
|
823
823
|
"aria-label": "logo",
|
|
824
824
|
target: "_blank",
|
|
825
825
|
rel: "noreferrer",
|
|
@@ -827,16 +827,16 @@ const Ye = [
|
|
|
827
827
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
828
828
|
o == null ? void 0 : o.logo
|
|
829
829
|
),
|
|
830
|
-
children:
|
|
830
|
+
children: Ft[r]
|
|
831
831
|
}
|
|
832
832
|
),
|
|
833
|
-
ar(
|
|
833
|
+
ar(t)
|
|
834
834
|
] }) })
|
|
835
835
|
}
|
|
836
836
|
);
|
|
837
837
|
}, dr = ({
|
|
838
|
-
headTitle:
|
|
839
|
-
subtitle:
|
|
838
|
+
headTitle: t,
|
|
839
|
+
subtitle: e,
|
|
840
840
|
buttonsConfig: r,
|
|
841
841
|
advantages: o,
|
|
842
842
|
classes: i,
|
|
@@ -844,41 +844,41 @@ const Ye = [
|
|
|
844
844
|
imgDesktop: l,
|
|
845
845
|
color: u
|
|
846
846
|
}) => {
|
|
847
|
-
var
|
|
848
|
-
const { isDesktop: m, isMobile: x } =
|
|
847
|
+
var k;
|
|
848
|
+
const { isDesktop: m, isMobile: x } = G(), { primary: p, secondary: c } = r || {}, b = a && "url" in a && g.isObject(a) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: a.url }) : a, s = l && "url" in l && g.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, N = /* @__PURE__ */ n.jsx(
|
|
849
849
|
"div",
|
|
850
850
|
{
|
|
851
851
|
className: d(
|
|
852
852
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
853
853
|
i == null ? void 0 : i.advantageContainer
|
|
854
854
|
),
|
|
855
|
-
children: (o == null ? void 0 : o.details) && ((
|
|
855
|
+
children: (o == null ? void 0 : o.details) && ((k = o == null ? void 0 : o.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ n.jsx(Ce, { ...o })
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
858
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
859
859
|
/* @__PURE__ */ n.jsxs(
|
|
860
860
|
"section",
|
|
861
861
|
{
|
|
862
|
-
id:
|
|
863
|
-
"data-test-id":
|
|
862
|
+
id: j.banner,
|
|
863
|
+
"data-test-id": j.banner,
|
|
864
864
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
865
865
|
className: d("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
866
866
|
children: [
|
|
867
|
-
/* @__PURE__ */ n.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: x ?
|
|
867
|
+
/* @__PURE__ */ n.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: x ? b : s }),
|
|
868
868
|
/* @__PURE__ */ n.jsxs(S, { className: d("h-full", i == null ? void 0 : i.container), children: [
|
|
869
869
|
/* @__PURE__ */ n.jsx("div", { className: d("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ n.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: [
|
|
870
870
|
/* @__PURE__ */ n.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
871
871
|
/* @__PURE__ */ n.jsx(
|
|
872
872
|
"div",
|
|
873
873
|
{
|
|
874
|
-
dangerouslySetInnerHTML: { __html:
|
|
874
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
875
875
|
className: d("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
876
876
|
}
|
|
877
877
|
),
|
|
878
878
|
/* @__PURE__ */ n.jsx(
|
|
879
879
|
"div",
|
|
880
880
|
{
|
|
881
|
-
dangerouslySetInnerHTML: { __html:
|
|
881
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
882
882
|
className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
883
883
|
}
|
|
884
884
|
)
|
|
@@ -893,7 +893,7 @@ const Ye = [
|
|
|
893
893
|
),
|
|
894
894
|
children: [
|
|
895
895
|
p.enabled && /* @__PURE__ */ n.jsx(
|
|
896
|
-
|
|
896
|
+
Z,
|
|
897
897
|
{
|
|
898
898
|
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
899
899
|
size: "lg",
|
|
@@ -902,7 +902,7 @@ const Ye = [
|
|
|
902
902
|
}
|
|
903
903
|
),
|
|
904
904
|
(c == null ? void 0 : c.enabled) && /* @__PURE__ */ n.jsx(
|
|
905
|
-
|
|
905
|
+
Z,
|
|
906
906
|
{
|
|
907
907
|
intent: "secondary",
|
|
908
908
|
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
@@ -913,16 +913,16 @@ const Ye = [
|
|
|
913
913
|
}
|
|
914
914
|
)
|
|
915
915
|
] }) }),
|
|
916
|
-
m && (o == null ? void 0 : o.enabled) &&
|
|
916
|
+
m && (o == null ? void 0 : o.enabled) && N
|
|
917
917
|
] })
|
|
918
918
|
]
|
|
919
919
|
}
|
|
920
920
|
),
|
|
921
|
-
x && (o == null ? void 0 : o.enabled) &&
|
|
921
|
+
x && (o == null ? void 0 : o.enabled) && N
|
|
922
922
|
] });
|
|
923
|
-
},
|
|
924
|
-
headTitle:
|
|
925
|
-
subtitle:
|
|
923
|
+
}, qe = ({
|
|
924
|
+
headTitle: t,
|
|
925
|
+
subtitle: e,
|
|
926
926
|
buttonsConfig: r,
|
|
927
927
|
advantages: o,
|
|
928
928
|
classes: i,
|
|
@@ -930,14 +930,14 @@ const Ye = [
|
|
|
930
930
|
imgDesktop: l,
|
|
931
931
|
color: u
|
|
932
932
|
}) => {
|
|
933
|
-
var
|
|
934
|
-
const { isMobile: m } =
|
|
933
|
+
var s, N;
|
|
934
|
+
const { isMobile: m } = G(), { primary: x, secondary: p } = r || {}, c = a && "url" in a && g.isObject(a) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: a.alt, src: a.url }) : a, b = l && "url" in l && g.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
|
|
935
935
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
936
936
|
/* @__PURE__ */ n.jsx(
|
|
937
937
|
"section",
|
|
938
938
|
{
|
|
939
|
-
id:
|
|
940
|
-
"data-test-id":
|
|
939
|
+
id: j.banner,
|
|
940
|
+
"data-test-id": j.banner,
|
|
941
941
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
942
942
|
className: d("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
943
943
|
children: /* @__PURE__ */ n.jsxs(S, { className: d("relative", i == null ? void 0 : i.container), children: [
|
|
@@ -947,14 +947,14 @@ const Ye = [
|
|
|
947
947
|
/* @__PURE__ */ n.jsx(
|
|
948
948
|
"div",
|
|
949
949
|
{
|
|
950
|
-
dangerouslySetInnerHTML: { __html:
|
|
950
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
951
951
|
className: d("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
952
952
|
}
|
|
953
953
|
),
|
|
954
954
|
/* @__PURE__ */ n.jsx(
|
|
955
955
|
"div",
|
|
956
956
|
{
|
|
957
|
-
dangerouslySetInnerHTML: { __html:
|
|
957
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
958
958
|
className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
959
959
|
}
|
|
960
960
|
)
|
|
@@ -969,7 +969,7 @@ const Ye = [
|
|
|
969
969
|
),
|
|
970
970
|
children: [
|
|
971
971
|
x.enabled && /* @__PURE__ */ n.jsx(
|
|
972
|
-
|
|
972
|
+
Z,
|
|
973
973
|
{
|
|
974
974
|
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
975
975
|
size: "lg",
|
|
@@ -978,7 +978,7 @@ const Ye = [
|
|
|
978
978
|
}
|
|
979
979
|
),
|
|
980
980
|
(p == null ? void 0 : p.enabled) && /* @__PURE__ */ n.jsx(
|
|
981
|
-
|
|
981
|
+
Z,
|
|
982
982
|
{
|
|
983
983
|
intent: "secondary",
|
|
984
984
|
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
@@ -996,7 +996,7 @@ const Ye = [
|
|
|
996
996
|
"relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]",
|
|
997
997
|
i == null ? void 0 : i.imageContainer
|
|
998
998
|
),
|
|
999
|
-
children: m ? c :
|
|
999
|
+
children: m ? c : b
|
|
1000
1000
|
}
|
|
1001
1001
|
)
|
|
1002
1002
|
] }),
|
|
@@ -1007,7 +1007,7 @@ const Ye = [
|
|
|
1007
1007
|
"items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:flex desktop:translate-x-1/2 desktop:p-0",
|
|
1008
1008
|
i == null ? void 0 : i.advantageContainer
|
|
1009
1009
|
),
|
|
1010
|
-
children: (o == null ? void 0 : o.details) && ((
|
|
1010
|
+
children: (o == null ? void 0 : o.details) && ((s = o == null ? void 0 : o.details) == null ? void 0 : s.items.length) > 0 && /* @__PURE__ */ n.jsx(Ce, { ...o })
|
|
1011
1011
|
}
|
|
1012
1012
|
)
|
|
1013
1013
|
] })
|
|
@@ -1020,21 +1020,21 @@ const Ye = [
|
|
|
1020
1020
|
"flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
|
|
1021
1021
|
i == null ? void 0 : i.advantageContainer
|
|
1022
1022
|
),
|
|
1023
|
-
children: (o == null ? void 0 : o.details) && ((
|
|
1023
|
+
children: (o == null ? void 0 : o.details) && ((N = o == null ? void 0 : o.details) == null ? void 0 : N.items.length) > 0 && /* @__PURE__ */ n.jsx(Ce, { ...o })
|
|
1024
1024
|
}
|
|
1025
1025
|
)
|
|
1026
1026
|
] });
|
|
1027
|
-
},
|
|
1028
|
-
switch (
|
|
1027
|
+
}, Yn = ({ variant: t, ...e }) => {
|
|
1028
|
+
switch (t) {
|
|
1029
1029
|
case "separateImg":
|
|
1030
|
-
return /* @__PURE__ */ n.jsx(
|
|
1030
|
+
return /* @__PURE__ */ n.jsx(qe, { ...e });
|
|
1031
1031
|
case "fullImg":
|
|
1032
|
-
return /* @__PURE__ */ n.jsx(dr, { ...
|
|
1032
|
+
return /* @__PURE__ */ n.jsx(dr, { ...e });
|
|
1033
1033
|
default:
|
|
1034
|
-
return /* @__PURE__ */ n.jsx(
|
|
1034
|
+
return /* @__PURE__ */ n.jsx(qe, { ...e });
|
|
1035
1035
|
}
|
|
1036
|
-
},
|
|
1037
|
-
const { variant: r, items: o } =
|
|
1036
|
+
}, Ce = ({ details: t, classes: e }) => {
|
|
1037
|
+
const { variant: r, items: o } = t ?? {};
|
|
1038
1038
|
return /* @__PURE__ */ n.jsx(
|
|
1039
1039
|
"div",
|
|
1040
1040
|
{
|
|
@@ -1043,64 +1043,64 @@ const Ye = [
|
|
|
1043
1043
|
"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",
|
|
1044
1044
|
{ "desktop:max-w-[860px]": r === "threeCards" },
|
|
1045
1045
|
{ "desktop:max-w-[1140px]": r === "fourCards" },
|
|
1046
|
-
|
|
1046
|
+
e == null ? void 0 : e.root
|
|
1047
1047
|
),
|
|
1048
1048
|
children: o == null ? void 0 : o.map(({ title: i, description: a }) => /* @__PURE__ */ n.jsxs(
|
|
1049
1049
|
"div",
|
|
1050
1050
|
{
|
|
1051
1051
|
className: d(
|
|
1052
1052
|
'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',
|
|
1053
|
-
|
|
1053
|
+
e == null ? void 0 : e.item
|
|
1054
1054
|
),
|
|
1055
1055
|
children: [
|
|
1056
|
-
/* @__PURE__ */ n.jsx(
|
|
1057
|
-
/* @__PURE__ */ n.jsx("p", { className: d("desk-body-regular-l text-color-secondary",
|
|
1056
|
+
/* @__PURE__ */ n.jsx(P, { as: "h4", className: d("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
1057
|
+
/* @__PURE__ */ n.jsx("p", { className: d("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
|
|
1058
1058
|
]
|
|
1059
1059
|
},
|
|
1060
1060
|
i
|
|
1061
1061
|
))
|
|
1062
1062
|
}
|
|
1063
1063
|
);
|
|
1064
|
-
}, lr = ({ socialsLinks:
|
|
1064
|
+
}, lr = ({ socialsLinks: t, classes: e }) => /* @__PURE__ */ n.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: o }) => /* @__PURE__ */ n.jsx(
|
|
1065
1065
|
"a",
|
|
1066
1066
|
{
|
|
1067
|
-
className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2",
|
|
1067
|
+
className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1068
1068
|
href: o,
|
|
1069
1069
|
"aria-label": r.replace("social/", ""),
|
|
1070
|
-
children: /* @__PURE__ */ n.jsx(f, { name: r, className: d("h-full w-full text-icon-white",
|
|
1070
|
+
children: /* @__PURE__ */ n.jsx(f, { name: r, className: d("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1071
1071
|
},
|
|
1072
1072
|
o
|
|
1073
|
-
)) }), ur = ({ phones:
|
|
1074
|
-
|
|
1073
|
+
)) }), ur = ({ phones: t, classes: e }) => /* @__PURE__ */ n.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: o }) => /* @__PURE__ */ n.jsx(
|
|
1074
|
+
et,
|
|
1075
1075
|
{
|
|
1076
|
-
phone:
|
|
1076
|
+
phone: ye(r),
|
|
1077
1077
|
text: o,
|
|
1078
1078
|
classes: {
|
|
1079
|
-
root: d(
|
|
1080
|
-
text: d("text-color-footer",
|
|
1081
|
-
link: d("text-color-white mobile:m-0",
|
|
1079
|
+
root: d(e == null ? void 0 : e.phoneWrapper),
|
|
1080
|
+
text: d("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
1081
|
+
link: d("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
1082
1082
|
}
|
|
1083
1083
|
},
|
|
1084
1084
|
r
|
|
1085
|
-
)) }), mr = ({ classes:
|
|
1085
|
+
)) }), mr = ({ classes: t, details: e }) => /* @__PURE__ */ n.jsx(
|
|
1086
1086
|
"div",
|
|
1087
1087
|
{
|
|
1088
1088
|
className: d(
|
|
1089
1089
|
"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",
|
|
1090
|
-
|
|
1090
|
+
t == null ? void 0 : t.navRoot
|
|
1091
1091
|
),
|
|
1092
|
-
children:
|
|
1093
|
-
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4",
|
|
1094
|
-
/* @__PURE__ */ n.jsx("div", { className: d("desk-body-medium-l text-color-white",
|
|
1095
|
-
/* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-1",
|
|
1096
|
-
|
|
1092
|
+
children: e == null ? void 0 : e.map(
|
|
1093
|
+
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
|
|
1094
|
+
/* @__PURE__ */ n.jsx("div", { className: d("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: o }),
|
|
1095
|
+
/* @__PURE__ */ n.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 }) => /* @__PURE__ */ n.jsx(
|
|
1096
|
+
je,
|
|
1097
1097
|
{
|
|
1098
1098
|
href: a,
|
|
1099
1099
|
"aria-label": l,
|
|
1100
1100
|
intent: "white",
|
|
1101
1101
|
classes: {
|
|
1102
|
-
link:
|
|
1103
|
-
icon:
|
|
1102
|
+
link: t == null ? void 0 : t.navLink,
|
|
1103
|
+
icon: t == null ? void 0 : t.navLinkIcon
|
|
1104
1104
|
},
|
|
1105
1105
|
children: l
|
|
1106
1106
|
},
|
|
@@ -1109,22 +1109,22 @@ const Ye = [
|
|
|
1109
1109
|
] }, o))
|
|
1110
1110
|
)
|
|
1111
1111
|
}
|
|
1112
|
-
), xr = ({ text:
|
|
1112
|
+
), xr = ({ text: t, classes: e }) => /* @__PURE__ */ n.jsx(
|
|
1113
1113
|
"div",
|
|
1114
1114
|
{
|
|
1115
|
-
className: d("desk-body-regular-m text-color-footer",
|
|
1116
|
-
dangerouslySetInnerHTML: { __html:
|
|
1115
|
+
className: d("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
1116
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
1117
1117
|
}
|
|
1118
|
-
), hr = ({ classes:
|
|
1118
|
+
), hr = ({ classes: t }) => /* @__PURE__ */ n.jsx(
|
|
1119
1119
|
"a",
|
|
1120
1120
|
{
|
|
1121
1121
|
"aria-label": "logo",
|
|
1122
1122
|
href: "https://sovcombank.ru/",
|
|
1123
|
-
className: d("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]",
|
|
1124
|
-
children: /* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full",
|
|
1123
|
+
className: d("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
|
|
1124
|
+
children: /* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1125
1125
|
}
|
|
1126
|
-
), pr = ({ classes:
|
|
1127
|
-
|
|
1126
|
+
), pr = ({ classes: t }) => /* @__PURE__ */ n.jsx(
|
|
1127
|
+
je,
|
|
1128
1128
|
{
|
|
1129
1129
|
intent: "white",
|
|
1130
1130
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1132,23 +1132,23 @@ const Ye = [
|
|
|
1132
1132
|
"aria-label": "site-map",
|
|
1133
1133
|
rel: "noreferrer",
|
|
1134
1134
|
classes: {
|
|
1135
|
-
link: d("mobile:mt-6",
|
|
1136
|
-
icon:
|
|
1135
|
+
link: d("mobile:mt-6", t == null ? void 0 : t.siteMapLink),
|
|
1136
|
+
icon: t == null ? void 0 : t.siteMapLinkIcon
|
|
1137
1137
|
},
|
|
1138
1138
|
children: "Карта сайта"
|
|
1139
1139
|
}
|
|
1140
|
-
), cr = ({ text:
|
|
1141
|
-
const [r, o] =
|
|
1142
|
-
return
|
|
1140
|
+
), cr = ({ text: t, classes: e }) => {
|
|
1141
|
+
const [r, o] = le.useState(!1), [i, a] = le.useState(!1), l = le.useRef(null);
|
|
1142
|
+
return le.useEffect(() => {
|
|
1143
1143
|
const u = l.current;
|
|
1144
1144
|
u && a(u.scrollHeight > u.clientHeight);
|
|
1145
|
-
}, []), /* @__PURE__ */ n.jsxs("div", { className: d("mt-8 flex flex-col gap-4",
|
|
1145
|
+
}, []), /* @__PURE__ */ n.jsxs("div", { className: d("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1146
1146
|
/* @__PURE__ */ n.jsx(
|
|
1147
1147
|
"div",
|
|
1148
1148
|
{
|
|
1149
1149
|
ref: l,
|
|
1150
|
-
className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !r },
|
|
1151
|
-
dangerouslySetInnerHTML: { __html:
|
|
1150
|
+
className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !r }, e == null ? void 0 : e.ligalText),
|
|
1151
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
1152
1152
|
}
|
|
1153
1153
|
),
|
|
1154
1154
|
i && /* @__PURE__ */ n.jsx(
|
|
@@ -1159,15 +1159,15 @@ const Ye = [
|
|
|
1159
1159
|
onClick: () => o((u) => !u),
|
|
1160
1160
|
className: d(
|
|
1161
1161
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1162
|
-
|
|
1162
|
+
e == null ? void 0 : e.ligalButton
|
|
1163
1163
|
),
|
|
1164
1164
|
children: "Подробнее"
|
|
1165
1165
|
}
|
|
1166
1166
|
)
|
|
1167
1167
|
] });
|
|
1168
|
-
},
|
|
1169
|
-
socialsLinks:
|
|
1170
|
-
phones:
|
|
1168
|
+
}, Jn = ({
|
|
1169
|
+
socialsLinks: t,
|
|
1170
|
+
phones: e,
|
|
1171
1171
|
ligal: r,
|
|
1172
1172
|
copyright: o,
|
|
1173
1173
|
classes: i,
|
|
@@ -1176,8 +1176,8 @@ const Ye = [
|
|
|
1176
1176
|
}) => /* @__PURE__ */ n.jsx(
|
|
1177
1177
|
"footer",
|
|
1178
1178
|
{
|
|
1179
|
-
id:
|
|
1180
|
-
"data-test-id":
|
|
1179
|
+
id: j.footer,
|
|
1180
|
+
"data-test-id": j.footer,
|
|
1181
1181
|
className: d("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1182
1182
|
children: /* @__PURE__ */ n.jsx(S, { className: d(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ n.jsxs("div", { className: d("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1183
1183
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -1190,13 +1190,13 @@ const Ye = [
|
|
|
1190
1190
|
children: [
|
|
1191
1191
|
/* @__PURE__ */ n.jsxs("div", { className: d(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1192
1192
|
/* @__PURE__ */ n.jsx(hr, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1193
|
-
|
|
1193
|
+
t.enabled && /* @__PURE__ */ n.jsx(lr, { socialsLinks: t.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1194
1194
|
] }),
|
|
1195
|
-
|
|
1195
|
+
e.enabled && /* @__PURE__ */ n.jsx(ur, { phones: e.items, classes: i == null ? void 0 : i.phonesBlock })
|
|
1196
1196
|
]
|
|
1197
1197
|
}
|
|
1198
1198
|
),
|
|
1199
|
-
!
|
|
1199
|
+
!g.isArrayEmpty(a) && /* @__PURE__ */ n.jsx(mr, { details: a, classes: i == null ? void 0 : i.navLinks }),
|
|
1200
1200
|
r.enabled && /* @__PURE__ */ n.jsx(cr, { text: r.text }),
|
|
1201
1201
|
/* @__PURE__ */ n.jsxs(
|
|
1202
1202
|
"div",
|
|
@@ -1213,14 +1213,14 @@ const Ye = [
|
|
|
1213
1213
|
)
|
|
1214
1214
|
] }) })
|
|
1215
1215
|
}
|
|
1216
|
-
), fr = ({ classes:
|
|
1216
|
+
), fr = ({ classes: t, index: e, variant: r, title: o, description: i }) => {
|
|
1217
1217
|
const a = r === "withTitleAndDescription" && o;
|
|
1218
1218
|
return /* @__PURE__ */ n.jsxs(
|
|
1219
1219
|
"div",
|
|
1220
1220
|
{
|
|
1221
1221
|
className: d(
|
|
1222
1222
|
"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",
|
|
1223
|
-
|
|
1223
|
+
t == null ? void 0 : t.singleStep
|
|
1224
1224
|
),
|
|
1225
1225
|
children: [
|
|
1226
1226
|
/* @__PURE__ */ n.jsx(
|
|
@@ -1228,9 +1228,9 @@ const Ye = [
|
|
|
1228
1228
|
{
|
|
1229
1229
|
className: d(
|
|
1230
1230
|
"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",
|
|
1231
|
-
|
|
1231
|
+
t == null ? void 0 : t.numeric
|
|
1232
1232
|
),
|
|
1233
|
-
children:
|
|
1233
|
+
children: e
|
|
1234
1234
|
}
|
|
1235
1235
|
),
|
|
1236
1236
|
/* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-2"), children: [
|
|
@@ -1238,22 +1238,22 @@ const Ye = [
|
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
1240
|
dangerouslySetInnerHTML: { __html: o },
|
|
1241
|
-
className: d("mob-title-bold-m text-color-dark desktop:desk-title-bold-s",
|
|
1241
|
+
className: d("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", t == null ? void 0 : t.title)
|
|
1242
1242
|
}
|
|
1243
1243
|
),
|
|
1244
1244
|
/* @__PURE__ */ n.jsx(
|
|
1245
1245
|
"div",
|
|
1246
1246
|
{
|
|
1247
1247
|
dangerouslySetInnerHTML: { __html: i ?? "" },
|
|
1248
|
-
className: d("desk-body-regular-l text-color-tetriary",
|
|
1248
|
+
className: d("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description)
|
|
1249
1249
|
}
|
|
1250
1250
|
)
|
|
1251
1251
|
] })
|
|
1252
1252
|
]
|
|
1253
1253
|
}
|
|
1254
1254
|
);
|
|
1255
|
-
},
|
|
1256
|
-
/* @__PURE__ */ n.jsx(
|
|
1255
|
+
}, Gn = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ n.jsx(S, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
1256
|
+
/* @__PURE__ */ n.jsx(P, { as: "h2", className: d("text-color-dark", o == null ? void 0 : o.headline), children: t }),
|
|
1257
1257
|
/* @__PURE__ */ n.jsx(
|
|
1258
1258
|
"div",
|
|
1259
1259
|
{
|
|
@@ -1261,10 +1261,10 @@ const Ye = [
|
|
|
1261
1261
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1262
1262
|
o == null ? void 0 : o.stepsWrapper
|
|
1263
1263
|
),
|
|
1264
|
-
children:
|
|
1264
|
+
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ n.jsx(fr, { variant: r, ...i, index: a + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
1265
1265
|
}
|
|
1266
1266
|
)
|
|
1267
|
-
] }) }) }), br =
|
|
1267
|
+
] }) }) }), br = O("", {
|
|
1268
1268
|
variants: {
|
|
1269
1269
|
intent: {
|
|
1270
1270
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -1280,7 +1280,7 @@ const Ye = [
|
|
|
1280
1280
|
defaultVariants: {
|
|
1281
1281
|
intent: "twoItems"
|
|
1282
1282
|
}
|
|
1283
|
-
}), gr =
|
|
1283
|
+
}), gr = O("", {
|
|
1284
1284
|
variants: {
|
|
1285
1285
|
intent: {
|
|
1286
1286
|
twoItems: "",
|
|
@@ -1312,7 +1312,7 @@ const Ye = [
|
|
|
1312
1312
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
|
-
}), jr =
|
|
1315
|
+
}), jr = O("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1316
1316
|
variants: {
|
|
1317
1317
|
intent: {
|
|
1318
1318
|
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',
|
|
@@ -1322,7 +1322,7 @@ const Ye = [
|
|
|
1322
1322
|
defaultVariants: {
|
|
1323
1323
|
intent: "twoItems"
|
|
1324
1324
|
}
|
|
1325
|
-
}),
|
|
1325
|
+
}), sr = O("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1326
1326
|
variants: {
|
|
1327
1327
|
intent: {
|
|
1328
1328
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1348,32 +1348,32 @@ const Ye = [
|
|
|
1348
1348
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
1349
1349
|
}
|
|
1350
1350
|
]
|
|
1351
|
-
}),
|
|
1351
|
+
}), yr = ({ data: t, intent: e }) => {
|
|
1352
1352
|
const {
|
|
1353
1353
|
title: r,
|
|
1354
1354
|
description: o,
|
|
1355
1355
|
popover: i = {
|
|
1356
1356
|
enabled: !1
|
|
1357
1357
|
}
|
|
1358
|
-
} =
|
|
1359
|
-
return /* @__PURE__ */ n.jsx("li", { className: d(jr({ intent:
|
|
1358
|
+
} = t;
|
|
1359
|
+
return /* @__PURE__ */ n.jsx("li", { className: d(jr({ intent: e })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1360
1360
|
/* @__PURE__ */ n.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
|
|
1361
1361
|
/* @__PURE__ */ n.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: r }),
|
|
1362
|
-
i.enabled && /* @__PURE__ */ n.jsx(
|
|
1362
|
+
i.enabled && /* @__PURE__ */ n.jsx(Me, { triggerElement: /* @__PURE__ */ n.jsx(f, { className: d("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1363
1363
|
] }),
|
|
1364
1364
|
/* @__PURE__ */ n.jsx("div", { className: d("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1365
1365
|
] }) });
|
|
1366
|
-
},
|
|
1367
|
-
headline:
|
|
1368
|
-
buttonConfig:
|
|
1366
|
+
}, Ne = ({ intent: t, headline: e, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: d(br({ intent: t, desktopHidden: r, mobileHidden: o })), children: e }), kr = ({ details: t, intent: e, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: d(gr({ intent: e, withButton: r })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ n.jsx(yr, { intent: e, data: o }, i)) }), eo = ({
|
|
1367
|
+
headline: t,
|
|
1368
|
+
buttonConfig: e,
|
|
1369
1369
|
intent: r = "twoItems",
|
|
1370
1370
|
details: o,
|
|
1371
1371
|
image: i,
|
|
1372
1372
|
classes: a
|
|
1373
1373
|
}) => {
|
|
1374
|
-
const l = r === "fourItems", u = r === "twoItems", m = i && "url" in i &&
|
|
1375
|
-
return /* @__PURE__ */ n.jsx("section", { id:
|
|
1376
|
-
u && /* @__PURE__ */ n.jsx(
|
|
1374
|
+
const l = r === "fourItems", u = r === "twoItems", m = i && "url" in i && g.isObject(i) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
|
|
1375
|
+
return /* @__PURE__ */ n.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: d(a == null ? void 0 : a.root), children: /* @__PURE__ */ n.jsxs(S, { className: d(a == null ? void 0 : a.container), children: [
|
|
1376
|
+
u && /* @__PURE__ */ n.jsx(Ne, { intent: r, headline: t }),
|
|
1377
1377
|
/* @__PURE__ */ n.jsxs(
|
|
1378
1378
|
"div",
|
|
1379
1379
|
{
|
|
@@ -1382,22 +1382,22 @@ const Ye = [
|
|
|
1382
1382
|
a == null ? void 0 : a.contentContainer
|
|
1383
1383
|
),
|
|
1384
1384
|
children: [
|
|
1385
|
-
l && /* @__PURE__ */ n.jsx(
|
|
1386
|
-
/* @__PURE__ */ n.jsx("div", { className: d(
|
|
1385
|
+
l && /* @__PURE__ */ n.jsx(Ne, { intent: r, headline: t, desktopHidden: !0 }),
|
|
1386
|
+
/* @__PURE__ */ n.jsx("div", { className: d(sr({ intent: r, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
|
|
1387
1387
|
/* @__PURE__ */ n.jsxs(
|
|
1388
1388
|
"div",
|
|
1389
1389
|
{
|
|
1390
1390
|
className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
|
|
1391
1391
|
children: [
|
|
1392
|
-
l && /* @__PURE__ */ n.jsx(
|
|
1393
|
-
/* @__PURE__ */ n.jsx(kr, { details: o, intent: r, withButton: (
|
|
1394
|
-
(
|
|
1395
|
-
|
|
1392
|
+
l && /* @__PURE__ */ n.jsx(Ne, { intent: r, headline: t, mobileHidden: !0 }),
|
|
1393
|
+
/* @__PURE__ */ n.jsx(kr, { details: o, intent: r, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
|
|
1394
|
+
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ n.jsx(
|
|
1395
|
+
Z,
|
|
1396
1396
|
{
|
|
1397
1397
|
className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
|
|
1398
1398
|
size: "lg",
|
|
1399
1399
|
intent: "secondary",
|
|
1400
|
-
...
|
|
1400
|
+
...e.buttonContent
|
|
1401
1401
|
}
|
|
1402
1402
|
)
|
|
1403
1403
|
]
|
|
@@ -1407,11 +1407,11 @@ const Ye = [
|
|
|
1407
1407
|
}
|
|
1408
1408
|
)
|
|
1409
1409
|
] }) });
|
|
1410
|
-
},
|
|
1410
|
+
}, ve = {
|
|
1411
1411
|
ESIA: "esia",
|
|
1412
1412
|
MOBILE_ID: "mobileId",
|
|
1413
1413
|
COMBINE: "combine"
|
|
1414
|
-
},
|
|
1414
|
+
}, ht = ({ children: t, isLoading: e, classes: r, loaderProps: o }) => /* @__PURE__ */ n.jsx(
|
|
1415
1415
|
"div",
|
|
1416
1416
|
{
|
|
1417
1417
|
tabIndex: 0,
|
|
@@ -1426,14 +1426,14 @@ const Ye = [
|
|
|
1426
1426
|
className: d(
|
|
1427
1427
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
1428
1428
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
1429
|
-
{ "items-center":
|
|
1429
|
+
{ "items-center": e },
|
|
1430
1430
|
r == null ? void 0 : r.wrapper
|
|
1431
1431
|
),
|
|
1432
|
-
children:
|
|
1432
|
+
children: e ? /* @__PURE__ */ n.jsx(St, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : t
|
|
1433
1433
|
}
|
|
1434
1434
|
)
|
|
1435
1435
|
}
|
|
1436
|
-
), wr = ({ ...
|
|
1436
|
+
), wr = ({ ...t }) => /* @__PURE__ */ n.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
1437
1437
|
/* @__PURE__ */ n.jsx(
|
|
1438
1438
|
"path",
|
|
1439
1439
|
{
|
|
@@ -1461,37 +1461,37 @@ const Ye = [
|
|
|
1461
1461
|
/* @__PURE__ */ n.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1462
1462
|
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1463
1463
|
] }) })
|
|
1464
|
-
] }),
|
|
1464
|
+
] }), pt = ({ mainLink: t, subLink: e, isMobile: r, classes: o }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
|
|
1465
1465
|
/* @__PURE__ */ n.jsx(
|
|
1466
1466
|
"a",
|
|
1467
1467
|
{
|
|
1468
|
-
href:
|
|
1468
|
+
href: t.href,
|
|
1469
1469
|
target: "_blank",
|
|
1470
1470
|
rel: "noreferrer",
|
|
1471
1471
|
className: d(
|
|
1472
1472
|
'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',
|
|
1473
1473
|
o == null ? void 0 : o.linksMainLink
|
|
1474
1474
|
),
|
|
1475
|
-
children: r ?
|
|
1475
|
+
children: r ? t.mobileTitle : t.title
|
|
1476
1476
|
}
|
|
1477
1477
|
),
|
|
1478
|
-
(
|
|
1479
|
-
|
|
1478
|
+
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ n.jsx(
|
|
1479
|
+
je,
|
|
1480
1480
|
{
|
|
1481
1481
|
intent: "blue",
|
|
1482
1482
|
withUnderline: !0,
|
|
1483
|
-
href:
|
|
1483
|
+
href: e == null ? void 0 : e.href,
|
|
1484
1484
|
target: "_blank",
|
|
1485
1485
|
rel: "noreferrer",
|
|
1486
1486
|
classes: {
|
|
1487
1487
|
link: d("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", o == null ? void 0 : o.linksSubLink)
|
|
1488
1488
|
},
|
|
1489
|
-
children:
|
|
1489
|
+
children: e == null ? void 0 : e.text
|
|
1490
1490
|
}
|
|
1491
1491
|
)
|
|
1492
|
-
] }),
|
|
1493
|
-
const { isMobile: l } =
|
|
1494
|
-
return /* @__PURE__ */ n.jsx(
|
|
1492
|
+
] }), Ue = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
1493
|
+
const { isMobile: l } = G();
|
|
1494
|
+
return /* @__PURE__ */ n.jsx(ht, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1495
1495
|
"div",
|
|
1496
1496
|
{
|
|
1497
1497
|
className: d(
|
|
@@ -1506,16 +1506,16 @@ const Ye = [
|
|
|
1506
1506
|
/* @__PURE__ */ n.jsx(f, { name: "logos/megafon", className: d("relative z-[8] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.megafonLogo) }),
|
|
1507
1507
|
/* @__PURE__ */ n.jsx(f, { name: "logos/beeline", className: d("relative z-[7] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.beelineLogo) })
|
|
1508
1508
|
] }),
|
|
1509
|
-
/* @__PURE__ */ n.jsx(
|
|
1509
|
+
/* @__PURE__ */ n.jsx(pt, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
|
|
1510
1510
|
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1511
1511
|
] }),
|
|
1512
|
-
o && /* @__PURE__ */ n.jsx(
|
|
1512
|
+
o && /* @__PURE__ */ n.jsx(Ee, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1513
1513
|
]
|
|
1514
1514
|
}
|
|
1515
1515
|
) });
|
|
1516
|
-
},
|
|
1517
|
-
const { isMobile: l } =
|
|
1518
|
-
return /* @__PURE__ */ n.jsx(
|
|
1516
|
+
}, We = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
1517
|
+
const { isMobile: l } = G();
|
|
1518
|
+
return /* @__PURE__ */ n.jsx(ht, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1519
1519
|
"div",
|
|
1520
1520
|
{
|
|
1521
1521
|
className: d(
|
|
@@ -1526,22 +1526,22 @@ const Ye = [
|
|
|
1526
1526
|
children: [
|
|
1527
1527
|
/* @__PURE__ */ n.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1528
1528
|
/* @__PURE__ */ n.jsx(wr, { className: d("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
|
|
1529
|
-
/* @__PURE__ */ n.jsx(
|
|
1529
|
+
/* @__PURE__ */ n.jsx(pt, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
|
|
1530
1530
|
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1531
1531
|
] }),
|
|
1532
|
-
o && /* @__PURE__ */ n.jsx(
|
|
1532
|
+
o && /* @__PURE__ */ n.jsx(Ee, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1533
1533
|
]
|
|
1534
1534
|
}
|
|
1535
1535
|
) });
|
|
1536
|
-
},
|
|
1537
|
-
switch (
|
|
1538
|
-
case
|
|
1539
|
-
return /* @__PURE__ */ n.jsx(
|
|
1540
|
-
case
|
|
1541
|
-
return /* @__PURE__ */ n.jsx(
|
|
1542
|
-
case
|
|
1536
|
+
}, Nr = (t) => {
|
|
1537
|
+
switch (t.mode) {
|
|
1538
|
+
case ve.ESIA:
|
|
1539
|
+
return /* @__PURE__ */ n.jsx(We, { ...t });
|
|
1540
|
+
case ve.MOBILE_ID:
|
|
1541
|
+
return /* @__PURE__ */ n.jsx(Ue, { ...t });
|
|
1542
|
+
case ve.COMBINE:
|
|
1543
1543
|
default:
|
|
1544
|
-
const { esiaConfig:
|
|
1544
|
+
const { esiaConfig: e, mobileIdConfig: r, subtitle: o, badge: i, classes: a } = t, l = !o && !i ? le.Fragment : "div";
|
|
1545
1545
|
return /* @__PURE__ */ n.jsxs(
|
|
1546
1546
|
"div",
|
|
1547
1547
|
{
|
|
@@ -1552,22 +1552,22 @@ const Ye = [
|
|
|
1552
1552
|
children: [
|
|
1553
1553
|
/* @__PURE__ */ n.jsxs(l, { className: d("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
|
|
1554
1554
|
o && /* @__PURE__ */ n.jsx("h5", { className: d("desk-body-regular-l flex flex-1 text-color-dark", a == null ? void 0 : a.subtitle), children: o }),
|
|
1555
|
-
i && /* @__PURE__ */ n.jsx(
|
|
1555
|
+
i && /* @__PURE__ */ n.jsx(Ee, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: i })
|
|
1556
1556
|
] }),
|
|
1557
1557
|
/* @__PURE__ */ n.jsxs("div", { className: d("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
|
|
1558
1558
|
/* @__PURE__ */ n.jsx(
|
|
1559
|
-
|
|
1559
|
+
We,
|
|
1560
1560
|
{
|
|
1561
|
-
...
|
|
1561
|
+
...e,
|
|
1562
1562
|
classes: {
|
|
1563
1563
|
root: "p-0 outline-0 h-[74px]",
|
|
1564
1564
|
arrowIcon: "hidden",
|
|
1565
|
-
...
|
|
1565
|
+
...e.classes
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
1568
|
),
|
|
1569
1569
|
/* @__PURE__ */ n.jsx(
|
|
1570
|
-
|
|
1570
|
+
Ue,
|
|
1571
1571
|
{
|
|
1572
1572
|
...r,
|
|
1573
1573
|
classes: {
|
|
@@ -1582,31 +1582,31 @@ const Ye = [
|
|
|
1582
1582
|
}
|
|
1583
1583
|
);
|
|
1584
1584
|
}
|
|
1585
|
-
},
|
|
1586
|
-
|
|
1585
|
+
}, to = (t) => Nr(t), Ke = ({ links: t, classes: e }) => /* @__PURE__ */ n.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: o }) => /* @__PURE__ */ n.jsx(
|
|
1586
|
+
je,
|
|
1587
1587
|
{
|
|
1588
1588
|
classes: {
|
|
1589
|
-
link: d("w-max",
|
|
1590
|
-
icon: d(
|
|
1589
|
+
link: d("w-max", e == null ? void 0 : e.linkText),
|
|
1590
|
+
icon: d(e == null ? void 0 : e.linkIcon)
|
|
1591
1591
|
},
|
|
1592
1592
|
intent: "dark",
|
|
1593
1593
|
href: r,
|
|
1594
1594
|
children: o
|
|
1595
1595
|
},
|
|
1596
1596
|
r
|
|
1597
|
-
)) }),
|
|
1597
|
+
)) }), vr = ({ groupLabel: t, links: e, mobileAccordionProps: r, classes: o }) => {
|
|
1598
1598
|
var a, l, u;
|
|
1599
|
-
const { isMobile: i } =
|
|
1599
|
+
const { isMobile: i } = G();
|
|
1600
1600
|
return /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1601
1601
|
!i && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1602
|
-
/* @__PURE__ */ n.jsx("h5", { className: d("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children:
|
|
1603
|
-
/* @__PURE__ */ n.jsx(
|
|
1602
|
+
/* @__PURE__ */ n.jsx("h5", { className: d("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: t }),
|
|
1603
|
+
/* @__PURE__ */ n.jsx(Ke, { links: e, classes: o == null ? void 0 : o.linksList }, "desktop")
|
|
1604
1604
|
] }),
|
|
1605
1605
|
i && /* @__PURE__ */ n.jsx(
|
|
1606
|
-
|
|
1606
|
+
oe,
|
|
1607
1607
|
{
|
|
1608
1608
|
defaultOpen: !0,
|
|
1609
|
-
label:
|
|
1609
|
+
label: t,
|
|
1610
1610
|
icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1611
1611
|
...r,
|
|
1612
1612
|
classes: {
|
|
@@ -1616,11 +1616,11 @@ const Ye = [
|
|
|
1616
1616
|
},
|
|
1617
1617
|
contentInner: d("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
|
|
1618
1618
|
},
|
|
1619
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1619
|
+
children: /* @__PURE__ */ n.jsx(Ke, { links: e, classes: o == null ? void 0 : o.linksList }, "mobile")
|
|
1620
1620
|
}
|
|
1621
1621
|
)
|
|
1622
1622
|
] });
|
|
1623
|
-
}, Cr = ({ column:
|
|
1623
|
+
}, Cr = ({ column: t, mobileAccordionProps: e, classes: r }) => /* @__PURE__ */ n.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((o) => /* @__PURE__ */ n.jsx(vr, { ...e, ...o, classes: r == null ? void 0 : r.columnGroup }, o.groupLabel)) }), Ir = O("grid gap-4 grid-cols-1", {
|
|
1624
1624
|
variants: {
|
|
1625
1625
|
variant: {
|
|
1626
1626
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1631,9 +1631,9 @@ const Ye = [
|
|
|
1631
1631
|
defaultVariants: {
|
|
1632
1632
|
variant: "fourCols"
|
|
1633
1633
|
}
|
|
1634
|
-
}),
|
|
1635
|
-
variant:
|
|
1636
|
-
details:
|
|
1634
|
+
}), ro = ({
|
|
1635
|
+
variant: t,
|
|
1636
|
+
details: e,
|
|
1637
1637
|
headline: r,
|
|
1638
1638
|
mobileAccordionProps: o,
|
|
1639
1639
|
rootAccordionProps: i,
|
|
@@ -1644,14 +1644,14 @@ const Ye = [
|
|
|
1644
1644
|
return /* @__PURE__ */ n.jsx(
|
|
1645
1645
|
"section",
|
|
1646
1646
|
{
|
|
1647
|
-
id:
|
|
1648
|
-
"data-test-id":
|
|
1647
|
+
id: j.interLinking,
|
|
1648
|
+
"data-test-id": j.interLinking,
|
|
1649
1649
|
className: d("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1650
1650
|
children: /* @__PURE__ */ n.jsx(S, { children: /* @__PURE__ */ n.jsx(
|
|
1651
|
-
|
|
1651
|
+
oe,
|
|
1652
1652
|
{
|
|
1653
1653
|
defaultOpen: l,
|
|
1654
|
-
label: /* @__PURE__ */ n.jsx(
|
|
1654
|
+
label: /* @__PURE__ */ n.jsx(P, { as: "h4", className: d("text-left", a == null ? void 0 : a.headline), children: r }),
|
|
1655
1655
|
...i,
|
|
1656
1656
|
classes: {
|
|
1657
1657
|
...i == null ? void 0 : i.classes,
|
|
@@ -1660,53 +1660,53 @@ const Ye = [
|
|
|
1660
1660
|
},
|
|
1661
1661
|
content: d("max-w-full bg-color-blue-grey-100 relative", (x = i == null ? void 0 : i.classes) == null ? void 0 : x.content)
|
|
1662
1662
|
},
|
|
1663
|
-
children: /* @__PURE__ */ n.jsx("div", { className: d(Ir({ variant:
|
|
1663
|
+
children: /* @__PURE__ */ n.jsx("div", { className: d(Ir({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.map((p, c) => /* @__PURE__ */ n.jsx(Cr, { ...p, ...o, classes: a == null ? void 0 : a.column }, c)) })
|
|
1664
1664
|
}
|
|
1665
1665
|
) })
|
|
1666
1666
|
}
|
|
1667
1667
|
);
|
|
1668
|
-
}, Tr = ({ tabsNames:
|
|
1668
|
+
}, Tr = ({ tabsNames: t, activeTab: e, setActiveTab: r, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: d("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: t && t.map((i, a) => /* @__PURE__ */ n.jsx(
|
|
1669
1669
|
"button",
|
|
1670
1670
|
{
|
|
1671
1671
|
onClick: () => r(a),
|
|
1672
1672
|
className: d(
|
|
1673
1673
|
"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",
|
|
1674
1674
|
{
|
|
1675
|
-
"bg-icon-primary-default text-color-white":
|
|
1675
|
+
"bg-icon-primary-default text-color-white": e === a
|
|
1676
1676
|
},
|
|
1677
1677
|
o == null ? void 0 : o.button
|
|
1678
1678
|
),
|
|
1679
1679
|
children: i
|
|
1680
1680
|
},
|
|
1681
1681
|
i
|
|
1682
|
-
)) }), Mr = (
|
|
1683
|
-
const i = /* @__PURE__ */ n.jsx("div", { className: d(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html:
|
|
1684
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children:
|
|
1685
|
-
}, Sr = (
|
|
1686
|
-
rows:
|
|
1682
|
+
)) }), Mr = (t) => t.variant === "HTML", Er = (t) => t.variant === "DOCUMENTS", Or = (t) => t.variant === "TABLE", Fr = ({ html: t, config: e, classes: r, accordionConfig: o }) => {
|
|
1683
|
+
const i = /* @__PURE__ */ n.jsx("div", { className: d(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
|
|
1684
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(oe, { label: e == null ? void 0 : e.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
|
|
1685
|
+
}, Sr = (t, e) => ({
|
|
1686
|
+
rows: t == null ? void 0 : t.map(({ row: r }) => ({
|
|
1687
1687
|
row: r == null ? void 0 : r.map((o, i) => {
|
|
1688
1688
|
var a;
|
|
1689
1689
|
return {
|
|
1690
1690
|
...o,
|
|
1691
|
-
heading:
|
|
1691
|
+
heading: e && ((a = e[i]) == null ? void 0 : a.heading)
|
|
1692
1692
|
};
|
|
1693
1693
|
})
|
|
1694
1694
|
}))
|
|
1695
|
-
}), Br =
|
|
1695
|
+
}), Br = O("flex flex-col", {
|
|
1696
1696
|
variants: {
|
|
1697
1697
|
columnsVariant: {
|
|
1698
1698
|
twoCols: "w-full max-w-[656px]",
|
|
1699
1699
|
threeCols: "w-full max-w-[768px]"
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
}), Rr =
|
|
1702
|
+
}), Rr = O("desktop:grid mobile:hidden px-4 mb-4", {
|
|
1703
1703
|
variants: {
|
|
1704
1704
|
columnsVariant: {
|
|
1705
1705
|
twoCols: "grid-cols-2 gap-16",
|
|
1706
1706
|
threeCols: "grid-cols-3 gap-12"
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
}), _r = ({ headings:
|
|
1709
|
+
}), _r = ({ headings: t, columnsVariant: e, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: d(Rr({ columnsVariant: e }), r == null ? void 0 : r.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ n.jsx("div", { className: d("text-color-secondary", r == null ? void 0 : r.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), Hr = O("desktop:grid mobile:hidden items-center", {
|
|
1710
1710
|
variants: {
|
|
1711
1711
|
columnsVariant: {
|
|
1712
1712
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1717,21 +1717,21 @@ const Ye = [
|
|
|
1717
1717
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
|
-
}),
|
|
1720
|
+
}), Dr = ({ row: t, tableVariant: e, columnsVariant: r, rowIndex: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: d(Hr({ columnsVariant: r, tableVariant: e }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a }, l) => /* @__PURE__ */ n.jsx(
|
|
1721
1721
|
"div",
|
|
1722
1722
|
{
|
|
1723
1723
|
className: d("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
|
|
1724
1724
|
children: a && a
|
|
1725
1725
|
},
|
|
1726
1726
|
l
|
|
1727
|
-
)) }),
|
|
1727
|
+
)) }), Pr = O("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1728
1728
|
variants: {
|
|
1729
1729
|
tableVariant: {
|
|
1730
1730
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1731
1731
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
|
-
}), Lr = ({ row:
|
|
1734
|
+
}), Lr = ({ row: t, tableVariant: e, columnsVariant: r, headingsExist: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: d(Pr({ tableVariant: e }), i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a, heading: l }, u) => /* @__PURE__ */ n.jsxs("div", { className: d("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
|
|
1735
1735
|
l && /* @__PURE__ */ n.jsx("div", { className: d("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
|
|
1736
1736
|
/* @__PURE__ */ n.jsx(
|
|
1737
1737
|
"div",
|
|
@@ -1746,16 +1746,16 @@ const Ye = [
|
|
|
1746
1746
|
children: a
|
|
1747
1747
|
}
|
|
1748
1748
|
)
|
|
1749
|
-
] }, u)) }), zr = ({ tableVariant:
|
|
1749
|
+
] }, u)) }), zr = ({ tableVariant: t, rows: e, headings: r, columnsVariant: o, classes: i }) => {
|
|
1750
1750
|
var u;
|
|
1751
|
-
const a = ((u = Sr(
|
|
1751
|
+
const a = ((u = Sr(e, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
|
|
1752
1752
|
return /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1753
1753
|
l && /* @__PURE__ */ n.jsx(_r, { headings: r, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1754
|
-
|
|
1755
|
-
|
|
1754
|
+
e == null ? void 0 : e.map((m, x) => /* @__PURE__ */ n.jsx(
|
|
1755
|
+
Dr,
|
|
1756
1756
|
{
|
|
1757
1757
|
rowIndex: x,
|
|
1758
|
-
tableVariant:
|
|
1758
|
+
tableVariant: t,
|
|
1759
1759
|
columnsVariant: o,
|
|
1760
1760
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1761
1761
|
...m
|
|
@@ -1766,7 +1766,7 @@ const Ye = [
|
|
|
1766
1766
|
Lr,
|
|
1767
1767
|
{
|
|
1768
1768
|
headingsExist: l,
|
|
1769
|
-
tableVariant:
|
|
1769
|
+
tableVariant: t,
|
|
1770
1770
|
columnsVariant: o,
|
|
1771
1771
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1772
1772
|
...m
|
|
@@ -1775,8 +1775,8 @@ const Ye = [
|
|
|
1775
1775
|
))
|
|
1776
1776
|
] });
|
|
1777
1777
|
}, Qr = ({
|
|
1778
|
-
tableVariant:
|
|
1779
|
-
description:
|
|
1778
|
+
tableVariant: t,
|
|
1779
|
+
description: e,
|
|
1780
1780
|
columnsVariant: r,
|
|
1781
1781
|
config: o,
|
|
1782
1782
|
rows: i,
|
|
@@ -1786,21 +1786,21 @@ const Ye = [
|
|
|
1786
1786
|
classes: m
|
|
1787
1787
|
}) => {
|
|
1788
1788
|
const x = /* @__PURE__ */ n.jsxs("div", { className: d(Br({ columnsVariant: r }), m == null ? void 0 : m.wrapper), children: [
|
|
1789
|
-
a && /* @__PURE__ */ n.jsx(
|
|
1790
|
-
/* @__PURE__ */ n.jsx(zr, { tableVariant:
|
|
1791
|
-
|
|
1789
|
+
a && /* @__PURE__ */ n.jsx(P, { as: "h4", className: d("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
|
|
1790
|
+
/* @__PURE__ */ n.jsx(zr, { tableVariant: t, rows: i, headings: l, columnsVariant: r }),
|
|
1791
|
+
e && /* @__PURE__ */ n.jsx(
|
|
1792
1792
|
"div",
|
|
1793
1793
|
{
|
|
1794
1794
|
className: d("mt-2 [&&]:desk-body-regular-m desktop:mt-2", m == null ? void 0 : m.description),
|
|
1795
|
-
dangerouslySetInnerHTML: { __html:
|
|
1795
|
+
dangerouslySetInnerHTML: { __html: e ?? "" }
|
|
1796
1796
|
}
|
|
1797
1797
|
)
|
|
1798
1798
|
] });
|
|
1799
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ n.jsx(
|
|
1799
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ n.jsx(oe, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || x }) : x });
|
|
1800
1800
|
}, Vr = {
|
|
1801
1801
|
documentFilled: "files/documentFilled",
|
|
1802
1802
|
documentOutline: "files/documentOutline"
|
|
1803
|
-
}, Ar =
|
|
1803
|
+
}, Ar = O("size-8 transition-colors", {
|
|
1804
1804
|
variants: {
|
|
1805
1805
|
iconType: {
|
|
1806
1806
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1810,7 +1810,7 @@ const Ye = [
|
|
|
1810
1810
|
defaultVariants: {
|
|
1811
1811
|
iconType: "documentOutline"
|
|
1812
1812
|
}
|
|
1813
|
-
}), qr = ({ label:
|
|
1813
|
+
}), qr = ({ label: t, size: e, url: r, iconType: o, classes: i }) => /* @__PURE__ */ n.jsxs(
|
|
1814
1814
|
"a",
|
|
1815
1815
|
{
|
|
1816
1816
|
href: r,
|
|
@@ -1824,51 +1824,51 @@ const Ye = [
|
|
|
1824
1824
|
children: [
|
|
1825
1825
|
/* @__PURE__ */ n.jsx(f, { name: Vr[o], className: d(Ar({ iconType: o }), i == null ? void 0 : i.icon) }),
|
|
1826
1826
|
/* @__PURE__ */ n.jsxs("div", { className: d("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1827
|
-
/* @__PURE__ */ n.jsx("p", { className: d("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children:
|
|
1827
|
+
/* @__PURE__ */ n.jsx("p", { className: d("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
|
|
1828
1828
|
/* @__PURE__ */ n.jsxs("div", { className: d("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
1829
|
-
Number(
|
|
1829
|
+
Number(e),
|
|
1830
1830
|
" КБ"
|
|
1831
1831
|
] })
|
|
1832
1832
|
] })
|
|
1833
1833
|
]
|
|
1834
1834
|
}
|
|
1835
|
-
), Ur = ({ docs:
|
|
1835
|
+
), Ur = ({ docs: t, config: e, title: r, iconType: o, description: i, classes: a, accordionConfig: l }) => {
|
|
1836
1836
|
const u = /* @__PURE__ */ n.jsxs("div", { className: d("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
|
|
1837
|
-
r && /* @__PURE__ */ n.jsx(
|
|
1838
|
-
/* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children:
|
|
1837
|
+
r && /* @__PURE__ */ n.jsx(P, { as: "h3", className: "mb-4", children: r }),
|
|
1838
|
+
/* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ n.jsx(qr, { iconType: o, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
|
|
1839
1839
|
i && /* @__PURE__ */ n.jsx("div", { className: d("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1840
1840
|
] });
|
|
1841
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children:
|
|
1842
|
-
}, Wr = ({ entity:
|
|
1841
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(oe, { label: e == null ? void 0 : e.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
|
|
1842
|
+
}, Wr = ({ entity: t, classes: e, accordionsConfig: r }) => {
|
|
1843
1843
|
var o, i, a;
|
|
1844
1844
|
switch (!0) {
|
|
1845
|
-
case Mr(
|
|
1846
|
-
return (o =
|
|
1845
|
+
case Mr(t):
|
|
1846
|
+
return (o = t.details) == null ? void 0 : o.map((l, u) => {
|
|
1847
1847
|
var m;
|
|
1848
|
-
return /* @__PURE__ */ n.jsx(
|
|
1848
|
+
return /* @__PURE__ */ n.jsx(Fr, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.html }, u);
|
|
1849
1849
|
});
|
|
1850
|
-
case Er(
|
|
1851
|
-
return (i =
|
|
1850
|
+
case Er(t):
|
|
1851
|
+
return (i = t.details) == null ? void 0 : i.map((l, u) => {
|
|
1852
1852
|
var m;
|
|
1853
1853
|
return /* @__PURE__ */ n.jsx(
|
|
1854
1854
|
Ur,
|
|
1855
1855
|
{
|
|
1856
1856
|
accordionConfig: r == null ? void 0 : r.documentAccordion,
|
|
1857
1857
|
...l,
|
|
1858
|
-
classes: (m =
|
|
1858
|
+
classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.documents
|
|
1859
1859
|
},
|
|
1860
1860
|
u
|
|
1861
1861
|
);
|
|
1862
1862
|
});
|
|
1863
|
-
case
|
|
1864
|
-
return (a =
|
|
1863
|
+
case Or(t):
|
|
1864
|
+
return (a = t.details) == null ? void 0 : a.map((l, u) => {
|
|
1865
1865
|
var m;
|
|
1866
1866
|
return /* @__PURE__ */ n.jsx(
|
|
1867
1867
|
Qr,
|
|
1868
1868
|
{
|
|
1869
1869
|
accordionConfig: r == null ? void 0 : r.tableAccordion,
|
|
1870
1870
|
...l,
|
|
1871
|
-
classes: (m =
|
|
1871
|
+
classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.table
|
|
1872
1872
|
},
|
|
1873
1873
|
u
|
|
1874
1874
|
);
|
|
@@ -1876,23 +1876,23 @@ const Ye = [
|
|
|
1876
1876
|
default:
|
|
1877
1877
|
return null;
|
|
1878
1878
|
}
|
|
1879
|
-
}, Kr = ({ entity:
|
|
1879
|
+
}, Kr = ({ entity: t, classes: e, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Wr({ entity: t, classes: e, accordionsConfig: r }) }), no = ({ headline: t, tabs: e, classes: r, accordionsConfig: o }) => {
|
|
1880
1880
|
var u, m;
|
|
1881
|
-
const [i, a] =
|
|
1882
|
-
return !
|
|
1883
|
-
/* @__PURE__ */ n.jsx(
|
|
1881
|
+
const [i, a] = L(0), l = se(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
|
|
1882
|
+
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: d(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(S, { className: d(r == null ? void 0 : r.container), children: [
|
|
1883
|
+
/* @__PURE__ */ n.jsx(P, { className: d(r == null ? void 0 : r.headline), as: "h2", children: t }),
|
|
1884
1884
|
/* @__PURE__ */ n.jsx("div", { className: d("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(Tr, { tabsNames: l, activeTab: i, setActiveTab: a, classes: r == null ? void 0 : r.tabs }) }),
|
|
1885
|
-
/* @__PURE__ */ n.jsx("div", { className: d("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (m = (u =
|
|
1885
|
+
/* @__PURE__ */ n.jsx("div", { className: d("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ n.jsx(Kr, { accordionsConfig: o, ...x, classes: r == null ? void 0 : r.entityClasses }, p)) })
|
|
1886
1886
|
] }) });
|
|
1887
|
-
},
|
|
1888
|
-
const i =
|
|
1889
|
-
return /* @__PURE__ */
|
|
1887
|
+
}, ct = ({ fields: t, control: e }) => t.map(({ type: r, args: o }) => {
|
|
1888
|
+
const i = tt[r];
|
|
1889
|
+
return /* @__PURE__ */ nt(i, { ...o, key: o.name, control: e });
|
|
1890
1890
|
});
|
|
1891
1891
|
class $r {
|
|
1892
|
-
constructor(
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
this.options =
|
|
1892
|
+
constructor(e) {
|
|
1893
|
+
ae(this, "TEXT_NODE", 3);
|
|
1894
|
+
ae(this, "ELEMENT_NODE", 1);
|
|
1895
|
+
this.options = e;
|
|
1896
1896
|
}
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Рекурсивно обходит DOM дерево и собирает данные в зависимости от опций.
|
|
@@ -1900,12 +1900,12 @@ class $r {
|
|
|
1900
1900
|
* @param elements Массив для сбора элементов
|
|
1901
1901
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1902
1902
|
*/
|
|
1903
|
-
traverse(
|
|
1903
|
+
traverse(e, r = "string", o) {
|
|
1904
1904
|
const { includeSolidText: i, recursive: a, element: l } = this.options || {};
|
|
1905
|
-
switch (
|
|
1905
|
+
switch (e.nodeType) {
|
|
1906
1906
|
// если узел - элемент
|
|
1907
1907
|
case this.ELEMENT_NODE:
|
|
1908
|
-
const u =
|
|
1908
|
+
const u = e, m = u.tagName.toLowerCase();
|
|
1909
1909
|
if (m === "script") {
|
|
1910
1910
|
console.warn("Found script node. For better security this node will be skipped.");
|
|
1911
1911
|
break;
|
|
@@ -1913,13 +1913,13 @@ class $r {
|
|
|
1913
1913
|
if (l && m !== l)
|
|
1914
1914
|
break;
|
|
1915
1915
|
if (r === "node")
|
|
1916
|
-
o.push(
|
|
1916
|
+
o.push(e);
|
|
1917
1917
|
else {
|
|
1918
1918
|
const x = u.outerHTML.trim();
|
|
1919
1919
|
o.push(x);
|
|
1920
1920
|
}
|
|
1921
1921
|
if (a)
|
|
1922
|
-
for (const x of
|
|
1922
|
+
for (const x of e.childNodes)
|
|
1923
1923
|
this.traverse(x, r, o);
|
|
1924
1924
|
break;
|
|
1925
1925
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
@@ -1927,9 +1927,9 @@ class $r {
|
|
|
1927
1927
|
if (!i)
|
|
1928
1928
|
break;
|
|
1929
1929
|
if (r === "node")
|
|
1930
|
-
o.push(
|
|
1930
|
+
o.push(e);
|
|
1931
1931
|
else {
|
|
1932
|
-
const x =
|
|
1932
|
+
const x = e.textContent;
|
|
1933
1933
|
x && o.push(x);
|
|
1934
1934
|
}
|
|
1935
1935
|
break;
|
|
@@ -1941,8 +1941,8 @@ class $r {
|
|
|
1941
1941
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1942
1942
|
* @returns Массив тегов или нод
|
|
1943
1943
|
*/
|
|
1944
|
-
async parse(
|
|
1945
|
-
const { includeBody: o } = this.options || {}, i = [], a = [], l = await this.parseFromString(
|
|
1944
|
+
async parse(e, r = "string") {
|
|
1945
|
+
const { includeBody: o } = this.options || {}, i = [], a = [], l = await this.parseFromString(e), u = r === "string" ? i : a;
|
|
1946
1946
|
if (o)
|
|
1947
1947
|
this.traverse(l.body, r, u);
|
|
1948
1948
|
else
|
|
@@ -1955,29 +1955,29 @@ class $r {
|
|
|
1955
1955
|
* @param html HTML строка
|
|
1956
1956
|
* @returns Количество найденных тегов
|
|
1957
1957
|
*/
|
|
1958
|
-
async countElements(
|
|
1959
|
-
const { stringNodes: r } = await this.parse(
|
|
1958
|
+
async countElements(e) {
|
|
1959
|
+
const { stringNodes: r } = await this.parse(e, "string");
|
|
1960
1960
|
return r.length;
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
1963
|
const Zr = typeof window < "u";
|
|
1964
1964
|
class Xr extends $r {
|
|
1965
|
-
constructor(
|
|
1966
|
-
super(
|
|
1965
|
+
constructor(e) {
|
|
1966
|
+
super(e);
|
|
1967
1967
|
}
|
|
1968
|
-
async parseFromString(
|
|
1969
|
-
return Zr ? new DOMParser().parseFromString(
|
|
1968
|
+
async parseFromString(e) {
|
|
1969
|
+
return Zr ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
|
|
1970
1970
|
}
|
|
1971
1971
|
}
|
|
1972
|
-
class
|
|
1972
|
+
class Ie {
|
|
1973
1973
|
/**
|
|
1974
1974
|
* Функция для парсинга ноды в react элемент
|
|
1975
1975
|
*/
|
|
1976
|
-
static parseNode(
|
|
1977
|
-
if (
|
|
1978
|
-
return
|
|
1979
|
-
if (
|
|
1980
|
-
const r =
|
|
1976
|
+
static parseNode(e) {
|
|
1977
|
+
if (e.nodeType === this.TEXT_NODE)
|
|
1978
|
+
return e.textContent ?? null;
|
|
1979
|
+
if (e.nodeType === this.ELEMENT_NODE) {
|
|
1980
|
+
const r = e, o = r.tagName.toLowerCase(), i = {};
|
|
1981
1981
|
for (const l of r.attributes) {
|
|
1982
1982
|
let u = l.name, m = l.value;
|
|
1983
1983
|
switch (l.name) {
|
|
@@ -1999,10 +1999,10 @@ class Nt {
|
|
|
1999
1999
|
u = "style";
|
|
2000
2000
|
const x = {};
|
|
2001
2001
|
l.value.split(";").forEach((p) => {
|
|
2002
|
-
const [c,
|
|
2003
|
-
if (c &&
|
|
2004
|
-
const
|
|
2005
|
-
x[
|
|
2002
|
+
const [c, b] = p.split(":");
|
|
2003
|
+
if (c && b) {
|
|
2004
|
+
const s = c.trim().replace(/-([a-z])/g, (N, k) => k.toUpperCase());
|
|
2005
|
+
x[s] = b.trim();
|
|
2006
2006
|
}
|
|
2007
2007
|
}), m = x;
|
|
2008
2008
|
break;
|
|
@@ -2015,36 +2015,36 @@ class Nt {
|
|
|
2015
2015
|
const u = this.parseNode(l);
|
|
2016
2016
|
u && a.push(u);
|
|
2017
2017
|
}
|
|
2018
|
-
return
|
|
2018
|
+
return nt(o, i, ...a);
|
|
2019
2019
|
}
|
|
2020
2020
|
return null;
|
|
2021
2021
|
}
|
|
2022
2022
|
/**
|
|
2023
2023
|
* функция для преобразования html строки в react элементы
|
|
2024
2024
|
*/
|
|
2025
|
-
static async toReactNodes(
|
|
2026
|
-
const o = new Xr(r), { nodes: i } = await o.parse(
|
|
2025
|
+
static async toReactNodes(e, r) {
|
|
2026
|
+
const o = new Xr(r), { nodes: i } = await o.parse(e, "node");
|
|
2027
2027
|
return i.map((a) => this.parseNode(a));
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
|
-
|
|
2031
|
-
const
|
|
2032
|
-
const [
|
|
2033
|
-
return
|
|
2030
|
+
ae(Ie, "TEXT_NODE", 3), ae(Ie, "ELEMENT_NODE", 1);
|
|
2031
|
+
const Yr = ({ promises: t }) => {
|
|
2032
|
+
const [e, r] = L([]);
|
|
2033
|
+
return be(() => {
|
|
2034
2034
|
(async () => {
|
|
2035
|
-
r(await
|
|
2035
|
+
r(await t);
|
|
2036
2036
|
})();
|
|
2037
|
-
}, [
|
|
2038
|
-
},
|
|
2039
|
-
const i = r ??
|
|
2037
|
+
}, [t]), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
2038
|
+
}, ge = ({ html: t, options: e, as: r, ...o }) => {
|
|
2039
|
+
const i = r ?? Dt, a = r ? o : {}, l = Ie.toReactNodes(t, e);
|
|
2040
2040
|
return (
|
|
2041
2041
|
// @ts-expect-error disable warning
|
|
2042
|
-
/* @__PURE__ */ n.jsx(i, { ...a, children: /* @__PURE__ */ n.jsx(
|
|
2042
|
+
/* @__PURE__ */ n.jsx(i, { ...a, children: /* @__PURE__ */ n.jsx(Yr, { promises: l }) })
|
|
2043
2043
|
);
|
|
2044
|
-
},
|
|
2044
|
+
}, Jr = (t, e) => t.enabled ? e.map((r) => ({
|
|
2045
2045
|
name: r.args.name,
|
|
2046
2046
|
...r.args.progress
|
|
2047
|
-
})) : null, Gr = new
|
|
2047
|
+
})) : null, Gr = new Yt(), en = ({ children: t }) => /* @__PURE__ */ n.jsx(Bt, { client: Gr, children: t }), tn = (t, e, r, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ n.jsx(ge, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ n.jsxs(
|
|
2048
2048
|
"label",
|
|
2049
2049
|
{
|
|
2050
2050
|
className: d(
|
|
@@ -2053,32 +2053,32 @@ const Jr = ({ promises: e }) => {
|
|
|
2053
2053
|
"flex items-center justify-items-start gap-x-3"
|
|
2054
2054
|
),
|
|
2055
2055
|
children: [
|
|
2056
|
-
/* @__PURE__ */ n.jsx(
|
|
2057
|
-
/* @__PURE__ */ n.jsx(
|
|
2056
|
+
/* @__PURE__ */ n.jsx(Oe.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: r }),
|
|
2057
|
+
/* @__PURE__ */ n.jsx(ge, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2058
2058
|
]
|
|
2059
2059
|
}
|
|
2060
|
-
),
|
|
2061
|
-
fields:
|
|
2062
|
-
title:
|
|
2060
|
+
), oo = ({
|
|
2061
|
+
fields: t,
|
|
2062
|
+
title: e,
|
|
2063
2063
|
progress: r,
|
|
2064
2064
|
approvement: o,
|
|
2065
2065
|
chips: i,
|
|
2066
2066
|
submitProps: a,
|
|
2067
2067
|
classes: l
|
|
2068
2068
|
}) => {
|
|
2069
|
-
var
|
|
2070
|
-
const { submitCallback: u, ...m } = a || {}, [x, p] =
|
|
2069
|
+
var V, C;
|
|
2070
|
+
const { submitCallback: u, ...m } = a || {}, [x, p] = L(!1), c = xt(t), b = dt.getZodDefaults(c), { control: s, handleSubmit: N } = it({
|
|
2071
2071
|
schema: c,
|
|
2072
|
-
defaultValues:
|
|
2072
|
+
defaultValues: b,
|
|
2073
2073
|
mode: "onBlur"
|
|
2074
|
-
}),
|
|
2074
|
+
}), k = Jr(r, t), B = qt({ control: s, fields: k || [], schema: c }), R = (M) => {
|
|
2075
2075
|
u && u({ ...M, agree: x }), console.warn(M);
|
|
2076
2076
|
};
|
|
2077
|
-
return /* @__PURE__ */ n.jsx(
|
|
2077
|
+
return /* @__PURE__ */ n.jsx(en, { children: /* @__PURE__ */ n.jsxs(
|
|
2078
2078
|
"div",
|
|
2079
2079
|
{
|
|
2080
|
-
id:
|
|
2081
|
-
"data-test-id":
|
|
2080
|
+
id: j.form,
|
|
2081
|
+
"data-test-id": j.form,
|
|
2082
2082
|
className: d(
|
|
2083
2083
|
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2084
2084
|
"relative flex flex-col gap-6 rounded-sm border py-8",
|
|
@@ -2092,36 +2092,36 @@ const Jr = ({ promises: e }) => {
|
|
|
2092
2092
|
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
2093
2093
|
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
2094
2094
|
"right-4 top-4 w-max",
|
|
2095
|
-
(
|
|
2095
|
+
(V = l == null ? void 0 : l.chips) == null ? void 0 : V.root
|
|
2096
2096
|
),
|
|
2097
2097
|
children: [
|
|
2098
|
-
i.image && /* @__PURE__ */ n.jsx(f, { name: i.image, className: d("size-4", (
|
|
2098
|
+
i.image && /* @__PURE__ */ n.jsx(f, { name: i.image, className: d("size-4", (C = l == null ? void 0 : l.chips) == null ? void 0 : C.icon) }),
|
|
2099
2099
|
i.content
|
|
2100
2100
|
]
|
|
2101
2101
|
}
|
|
2102
2102
|
),
|
|
2103
|
-
/* @__PURE__ */ n.jsx(
|
|
2103
|
+
/* @__PURE__ */ n.jsx(P, { as: "h3", className: l == null ? void 0 : l.title, children: e }),
|
|
2104
2104
|
/* @__PURE__ */ n.jsxs(
|
|
2105
2105
|
"form",
|
|
2106
2106
|
{
|
|
2107
|
-
onSubmit:
|
|
2107
|
+
onSubmit: N(R),
|
|
2108
2108
|
className: d("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
|
|
2109
2109
|
children: [
|
|
2110
2110
|
r.enabled && /* @__PURE__ */ n.jsx(
|
|
2111
|
-
|
|
2111
|
+
Rt,
|
|
2112
2112
|
{
|
|
2113
|
-
progress:
|
|
2114
|
-
topContent: /* @__PURE__ */ n.jsx(
|
|
2115
|
-
bottomContent: /* @__PURE__ */ n.jsx(
|
|
2113
|
+
progress: B,
|
|
2114
|
+
topContent: /* @__PURE__ */ n.jsx(ge, { html: r.title }),
|
|
2115
|
+
bottomContent: /* @__PURE__ */ n.jsx(ge, { html: r.subtitle }),
|
|
2116
2116
|
maxPercent: r.maxPercent,
|
|
2117
2117
|
classes: l == null ? void 0 : l.progressBar
|
|
2118
2118
|
}
|
|
2119
2119
|
),
|
|
2120
|
-
/* @__PURE__ */ n.jsx(
|
|
2120
|
+
/* @__PURE__ */ n.jsx(ct, { control: s, fields: t }),
|
|
2121
2121
|
/* @__PURE__ */ n.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
|
|
2122
|
-
|
|
2122
|
+
tn(o, x, p, l == null ? void 0 : l.approvement),
|
|
2123
2123
|
/* @__PURE__ */ n.jsx(
|
|
2124
|
-
|
|
2124
|
+
Te,
|
|
2125
2125
|
{
|
|
2126
2126
|
...m,
|
|
2127
2127
|
type: "submit",
|
|
@@ -2143,7 +2143,7 @@ const Jr = ({ promises: e }) => {
|
|
|
2143
2143
|
]
|
|
2144
2144
|
}
|
|
2145
2145
|
) });
|
|
2146
|
-
},
|
|
2146
|
+
}, de = () => ({
|
|
2147
2147
|
approve: {
|
|
2148
2148
|
icon: {
|
|
2149
2149
|
element: /* @__PURE__ */ n.jsx(f, { name: "status/iconMark" }),
|
|
@@ -2204,34 +2204,34 @@ const Jr = ({ promises: e }) => {
|
|
|
2204
2204
|
text: "Вернуться на главную"
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
|
-
}),
|
|
2207
|
+
}), io = ({ status: t, navigationFn: e }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(S, { className: "flex flex-col justify-center", children: /* @__PURE__ */ n.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
|
|
2208
2208
|
/* @__PURE__ */ n.jsx(
|
|
2209
2209
|
"span",
|
|
2210
2210
|
{
|
|
2211
2211
|
className: d(
|
|
2212
2212
|
"flex size-16 items-center justify-center rounded-full bg-color-positive-light",
|
|
2213
|
-
`${
|
|
2213
|
+
`${de()[t].icon.bg}`
|
|
2214
2214
|
),
|
|
2215
|
-
children:
|
|
2215
|
+
children: de()[t].icon.element
|
|
2216
2216
|
}
|
|
2217
2217
|
),
|
|
2218
2218
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
|
|
2219
|
-
/* @__PURE__ */ n.jsx(
|
|
2220
|
-
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children:
|
|
2219
|
+
/* @__PURE__ */ n.jsx(P, { as: "h2", children: de()[t].title }),
|
|
2220
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: de()[t].description })
|
|
2221
2221
|
] }),
|
|
2222
|
-
/* @__PURE__ */ n.jsx(
|
|
2223
|
-
] }) }) }),
|
|
2224
|
-
const [a, l] =
|
|
2225
|
-
return
|
|
2226
|
-
if (!
|
|
2222
|
+
/* @__PURE__ */ n.jsx(Te, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
|
|
2223
|
+
] }) }) }), ft = ({ breadcrumb: t, className: e, ...r }) => /* @__PURE__ */ n.jsx("a", { href: t.path, className: d("desk-body-regular-m", e), ...r, children: t.label }), rn = ({ startsWith: t, endsWith: e, matcher: r, filter: o, rootEnabled: i = !0 }) => {
|
|
2224
|
+
const [a, l] = L([]);
|
|
2225
|
+
return be(() => {
|
|
2226
|
+
if (!ot)
|
|
2227
2227
|
return;
|
|
2228
|
-
let u = window.location.pathname.split("/").filter((p) => !
|
|
2229
|
-
|
|
2228
|
+
let u = window.location.pathname.split("/").filter((p) => !g.isStringEmpty(p));
|
|
2229
|
+
g.isUndefined(t) || (g.isString(t) ? u = u.slice(u.findIndex((p) => p === t)) : u = u.slice(t)), g.isUndefined(e) || (g.isString(e) ? u = u.slice(0, u.findIndex((p) => p === e) + 1) : u = u.slice(0, e + 1));
|
|
2230
2230
|
let m = [], x = "";
|
|
2231
2231
|
if (i) {
|
|
2232
2232
|
const p = {
|
|
2233
2233
|
index: 0,
|
|
2234
|
-
id:
|
|
2234
|
+
id: Qe(),
|
|
2235
2235
|
path: "/",
|
|
2236
2236
|
label: "home"
|
|
2237
2237
|
};
|
|
@@ -2239,25 +2239,25 @@ const Jr = ({ promises: e }) => {
|
|
|
2239
2239
|
}
|
|
2240
2240
|
u.forEach((p, c) => {
|
|
2241
2241
|
x += `/${p}`;
|
|
2242
|
-
const
|
|
2242
|
+
const b = {
|
|
2243
2243
|
// while root enabled we need to increment index
|
|
2244
2244
|
// cuz we have root breadcrumb
|
|
2245
2245
|
index: i ? c + 1 : c,
|
|
2246
|
-
id:
|
|
2246
|
+
id: Qe(),
|
|
2247
2247
|
path: x,
|
|
2248
2248
|
label: p
|
|
2249
2249
|
};
|
|
2250
|
-
m.push(
|
|
2250
|
+
m.push(b);
|
|
2251
2251
|
}), r && (m = m.map((p) => ({
|
|
2252
2252
|
...p,
|
|
2253
2253
|
...r(p)
|
|
2254
2254
|
}))), l(o ? m.filter(o) : m);
|
|
2255
|
-
}, [
|
|
2256
|
-
},
|
|
2255
|
+
}, [e, o, r, i, t]), a;
|
|
2256
|
+
}, fe = (t, e, r, o) => t.map((i, a) => {
|
|
2257
2257
|
const l = a === o;
|
|
2258
2258
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2259
2259
|
/* @__PURE__ */ n.jsx(
|
|
2260
|
-
|
|
2260
|
+
ft,
|
|
2261
2261
|
{
|
|
2262
2262
|
breadcrumb: i,
|
|
2263
2263
|
className: d(r, {
|
|
@@ -2265,15 +2265,15 @@ const Jr = ({ promises: e }) => {
|
|
|
2265
2265
|
})
|
|
2266
2266
|
}
|
|
2267
2267
|
),
|
|
2268
|
-
a !==
|
|
2268
|
+
a !== t.length - 1 && e
|
|
2269
2269
|
] }, i.id);
|
|
2270
|
-
}), nn = ({ separator:
|
|
2271
|
-
const [i, a] =
|
|
2272
|
-
|
|
2273
|
-
const u = rn(o), { first: m, middle: x, last: p } =
|
|
2274
|
-
let
|
|
2275
|
-
return
|
|
2276
|
-
}, [u,
|
|
2270
|
+
}), nn = ({ separator: t, ellipsis: e, classes: r, ...o }) => {
|
|
2271
|
+
const [i, a] = L(!1), l = Se(null);
|
|
2272
|
+
Vt(l, () => a(!1));
|
|
2273
|
+
const u = rn(o), { first: m, middle: x, last: p } = se(() => {
|
|
2274
|
+
let b = [], s = [], N = [];
|
|
2275
|
+
return e && (b = u.slice(0, e), s = u.slice(e, u.length - e), N = u.slice(u.length - e)), { first: b, middle: s, last: N };
|
|
2276
|
+
}, [u, e]), c = t ?? /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("size-4", r == null ? void 0 : r.separator) });
|
|
2277
2277
|
return /* @__PURE__ */ n.jsx(
|
|
2278
2278
|
"div",
|
|
2279
2279
|
{
|
|
@@ -2282,13 +2282,13 @@ const Jr = ({ promises: e }) => {
|
|
|
2282
2282
|
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
2283
2283
|
r == null ? void 0 : r.root
|
|
2284
2284
|
),
|
|
2285
|
-
children:
|
|
2285
|
+
children: e ? (
|
|
2286
2286
|
// if ellipsis provided, render hidden breadcrumbs
|
|
2287
|
-
/* @__PURE__ */ n.jsx(n.Fragment, { children: u.length >
|
|
2287
|
+
/* @__PURE__ */ n.jsx(n.Fragment, { children: u.length > e * 2 + 1 ? (
|
|
2288
2288
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2289
2289
|
// render hidden breadcrumbs
|
|
2290
2290
|
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2291
|
-
|
|
2291
|
+
fe(m, c, r == null ? void 0 : r.breadcrumb),
|
|
2292
2292
|
c,
|
|
2293
2293
|
x.length > 0 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2294
2294
|
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
@@ -2305,10 +2305,10 @@ const Jr = ({ promises: e }) => {
|
|
|
2305
2305
|
"visible opacity-100": i
|
|
2306
2306
|
}
|
|
2307
2307
|
),
|
|
2308
|
-
children: x.map((
|
|
2309
|
-
|
|
2308
|
+
children: x.map((b) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
2309
|
+
ft,
|
|
2310
2310
|
{
|
|
2311
|
-
breadcrumb:
|
|
2311
|
+
breadcrumb: b,
|
|
2312
2312
|
className: d(
|
|
2313
2313
|
"desk-body-regular-l inline-block py-3",
|
|
2314
2314
|
"w-full rounded-sm bg-color-white px-2",
|
|
@@ -2316,63 +2316,63 @@ const Jr = ({ promises: e }) => {
|
|
|
2316
2316
|
r == null ? void 0 : r.breadcrumb
|
|
2317
2317
|
)
|
|
2318
2318
|
}
|
|
2319
|
-
) },
|
|
2319
|
+
) }, b.id))
|
|
2320
2320
|
}
|
|
2321
2321
|
)
|
|
2322
2322
|
] }),
|
|
2323
2323
|
c
|
|
2324
2324
|
] }),
|
|
2325
|
-
|
|
2325
|
+
fe(p, c, r == null ? void 0 : r.breadcrumb, p.length - 1)
|
|
2326
2326
|
] })
|
|
2327
2327
|
) : (
|
|
2328
2328
|
// otherwise render all breadcrumbs
|
|
2329
|
-
|
|
2329
|
+
fe(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2330
2330
|
) })
|
|
2331
2331
|
) : (
|
|
2332
2332
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2333
|
-
|
|
2333
|
+
fe(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2334
2334
|
)
|
|
2335
2335
|
}
|
|
2336
2336
|
);
|
|
2337
2337
|
};
|
|
2338
|
-
var
|
|
2339
|
-
const on = (
|
|
2340
|
-
switch (
|
|
2341
|
-
case
|
|
2338
|
+
var ue = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(ue || {});
|
|
2339
|
+
const on = (t, e) => {
|
|
2340
|
+
switch (e.type) {
|
|
2341
|
+
case ue.ROOT:
|
|
2342
2342
|
return {
|
|
2343
|
-
...
|
|
2344
|
-
root:
|
|
2343
|
+
...t,
|
|
2344
|
+
root: e.payload
|
|
2345
2345
|
};
|
|
2346
|
-
case
|
|
2346
|
+
case ue.CURRENT:
|
|
2347
2347
|
return {
|
|
2348
|
-
...
|
|
2349
|
-
current:
|
|
2348
|
+
...t,
|
|
2349
|
+
current: e.payload
|
|
2350
2350
|
};
|
|
2351
2351
|
default:
|
|
2352
|
-
return
|
|
2352
|
+
return t;
|
|
2353
2353
|
}
|
|
2354
|
-
}, an = (
|
|
2355
|
-
const [
|
|
2356
|
-
return [
|
|
2357
|
-
}, dn = (
|
|
2358
|
-
type:
|
|
2359
|
-
payload:
|
|
2360
|
-
}), ln = (
|
|
2361
|
-
type:
|
|
2362
|
-
payload:
|
|
2363
|
-
}), un = ({ categories:
|
|
2354
|
+
}, an = (t) => {
|
|
2355
|
+
const [e, r] = Pt(on, t);
|
|
2356
|
+
return [e, r];
|
|
2357
|
+
}, dn = (t) => ({
|
|
2358
|
+
type: ue.CURRENT,
|
|
2359
|
+
payload: t
|
|
2360
|
+
}), ln = (t) => ({
|
|
2361
|
+
type: ue.ROOT,
|
|
2362
|
+
payload: t
|
|
2363
|
+
}), un = ({ categories: t, ...e }) => {
|
|
2364
2364
|
var r, o;
|
|
2365
|
-
return
|
|
2365
|
+
return ut(
|
|
2366
2366
|
/* @__PURE__ */ n.jsx(
|
|
2367
|
-
|
|
2367
|
+
Fe.div,
|
|
2368
2368
|
{
|
|
2369
|
-
...
|
|
2369
|
+
...e,
|
|
2370
2370
|
layout: !0,
|
|
2371
2371
|
initial: { opacity: 0 },
|
|
2372
2372
|
animate: { opacity: 1 },
|
|
2373
2373
|
transition: { duration: 0.2 },
|
|
2374
2374
|
className: "absolute bg-color-white",
|
|
2375
|
-
children: /* @__PURE__ */ n.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children:
|
|
2375
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
|
|
2376
2376
|
var l;
|
|
2377
2377
|
const a = i.link ? "a" : "p";
|
|
2378
2378
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
@@ -2400,11 +2400,11 @@ const on = (e, t) => {
|
|
|
2400
2400
|
*/
|
|
2401
2401
|
((o = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : o.body) ?? document.body
|
|
2402
2402
|
);
|
|
2403
|
-
}, mn =
|
|
2403
|
+
}, mn = Lt(({ category: t, active: e, onActiveTabChange: r }, o) => {
|
|
2404
2404
|
var m, x;
|
|
2405
|
-
const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), l =
|
|
2405
|
+
const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), l = e && !g.isArrayEmpty(t.children), u = g.isArrayEmpty(t.children) ? "a" : "span";
|
|
2406
2406
|
return /* @__PURE__ */ n.jsxs(
|
|
2407
|
-
|
|
2407
|
+
Fe.div,
|
|
2408
2408
|
{
|
|
2409
2409
|
ref: o,
|
|
2410
2410
|
className: d(
|
|
@@ -2416,15 +2416,15 @@ const on = (e, t) => {
|
|
|
2416
2416
|
"after:w-full": l
|
|
2417
2417
|
}
|
|
2418
2418
|
),
|
|
2419
|
-
onMouseEnter: () => r(
|
|
2419
|
+
onMouseEnter: () => r(t.title),
|
|
2420
2420
|
onMouseLeave: () => r(null),
|
|
2421
|
-
onFocus: () => r(
|
|
2421
|
+
onFocus: () => r(t.title),
|
|
2422
2422
|
children: [
|
|
2423
|
-
/* @__PURE__ */ n.jsx(u, { href: u === "a" ? (x =
|
|
2423
|
+
/* @__PURE__ */ n.jsx(u, { href: u === "a" ? (x = t.link) == null ? void 0 : x.href : void 0, className: "desk-body-regular-m outline-none", children: t.title }),
|
|
2424
2424
|
l && /* @__PURE__ */ n.jsx(
|
|
2425
2425
|
un,
|
|
2426
2426
|
{
|
|
2427
|
-
categories:
|
|
2427
|
+
categories: t.children,
|
|
2428
2428
|
style: {
|
|
2429
2429
|
top: a ? a.top + a.height : 0,
|
|
2430
2430
|
left: a ? a.left : 0,
|
|
@@ -2435,23 +2435,23 @@ const on = (e, t) => {
|
|
|
2435
2435
|
]
|
|
2436
2436
|
}
|
|
2437
2437
|
);
|
|
2438
|
-
}), xn =
|
|
2439
|
-
const [
|
|
2438
|
+
}), xn = Be(mn), hn = ({ categories: t }) => {
|
|
2439
|
+
const [e, r] = L(null), o = rt((a) => {
|
|
2440
2440
|
r(a);
|
|
2441
|
-
}, []), i =
|
|
2442
|
-
return /* @__PURE__ */ n.jsx(
|
|
2441
|
+
}, []), i = Se(null);
|
|
2442
|
+
return /* @__PURE__ */ n.jsx(_t, { mode: "sync", children: /* @__PURE__ */ n.jsxs(
|
|
2443
2443
|
"div",
|
|
2444
2444
|
{
|
|
2445
2445
|
ref: i,
|
|
2446
2446
|
id: "tabs",
|
|
2447
2447
|
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2448
2448
|
children: [
|
|
2449
|
-
|
|
2449
|
+
t.map((a) => /* @__PURE__ */ n.jsx(
|
|
2450
2450
|
xn,
|
|
2451
2451
|
{
|
|
2452
2452
|
ref: i,
|
|
2453
2453
|
category: a,
|
|
2454
|
-
active:
|
|
2454
|
+
active: e === a.title,
|
|
2455
2455
|
onActiveTabChange: o
|
|
2456
2456
|
},
|
|
2457
2457
|
a.title
|
|
@@ -2460,9 +2460,9 @@ const on = (e, t) => {
|
|
|
2460
2460
|
]
|
|
2461
2461
|
}
|
|
2462
2462
|
) });
|
|
2463
|
-
}, pn =
|
|
2464
|
-
category:
|
|
2465
|
-
selectedCategory:
|
|
2463
|
+
}, pn = Be(hn), cn = ({
|
|
2464
|
+
category: t,
|
|
2465
|
+
selectedCategory: e,
|
|
2466
2466
|
onCurrentCategoryChange: r,
|
|
2467
2467
|
onRootCategoryChange: o,
|
|
2468
2468
|
active: i,
|
|
@@ -2472,14 +2472,14 @@ const on = (e, t) => {
|
|
|
2472
2472
|
{
|
|
2473
2473
|
...a,
|
|
2474
2474
|
onClick: () => {
|
|
2475
|
-
r(
|
|
2475
|
+
r(t.children[0]), o(t);
|
|
2476
2476
|
},
|
|
2477
2477
|
className: d("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2478
2478
|
"text-color-dark": i
|
|
2479
2479
|
}),
|
|
2480
2480
|
children: [
|
|
2481
|
-
/* @__PURE__ */ n.jsx("span", { className: "desk-body-regular-m", children:
|
|
2482
|
-
|
|
2481
|
+
/* @__PURE__ */ n.jsx("span", { className: "desk-body-regular-m", children: t.title }),
|
|
2482
|
+
t.children.length > 1 && /* @__PURE__ */ n.jsx(
|
|
2483
2483
|
"div",
|
|
2484
2484
|
{
|
|
2485
2485
|
className: d(
|
|
@@ -2487,16 +2487,16 @@ const on = (e, t) => {
|
|
|
2487
2487
|
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
2488
2488
|
"rounded-sm p-1"
|
|
2489
2489
|
),
|
|
2490
|
-
children:
|
|
2490
|
+
children: t.children.map((l) => /* @__PURE__ */ n.jsx(
|
|
2491
2491
|
"span",
|
|
2492
2492
|
{
|
|
2493
2493
|
onClick: (u) => {
|
|
2494
|
-
u.stopPropagation(), u.nativeEvent.stopPropagation(), o(
|
|
2494
|
+
u.stopPropagation(), u.nativeEvent.stopPropagation(), o(t), r(l);
|
|
2495
2495
|
},
|
|
2496
2496
|
className: d(
|
|
2497
2497
|
"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",
|
|
2498
2498
|
{
|
|
2499
|
-
"text-color-primary-default":
|
|
2499
|
+
"text-color-primary-default": e.title === l.title
|
|
2500
2500
|
}
|
|
2501
2501
|
),
|
|
2502
2502
|
children: l.title
|
|
@@ -2507,12 +2507,12 @@ const on = (e, t) => {
|
|
|
2507
2507
|
)
|
|
2508
2508
|
]
|
|
2509
2509
|
}
|
|
2510
|
-
), fn = ({ categories:
|
|
2511
|
-
const [o, i] = an({ root:
|
|
2510
|
+
), fn = ({ categories: t, helpers: e, phone: r }) => {
|
|
2511
|
+
const [o, i] = an({ root: t[0].children[0], current: t[0].children[0] });
|
|
2512
2512
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2513
2513
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2514
2514
|
/* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2515
|
-
|
|
2515
|
+
t.map((a) => {
|
|
2516
2516
|
const l = o.root.title === a.title;
|
|
2517
2517
|
return /* @__PURE__ */ n.jsx(
|
|
2518
2518
|
cn,
|
|
@@ -2527,7 +2527,7 @@ const on = (e, t) => {
|
|
|
2527
2527
|
);
|
|
2528
2528
|
}),
|
|
2529
2529
|
/* @__PURE__ */ n.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2530
|
-
|
|
2530
|
+
e.map((a) => /* @__PURE__ */ n.jsxs(
|
|
2531
2531
|
"a",
|
|
2532
2532
|
{
|
|
2533
2533
|
href: a.link.href,
|
|
@@ -2545,16 +2545,16 @@ const on = (e, t) => {
|
|
|
2545
2545
|
{
|
|
2546
2546
|
href: `tel:${r}`,
|
|
2547
2547
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2548
|
-
children:
|
|
2548
|
+
children: ye(r, "x xxx xxx xx xx")
|
|
2549
2549
|
}
|
|
2550
2550
|
)
|
|
2551
2551
|
] }),
|
|
2552
2552
|
/* @__PURE__ */ n.jsx(pn, { categories: o.current.children })
|
|
2553
2553
|
] });
|
|
2554
|
-
}, bn = ({ category:
|
|
2555
|
-
|
|
2554
|
+
}, bn = ({ category: t }) => /* @__PURE__ */ n.jsx(
|
|
2555
|
+
oe,
|
|
2556
2556
|
{
|
|
2557
|
-
label:
|
|
2557
|
+
label: t.title ?? "",
|
|
2558
2558
|
icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
2559
2559
|
classes: {
|
|
2560
2560
|
root: "w-full",
|
|
@@ -2569,41 +2569,41 @@ const on = (e, t) => {
|
|
|
2569
2569
|
"after:h-[1px] after:bg-color-blue-grey-200"
|
|
2570
2570
|
)
|
|
2571
2571
|
},
|
|
2572
|
-
children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children:
|
|
2572
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: t.children.map((e) => {
|
|
2573
2573
|
var i;
|
|
2574
|
-
const r = !!
|
|
2574
|
+
const r = !!e.link, o = r ? "a" : "p";
|
|
2575
2575
|
return /* @__PURE__ */ n.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2576
2576
|
/* @__PURE__ */ n.jsxs(
|
|
2577
2577
|
o,
|
|
2578
2578
|
{
|
|
2579
|
-
href: r ? (i =
|
|
2579
|
+
href: r ? (i = e.link) == null ? void 0 : i.href : void 0,
|
|
2580
2580
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2581
2581
|
children: [
|
|
2582
|
-
|
|
2582
|
+
e.title,
|
|
2583
2583
|
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowLink" })
|
|
2584
2584
|
]
|
|
2585
2585
|
}
|
|
2586
2586
|
),
|
|
2587
|
-
|
|
2587
|
+
e.children.map((a) => {
|
|
2588
2588
|
var l;
|
|
2589
2589
|
return /* @__PURE__ */ n.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ n.jsx("a", { href: (l = a.link) == null ? void 0 : l.href, className: "w-full", children: a.title }) }, a.title);
|
|
2590
2590
|
})
|
|
2591
|
-
] },
|
|
2591
|
+
] }, e.title);
|
|
2592
2592
|
}) })
|
|
2593
2593
|
},
|
|
2594
|
-
|
|
2595
|
-
), gn = (
|
|
2596
|
-
value:
|
|
2597
|
-
label:
|
|
2598
|
-
})), jn = ({ categories:
|
|
2599
|
-
const i = gn(
|
|
2600
|
-
|
|
2601
|
-
}, m =
|
|
2594
|
+
t.title
|
|
2595
|
+
), gn = (t) => t.map((e) => ({
|
|
2596
|
+
value: e.title ?? "",
|
|
2597
|
+
label: e.title ?? ""
|
|
2598
|
+
})), jn = ({ categories: t, helpers: e, phone: r, ...o }) => {
|
|
2599
|
+
const i = gn(t), [a, l] = L(i[0]), u = (x) => {
|
|
2600
|
+
g.isUndefined(x) || g.isArray(x) || l(x);
|
|
2601
|
+
}, m = se(() => {
|
|
2602
2602
|
var x;
|
|
2603
|
-
return
|
|
2604
|
-
}, [a,
|
|
2603
|
+
return g.isUndefined(a) || g.isArray(a) ? [] : ((x = t.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
|
|
2604
|
+
}, [a, t]);
|
|
2605
2605
|
return /* @__PURE__ */ n.jsxs(
|
|
2606
|
-
|
|
2606
|
+
Fe.div,
|
|
2607
2607
|
{
|
|
2608
2608
|
...o,
|
|
2609
2609
|
className: d(
|
|
@@ -2615,14 +2615,14 @@ const on = (e, t) => {
|
|
|
2615
2615
|
initial: { opacity: 0 },
|
|
2616
2616
|
animate: { opacity: 1 },
|
|
2617
2617
|
children: [
|
|
2618
|
-
/* @__PURE__ */ n.jsx(
|
|
2618
|
+
/* @__PURE__ */ n.jsx(Oe.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
|
|
2619
2619
|
/* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((x) => {
|
|
2620
2620
|
var p;
|
|
2621
|
-
return
|
|
2621
|
+
return g.isArrayEmpty(x.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (p = x.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: x.title }) }, x.title) : /* @__PURE__ */ n.jsx(bn, { category: x }, x.title);
|
|
2622
2622
|
}) }),
|
|
2623
2623
|
/* @__PURE__ */ n.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2624
2624
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2625
|
-
|
|
2625
|
+
e.map((x) => {
|
|
2626
2626
|
var p, c;
|
|
2627
2627
|
return /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: (p = x.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2628
2628
|
((c = x.link) == null ? void 0 : c.icon) && /* @__PURE__ */ n.jsx(f, { name: x.link.icon, className: "size-4" }),
|
|
@@ -2631,24 +2631,24 @@ const on = (e, t) => {
|
|
|
2631
2631
|
}),
|
|
2632
2632
|
/* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: `tel:${r}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2633
2633
|
/* @__PURE__ */ n.jsx(f, { name: "communication/phone", className: "size-4" }),
|
|
2634
|
-
|
|
2634
|
+
ye(r)
|
|
2635
2635
|
] }) })
|
|
2636
2636
|
] })
|
|
2637
2637
|
]
|
|
2638
2638
|
}
|
|
2639
2639
|
);
|
|
2640
|
-
},
|
|
2640
|
+
}, sn = ({ categories: t, helpers: e, phone: r }) => {
|
|
2641
2641
|
var m, x, p;
|
|
2642
|
-
const o =
|
|
2642
|
+
const o = Se(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = L(!1), u = () => l(!a);
|
|
2643
2643
|
return /* @__PURE__ */ n.jsxs("div", { ref: o, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
|
|
2644
2644
|
/* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2645
2645
|
/* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(f, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2646
|
-
a &&
|
|
2646
|
+
a && ut(
|
|
2647
2647
|
/* @__PURE__ */ n.jsx(
|
|
2648
2648
|
jn,
|
|
2649
2649
|
{
|
|
2650
|
-
categories:
|
|
2651
|
-
helpers:
|
|
2650
|
+
categories: t,
|
|
2651
|
+
helpers: e,
|
|
2652
2652
|
phone: r,
|
|
2653
2653
|
style: { top: i ? i.top + i.height : 0 }
|
|
2654
2654
|
}
|
|
@@ -2659,24 +2659,24 @@ const on = (e, t) => {
|
|
|
2659
2659
|
((p = (x = document.body.querySelector("#modal-preview")) == null ? void 0 : x.contentDocument) == null ? void 0 : p.body) ?? document.body
|
|
2660
2660
|
)
|
|
2661
2661
|
] });
|
|
2662
|
-
},
|
|
2663
|
-
const { isMobile: o } =
|
|
2664
|
-
return /* @__PURE__ */ n.jsxs("div", { id:
|
|
2665
|
-
o ? /* @__PURE__ */ n.jsx(
|
|
2662
|
+
}, ao = ({ categories: t, helpers: e, phone: r }) => {
|
|
2663
|
+
const { isMobile: o } = G();
|
|
2664
|
+
return /* @__PURE__ */ n.jsxs("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2665
|
+
o ? /* @__PURE__ */ n.jsx(sn, { categories: t.map((i) => i.children).flat(), helpers: e, phone: r }) : /* @__PURE__ */ n.jsx(fn, { categories: t, helpers: e, phone: r }),
|
|
2666
2666
|
/* @__PURE__ */ n.jsx(
|
|
2667
2667
|
nn,
|
|
2668
2668
|
{
|
|
2669
2669
|
ellipsis: o ? 1 : void 0,
|
|
2670
|
-
matcher: (i) => ({ label:
|
|
2670
|
+
matcher: (i) => ({ label: Qt(i.label).split("-").join(" ") })
|
|
2671
2671
|
}
|
|
2672
2672
|
)
|
|
2673
2673
|
] });
|
|
2674
|
-
},
|
|
2675
|
-
let r =
|
|
2674
|
+
}, bt = (t) => typeof t != "string" && "formula" in t, gt = (t, e) => {
|
|
2675
|
+
let r = e;
|
|
2676
2676
|
const o = {
|
|
2677
|
-
style:
|
|
2677
|
+
style: t
|
|
2678
2678
|
};
|
|
2679
|
-
switch (
|
|
2679
|
+
switch (t) {
|
|
2680
2680
|
case "currency":
|
|
2681
2681
|
o.currency = "RUB", o.minimumFractionDigits = 0, o.maximumFractionDigits = 0;
|
|
2682
2682
|
break;
|
|
@@ -2687,34 +2687,34 @@ const on = (e, t) => {
|
|
|
2687
2687
|
return null;
|
|
2688
2688
|
}
|
|
2689
2689
|
return new Intl.NumberFormat("ru-RU", o).format(r);
|
|
2690
|
-
},
|
|
2691
|
-
switch (
|
|
2690
|
+
}, yn = (t, e) => {
|
|
2691
|
+
switch (t) {
|
|
2692
2692
|
case "text":
|
|
2693
|
-
return
|
|
2693
|
+
return e;
|
|
2694
2694
|
default:
|
|
2695
|
-
return
|
|
2695
|
+
return gt(t, Number(e));
|
|
2696
2696
|
}
|
|
2697
|
-
}, kn = (
|
|
2698
|
-
const r = Object.entries(
|
|
2697
|
+
}, kn = (t) => Object.values(t).reduce((r, o) => r.merge(xt(o.fields)), lt({})), wn = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, jt = (t, e) => {
|
|
2698
|
+
const r = Object.entries(e).map(([m, x]) => [m, x !== null ? x : "1"]), o = r.map(([m]) => m), i = r.map(([, m]) => m), a = wn(t, Object.fromEntries(r)), u = new Function(...o, `return ${a};`)(...i.map(Number));
|
|
2699
2699
|
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2700
|
-
},
|
|
2700
|
+
}, Nn = (t, e) => t.map((r) => ({
|
|
2701
2701
|
...r,
|
|
2702
|
-
value:
|
|
2703
|
-
})),
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
] }) }), Cn = ({ rootDescription:
|
|
2707
|
-
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children:
|
|
2708
|
-
/* @__PURE__ */ n.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ n.jsx("span", { children:
|
|
2709
|
-
] }), In = ({ hint:
|
|
2702
|
+
value: bt(r.value) ? jt(r.value.formula, e) : r.value
|
|
2703
|
+
})), vn = ({ subtitle: t, title: e }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: (e || t) && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2704
|
+
e && /* @__PURE__ */ n.jsx(P, { as: "h3", children: e }),
|
|
2705
|
+
t && /* @__PURE__ */ n.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
|
|
2706
|
+
] }) }), Cn = ({ rootDescription: t, rootValue: e, suffix: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2707
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
|
|
2708
|
+
/* @__PURE__ */ n.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ n.jsx("span", { children: gt(r, Number(e)) }) })
|
|
2709
|
+
] }), In = ({ hint: t, value: e, label: r, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2710
2710
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2711
2711
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: r }),
|
|
2712
|
-
|
|
2713
|
-
|
|
2712
|
+
t && /* @__PURE__ */ n.jsx(
|
|
2713
|
+
Me,
|
|
2714
2714
|
{
|
|
2715
2715
|
withCloseBtn: !1,
|
|
2716
2716
|
triggerElement: /* @__PURE__ */ n.jsx(f, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
2717
|
-
children: /* @__PURE__ */ n.jsx("p", { children:
|
|
2717
|
+
children: /* @__PURE__ */ n.jsx("p", { children: t })
|
|
2718
2718
|
}
|
|
2719
2719
|
)
|
|
2720
2720
|
] }),
|
|
@@ -2725,25 +2725,25 @@ const on = (e, t) => {
|
|
|
2725
2725
|
"[&&]:desk-title-bold-s": a,
|
|
2726
2726
|
"text-color-primary-default": i === "blue"
|
|
2727
2727
|
}),
|
|
2728
|
-
children:
|
|
2728
|
+
children: yn(o, e)
|
|
2729
2729
|
}
|
|
2730
2730
|
)
|
|
2731
|
-
] }), Tn = ({ infoList:
|
|
2732
|
-
const { watch:
|
|
2731
|
+
] }), Tn = ({ infoList: t }) => {
|
|
2732
|
+
const { watch: e } = ke(), r = e(), o = Nn(t, r);
|
|
2733
2733
|
return /* @__PURE__ */ n.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ n.jsx(In, { ...i }, i.label)) });
|
|
2734
|
-
}, Mn = ({ iconName:
|
|
2734
|
+
}, Mn = ({ iconName: t, text: e, hint: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2735
2735
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2736
|
-
/* @__PURE__ */ n.jsx(f, { name:
|
|
2737
|
-
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children:
|
|
2736
|
+
/* @__PURE__ */ n.jsx(f, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
2737
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
|
|
2738
2738
|
] }),
|
|
2739
|
-
r && /* @__PURE__ */ n.jsx(
|
|
2740
|
-
] }), En = ({ assistHint:
|
|
2741
|
-
|
|
2742
|
-
/* @__PURE__ */ n.jsx("div", { className: d("flex items-center gap-4 mobile:flex-col"), children:
|
|
2739
|
+
r && /* @__PURE__ */ n.jsx(Me, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ n.jsx(f, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ n.jsx("p", { children: r }) })
|
|
2740
|
+
] }), En = ({ assistHint: t, buttonsConfig: e, bottomDescription: r }) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
2741
|
+
t && /* @__PURE__ */ n.jsx(Mn, { ...t }),
|
|
2742
|
+
/* @__PURE__ */ n.jsx("div", { className: d("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(Z, { className: "w-full", ...o }, i)) }),
|
|
2743
2743
|
r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: r })
|
|
2744
|
-
] }),
|
|
2745
|
-
rootDescription:
|
|
2746
|
-
bottomDescription:
|
|
2744
|
+
] }), On = ({
|
|
2745
|
+
rootDescription: t,
|
|
2746
|
+
bottomDescription: e,
|
|
2747
2747
|
rootValue: r,
|
|
2748
2748
|
title: o,
|
|
2749
2749
|
subtitle: i,
|
|
@@ -2752,19 +2752,42 @@ const on = (e, t) => {
|
|
|
2752
2752
|
suffix: u,
|
|
2753
2753
|
assistHint: m
|
|
2754
2754
|
}) => /* @__PURE__ */ n.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
|
|
2755
|
-
/* @__PURE__ */ n.jsx(Cn, { suffix: u, rootValue: r, rootDescription:
|
|
2756
|
-
/* @__PURE__ */ n.jsx(
|
|
2755
|
+
/* @__PURE__ */ n.jsx(Cn, { suffix: u, rootValue: r, rootDescription: t }),
|
|
2756
|
+
/* @__PURE__ */ n.jsx(vn, { title: o, subtitle: i }),
|
|
2757
2757
|
/* @__PURE__ */ n.jsx(Tn, { infoList: l }),
|
|
2758
|
-
/* @__PURE__ */ n.jsx(En, { assistHint: m, buttonsConfig: a, bottomDescription:
|
|
2759
|
-
] }),
|
|
2760
|
-
|
|
2758
|
+
/* @__PURE__ */ n.jsx(En, { assistHint: m, buttonsConfig: a, bottomDescription: e })
|
|
2759
|
+
] }), Fn = 2e4, st = ({
|
|
2760
|
+
slidersGroupConfig: t,
|
|
2761
|
+
additionalSliderGroupConfig: e
|
|
2762
|
+
}) => {
|
|
2763
|
+
const [r, o] = L(!1), { watch: i, setValue: a } = ke(), l = t == null ? void 0 : t.fields.find(({ args: R }) => R.name === "sum"), { args: u } = l || {}, { max: m, name: x, defaultValue: p } = u || {}, c = i(x), { min: b, name: s } = (e == null ? void 0 : e.args) ?? {}, N = i(s), k = Number(m ?? 0) - (c ?? p);
|
|
2764
|
+
return be(() => {
|
|
2765
|
+
N > k && a(s, k);
|
|
2766
|
+
}, [k, N, a, c]), be(() => {
|
|
2767
|
+
Number(m) === c && o(!1);
|
|
2768
|
+
}, [o, m, c]), {
|
|
2769
|
+
sliderVisible: r,
|
|
2770
|
+
setSliderVisible: o,
|
|
2771
|
+
sumMax: m,
|
|
2772
|
+
sumName: x,
|
|
2773
|
+
sumDefaultValue: p,
|
|
2774
|
+
sumValue: c,
|
|
2775
|
+
additionalSliderMax: k,
|
|
2776
|
+
onCheckedChange: () => {
|
|
2777
|
+
o((R) => !R), Number(m) === c && (a(x ?? "", c - Fn), a(s, b));
|
|
2778
|
+
},
|
|
2779
|
+
sliderSumExist: !g.isObjectEmpty(l == null ? void 0 : l.args),
|
|
2780
|
+
sliderSumCorrectType: (l == null ? void 0 : l.args.componentType) === "algorithmic" || (l == null ? void 0 : l.args.componentType) === "step"
|
|
2781
|
+
};
|
|
2782
|
+
}, Sn = (t) => {
|
|
2783
|
+
switch (t) {
|
|
2761
2784
|
case "content1":
|
|
2762
2785
|
return /* @__PURE__ */ n.jsx("div", { children: "content 1" });
|
|
2763
2786
|
case "content2":
|
|
2764
2787
|
return /* @__PURE__ */ n.jsx("div", { children: "content 2" });
|
|
2765
2788
|
}
|
|
2766
|
-
},
|
|
2767
|
-
const [i, a] =
|
|
2789
|
+
}, Bn = ({ triggerText: t, modalTitle: e, description: r, contentVariant: o }) => {
|
|
2790
|
+
const [i, a] = Ut(!1);
|
|
2768
2791
|
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
2769
2792
|
r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: r }),
|
|
2770
2793
|
/* @__PURE__ */ n.jsx(
|
|
@@ -2772,54 +2795,93 @@ const on = (e, t) => {
|
|
|
2772
2795
|
{
|
|
2773
2796
|
onClick: () => a(!0),
|
|
2774
2797
|
className: "desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
|
|
2775
|
-
children:
|
|
2798
|
+
children: t
|
|
2776
2799
|
}
|
|
2777
2800
|
),
|
|
2778
|
-
/* @__PURE__ */ n.jsx(
|
|
2801
|
+
/* @__PURE__ */ n.jsx(Ht, { title: e, isModalOpen: i, closeModal: () => a(!1), children: Sn(o) })
|
|
2802
|
+
] });
|
|
2803
|
+
}, Y = ({ fields: t }) => {
|
|
2804
|
+
const { control: e } = ke();
|
|
2805
|
+
return /* @__PURE__ */ n.jsx(ct, { control: e, fields: t });
|
|
2806
|
+
}, Rn = ({
|
|
2807
|
+
slidersGroupConfig: t,
|
|
2808
|
+
additionalSliderGroupConfig: e
|
|
2809
|
+
}) => {
|
|
2810
|
+
const { control: r } = ke(), { sliderVisible: o, additionalSliderMax: i, onCheckedChange: a } = st({
|
|
2811
|
+
slidersGroupConfig: t,
|
|
2812
|
+
additionalSliderGroupConfig: e
|
|
2813
|
+
});
|
|
2814
|
+
return g.isNil(e == null ? void 0 : e.args) || !(e != null && e.args) ? null : /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
2815
|
+
/* @__PURE__ */ n.jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
2816
|
+
/* @__PURE__ */ n.jsx(Oe.SwitchBase, { checked: o, onCheckedChange: a }),
|
|
2817
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
2818
|
+
] }),
|
|
2819
|
+
o && /* @__PURE__ */ n.jsx(
|
|
2820
|
+
tt.SliderControl,
|
|
2821
|
+
{
|
|
2822
|
+
...e.args,
|
|
2823
|
+
control: r,
|
|
2824
|
+
componentType: "algorithmic",
|
|
2825
|
+
suffix: "currency",
|
|
2826
|
+
defaultValue: e == null ? void 0 : e.args.min,
|
|
2827
|
+
max: i
|
|
2828
|
+
}
|
|
2829
|
+
)
|
|
2779
2830
|
] });
|
|
2780
|
-
},
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2831
|
+
}, _n = ({ modalConfig: t, fieldsGroup: e }) => {
|
|
2832
|
+
var i;
|
|
2833
|
+
const { sliderSumExist: r, sliderSumCorrectType: o } = st({
|
|
2834
|
+
slidersGroupConfig: e.slidersGroupConfig,
|
|
2835
|
+
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2836
|
+
});
|
|
2837
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2838
|
+
t && /* @__PURE__ */ n.jsx(Bn, { ...t }),
|
|
2839
|
+
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.selectGroupConfig }) }),
|
|
2840
|
+
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.slidersGroupConfig }),
|
|
2841
|
+
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupTabConfig }),
|
|
2842
|
+
(e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.checkboxGroupConfig }) }),
|
|
2843
|
+
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupConfig }),
|
|
2844
|
+
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupCardConfig }),
|
|
2845
|
+
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.switchGroupConfig }) }),
|
|
2846
|
+
((i = e.additionalSliderGroupConfig) == null ? void 0 : i.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig && r && o && /* @__PURE__ */ n.jsx(
|
|
2847
|
+
Rn,
|
|
2848
|
+
{
|
|
2849
|
+
slidersGroupConfig: e.slidersGroupConfig,
|
|
2850
|
+
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2851
|
+
}
|
|
2852
|
+
)
|
|
2853
|
+
] });
|
|
2854
|
+
}, Hn = Be(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: r }) => /* @__PURE__ */ n.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ n.jsx(
|
|
2793
2855
|
"button",
|
|
2794
2856
|
{
|
|
2795
2857
|
onClick: () => r(o),
|
|
2796
2858
|
className: d(
|
|
2797
2859
|
"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",
|
|
2798
|
-
{ "bg-icon-primary-default text-color-white":
|
|
2860
|
+
{ "bg-icon-primary-default text-color-white": e === o }
|
|
2799
2861
|
),
|
|
2800
2862
|
children: i
|
|
2801
2863
|
},
|
|
2802
2864
|
o
|
|
2803
|
-
)) })),
|
|
2804
|
-
calculatorInfoConfig:
|
|
2805
|
-
calculatorFieldsConfig:
|
|
2865
|
+
)) })), Dn = ({
|
|
2866
|
+
calculatorInfoConfig: t,
|
|
2867
|
+
calculatorFieldsConfig: e
|
|
2806
2868
|
}) => {
|
|
2807
|
-
const r = kn(
|
|
2869
|
+
const r = kn(e == null ? void 0 : e.fieldsGroup), o = it({
|
|
2808
2870
|
schema: r,
|
|
2809
2871
|
mode: "onBlur",
|
|
2810
|
-
defaultValues:
|
|
2811
|
-
}), i = o.watch(), { rootValue: a } =
|
|
2812
|
-
return /* @__PURE__ */ n.jsx(
|
|
2813
|
-
/* @__PURE__ */ n.jsx(
|
|
2814
|
-
/* @__PURE__ */ n.jsx(
|
|
2872
|
+
defaultValues: dt.getZodDefaults(r)
|
|
2873
|
+
}), i = o.watch(), { rootValue: a } = t, l = bt(a) ? jt(a.formula, i) : a, u = { ...t, rootValue: l };
|
|
2874
|
+
return /* @__PURE__ */ n.jsx(At, { ...o, children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2875
|
+
/* @__PURE__ */ n.jsx(_n, { ...e }),
|
|
2876
|
+
/* @__PURE__ */ n.jsx(On, { ...u })
|
|
2815
2877
|
] }) });
|
|
2816
|
-
},
|
|
2878
|
+
}, lo = ({ calculators: t, headline: e }) => {
|
|
2817
2879
|
var m;
|
|
2818
|
-
const r =
|
|
2819
|
-
return /* @__PURE__ */ n.jsx("section", { id:
|
|
2820
|
-
/* @__PURE__ */ n.jsx(
|
|
2880
|
+
const r = t.length > 1, [o, i] = L(r ? (m = t[0]) == null ? void 0 : m.name : ""), a = se(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), l = r ? a == null ? void 0 : a.findIndex((x) => x.name === o) : 0, u = t[l];
|
|
2881
|
+
return /* @__PURE__ */ n.jsx("section", { id: j.calculator, children: /* @__PURE__ */ n.jsx(S, { children: /* @__PURE__ */ n.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2882
|
+
/* @__PURE__ */ n.jsx(P, { className: "mb-12", as: "h2", children: e }),
|
|
2821
2883
|
r && /* @__PURE__ */ n.jsx(
|
|
2822
|
-
|
|
2884
|
+
Hn,
|
|
2823
2885
|
{
|
|
2824
2886
|
calculatorTabs: a,
|
|
2825
2887
|
activeCalculator: o,
|
|
@@ -2827,7 +2889,7 @@ const on = (e, t) => {
|
|
|
2827
2889
|
}
|
|
2828
2890
|
),
|
|
2829
2891
|
/* @__PURE__ */ n.jsx(
|
|
2830
|
-
|
|
2892
|
+
Dn,
|
|
2831
2893
|
{
|
|
2832
2894
|
name: u.name,
|
|
2833
2895
|
label: u.label,
|
|
@@ -2838,30 +2900,30 @@ const on = (e, t) => {
|
|
|
2838
2900
|
] }) }) });
|
|
2839
2901
|
};
|
|
2840
2902
|
export {
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2903
|
+
Ce as Advantages,
|
|
2904
|
+
to as AuthProvider,
|
|
2905
|
+
Yn as Banner,
|
|
2906
|
+
qe as BannerWithSeparateImg,
|
|
2907
|
+
Zn as Benefit,
|
|
2846
2908
|
nn as Breadcrumbs,
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2909
|
+
Z as ButtonWithHandlers,
|
|
2910
|
+
lo as Calculator,
|
|
2911
|
+
Dn as CalculatorView,
|
|
2912
|
+
oo as DynamicForm,
|
|
2913
|
+
io as FallbacksView,
|
|
2914
|
+
ct as FieldMapper,
|
|
2915
|
+
Jn as Footer,
|
|
2854
2916
|
Xr as HTMLParser,
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2917
|
+
ge as HTMLRenderer,
|
|
2918
|
+
Xn as Header,
|
|
2919
|
+
ro as InterLinking,
|
|
2920
|
+
eo as LongBanner,
|
|
2921
|
+
ao as SeoHeader,
|
|
2922
|
+
Gn as Stepper,
|
|
2923
|
+
no as UsefulInfo,
|
|
2924
|
+
Jt as WIDGET_LIST,
|
|
2925
|
+
xt as getDynamicSchema,
|
|
2864
2926
|
Gr as queryClient,
|
|
2865
|
-
|
|
2927
|
+
j as widgetIds
|
|
2866
2928
|
};
|
|
2867
2929
|
//# sourceMappingURL=widget.js.map
|