@scbt-ecom/ui 0.78.3 → 0.78.5
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-BUV7eJPv.js → index-B2IoSSqc.js} +55 -51
- package/dist/index-B2IoSSqc.js.map +1 -0
- package/dist/lib/shared/ui/button/index.d.ts +1 -1
- package/dist/lib/shared/ui/button/model/helpers.d.ts +4 -0
- package/dist/lib/widgets/dynamicForm/DynamicForm.d.ts +4 -4
- package/dist/lib/widgets/model/helpers.d.ts +1 -1
- package/dist/ui.js +10 -9
- package/dist/widget.js +268 -268
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-BUV7eJPv.js.map +0 -1
package/dist/widget.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Bt = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Qe = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var Pt = (t, e, r) => e in t ? Bt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
-
var de = (t, e, r) => Pt(t, typeof e != "symbol" ? e + "" : e, r), Ce = (t, e, r) => e.has(t) ||
|
|
7
|
-
var x = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), _ = (t, e, r) => e.has(t) ?
|
|
6
|
+
var de = (t, e, r) => Pt(t, typeof e != "symbol" ? e + "" : e, r), Ce = (t, e, r) => e.has(t) || Qe("Cannot " + r);
|
|
7
|
+
var x = (t, e, r) => (Ce(t, e, "read from private field"), r ? r.call(t) : e.get(t)), _ = (t, e, r) => e.has(t) ? Qe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), w = (t, e, r, o) => (Ce(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r), q = (t, e, r) => (Ce(t, e, "access private method"), r);
|
|
8
8
|
var fe = (t, e, r, o) => ({
|
|
9
9
|
set _(i) {
|
|
10
10
|
w(t, e, i, r);
|
|
@@ -13,25 +13,25 @@ var fe = (t, e, r, o) => ({
|
|
|
13
13
|
return x(t, e, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as
|
|
16
|
+
import { S as st, z as gt, Q as Dt, E as S, F as Ve, G as Rt, J as Ht, T as $e, W as $, X as zt, Y as Lt, Z as Qt, _ as Vt, $ as Ae, a0 as Ue, a1 as $t, a2 as qe, a3 as We, a4 as At, j as n, B as je, c as E, R as F, o as jt, v as Ut, H as Q, i as s, w as ye, r as Se, L as qt, p as Ee, A as ae, x as yt, a5 as Wt, s as Kt, U as ke, t as Zt, a6 as Fe, a7 as Xt, M as Yt } from "./index-B2IoSSqc.js";
|
|
17
17
|
import { c as l, T as v } from "./typeGuards-CSiImkUY.js";
|
|
18
18
|
import * as me from "react";
|
|
19
|
-
import { lazy as
|
|
19
|
+
import { lazy as B, useCallback as kt, useState as D, useMemo as we, createElement as Be, Fragment as Jt, useEffect as ge, useRef as Pe, useReducer as Gt, memo as De, forwardRef as er } from "react";
|
|
20
20
|
import { i as Ie } from "./isClient-C9aZtt2Q.js";
|
|
21
|
-
import { scrollToElement as tr, createPhoneNumber as ve, getUuid as
|
|
22
|
-
import { u as ee, b as
|
|
23
|
-
import { z as wt, Z as
|
|
21
|
+
import { scrollToElement as tr, createPhoneNumber as ve, getUuid as Ke, capitalize as rr } from "./utils.js";
|
|
22
|
+
import { u as ee, b as Re, a as nr, g as Ne, F as or } from "./useDebounce-BH0d8exl.js";
|
|
23
|
+
import { z as wt, Z as He } from "./index-DwZjTCDF.js";
|
|
24
24
|
import { au as vt } from "./utils-CnDzHNQ6.js";
|
|
25
25
|
import { a as ir, u as ar } from "./useFieldsProgress-dcSmd8dw.js";
|
|
26
26
|
import { createPortal as Nt } from "react-dom";
|
|
27
|
-
var
|
|
27
|
+
var H, pt, lr = (pt = class extends st {
|
|
28
28
|
constructor(e = {}) {
|
|
29
29
|
super();
|
|
30
|
-
_(this,
|
|
31
|
-
this.config = e, w(this,
|
|
30
|
+
_(this, H);
|
|
31
|
+
this.config = e, w(this, H, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
33
|
build(e, r, o) {
|
|
34
|
-
const i = r.queryKey, a = r.queryHash ??
|
|
34
|
+
const i = r.queryKey, a = r.queryHash ?? gt(i, r);
|
|
35
35
|
let d = this.get(a);
|
|
36
36
|
return d || (d = new Dt({
|
|
37
37
|
client: e,
|
|
@@ -43,14 +43,14 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
43
43
|
}), this.add(d)), d;
|
|
44
44
|
}
|
|
45
45
|
add(e) {
|
|
46
|
-
x(this,
|
|
46
|
+
x(this, H).has(e.queryHash) || (x(this, H).set(e.queryHash, e), this.notify({
|
|
47
47
|
type: "added",
|
|
48
48
|
query: e
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
remove(e) {
|
|
52
|
-
const r = x(this,
|
|
53
|
-
r && (e.destroy(), r === e && x(this,
|
|
52
|
+
const r = x(this, H).get(e.queryHash);
|
|
53
|
+
r && (e.destroy(), r === e && x(this, H).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
56
|
S.batch(() => {
|
|
@@ -60,20 +60,20 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
get(e) {
|
|
63
|
-
return x(this,
|
|
63
|
+
return x(this, H).get(e);
|
|
64
64
|
}
|
|
65
65
|
getAll() {
|
|
66
|
-
return [...x(this,
|
|
66
|
+
return [...x(this, H).values()];
|
|
67
67
|
}
|
|
68
68
|
find(e) {
|
|
69
69
|
const r = { exact: !0, ...e };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(o) =>
|
|
71
|
+
(o) => Ve(r, o)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
findAll(e = {}) {
|
|
75
75
|
const r = this.getAll();
|
|
76
|
-
return Object.keys(e).length > 0 ? r.filter((o) =>
|
|
76
|
+
return Object.keys(e).length > 0 ? r.filter((o) => Ve(e, o)) : r;
|
|
77
77
|
}
|
|
78
78
|
notify(e) {
|
|
79
79
|
S.batch(() => {
|
|
@@ -96,14 +96,14 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, H = new WeakMap(), pt), z, O, G, L, W, ct, dr = (ct = class extends Rt {
|
|
100
100
|
constructor(e) {
|
|
101
101
|
super();
|
|
102
|
+
_(this, L);
|
|
102
103
|
_(this, z);
|
|
103
|
-
_(this,
|
|
104
|
-
_(this, T);
|
|
104
|
+
_(this, O);
|
|
105
105
|
_(this, G);
|
|
106
|
-
this.mutationId = e.mutationId, w(this,
|
|
106
|
+
this.mutationId = e.mutationId, w(this, O, e.mutationCache), w(this, z, []), this.state = e.state || ur(), this.setOptions(e.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(e) {
|
|
109
109
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -112,21 +112,21 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
112
112
|
return this.options.meta;
|
|
113
113
|
}
|
|
114
114
|
addObserver(e) {
|
|
115
|
-
x(this,
|
|
115
|
+
x(this, z).includes(e) || (x(this, z).push(e), this.clearGcTimeout(), x(this, O).notify({
|
|
116
116
|
type: "observerAdded",
|
|
117
117
|
mutation: this,
|
|
118
118
|
observer: e
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(e) {
|
|
122
|
-
w(this,
|
|
122
|
+
w(this, z, x(this, z).filter((r) => r !== e)), this.scheduleGc(), x(this, O).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: e
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
optionalRemove() {
|
|
129
|
-
x(this,
|
|
129
|
+
x(this, z).length || (this.state.status === "pending" ? this.scheduleGc() : x(this, O).remove(this));
|
|
130
130
|
}
|
|
131
131
|
continue() {
|
|
132
132
|
var e;
|
|
@@ -134,36 +134,36 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(e) {
|
|
137
|
-
var a, d, u, m, h, p, c, f, b, j, g, N,
|
|
137
|
+
var a, d, u, m, h, p, c, f, b, j, g, N, T, U, M, I, R, V, pe, le;
|
|
138
138
|
const r = () => {
|
|
139
|
-
|
|
139
|
+
q(this, L, W).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
141
|
w(this, G, Ht({
|
|
142
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
143
143
|
onFail: (C, ce) => {
|
|
144
|
-
|
|
144
|
+
q(this, L, W).call(this, { type: "failed", failureCount: C, error: ce });
|
|
145
145
|
},
|
|
146
146
|
onPause: () => {
|
|
147
|
-
|
|
147
|
+
q(this, L, W).call(this, { type: "pause" });
|
|
148
148
|
},
|
|
149
149
|
onContinue: r,
|
|
150
150
|
retry: this.options.retry ?? 0,
|
|
151
151
|
retryDelay: this.options.retryDelay,
|
|
152
152
|
networkMode: this.options.networkMode,
|
|
153
|
-
canRun: () => x(this,
|
|
153
|
+
canRun: () => x(this, O).canRun(this)
|
|
154
154
|
}));
|
|
155
155
|
const o = this.state.status === "pending", i = !x(this, G).canStart();
|
|
156
156
|
try {
|
|
157
157
|
if (o)
|
|
158
158
|
r();
|
|
159
159
|
else {
|
|
160
|
-
|
|
160
|
+
q(this, L, W).call(this, { type: "pending", variables: e, isPaused: i }), await ((d = (a = x(this, O).config).onMutate) == null ? void 0 : d.call(
|
|
161
161
|
a,
|
|
162
162
|
e,
|
|
163
163
|
this
|
|
164
164
|
));
|
|
165
165
|
const ce = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, e));
|
|
166
|
-
ce !== this.state.context &&
|
|
166
|
+
ce !== this.state.context && q(this, L, W).call(this, {
|
|
167
167
|
type: "pending",
|
|
168
168
|
context: ce,
|
|
169
169
|
variables: e,
|
|
@@ -171,35 +171,35 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
const C = await x(this, G).start();
|
|
174
|
-
return await ((p = (h = x(this,
|
|
174
|
+
return await ((p = (h = x(this, O).config).onSuccess) == null ? void 0 : p.call(
|
|
175
175
|
h,
|
|
176
176
|
C,
|
|
177
177
|
e,
|
|
178
178
|
this.state.context,
|
|
179
179
|
this
|
|
180
|
-
)), await ((f = (c = this.options).onSuccess) == null ? void 0 : f.call(c, C, e, this.state.context)), await ((j = (b = x(this,
|
|
180
|
+
)), await ((f = (c = this.options).onSuccess) == null ? void 0 : f.call(c, C, e, this.state.context)), await ((j = (b = x(this, O).config).onSettled) == null ? void 0 : j.call(
|
|
181
181
|
b,
|
|
182
182
|
C,
|
|
183
183
|
null,
|
|
184
184
|
this.state.variables,
|
|
185
185
|
this.state.context,
|
|
186
186
|
this
|
|
187
|
-
)), await ((N = (g = this.options).onSettled) == null ? void 0 : N.call(g, C, null, e, this.state.context)),
|
|
187
|
+
)), await ((N = (g = this.options).onSettled) == null ? void 0 : N.call(g, C, null, e, this.state.context)), q(this, L, W).call(this, { type: "success", data: C }), C;
|
|
188
188
|
} catch (C) {
|
|
189
189
|
try {
|
|
190
|
-
throw await ((
|
|
191
|
-
|
|
190
|
+
throw await ((U = (T = x(this, O).config).onError) == null ? void 0 : U.call(
|
|
191
|
+
T,
|
|
192
192
|
C,
|
|
193
193
|
e,
|
|
194
194
|
this.state.context,
|
|
195
195
|
this
|
|
196
|
-
)), await ((
|
|
196
|
+
)), await ((I = (M = this.options).onError) == null ? void 0 : I.call(
|
|
197
197
|
M,
|
|
198
198
|
C,
|
|
199
199
|
e,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((
|
|
202
|
-
|
|
201
|
+
)), await ((V = (R = x(this, O).config).onSettled) == null ? void 0 : V.call(
|
|
202
|
+
R,
|
|
203
203
|
void 0,
|
|
204
204
|
C,
|
|
205
205
|
this.state.variables,
|
|
@@ -213,13 +213,13 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
213
213
|
this.state.context
|
|
214
214
|
)), C;
|
|
215
215
|
} finally {
|
|
216
|
-
|
|
216
|
+
q(this, L, W).call(this, { type: "error", error: C });
|
|
217
217
|
}
|
|
218
218
|
} finally {
|
|
219
|
-
x(this,
|
|
219
|
+
x(this, O).runNext(this);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
},
|
|
222
|
+
}, z = new WeakMap(), O = new WeakMap(), G = new WeakMap(), L = new WeakSet(), W = function(e) {
|
|
223
223
|
const r = (o) => {
|
|
224
224
|
switch (e.type) {
|
|
225
225
|
case "failed":
|
|
@@ -274,15 +274,15 @@ var R, xt, lr = (xt = class extends bt {
|
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
this.state = r(this.state), S.batch(() => {
|
|
277
|
-
x(this,
|
|
277
|
+
x(this, z).forEach((o) => {
|
|
278
278
|
o.onMutationUpdate(e);
|
|
279
|
-
}), x(this,
|
|
279
|
+
}), x(this, O).notify({
|
|
280
280
|
mutation: this,
|
|
281
281
|
type: "updated",
|
|
282
282
|
action: e
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
},
|
|
285
|
+
}, ct);
|
|
286
286
|
function ur() {
|
|
287
287
|
return {
|
|
288
288
|
context: void 0,
|
|
@@ -296,13 +296,13 @@ function ur() {
|
|
|
296
296
|
submittedAt: 0
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
var
|
|
299
|
+
var A, P, xe, ft, mr = (ft = class extends st {
|
|
300
300
|
constructor(e = {}) {
|
|
301
301
|
super();
|
|
302
|
-
_(this,
|
|
303
|
-
_(this,
|
|
302
|
+
_(this, A);
|
|
303
|
+
_(this, P);
|
|
304
304
|
_(this, xe);
|
|
305
|
-
this.config = e, w(this,
|
|
305
|
+
this.config = e, w(this, A, /* @__PURE__ */ new Set()), w(this, P, /* @__PURE__ */ new Map()), w(this, xe, 0);
|
|
306
306
|
}
|
|
307
307
|
build(e, r, o) {
|
|
308
308
|
const i = new dr({
|
|
@@ -314,24 +314,24 @@ var V, B, xe, ct, mr = (ct = class extends bt {
|
|
|
314
314
|
return this.add(i), i;
|
|
315
315
|
}
|
|
316
316
|
add(e) {
|
|
317
|
-
x(this,
|
|
317
|
+
x(this, A).add(e);
|
|
318
318
|
const r = be(e);
|
|
319
319
|
if (typeof r == "string") {
|
|
320
|
-
const o = x(this,
|
|
321
|
-
o ? o.push(e) : x(this,
|
|
320
|
+
const o = x(this, P).get(r);
|
|
321
|
+
o ? o.push(e) : x(this, P).set(r, [e]);
|
|
322
322
|
}
|
|
323
323
|
this.notify({ type: "added", mutation: e });
|
|
324
324
|
}
|
|
325
325
|
remove(e) {
|
|
326
|
-
if (x(this,
|
|
326
|
+
if (x(this, A).delete(e)) {
|
|
327
327
|
const r = be(e);
|
|
328
328
|
if (typeof r == "string") {
|
|
329
|
-
const o = x(this,
|
|
329
|
+
const o = x(this, P).get(r);
|
|
330
330
|
if (o)
|
|
331
331
|
if (o.length > 1) {
|
|
332
332
|
const i = o.indexOf(e);
|
|
333
333
|
i !== -1 && o.splice(i, 1);
|
|
334
|
-
} else o[0] === e && x(this,
|
|
334
|
+
} else o[0] === e && x(this, P).delete(r);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
this.notify({ type: "removed", mutation: e });
|
|
@@ -339,7 +339,7 @@ var V, B, xe, ct, mr = (ct = class extends bt {
|
|
|
339
339
|
canRun(e) {
|
|
340
340
|
const r = be(e);
|
|
341
341
|
if (typeof r == "string") {
|
|
342
|
-
const o = x(this,
|
|
342
|
+
const o = x(this, P).get(r), i = o == null ? void 0 : o.find(
|
|
343
343
|
(a) => a.state.status === "pending"
|
|
344
344
|
);
|
|
345
345
|
return !i || i === e;
|
|
@@ -350,29 +350,29 @@ var V, B, xe, ct, mr = (ct = class extends bt {
|
|
|
350
350
|
var o;
|
|
351
351
|
const r = be(e);
|
|
352
352
|
if (typeof r == "string") {
|
|
353
|
-
const i = (o = x(this,
|
|
353
|
+
const i = (o = x(this, P).get(r)) == null ? void 0 : o.find((a) => a !== e && a.state.isPaused);
|
|
354
354
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
355
355
|
} else
|
|
356
356
|
return Promise.resolve();
|
|
357
357
|
}
|
|
358
358
|
clear() {
|
|
359
359
|
S.batch(() => {
|
|
360
|
-
x(this,
|
|
360
|
+
x(this, A).forEach((e) => {
|
|
361
361
|
this.notify({ type: "removed", mutation: e });
|
|
362
|
-
}), x(this,
|
|
362
|
+
}), x(this, A).clear(), x(this, P).clear();
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
getAll() {
|
|
366
|
-
return Array.from(x(this,
|
|
366
|
+
return Array.from(x(this, A));
|
|
367
367
|
}
|
|
368
368
|
find(e) {
|
|
369
369
|
const r = { exact: !0, ...e };
|
|
370
370
|
return this.getAll().find(
|
|
371
|
-
(o) =>
|
|
371
|
+
(o) => $e(r, o)
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
findAll(e = {}) {
|
|
375
|
-
return this.getAll().filter((r) =>
|
|
375
|
+
return this.getAll().filter((r) => $e(e, r));
|
|
376
376
|
}
|
|
377
377
|
notify(e) {
|
|
378
378
|
S.batch(() => {
|
|
@@ -385,16 +385,16 @@ var V, B, xe, ct, mr = (ct = class extends bt {
|
|
|
385
385
|
const e = this.getAll().filter((r) => r.state.isPaused);
|
|
386
386
|
return S.batch(
|
|
387
387
|
() => Promise.all(
|
|
388
|
-
e.map((r) => r.continue().catch(
|
|
388
|
+
e.map((r) => r.continue().catch($))
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
},
|
|
392
|
+
}, A = new WeakMap(), P = new WeakMap(), xe = new WeakMap(), ft);
|
|
393
393
|
function be(t) {
|
|
394
394
|
var e;
|
|
395
395
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Ze(t) {
|
|
398
398
|
return {
|
|
399
399
|
onFetch: (e, r) => {
|
|
400
400
|
var p, c, f, b, j;
|
|
@@ -409,40 +409,40 @@ function Ke(t) {
|
|
|
409
409
|
g = !0;
|
|
410
410
|
}), e.signal)
|
|
411
411
|
});
|
|
412
|
-
},
|
|
412
|
+
}, T = zt(e.options, e.fetchOptions), U = async (M, I, R) => {
|
|
413
413
|
if (g)
|
|
414
414
|
return Promise.reject();
|
|
415
|
-
if (
|
|
415
|
+
if (I == null && M.pages.length)
|
|
416
416
|
return Promise.resolve(M);
|
|
417
|
-
const
|
|
417
|
+
const V = {
|
|
418
418
|
client: e.client,
|
|
419
419
|
queryKey: e.queryKey,
|
|
420
|
-
pageParam:
|
|
421
|
-
direction:
|
|
420
|
+
pageParam: I,
|
|
421
|
+
direction: R ? "backward" : "forward",
|
|
422
422
|
meta: e.options.meta
|
|
423
423
|
};
|
|
424
|
-
N(
|
|
425
|
-
const pe = await
|
|
426
|
-
|
|
427
|
-
), { maxPages: le } = e.options, C =
|
|
424
|
+
N(V);
|
|
425
|
+
const pe = await T(
|
|
426
|
+
V
|
|
427
|
+
), { maxPages: le } = e.options, C = R ? Lt : Qt;
|
|
428
428
|
return {
|
|
429
429
|
pages: C(M.pages, pe, le),
|
|
430
|
-
pageParams: C(M.pageParams,
|
|
430
|
+
pageParams: C(M.pageParams, I, le)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
433
|
if (i && a.length) {
|
|
434
|
-
const M = i === "backward",
|
|
434
|
+
const M = i === "backward", I = M ? hr : Xe, R = {
|
|
435
435
|
pages: a,
|
|
436
436
|
pageParams: d
|
|
437
|
-
},
|
|
438
|
-
u = await
|
|
437
|
+
}, V = I(o, R);
|
|
438
|
+
u = await U(R, V, M);
|
|
439
439
|
} else {
|
|
440
440
|
const M = t ?? a.length;
|
|
441
441
|
do {
|
|
442
|
-
const
|
|
443
|
-
if (m > 0 &&
|
|
442
|
+
const I = m === 0 ? d[0] ?? o.initialPageParam : Xe(o, u);
|
|
443
|
+
if (m > 0 && I == null)
|
|
444
444
|
break;
|
|
445
|
-
u = await
|
|
445
|
+
u = await U(u, I), m++;
|
|
446
446
|
} while (m < M);
|
|
447
447
|
}
|
|
448
448
|
return u;
|
|
@@ -464,7 +464,7 @@ function Ke(t) {
|
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Xe(t, { pages: e, pageParams: r }) {
|
|
468
468
|
const o = e.length - 1;
|
|
469
469
|
return e.length > 0 ? t.getNextPageParam(
|
|
470
470
|
e[o],
|
|
@@ -477,34 +477,34 @@ function hr(t, { pages: e, pageParams: r }) {
|
|
|
477
477
|
var o;
|
|
478
478
|
return e.length > 0 ? (o = t.getPreviousPageParam) == null ? void 0 : o.call(t, e[0], e, r[0], r) : void 0;
|
|
479
479
|
}
|
|
480
|
-
var k,
|
|
480
|
+
var k, K, Z, te, re, X, ne, oe, bt, xr = (bt = class {
|
|
481
481
|
constructor(t = {}) {
|
|
482
482
|
_(this, k);
|
|
483
|
-
_(this, W);
|
|
484
483
|
_(this, K);
|
|
484
|
+
_(this, Z);
|
|
485
485
|
_(this, te);
|
|
486
486
|
_(this, re);
|
|
487
|
-
_(this,
|
|
487
|
+
_(this, X);
|
|
488
488
|
_(this, ne);
|
|
489
489
|
_(this, oe);
|
|
490
|
-
w(this, k, t.queryCache || new lr()), w(this,
|
|
490
|
+
w(this, k, t.queryCache || new lr()), w(this, K, t.mutationCache || new mr()), w(this, Z, t.defaultOptions || {}), w(this, te, /* @__PURE__ */ new Map()), w(this, re, /* @__PURE__ */ new Map()), w(this, X, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
fe(this,
|
|
493
|
+
fe(this, X)._++, x(this, X) === 1 && (w(this, ne, Vt.subscribe(async (t) => {
|
|
494
494
|
t && (await this.resumePausedMutations(), x(this, k).onFocus());
|
|
495
|
-
})), w(this, oe,
|
|
495
|
+
})), w(this, oe, Ae.subscribe(async (t) => {
|
|
496
496
|
t && (await this.resumePausedMutations(), x(this, k).onOnline());
|
|
497
497
|
})));
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var t, e;
|
|
501
|
-
fe(this,
|
|
501
|
+
fe(this, X)._--, x(this, X) === 0 && ((t = x(this, ne)) == null || t.call(this), w(this, ne, void 0), (e = x(this, oe)) == null || e.call(this), w(this, oe, void 0));
|
|
502
502
|
}
|
|
503
503
|
isFetching(t) {
|
|
504
504
|
return x(this, k).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
505
505
|
}
|
|
506
506
|
isMutating(t) {
|
|
507
|
-
return x(this,
|
|
507
|
+
return x(this, K).findAll({ ...t, status: "pending" }).length;
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
@@ -520,7 +520,7 @@ var k, W, K, te, re, Z, ne, oe, ft, xr = (ft = class {
|
|
|
520
520
|
}
|
|
521
521
|
ensureQueryData(t) {
|
|
522
522
|
const e = this.defaultQueryOptions(t), r = x(this, k).build(this, e), o = r.state.data;
|
|
523
|
-
return o === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(
|
|
523
|
+
return o === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(Ue(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(o));
|
|
524
524
|
}
|
|
525
525
|
getQueriesData(t) {
|
|
526
526
|
return x(this, k).findAll(t).map(({ queryKey: e, state: r }) => {
|
|
@@ -574,7 +574,7 @@ var k, W, K, te, re, Z, ne, oe, ft, xr = (ft = class {
|
|
|
574
574
|
const r = { revert: !0, ...e }, o = S.batch(
|
|
575
575
|
() => x(this, k).findAll(t).map((i) => i.cancel(r))
|
|
576
576
|
);
|
|
577
|
-
return Promise.all(o).then(
|
|
577
|
+
return Promise.all(o).then($).catch($);
|
|
578
578
|
}
|
|
579
579
|
invalidateQueries(t, e = {}) {
|
|
580
580
|
return S.batch(() => (x(this, k).findAll(t).forEach((r) => {
|
|
@@ -594,48 +594,48 @@ var k, W, K, te, re, Z, ne, oe, ft, xr = (ft = class {
|
|
|
594
594
|
}, o = S.batch(
|
|
595
595
|
() => x(this, k).findAll(t).filter((i) => !i.isDisabled() && !i.isStatic()).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($)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
|
|
598
598
|
})
|
|
599
599
|
);
|
|
600
|
-
return Promise.all(o).then(
|
|
600
|
+
return Promise.all(o).then($);
|
|
601
601
|
}
|
|
602
602
|
fetchQuery(t) {
|
|
603
603
|
const e = this.defaultQueryOptions(t);
|
|
604
604
|
e.retry === void 0 && (e.retry = !1);
|
|
605
605
|
const r = x(this, k).build(this, e);
|
|
606
606
|
return r.isStaleByTime(
|
|
607
|
-
|
|
607
|
+
Ue(e.staleTime, r)
|
|
608
608
|
) ? r.fetch(e) : Promise.resolve(r.state.data);
|
|
609
609
|
}
|
|
610
610
|
prefetchQuery(t) {
|
|
611
|
-
return this.fetchQuery(t).then(
|
|
611
|
+
return this.fetchQuery(t).then($).catch($);
|
|
612
612
|
}
|
|
613
613
|
fetchInfiniteQuery(t) {
|
|
614
|
-
return t.behavior =
|
|
614
|
+
return t.behavior = Ze(t.pages), this.fetchQuery(t);
|
|
615
615
|
}
|
|
616
616
|
prefetchInfiniteQuery(t) {
|
|
617
|
-
return this.fetchInfiniteQuery(t).then(
|
|
617
|
+
return this.fetchInfiniteQuery(t).then($).catch($);
|
|
618
618
|
}
|
|
619
619
|
ensureInfiniteQueryData(t) {
|
|
620
|
-
return t.behavior =
|
|
620
|
+
return t.behavior = Ze(t.pages), this.ensureQueryData(t);
|
|
621
621
|
}
|
|
622
622
|
resumePausedMutations() {
|
|
623
|
-
return
|
|
623
|
+
return Ae.isOnline() ? x(this, K).resumePausedMutations() : Promise.resolve();
|
|
624
624
|
}
|
|
625
625
|
getQueryCache() {
|
|
626
626
|
return x(this, k);
|
|
627
627
|
}
|
|
628
628
|
getMutationCache() {
|
|
629
|
-
return x(this,
|
|
629
|
+
return x(this, K);
|
|
630
630
|
}
|
|
631
631
|
getDefaultOptions() {
|
|
632
|
-
return x(this,
|
|
632
|
+
return x(this, Z);
|
|
633
633
|
}
|
|
634
634
|
setDefaultOptions(t) {
|
|
635
|
-
w(this,
|
|
635
|
+
w(this, Z, t);
|
|
636
636
|
}
|
|
637
637
|
setQueryDefaults(t, e) {
|
|
638
|
-
x(this, te).set(
|
|
638
|
+
x(this, te).set(qe(t), {
|
|
639
639
|
queryKey: t,
|
|
640
640
|
defaultOptions: e
|
|
641
641
|
});
|
|
@@ -643,11 +643,11 @@ var k, W, K, te, re, Z, ne, oe, ft, xr = (ft = class {
|
|
|
643
643
|
getQueryDefaults(t) {
|
|
644
644
|
const e = [...x(this, te).values()], r = {};
|
|
645
645
|
return e.forEach((o) => {
|
|
646
|
-
|
|
646
|
+
We(t, o.queryKey) && Object.assign(r, o.defaultOptions);
|
|
647
647
|
}), r;
|
|
648
648
|
}
|
|
649
649
|
setMutationDefaults(t, e) {
|
|
650
|
-
x(this, re).set(
|
|
650
|
+
x(this, re).set(qe(t), {
|
|
651
651
|
mutationKey: t,
|
|
652
652
|
defaultOptions: e
|
|
653
653
|
});
|
|
@@ -655,36 +655,36 @@ var k, W, K, te, re, Z, ne, oe, ft, xr = (ft = class {
|
|
|
655
655
|
getMutationDefaults(t) {
|
|
656
656
|
const e = [...x(this, re).values()], r = {};
|
|
657
657
|
return e.forEach((o) => {
|
|
658
|
-
|
|
658
|
+
We(t, o.mutationKey) && Object.assign(r, o.defaultOptions);
|
|
659
659
|
}), r;
|
|
660
660
|
}
|
|
661
661
|
defaultQueryOptions(t) {
|
|
662
662
|
if (t._defaulted)
|
|
663
663
|
return t;
|
|
664
664
|
const e = {
|
|
665
|
-
...x(this,
|
|
665
|
+
...x(this, Z).queries,
|
|
666
666
|
...this.getQueryDefaults(t.queryKey),
|
|
667
667
|
...t,
|
|
668
668
|
_defaulted: !0
|
|
669
669
|
};
|
|
670
|
-
return e.queryHash || (e.queryHash =
|
|
670
|
+
return e.queryHash || (e.queryHash = gt(
|
|
671
671
|
e.queryKey,
|
|
672
672
|
e
|
|
673
673
|
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === At && (e.enabled = !1), e;
|
|
674
674
|
}
|
|
675
675
|
defaultMutationOptions(t) {
|
|
676
676
|
return t != null && t._defaulted ? t : {
|
|
677
|
-
...x(this,
|
|
677
|
+
...x(this, Z).mutations,
|
|
678
678
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
679
679
|
...t,
|
|
680
680
|
_defaulted: !0
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
683
|
clear() {
|
|
684
|
-
x(this, k).clear(), x(this,
|
|
684
|
+
x(this, k).clear(), x(this, K).clear();
|
|
685
685
|
}
|
|
686
|
-
}, k = new WeakMap(),
|
|
687
|
-
const pr =
|
|
686
|
+
}, k = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), X = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), bt);
|
|
687
|
+
const pr = B(() => Promise.resolve().then(() => Pr)), cr = B(() => Promise.resolve().then(() => No)), fr = B(() => Promise.resolve().then(() => Hn)), br = B(() => Promise.resolve().then(() => Ln)), sr = B(() => Promise.resolve().then(() => $r)), gr = B(() => Promise.resolve().then(() => Fr)), jr = B(() => Promise.resolve().then(() => on)), yr = B(() => Promise.resolve().then(() => Jr)), kr = B(() => Promise.resolve().then(() => oo)), wr = B(() => Promise.resolve().then(() => Ur)), vr = B(() => Promise.resolve().then(() => _n)), Nr = B(() => Promise.resolve().then(() => Sr)), Cr = {
|
|
688
688
|
header: gr,
|
|
689
689
|
seoHeader: kr,
|
|
690
690
|
banner: pr,
|
|
@@ -700,7 +700,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
700
700
|
}, Mr = Object.keys(Cr), y = Mr.reduce(
|
|
701
701
|
(t, e) => (t[e] = e, t),
|
|
702
702
|
{}
|
|
703
|
-
), _r = (t) =>
|
|
703
|
+
), _r = (t) => kt(() => {
|
|
704
704
|
switch (t.handler) {
|
|
705
705
|
case "navigate": {
|
|
706
706
|
const { url: r, target: o, rel: i } = t;
|
|
@@ -722,7 +722,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
722
722
|
o.show();
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
}, [t]),
|
|
725
|
+
}, [t]), Y = ({ handlerOptions: t, className: e, ...r }) => {
|
|
726
726
|
const o = _r(t);
|
|
727
727
|
return /* @__PURE__ */ n.jsx(je, { className: l(e), onClick: o, ...r, children: r.children });
|
|
728
728
|
}, Ir = E(
|
|
@@ -765,7 +765,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
765
765
|
}
|
|
766
766
|
)
|
|
767
767
|
] }),
|
|
768
|
-
a && h && (d == null ? void 0 : d.handlerOptions) && /* @__PURE__ */ n.jsx(
|
|
768
|
+
a && h && (d == null ? void 0 : d.handlerOptions) && /* @__PURE__ */ n.jsx(Y, { intent: "primary", className: l("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...d })
|
|
769
769
|
] }),
|
|
770
770
|
(o || h) && r && /* @__PURE__ */ n.jsx("div", { className: l("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && v.isObject(r) ? /* @__PURE__ */ n.jsx("img", { className: l("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: r.alt }) : r })
|
|
771
771
|
]
|
|
@@ -780,7 +780,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
780
780
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
|
-
}),
|
|
783
|
+
}), Ye = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: y.benefit, "data-test-id": y.benefit, className: l("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ n.jsxs(F, { className: o == null ? void 0 : o.container, children: [
|
|
784
784
|
/* @__PURE__ */ n.jsx(
|
|
785
785
|
"div",
|
|
786
786
|
{
|
|
@@ -791,18 +791,18 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
791
791
|
/* @__PURE__ */ n.jsx("ul", { className: l(Or({ variant: r }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx(Tr, { variant: r, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
|
|
792
792
|
] }) }), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
793
793
|
__proto__: null,
|
|
794
|
-
Benefit:
|
|
795
|
-
default:
|
|
794
|
+
Benefit: Ye,
|
|
795
|
+
default: Ye
|
|
796
796
|
}, Symbol.toStringTag, { value: "Module" })), Er = ({ variant: t, details: e }) => {
|
|
797
797
|
switch (t) {
|
|
798
798
|
case "withButton":
|
|
799
|
-
return /* @__PURE__ */ n.jsx(
|
|
799
|
+
return /* @__PURE__ */ n.jsx(Y, { ...e });
|
|
800
800
|
case "withPhone":
|
|
801
|
-
return /* @__PURE__ */ n.jsx(
|
|
801
|
+
return /* @__PURE__ */ n.jsx(jt, { classes: { root: "items-end" }, ...e, phone: ve(e.phone) });
|
|
802
802
|
default:
|
|
803
803
|
return null;
|
|
804
804
|
}
|
|
805
|
-
},
|
|
805
|
+
}, Je = (t) => {
|
|
806
806
|
const { logoPath: e = "/", logoType: r = "main", classes: o } = t;
|
|
807
807
|
return /* @__PURE__ */ n.jsx(
|
|
808
808
|
"header",
|
|
@@ -810,7 +810,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
810
810
|
id: y.header,
|
|
811
811
|
"data-test-id": y.header,
|
|
812
812
|
className: l("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
813
|
-
children: /* @__PURE__ */ n.jsx(
|
|
813
|
+
children: /* @__PURE__ */ n.jsx(F, { className: l(o == null ? void 0 : o.container), children: /* @__PURE__ */ n.jsxs("div", { className: l("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
814
814
|
/* @__PURE__ */ n.jsx(
|
|
815
815
|
"a",
|
|
816
816
|
{
|
|
@@ -831,8 +831,8 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
831
831
|
);
|
|
832
832
|
}, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
833
833
|
__proto__: null,
|
|
834
|
-
Header:
|
|
835
|
-
default:
|
|
834
|
+
Header: Je,
|
|
835
|
+
default: Je
|
|
836
836
|
}, Symbol.toStringTag, { value: "Module" })), Br = ({
|
|
837
837
|
headTitle: t,
|
|
838
838
|
subtitle: e,
|
|
@@ -846,7 +846,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
846
846
|
renderImage: h
|
|
847
847
|
}) => {
|
|
848
848
|
var N;
|
|
849
|
-
const { isDesktop: p, isMobile: c } = ee(), { primary: f, secondary: b } = r || {}, j = (
|
|
849
|
+
const { isDesktop: p, isMobile: c } = ee(), { primary: f, secondary: b } = r || {}, j = (T) => h ? h(T) : /* @__PURE__ */ n.jsx("img", { ...T }), g = /* @__PURE__ */ n.jsx(
|
|
850
850
|
"div",
|
|
851
851
|
{
|
|
852
852
|
className: l(
|
|
@@ -870,7 +870,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
870
870
|
alt: u,
|
|
871
871
|
className: l("h-full w-full object-cover object-center")
|
|
872
872
|
}) }),
|
|
873
|
-
/* @__PURE__ */ n.jsxs(
|
|
873
|
+
/* @__PURE__ */ n.jsxs(F, { className: l("h-full", i == null ? void 0 : i.container), children: [
|
|
874
874
|
/* @__PURE__ */ n.jsx("div", { className: l("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ n.jsxs("div", { className: l("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
|
|
875
875
|
/* @__PURE__ */ n.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
876
876
|
/* @__PURE__ */ n.jsx(
|
|
@@ -898,7 +898,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
898
898
|
),
|
|
899
899
|
children: [
|
|
900
900
|
f.enabled && /* @__PURE__ */ n.jsx(
|
|
901
|
-
|
|
901
|
+
Y,
|
|
902
902
|
{
|
|
903
903
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
904
904
|
size: "lg",
|
|
@@ -907,7 +907,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
907
907
|
}
|
|
908
908
|
),
|
|
909
909
|
(b == null ? void 0 : b.enabled) && /* @__PURE__ */ n.jsx(
|
|
910
|
-
|
|
910
|
+
Y,
|
|
911
911
|
{
|
|
912
912
|
intent: "secondary",
|
|
913
913
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
@@ -925,7 +925,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
925
925
|
),
|
|
926
926
|
c && (o == null ? void 0 : o.enabled) && g
|
|
927
927
|
] });
|
|
928
|
-
},
|
|
928
|
+
}, Ge = ({
|
|
929
929
|
headTitle: t,
|
|
930
930
|
subtitle: e,
|
|
931
931
|
buttonsConfig: r,
|
|
@@ -947,7 +947,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
947
947
|
"data-test-id": y.banner,
|
|
948
948
|
className: l("", i == null ? void 0 : i.root),
|
|
949
949
|
children: [
|
|
950
|
-
/* @__PURE__ */ n.jsxs(
|
|
950
|
+
/* @__PURE__ */ n.jsxs(F, { className: l("relative desktop:h-[456px]", i == null ? void 0 : i.container), children: [
|
|
951
951
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
952
952
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
953
953
|
/* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
@@ -976,7 +976,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
976
976
|
),
|
|
977
977
|
children: [
|
|
978
978
|
c.enabled && /* @__PURE__ */ n.jsx(
|
|
979
|
-
|
|
979
|
+
Y,
|
|
980
980
|
{
|
|
981
981
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
982
982
|
size: "lg",
|
|
@@ -985,7 +985,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
985
985
|
}
|
|
986
986
|
),
|
|
987
987
|
(f == null ? void 0 : f.enabled) && /* @__PURE__ */ n.jsx(
|
|
988
|
-
|
|
988
|
+
Y,
|
|
989
989
|
{
|
|
990
990
|
intent: "secondary",
|
|
991
991
|
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
@@ -1032,19 +1032,19 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1032
1032
|
]
|
|
1033
1033
|
}
|
|
1034
1034
|
);
|
|
1035
|
-
},
|
|
1035
|
+
}, et = ({ variant: t, ...e }) => {
|
|
1036
1036
|
switch (t) {
|
|
1037
1037
|
case "separateImg":
|
|
1038
|
-
return /* @__PURE__ */ n.jsx(
|
|
1038
|
+
return /* @__PURE__ */ n.jsx(Ge, { ...e });
|
|
1039
1039
|
case "fullImg":
|
|
1040
1040
|
return /* @__PURE__ */ n.jsx(Br, { ...e });
|
|
1041
1041
|
default:
|
|
1042
|
-
return /* @__PURE__ */ n.jsx(
|
|
1042
|
+
return /* @__PURE__ */ n.jsx(Ge, { ...e });
|
|
1043
1043
|
}
|
|
1044
1044
|
}, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1045
1045
|
__proto__: null,
|
|
1046
|
-
Banner:
|
|
1047
|
-
default:
|
|
1046
|
+
Banner: et,
|
|
1047
|
+
default: et
|
|
1048
1048
|
}, Symbol.toStringTag, { value: "Module" })), Te = ({ details: t, classes: e }) => {
|
|
1049
1049
|
const { variant: r, items: o } = t ?? {};
|
|
1050
1050
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1065,7 +1065,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1065
1065
|
e == null ? void 0 : e.item
|
|
1066
1066
|
),
|
|
1067
1067
|
children: [
|
|
1068
|
-
/* @__PURE__ */ n.jsx(
|
|
1068
|
+
/* @__PURE__ */ n.jsx(Q, { as: "h4", className: l("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
1069
1069
|
/* @__PURE__ */ n.jsx("p", { className: l("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
|
|
1070
1070
|
]
|
|
1071
1071
|
},
|
|
@@ -1083,7 +1083,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1083
1083
|
},
|
|
1084
1084
|
o
|
|
1085
1085
|
)) }), Rr = ({ phones: t, classes: e }) => /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: r, text: o }) => /* @__PURE__ */ n.jsx(
|
|
1086
|
-
|
|
1086
|
+
jt,
|
|
1087
1087
|
{
|
|
1088
1088
|
phone: ve(r),
|
|
1089
1089
|
text: o,
|
|
@@ -1177,7 +1177,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1177
1177
|
}
|
|
1178
1178
|
)
|
|
1179
1179
|
] });
|
|
1180
|
-
},
|
|
1180
|
+
}, tt = ({
|
|
1181
1181
|
socialsLinks: t,
|
|
1182
1182
|
phones: e,
|
|
1183
1183
|
ligal: r,
|
|
@@ -1191,7 +1191,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1191
1191
|
id: y.footer,
|
|
1192
1192
|
"data-test-id": y.footer,
|
|
1193
1193
|
className: l("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1194
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1194
|
+
children: /* @__PURE__ */ n.jsx(F, { className: l(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ n.jsxs("div", { className: l("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1195
1195
|
/* @__PURE__ */ n.jsxs(
|
|
1196
1196
|
"div",
|
|
1197
1197
|
{
|
|
@@ -1227,8 +1227,8 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1227
1227
|
}
|
|
1228
1228
|
), $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1229
1229
|
__proto__: null,
|
|
1230
|
-
Footer:
|
|
1231
|
-
default:
|
|
1230
|
+
Footer: tt,
|
|
1231
|
+
default: tt
|
|
1232
1232
|
}, Symbol.toStringTag, { value: "Module" })), Ar = ({ classes: t, index: e, variant: r, title: o, description: i }) => {
|
|
1233
1233
|
const a = r === "withTitleAndDescription" && o;
|
|
1234
1234
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -1268,8 +1268,8 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1268
1268
|
]
|
|
1269
1269
|
}
|
|
1270
1270
|
);
|
|
1271
|
-
},
|
|
1272
|
-
/* @__PURE__ */ n.jsx(
|
|
1271
|
+
}, rt = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: y.stepper, "data-test-id": y.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ n.jsx(F, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
1272
|
+
/* @__PURE__ */ n.jsx(Q, { as: "h2", className: l("text-color-dark", o == null ? void 0 : o.headline), children: t }),
|
|
1273
1273
|
/* @__PURE__ */ n.jsx(
|
|
1274
1274
|
"div",
|
|
1275
1275
|
{
|
|
@@ -1282,8 +1282,8 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1282
1282
|
)
|
|
1283
1283
|
] }) }) }), Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1284
1284
|
__proto__: null,
|
|
1285
|
-
Stepper:
|
|
1286
|
-
default:
|
|
1285
|
+
Stepper: rt,
|
|
1286
|
+
default: rt
|
|
1287
1287
|
}, Symbol.toStringTag, { value: "Module" })), qr = E("", {
|
|
1288
1288
|
variants: {
|
|
1289
1289
|
intent: {
|
|
@@ -1383,7 +1383,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1383
1383
|
] }),
|
|
1384
1384
|
/* @__PURE__ */ n.jsx("div", { className: l("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1385
1385
|
] }) });
|
|
1386
|
-
}, Me = ({ intent: t, headline: e, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: l(qr({ intent: t, desktopHidden: r, mobileHidden: o })), children: e }), Yr = ({ details: t, intent: e, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: l(Wr({ intent: e, withButton: r })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ n.jsx(Xr, { intent: e, data: o }, i)) }),
|
|
1386
|
+
}, Me = ({ intent: t, headline: e, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: l(qr({ intent: t, desktopHidden: r, mobileHidden: o })), children: e }), Yr = ({ details: t, intent: e, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: l(Wr({ intent: e, withButton: r })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ n.jsx(Xr, { intent: e, data: o }, i)) }), nt = ({
|
|
1387
1387
|
headline: t,
|
|
1388
1388
|
buttonConfig: e,
|
|
1389
1389
|
intent: r = "twoItems",
|
|
@@ -1392,7 +1392,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1392
1392
|
classes: a
|
|
1393
1393
|
}) => {
|
|
1394
1394
|
const d = r === "fourItems", u = r === "twoItems", m = i && "url" in i && v.isObject(i) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
|
|
1395
|
-
return /* @__PURE__ */ n.jsx("section", { id: y.longBanner, "data-test-id": y.longBanner, className: l(a == null ? void 0 : a.root), children: /* @__PURE__ */ n.jsxs(
|
|
1395
|
+
return /* @__PURE__ */ n.jsx("section", { id: y.longBanner, "data-test-id": y.longBanner, className: l(a == null ? void 0 : a.root), children: /* @__PURE__ */ n.jsxs(F, { className: l(a == null ? void 0 : a.container), children: [
|
|
1396
1396
|
u && /* @__PURE__ */ n.jsx(Me, { intent: r, headline: t }),
|
|
1397
1397
|
/* @__PURE__ */ n.jsxs(
|
|
1398
1398
|
"div",
|
|
@@ -1412,7 +1412,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1412
1412
|
d && /* @__PURE__ */ n.jsx(Me, { intent: r, headline: t, mobileHidden: !0 }),
|
|
1413
1413
|
/* @__PURE__ */ n.jsx(Yr, { details: o, intent: r, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
|
|
1414
1414
|
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ n.jsx(
|
|
1415
|
-
|
|
1415
|
+
Y,
|
|
1416
1416
|
{
|
|
1417
1417
|
className: l("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
|
|
1418
1418
|
size: "lg",
|
|
@@ -1429,8 +1429,8 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1429
1429
|
] }) });
|
|
1430
1430
|
}, Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1431
1431
|
__proto__: null,
|
|
1432
|
-
LongBanner:
|
|
1433
|
-
default:
|
|
1432
|
+
LongBanner: nt,
|
|
1433
|
+
default: nt
|
|
1434
1434
|
}, Symbol.toStringTag, { value: "Module" })), _e = {
|
|
1435
1435
|
ESIA: "esia",
|
|
1436
1436
|
MOBILE_ID: "mobileId",
|
|
@@ -1513,7 +1513,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1513
1513
|
children: e == null ? void 0 : e.text
|
|
1514
1514
|
}
|
|
1515
1515
|
)
|
|
1516
|
-
] }),
|
|
1516
|
+
] }), ot = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
1517
1517
|
const { isMobile: d } = ee();
|
|
1518
1518
|
return /* @__PURE__ */ n.jsx(Ct, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1519
1519
|
"div",
|
|
@@ -1537,7 +1537,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1537
1537
|
]
|
|
1538
1538
|
}
|
|
1539
1539
|
) });
|
|
1540
|
-
},
|
|
1540
|
+
}, it = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
1541
1541
|
const { isMobile: d } = ee();
|
|
1542
1542
|
return /* @__PURE__ */ n.jsx(Ct, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1543
1543
|
"div",
|
|
@@ -1560,9 +1560,9 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1560
1560
|
}, en = (t) => {
|
|
1561
1561
|
switch (t.mode) {
|
|
1562
1562
|
case _e.ESIA:
|
|
1563
|
-
return /* @__PURE__ */ n.jsx(
|
|
1563
|
+
return /* @__PURE__ */ n.jsx(it, { ...t });
|
|
1564
1564
|
case _e.MOBILE_ID:
|
|
1565
|
-
return /* @__PURE__ */ n.jsx(
|
|
1565
|
+
return /* @__PURE__ */ n.jsx(ot, { ...t });
|
|
1566
1566
|
case _e.COMBINE:
|
|
1567
1567
|
default:
|
|
1568
1568
|
const { esiaConfig: e, mobileIdConfig: r, subtitle: o, badge: i, classes: a } = t, d = !o && !i ? me.Fragment : "div";
|
|
@@ -1580,7 +1580,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1580
1580
|
] }),
|
|
1581
1581
|
/* @__PURE__ */ n.jsxs("div", { className: l("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
|
|
1582
1582
|
/* @__PURE__ */ n.jsx(
|
|
1583
|
-
|
|
1583
|
+
it,
|
|
1584
1584
|
{
|
|
1585
1585
|
...e,
|
|
1586
1586
|
classes: {
|
|
@@ -1591,7 +1591,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1591
1591
|
}
|
|
1592
1592
|
),
|
|
1593
1593
|
/* @__PURE__ */ n.jsx(
|
|
1594
|
-
|
|
1594
|
+
ot,
|
|
1595
1595
|
{
|
|
1596
1596
|
...r,
|
|
1597
1597
|
classes: {
|
|
@@ -1606,7 +1606,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1606
1606
|
}
|
|
1607
1607
|
);
|
|
1608
1608
|
}
|
|
1609
|
-
}, Do = (t) => en(t),
|
|
1609
|
+
}, Do = (t) => en(t), at = ({ links: t, classes: e }) => /* @__PURE__ */ n.jsx("nav", { className: l("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: r, label: o }) => /* @__PURE__ */ n.jsx(
|
|
1610
1610
|
ye,
|
|
1611
1611
|
{
|
|
1612
1612
|
classes: {
|
|
@@ -1624,7 +1624,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1624
1624
|
return /* @__PURE__ */ n.jsxs("div", { className: l("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1625
1625
|
!i && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1626
1626
|
/* @__PURE__ */ n.jsx("h5", { className: l("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: t }),
|
|
1627
|
-
/* @__PURE__ */ n.jsx(
|
|
1627
|
+
/* @__PURE__ */ n.jsx(at, { links: e, classes: o == null ? void 0 : o.linksList }, "desktop")
|
|
1628
1628
|
] }),
|
|
1629
1629
|
i && /* @__PURE__ */ n.jsx(
|
|
1630
1630
|
ae,
|
|
@@ -1640,7 +1640,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1640
1640
|
},
|
|
1641
1641
|
contentInner: l("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
|
|
1642
1642
|
},
|
|
1643
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1643
|
+
children: /* @__PURE__ */ n.jsx(at, { links: e, classes: o == null ? void 0 : o.linksList }, "mobile")
|
|
1644
1644
|
}
|
|
1645
1645
|
)
|
|
1646
1646
|
] });
|
|
@@ -1655,7 +1655,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1655
1655
|
defaultVariants: {
|
|
1656
1656
|
variant: "fourCols"
|
|
1657
1657
|
}
|
|
1658
|
-
}),
|
|
1658
|
+
}), lt = ({
|
|
1659
1659
|
variant: t,
|
|
1660
1660
|
details: e,
|
|
1661
1661
|
headline: r,
|
|
@@ -1671,11 +1671,11 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1671
1671
|
id: y.interLinking,
|
|
1672
1672
|
"data-test-id": y.interLinking,
|
|
1673
1673
|
className: l("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1674
|
-
children: /* @__PURE__ */ n.jsx(
|
|
1674
|
+
children: /* @__PURE__ */ n.jsx(F, { children: /* @__PURE__ */ n.jsx(
|
|
1675
1675
|
ae,
|
|
1676
1676
|
{
|
|
1677
1677
|
defaultOpen: d,
|
|
1678
|
-
label: /* @__PURE__ */ n.jsx(
|
|
1678
|
+
label: /* @__PURE__ */ n.jsx(Q, { as: "h4", className: l("text-left", a == null ? void 0 : a.headline), children: r }),
|
|
1679
1679
|
...i,
|
|
1680
1680
|
classes: {
|
|
1681
1681
|
...i == null ? void 0 : i.classes,
|
|
@@ -1691,8 +1691,8 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1691
1691
|
);
|
|
1692
1692
|
}, on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1693
1693
|
__proto__: null,
|
|
1694
|
-
InterLinking:
|
|
1695
|
-
default:
|
|
1694
|
+
InterLinking: lt,
|
|
1695
|
+
default: lt
|
|
1696
1696
|
}, Symbol.toStringTag, { value: "Module" })), an = ({ tabsNames: t, activeTab: e, setActiveTab: r, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: l("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: t && t.map((i, a) => /* @__PURE__ */ n.jsx(
|
|
1697
1697
|
"button",
|
|
1698
1698
|
{
|
|
@@ -1814,7 +1814,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1814
1814
|
classes: m
|
|
1815
1815
|
}) => {
|
|
1816
1816
|
const h = /* @__PURE__ */ n.jsxs("div", { className: l(xn({ columnsVariant: r }), m == null ? void 0 : m.wrapper), children: [
|
|
1817
|
-
a && /* @__PURE__ */ n.jsx(
|
|
1817
|
+
a && /* @__PURE__ */ n.jsx(Q, { as: "h4", className: l("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
|
|
1818
1818
|
/* @__PURE__ */ n.jsx(jn, { tableVariant: t, rows: i, headings: d, columnsVariant: r }),
|
|
1819
1819
|
e && /* @__PURE__ */ n.jsx(
|
|
1820
1820
|
"div",
|
|
@@ -1862,7 +1862,7 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1862
1862
|
}
|
|
1863
1863
|
), Nn = ({ docs: t, config: e, title: r, iconType: o, description: i, classes: a, accordionConfig: d }) => {
|
|
1864
1864
|
const u = /* @__PURE__ */ n.jsxs("div", { className: l("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
|
|
1865
|
-
r && /* @__PURE__ */ n.jsx(
|
|
1865
|
+
r && /* @__PURE__ */ n.jsx(Q, { as: "h3", className: "mb-4", children: r }),
|
|
1866
1866
|
/* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ n.jsx(vn, { iconType: o, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
|
|
1867
1867
|
i && /* @__PURE__ */ n.jsx("div", { className: l("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1868
1868
|
] });
|
|
@@ -1904,21 +1904,21 @@ const pr = F(() => Promise.resolve().then(() => Pr)), cr = F(() => Promise.resol
|
|
|
1904
1904
|
default:
|
|
1905
1905
|
return null;
|
|
1906
1906
|
}
|
|
1907
|
-
}, Mn = ({ entity: t, classes: e, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Cn({ entity: t, classes: e, accordionsConfig: r }) }),
|
|
1907
|
+
}, Mn = ({ entity: t, classes: e, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: l("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Cn({ entity: t, classes: e, accordionsConfig: r }) }), dt = ({ headline: t, tabs: e, classes: r, accordionsConfig: o }) => {
|
|
1908
1908
|
var u, m;
|
|
1909
1909
|
const [i, a] = D(0), d = we(() => e == null ? void 0 : e.map((h) => h == null ? void 0 : h.tabName), [e]) ?? [];
|
|
1910
|
-
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: y.usefulInfo, "data-test-id": y.usefulInfo, className: l(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(
|
|
1911
|
-
/* @__PURE__ */ n.jsx(
|
|
1910
|
+
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: y.usefulInfo, "data-test-id": y.usefulInfo, className: l(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(F, { className: l(r == null ? void 0 : r.container), children: [
|
|
1911
|
+
/* @__PURE__ */ n.jsx(Q, { className: l(r == null ? void 0 : r.headline), as: "h2", children: t }),
|
|
1912
1912
|
/* @__PURE__ */ n.jsx("div", { className: l("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(an, { tabsNames: d, activeTab: i, setActiveTab: a, classes: r == null ? void 0 : r.tabs }) }),
|
|
1913
1913
|
/* @__PURE__ */ n.jsx("div", { className: l("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ n.jsx(Mn, { accordionsConfig: o, ...h, classes: r == null ? void 0 : r.entityClasses }, p)) })
|
|
1914
1914
|
] }) });
|
|
1915
1915
|
}, _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1916
1916
|
__proto__: null,
|
|
1917
|
-
UsefulInfo:
|
|
1918
|
-
default:
|
|
1919
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1920
|
-
const i =
|
|
1921
|
-
return /* @__PURE__ */
|
|
1917
|
+
UsefulInfo: dt,
|
|
1918
|
+
default: dt
|
|
1919
|
+
}, Symbol.toStringTag, { value: "Module" })), ze = ({ fields: t, control: e }) => t.map(({ type: r, args: o }) => {
|
|
1920
|
+
const i = yt[r];
|
|
1921
|
+
return /* @__PURE__ */ Be(i, { ...o, key: o.name, control: e });
|
|
1922
1922
|
});
|
|
1923
1923
|
class In {
|
|
1924
1924
|
constructor(e) {
|
|
@@ -2047,7 +2047,7 @@ class Oe {
|
|
|
2047
2047
|
const u = this.parseNode(d);
|
|
2048
2048
|
u && a.push(u);
|
|
2049
2049
|
}
|
|
2050
|
-
return
|
|
2050
|
+
return Be(o, i, ...a);
|
|
2051
2051
|
}
|
|
2052
2052
|
return null;
|
|
2053
2053
|
}
|
|
@@ -2083,7 +2083,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2083
2083
|
if (!v.isFunction(o))
|
|
2084
2084
|
throw new Error(`Cannot generate ${String(e)} because is not a function`);
|
|
2085
2085
|
return o(r);
|
|
2086
|
-
}, Bn = (t, e) => _t(wt.base, t, e), Pn = (t, e) => _t(wt.dadata, t, e),
|
|
2086
|
+
}, Bn = (t, e) => _t(wt.base, t, e), Pn = (t, e) => _t(wt.dadata, t, e), Le = (t) => {
|
|
2087
2087
|
const r = ((t == null ? void 0 : t.map((o) => ({ name: o.args.name, validation: o.args.validation }))) ?? []).reduce((o, i) => {
|
|
2088
2088
|
const a = Fn.includes(i.validation.type) ? Pn(
|
|
2089
2089
|
i.validation.type,
|
|
@@ -2108,32 +2108,30 @@ const Sn = ({ promises: t }) => {
|
|
|
2108
2108
|
/* @__PURE__ */ n.jsx(ie, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2109
2109
|
]
|
|
2110
2110
|
}
|
|
2111
|
-
),
|
|
2111
|
+
), ut = ({
|
|
2112
2112
|
fields: t,
|
|
2113
2113
|
title: e,
|
|
2114
2114
|
progress: r,
|
|
2115
2115
|
approvement: o,
|
|
2116
2116
|
chips: i,
|
|
2117
2117
|
submitProps: a,
|
|
2118
|
-
classes: d
|
|
2118
|
+
classes: d,
|
|
2119
|
+
buttonGroup: u
|
|
2119
2120
|
}) => {
|
|
2120
|
-
var
|
|
2121
|
-
const { submitCallback:
|
|
2121
|
+
var U, M;
|
|
2122
|
+
const { submitCallback: m } = a || {}, [h, p] = D(!1), c = Le(t), f = He.getZodDefaults(c), { control: b, handleSubmit: j } = Re({
|
|
2122
2123
|
schema: c,
|
|
2123
2124
|
defaultValues: f,
|
|
2124
2125
|
mode: "onBlur"
|
|
2125
|
-
}), g = En(r, t), N = ir({ control: b, fields: g || [], schema: c }),
|
|
2126
|
-
|
|
2126
|
+
}), g = En(r, t), N = ir({ control: b, fields: g || [], schema: c }), T = (I) => {
|
|
2127
|
+
m && m({ ...I, agree: h });
|
|
2127
2128
|
};
|
|
2128
|
-
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsxs(
|
|
2129
|
-
|
|
2129
|
+
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsx("section", { id: y.form, "data-test-id": y.form, className: l("w-full", d == null ? void 0 : d.root), children: /* @__PURE__ */ n.jsxs(
|
|
2130
|
+
F,
|
|
2130
2131
|
{
|
|
2131
|
-
id: y.form,
|
|
2132
|
-
"data-test-id": y.form,
|
|
2133
2132
|
className: l(
|
|
2134
2133
|
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2135
|
-
"relative mx-auto flex
|
|
2136
|
-
d == null ? void 0 : d.root
|
|
2134
|
+
"relative mx-auto flex flex-col gap-6 rounded-sm py-8 desktop:border"
|
|
2137
2135
|
),
|
|
2138
2136
|
children: [
|
|
2139
2137
|
i.enabled && /* @__PURE__ */ n.jsxs(
|
|
@@ -2143,7 +2141,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2143
2141
|
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
2144
2142
|
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
2145
2143
|
"right-4 top-4 w-max",
|
|
2146
|
-
(
|
|
2144
|
+
(U = d == null ? void 0 : d.chips) == null ? void 0 : U.root
|
|
2147
2145
|
),
|
|
2148
2146
|
children: [
|
|
2149
2147
|
i.image && /* @__PURE__ */ n.jsx(s, { name: i.image, className: l("size-4", (M = d == null ? void 0 : d.chips) == null ? void 0 : M.icon) }),
|
|
@@ -2151,12 +2149,12 @@ const Sn = ({ promises: t }) => {
|
|
|
2151
2149
|
]
|
|
2152
2150
|
}
|
|
2153
2151
|
),
|
|
2154
|
-
/* @__PURE__ */ n.jsx(
|
|
2152
|
+
/* @__PURE__ */ n.jsx(Q, { as: "h3", className: d == null ? void 0 : d.title, children: e }),
|
|
2155
2153
|
/* @__PURE__ */ n.jsxs(
|
|
2156
2154
|
"form",
|
|
2157
2155
|
{
|
|
2158
|
-
onSubmit: j(
|
|
2159
|
-
className: l("flex w-
|
|
2156
|
+
onSubmit: j(T),
|
|
2157
|
+
className: l("flex w-full flex-col gap-y-6", "desktop:gap-y-8", d == null ? void 0 : d.form),
|
|
2160
2158
|
children: [
|
|
2161
2159
|
r.enabled && /* @__PURE__ */ n.jsx(
|
|
2162
2160
|
Kt,
|
|
@@ -2168,36 +2166,38 @@ const Sn = ({ promises: t }) => {
|
|
|
2168
2166
|
classes: d == null ? void 0 : d.progressBar
|
|
2169
2167
|
}
|
|
2170
2168
|
),
|
|
2171
|
-
/* @__PURE__ */ n.jsx(
|
|
2172
|
-
/* @__PURE__ */ n.jsxs("div", { className: "mob-body-regular-m flex flex-col items-
|
|
2169
|
+
/* @__PURE__ */ n.jsx(ze, { control: b, fields: t }),
|
|
2170
|
+
/* @__PURE__ */ n.jsxs("div", { className: "mob-body-regular-m flex flex-col items-start justify-center gap-4", children: [
|
|
2173
2171
|
Rn(o, h, p, d == null ? void 0 : d.approvement),
|
|
2174
|
-
/* @__PURE__ */ n.jsx(
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
"w-full
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2172
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: u.map((I, R) => {
|
|
2173
|
+
const V = I.type === "submit" && o.type === "checkbox" ? !h : !1;
|
|
2174
|
+
return /* @__PURE__ */ Be(
|
|
2175
|
+
je,
|
|
2176
|
+
{
|
|
2177
|
+
...I,
|
|
2178
|
+
key: R,
|
|
2179
|
+
disabled: V,
|
|
2180
|
+
className: l(
|
|
2181
|
+
"w-full whitespace-nowrap",
|
|
2182
|
+
{
|
|
2183
|
+
"w-full": !!o
|
|
2184
|
+
},
|
|
2185
|
+
d == null ? void 0 : d.submit
|
|
2186
|
+
)
|
|
2187
|
+
}
|
|
2188
|
+
);
|
|
2189
|
+
}) })
|
|
2190
2190
|
] })
|
|
2191
2191
|
]
|
|
2192
2192
|
}
|
|
2193
2193
|
)
|
|
2194
2194
|
]
|
|
2195
2195
|
}
|
|
2196
|
-
) });
|
|
2196
|
+
) }) });
|
|
2197
2197
|
}, Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2198
2198
|
__proto__: null,
|
|
2199
|
-
DynamicForm:
|
|
2200
|
-
default:
|
|
2199
|
+
DynamicForm: ut,
|
|
2200
|
+
default: ut
|
|
2201
2201
|
}, Symbol.toStringTag, { value: "Module" })), zn = (t, e, r, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ n.jsx(ie, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ n.jsxs(
|
|
2202
2202
|
"label",
|
|
2203
2203
|
{
|
|
@@ -2211,7 +2211,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2211
2211
|
/* @__PURE__ */ n.jsx(ie, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2212
2212
|
]
|
|
2213
2213
|
}
|
|
2214
|
-
),
|
|
2214
|
+
), mt = ({
|
|
2215
2215
|
fields: t,
|
|
2216
2216
|
title: e,
|
|
2217
2217
|
approvement: r,
|
|
@@ -2220,22 +2220,22 @@ const Sn = ({ promises: t }) => {
|
|
|
2220
2220
|
classes: a,
|
|
2221
2221
|
...d
|
|
2222
2222
|
}) => {
|
|
2223
|
-
const { submitCallback: u, children: m, ...h } = o ?? {}, [p, c] = D(!1), f =
|
|
2223
|
+
const { submitCallback: u, children: m, ...h } = o ?? {}, [p, c] = D(!1), f = Le(t), b = He.getZodDefaults(f), { control: j, handleSubmit: g } = Re({
|
|
2224
2224
|
schema: f,
|
|
2225
2225
|
defaultValues: b,
|
|
2226
2226
|
mode: "onBlur"
|
|
2227
|
-
}), N = (
|
|
2228
|
-
u && u({ ...
|
|
2227
|
+
}), N = (T) => {
|
|
2228
|
+
u && u({ ...T, agree: p });
|
|
2229
2229
|
};
|
|
2230
2230
|
return /* @__PURE__ */ n.jsx(It, { children: /* @__PURE__ */ n.jsx(Zt, { id: i, title: e, ...d, children: /* @__PURE__ */ n.jsxs("form", { onSubmit: g(N), className: "flex flex-col gap-6", children: [
|
|
2231
|
-
/* @__PURE__ */ n.jsx(
|
|
2231
|
+
/* @__PURE__ */ n.jsx(ze, { control: j, fields: t }),
|
|
2232
2232
|
zn(r, p, c, a == null ? void 0 : a.approvement),
|
|
2233
2233
|
/* @__PURE__ */ n.jsx(je, { ...h, type: "submit", disabled: r.type === "checkbox" ? !p : !1, className: "w-full", children: m ?? "Отправить форму" })
|
|
2234
2234
|
] }) }) });
|
|
2235
2235
|
}, Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2236
2236
|
__proto__: null,
|
|
2237
|
-
DynamicFormDialog:
|
|
2238
|
-
default:
|
|
2237
|
+
DynamicFormDialog: mt,
|
|
2238
|
+
default: mt
|
|
2239
2239
|
}, Symbol.toStringTag, { value: "Module" })), ue = () => ({
|
|
2240
2240
|
approve: {
|
|
2241
2241
|
icon: {
|
|
@@ -2297,7 +2297,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2297
2297
|
text: "Вернуться на главную"
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
|
-
}), Ro = ({ status: t, navigationFn: e }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(
|
|
2300
|
+
}), Ro = ({ status: t, navigationFn: e }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(F, { 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: [
|
|
2301
2301
|
/* @__PURE__ */ n.jsx(
|
|
2302
2302
|
"span",
|
|
2303
2303
|
{
|
|
@@ -2309,7 +2309,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
),
|
|
2311
2311
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
|
|
2312
|
-
/* @__PURE__ */ n.jsx(
|
|
2312
|
+
/* @__PURE__ */ n.jsx(Q, { as: "h2", children: ue()[t].title }),
|
|
2313
2313
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: ue()[t].description })
|
|
2314
2314
|
] }),
|
|
2315
2315
|
/* @__PURE__ */ n.jsx(je, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: ue()[t].button.text })
|
|
@@ -2324,7 +2324,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2324
2324
|
if (i) {
|
|
2325
2325
|
const p = {
|
|
2326
2326
|
index: 0,
|
|
2327
|
-
id:
|
|
2327
|
+
id: Ke(),
|
|
2328
2328
|
path: "/",
|
|
2329
2329
|
label: "home"
|
|
2330
2330
|
};
|
|
@@ -2336,7 +2336,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2336
2336
|
// while root enabled we need to increment index
|
|
2337
2337
|
// cuz we have root breadcrumb
|
|
2338
2338
|
index: i ? c + 1 : c,
|
|
2339
|
-
id:
|
|
2339
|
+
id: Ke(),
|
|
2340
2340
|
path: h,
|
|
2341
2341
|
label: p
|
|
2342
2342
|
};
|
|
@@ -2361,7 +2361,7 @@ const Sn = ({ promises: t }) => {
|
|
|
2361
2361
|
a !== t.length - 1 && e
|
|
2362
2362
|
] }, i.id);
|
|
2363
2363
|
}), Vn = ({ separator: t, ellipsis: e, classes: r, ...o }) => {
|
|
2364
|
-
const [i, a] = D(!1), d =
|
|
2364
|
+
const [i, a] = D(!1), d = Pe(null);
|
|
2365
2365
|
nr(d, () => a(!1));
|
|
2366
2366
|
const u = Qn(o), { first: m, middle: h, last: p } = we(() => {
|
|
2367
2367
|
let f = [], b = [], j = [];
|
|
@@ -2528,10 +2528,10 @@ const $n = (t, e) => {
|
|
|
2528
2528
|
]
|
|
2529
2529
|
}
|
|
2530
2530
|
);
|
|
2531
|
-
}), Zn =
|
|
2532
|
-
const [e, r] = D(null), o =
|
|
2531
|
+
}), Zn = De(Kn), Xn = ({ categories: t }) => {
|
|
2532
|
+
const [e, r] = D(null), o = kt((a) => {
|
|
2533
2533
|
r(a);
|
|
2534
|
-
}, []), i =
|
|
2534
|
+
}, []), i = Pe(null);
|
|
2535
2535
|
return /* @__PURE__ */ n.jsx(Xt, { mode: "sync", children: /* @__PURE__ */ n.jsxs(
|
|
2536
2536
|
"div",
|
|
2537
2537
|
{
|
|
@@ -2553,7 +2553,7 @@ const $n = (t, e) => {
|
|
|
2553
2553
|
]
|
|
2554
2554
|
}
|
|
2555
2555
|
) });
|
|
2556
|
-
}, Yn =
|
|
2556
|
+
}, Yn = De(Xn), Jn = ({
|
|
2557
2557
|
category: t,
|
|
2558
2558
|
selectedCategory: e,
|
|
2559
2559
|
onCurrentCategoryChange: r,
|
|
@@ -2732,7 +2732,7 @@ const $n = (t, e) => {
|
|
|
2732
2732
|
);
|
|
2733
2733
|
}, no = ({ categories: t, helpers: e, phone: r }) => {
|
|
2734
2734
|
var m, h, p;
|
|
2735
|
-
const o =
|
|
2735
|
+
const o = Pe(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, d] = D(!1), u = () => d(!a);
|
|
2736
2736
|
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: [
|
|
2737
2737
|
/* @__PURE__ */ n.jsx(s, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2738
2738
|
/* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(s, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
@@ -2752,7 +2752,7 @@ const $n = (t, e) => {
|
|
|
2752
2752
|
((p = (h = document.body.querySelector("#modal-preview")) == null ? void 0 : h.contentDocument) == null ? void 0 : p.body) ?? document.body
|
|
2753
2753
|
)
|
|
2754
2754
|
] });
|
|
2755
|
-
},
|
|
2755
|
+
}, ht = ({ categories: t, helpers: e, phone: r }) => {
|
|
2756
2756
|
const { isMobile: o } = ee();
|
|
2757
2757
|
return /* @__PURE__ */ n.jsxs("div", { id: y.seoHeader, "data-test-id": y.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2758
2758
|
o ? /* @__PURE__ */ n.jsx(no, { categories: t.map((i) => i.children).flat(), helpers: e, phone: r }) : /* @__PURE__ */ n.jsx(Gn, { categories: t, helpers: e, phone: r }),
|
|
@@ -2766,8 +2766,8 @@ const $n = (t, e) => {
|
|
|
2766
2766
|
] });
|
|
2767
2767
|
}, oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2768
2768
|
__proto__: null,
|
|
2769
|
-
SeoHeader:
|
|
2770
|
-
default:
|
|
2769
|
+
SeoHeader: ht,
|
|
2770
|
+
default: ht
|
|
2771
2771
|
}, Symbol.toStringTag, { value: "Module" })), Ot = (t) => typeof t != "string" && "formula" in t, St = (t, e) => {
|
|
2772
2772
|
let r = e;
|
|
2773
2773
|
const o = {
|
|
@@ -2791,14 +2791,14 @@ const $n = (t, e) => {
|
|
|
2791
2791
|
default:
|
|
2792
2792
|
return St(t, Number(e));
|
|
2793
2793
|
}
|
|
2794
|
-
}, ao = (t) => Object.values(t).reduce((r, o) => r.merge(
|
|
2794
|
+
}, ao = (t) => Object.values(t).reduce((r, o) => r.merge(Le(o.fields)), vt({})), lo = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, Et = (t, e) => {
|
|
2795
2795
|
const r = Object.entries(e).map(([m, h]) => [m, v.isNil(h) ? "1" : h]), o = r.map(([m]) => m), i = r.map(([, m]) => m), a = lo(t, Object.fromEntries(r)), u = new Function(...o, `return ${a};`)(...i.map(Number));
|
|
2796
2796
|
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2797
2797
|
}, uo = (t, e) => t.map((r) => ({
|
|
2798
2798
|
...r,
|
|
2799
2799
|
value: Ot(r.value) ? Et(r.value.formula, e) : r.value
|
|
2800
2800
|
})), mo = ({ subtitle: t, title: e }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: (e || t) && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2801
|
-
e && /* @__PURE__ */ n.jsx(
|
|
2801
|
+
e && /* @__PURE__ */ n.jsx(Q, { as: "h3", children: e }),
|
|
2802
2802
|
t && /* @__PURE__ */ n.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
|
|
2803
2803
|
] }) }), ho = ({ rootDescription: t, rootValue: e, suffix: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2804
2804
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
|
|
@@ -2836,7 +2836,7 @@ const $n = (t, e) => {
|
|
|
2836
2836
|
r && /* @__PURE__ */ n.jsx(Se, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ n.jsx(s, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ n.jsx("p", { children: r }) })
|
|
2837
2837
|
] }), fo = ({ assistHint: t, buttonsConfig: e, bottomDescription: r }) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
2838
2838
|
t && /* @__PURE__ */ n.jsx(co, { ...t }),
|
|
2839
|
-
/* @__PURE__ */ n.jsx("div", { className: l("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(
|
|
2839
|
+
/* @__PURE__ */ n.jsx("div", { className: l("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(Y, { className: "w-full", ...o }, i)) }),
|
|
2840
2840
|
r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: r })
|
|
2841
2841
|
] }), bo = ({
|
|
2842
2842
|
rootDescription: t,
|
|
@@ -2857,7 +2857,7 @@ const $n = (t, e) => {
|
|
|
2857
2857
|
slidersGroupConfig: t,
|
|
2858
2858
|
additionalSliderGroupConfig: e
|
|
2859
2859
|
}) => {
|
|
2860
|
-
const [r, o] = D(!1), { watch: i, setValue: a } = Ne(), d = t == null ? void 0 : t.fields.find(({ args:
|
|
2860
|
+
const [r, o] = D(!1), { watch: i, setValue: a } = Ne(), d = t == null ? void 0 : t.fields.find(({ args: T }) => T.name === "sum"), { args: u } = d || {}, { max: m, name: h, defaultValue: p } = u || {}, c = i(h), { min: f, name: b } = (e == null ? void 0 : e.args) ?? {}, j = i(b), g = Number(m ?? 0) - (c ?? p);
|
|
2861
2861
|
return ge(() => {
|
|
2862
2862
|
j > g && a(b, g);
|
|
2863
2863
|
}, [g, j, a, c]), ge(() => {
|
|
@@ -2871,7 +2871,7 @@ const $n = (t, e) => {
|
|
|
2871
2871
|
sumValue: c,
|
|
2872
2872
|
additionalSliderMax: g,
|
|
2873
2873
|
onCheckedChange: () => {
|
|
2874
|
-
o((
|
|
2874
|
+
o((T) => !T), j <= 0 && a(b, f), Number(m) === c && (a(h ?? "", c - so), a(b, f));
|
|
2875
2875
|
},
|
|
2876
2876
|
sliderSumExist: !v.isObjectEmpty(d == null ? void 0 : d.args),
|
|
2877
2877
|
sliderSumCorrectType: (d == null ? void 0 : d.args.componentType) === "algorithmic" || (d == null ? void 0 : d.args.componentType) === "step"
|
|
@@ -2899,7 +2899,7 @@ const $n = (t, e) => {
|
|
|
2899
2899
|
] });
|
|
2900
2900
|
}, J = ({ fields: t }) => {
|
|
2901
2901
|
const { control: e } = Ne();
|
|
2902
|
-
return /* @__PURE__ */ n.jsx(
|
|
2902
|
+
return /* @__PURE__ */ n.jsx(ze, { control: e, fields: t });
|
|
2903
2903
|
}, yo = ({
|
|
2904
2904
|
slidersGroupConfig: t,
|
|
2905
2905
|
additionalSliderGroupConfig: e
|
|
@@ -2914,7 +2914,7 @@ const $n = (t, e) => {
|
|
|
2914
2914
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
2915
2915
|
] }),
|
|
2916
2916
|
o && /* @__PURE__ */ n.jsx(
|
|
2917
|
-
|
|
2917
|
+
yt.SliderControl,
|
|
2918
2918
|
{
|
|
2919
2919
|
...e.args,
|
|
2920
2920
|
control: r,
|
|
@@ -2948,7 +2948,7 @@ const $n = (t, e) => {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
)
|
|
2950
2950
|
] });
|
|
2951
|
-
}, wo =
|
|
2951
|
+
}, wo = De(({ 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(
|
|
2952
2952
|
"button",
|
|
2953
2953
|
{
|
|
2954
2954
|
onClick: () => r(o),
|
|
@@ -2963,20 +2963,20 @@ const $n = (t, e) => {
|
|
|
2963
2963
|
calculatorInfoConfig: t,
|
|
2964
2964
|
calculatorFieldsConfig: e
|
|
2965
2965
|
}) => {
|
|
2966
|
-
const r = ao(e == null ? void 0 : e.fieldsGroup), o =
|
|
2966
|
+
const r = ao(e == null ? void 0 : e.fieldsGroup), o = Re({
|
|
2967
2967
|
schema: r,
|
|
2968
2968
|
mode: "onBlur",
|
|
2969
|
-
defaultValues:
|
|
2969
|
+
defaultValues: He.getZodDefaults(r)
|
|
2970
2970
|
}), i = o.watch(), { rootValue: a } = t, d = Ot(a) ? Et(a.formula, i) : a, u = { ...t, rootValue: d };
|
|
2971
2971
|
return /* @__PURE__ */ n.jsx(or, { ...o, children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2972
2972
|
/* @__PURE__ */ n.jsx(ko, { ...e }),
|
|
2973
2973
|
/* @__PURE__ */ n.jsx(bo, { ...u })
|
|
2974
2974
|
] }) });
|
|
2975
|
-
},
|
|
2975
|
+
}, xt = ({ calculators: t, headline: e }) => {
|
|
2976
2976
|
var m;
|
|
2977
2977
|
const r = t.length > 1, [o, i] = D(r ? (m = t[0]) == null ? void 0 : m.name : ""), a = we(() => t == null ? void 0 : t.map(({ name: h, label: p }) => ({ name: h, label: p })), [t]), d = r ? a == null ? void 0 : a.findIndex((h) => h.name === o) : 0, u = t[d];
|
|
2978
|
-
return /* @__PURE__ */ n.jsx("section", { id: y.calculator, children: /* @__PURE__ */ n.jsx(
|
|
2979
|
-
/* @__PURE__ */ n.jsx(
|
|
2978
|
+
return /* @__PURE__ */ n.jsx("section", { id: y.calculator, children: /* @__PURE__ */ n.jsx(F, { children: /* @__PURE__ */ n.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2979
|
+
/* @__PURE__ */ n.jsx(Q, { className: "mb-12", as: "h2", children: e }),
|
|
2980
2980
|
r && /* @__PURE__ */ n.jsx(
|
|
2981
2981
|
wo,
|
|
2982
2982
|
{
|
|
@@ -2997,33 +2997,33 @@ const $n = (t, e) => {
|
|
|
2997
2997
|
] }) }) });
|
|
2998
2998
|
}, No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2999
2999
|
__proto__: null,
|
|
3000
|
-
Calculator:
|
|
3001
|
-
default:
|
|
3000
|
+
Calculator: xt,
|
|
3001
|
+
default: xt
|
|
3002
3002
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3003
3003
|
export {
|
|
3004
3004
|
Te as Advantages,
|
|
3005
3005
|
Do as AuthProvider,
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3006
|
+
et as Banner,
|
|
3007
|
+
Ge as BannerWithSeparateImg,
|
|
3008
|
+
Ye as Benefit,
|
|
3009
3009
|
Vn as Breadcrumbs,
|
|
3010
|
-
|
|
3011
|
-
|
|
3010
|
+
Y as ButtonWithHandlers,
|
|
3011
|
+
xt as Calculator,
|
|
3012
3012
|
vo as CalculatorView,
|
|
3013
|
-
|
|
3014
|
-
|
|
3013
|
+
ut as DynamicForm,
|
|
3014
|
+
mt as DynamicFormDialog,
|
|
3015
3015
|
Ro as FallbacksView,
|
|
3016
|
-
|
|
3017
|
-
|
|
3016
|
+
ze as FieldMapper,
|
|
3017
|
+
tt as Footer,
|
|
3018
3018
|
On as HTMLParser,
|
|
3019
3019
|
ie as HTMLRenderer,
|
|
3020
|
-
|
|
3021
|
-
|
|
3020
|
+
Je as Header,
|
|
3021
|
+
lt as InterLinking,
|
|
3022
3022
|
Mr as KEYS_OF_WIDGET_LIST,
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3023
|
+
nt as LongBanner,
|
|
3024
|
+
ht as SeoHeader,
|
|
3025
|
+
rt as Stepper,
|
|
3026
|
+
dt as UsefulInfo,
|
|
3027
3027
|
Cr as WIDGET_LIST_MAP,
|
|
3028
3028
|
Dn as queryClient,
|
|
3029
3029
|
y as widgetIds
|