@scbt-ecom/ui 0.69.0 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CheXd2Zl.js → index-Cskajs8e.js} +13238 -12187
- package/dist/index-Cskajs8e.js.map +1 -0
- package/dist/{index-BwK6Inph.js → index-lfBvBrWg.js} +3 -3
- package/dist/{index-BwK6Inph.js.map → index-lfBvBrWg.js.map} +1 -1
- package/dist/shared/utils/typeGuards.d.ts +1 -0
- package/dist/{typeGuards-Bhdr9KYW.js → typeGuards-CSiImkUY.js} +34 -31
- package/dist/{typeGuards-Bhdr9KYW.js.map → typeGuards-CSiImkUY.js.map} +1 -1
- package/dist/ui.js +4 -4
- package/dist/{utils-DyIly-dX.js → utils-k3uzuyeN.js} +2 -2
- package/dist/{utils-DyIly-dX.js.map → utils-k3uzuyeN.js.map} +1 -1
- package/dist/utils.js +55 -12
- package/dist/utils.js.map +1 -1
- package/dist/validation.js +2 -2
- package/dist/widget.js +212 -208
- package/dist/widget.js.map +1 -1
- package/dist/widgets/buttonWithHandlers/ButtonWithHandlers.d.ts +1 -1
- package/dist/widgets/calculator/model/helpers.d.ts +2 -2
- package/dist/widgets/calculator/model/utils.d.ts +2 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.d.ts +2 -2
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +7 -2
- package/dist/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +6 -4
- package/package.json +5 -5
- package/dist/index-CheXd2Zl.js.map +0 -1
- package/dist/uuid-2wKG15vy.js +0 -25
- package/dist/uuid-2wKG15vy.js.map +0 -1
package/dist/widget.js
CHANGED
|
@@ -3,9 +3,9 @@ var Oe = (t) => {
|
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var jt = (t, e, n) => e in t ? gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
6
|
-
var ae = (t, e, n) => jt(t, typeof e != "symbol" ? e + "" : e, n),
|
|
7
|
-
var h = (t, e, n) => (
|
|
8
|
-
var
|
|
6
|
+
var ae = (t, e, n) => jt(t, typeof e != "symbol" ? e + "" : e, n), se = (t, e, n) => e.has(t) || Oe("Cannot " + n);
|
|
7
|
+
var h = (t, e, n) => (se(t, e, "read from private field"), n ? n.call(t) : e.get(t)), C = (t, e, n) => e.has(t) ? Oe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), y = (t, e, n, o) => (se(t, e, "write to private field"), o ? o.call(t, n) : e.set(t, n), n), q = (t, e, n) => (se(t, e, "access private method"), n);
|
|
8
|
+
var pe = (t, e, n, o) => ({
|
|
9
9
|
set _(i) {
|
|
10
10
|
y(t, e, i, n);
|
|
11
11
|
},
|
|
@@ -13,15 +13,15 @@ var ce = (t, e, n, o) => ({
|
|
|
13
13
|
return h(t, e, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as Ze, x as Xe, Q as yt, y as E, z as Se, E as st, F as kt, G as Be, J as D, T as wt, W as vt, X as Nt, Y as Ct, Z as Re, _ as _e, $ as It, a0 as He, a1 as Pe, a2 as Tt, j as r, B as
|
|
17
|
-
import { T as s, c as d } from "./typeGuards-
|
|
16
|
+
import { S as Ze, x as Xe, Q as yt, y as E, z as Se, E as st, F as kt, G as Be, J as D, T as wt, W as vt, X as Nt, Y as Ct, Z as Re, _ as _e, $ as It, a0 as He, a1 as Pe, a2 as Tt, j as r, B as Ce, c as F, R as S, n as Je, s as Mt, H, i as f, t as ge, q as Ie, L as Et, o as Te, A as oe, v as Ft, a3 as Ot, r as St, U as Ye, a4 as Me, a5 as Bt, M as Rt } from "./index-Cskajs8e.js";
|
|
17
|
+
import { T as s, c as d } from "./typeGuards-CSiImkUY.js";
|
|
18
18
|
import * as le from "react";
|
|
19
|
-
import { useCallback as Ge, useState as
|
|
20
|
-
import {
|
|
19
|
+
import { useCallback as Ge, useState as Q, useMemo as je, createElement as et, Fragment as _t, useEffect as tt, useRef as Ee, useReducer as Ht, memo as Fe, forwardRef as Pt } from "react";
|
|
20
|
+
import { scrollToElement as Dt, createPhoneNumber as ye, getUuid as De, capitalize as Lt } from "./utils.js";
|
|
21
21
|
import { i as rt } from "./isClient-C9aZtt2Q.js";
|
|
22
22
|
import { u as Y, b as nt, a as zt, g as ot, F as Qt } from "./useDebounce-MaKPBuaC.js";
|
|
23
|
-
import { o as Vt, z as At } from "./utils-
|
|
24
|
-
import { z as it, Z as at } from "./index-
|
|
23
|
+
import { o as Vt, z as At } from "./utils-k3uzuyeN.js";
|
|
24
|
+
import { z as it, Z as at } from "./index-lfBvBrWg.js";
|
|
25
25
|
import { a as qt, u as Ut } from "./useFieldsProgress-CeEaFp3Q.js";
|
|
26
26
|
import { createPortal as dt } from "react-dom";
|
|
27
27
|
var B, Ue, Wt = (Ue = class extends Ze {
|
|
@@ -96,13 +96,13 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
}, B = new WeakMap(), Ue), R, T,
|
|
99
|
+
}, B = new WeakMap(), Ue), R, T, J, _, U, We, Kt = (We = class extends st {
|
|
100
100
|
constructor(e) {
|
|
101
101
|
super();
|
|
102
102
|
C(this, _);
|
|
103
103
|
C(this, R);
|
|
104
104
|
C(this, T);
|
|
105
|
-
C(this,
|
|
105
|
+
C(this, J);
|
|
106
106
|
this.mutationId = e.mutationId, y(this, T, e.mutationCache), y(this, R, []), this.state = e.state || $t(), this.setOptions(e.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(e) {
|
|
@@ -130,21 +130,21 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
130
130
|
}
|
|
131
131
|
continue() {
|
|
132
132
|
var e;
|
|
133
|
-
return ((e = h(this,
|
|
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
136
|
async execute(e) {
|
|
137
|
-
var a, l, u, m, x, p, c, g, k, v, I, P, G,
|
|
137
|
+
var a, l, u, m, x, p, c, g, k, v, I, P, G, V, N, M, A, Z, xe, ie;
|
|
138
138
|
const n = () => {
|
|
139
|
-
|
|
139
|
+
q(this, _, U).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
|
-
y(this,
|
|
141
|
+
y(this, J, kt({
|
|
142
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
143
|
-
onFail: (w,
|
|
144
|
-
|
|
143
|
+
onFail: (w, he) => {
|
|
144
|
+
q(this, _, U).call(this, { type: "failed", failureCount: w, error: he });
|
|
145
145
|
},
|
|
146
146
|
onPause: () => {
|
|
147
|
-
|
|
147
|
+
q(this, _, U).call(this, { type: "pause" });
|
|
148
148
|
},
|
|
149
149
|
onContinue: n,
|
|
150
150
|
retry: this.options.retry ?? 0,
|
|
@@ -152,25 +152,25 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
152
152
|
networkMode: this.options.networkMode,
|
|
153
153
|
canRun: () => h(this, T).canRun(this)
|
|
154
154
|
}));
|
|
155
|
-
const o = this.state.status === "pending", i = !h(this,
|
|
155
|
+
const o = this.state.status === "pending", i = !h(this, J).canStart();
|
|
156
156
|
try {
|
|
157
157
|
if (o)
|
|
158
158
|
n();
|
|
159
159
|
else {
|
|
160
|
-
|
|
160
|
+
q(this, _, 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, _, U).call(this, {
|
|
167
167
|
type: "pending",
|
|
168
|
-
context:
|
|
168
|
+
context: he,
|
|
169
169
|
variables: e,
|
|
170
170
|
isPaused: i
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
const w = await h(this,
|
|
173
|
+
const w = 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
176
|
w,
|
|
@@ -184,10 +184,10 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
184
184
|
this.state.variables,
|
|
185
185
|
this.state.context,
|
|
186
186
|
this
|
|
187
|
-
)), await ((P = (I = this.options).onSettled) == null ? void 0 : P.call(I, w, null, e, this.state.context)),
|
|
187
|
+
)), await ((P = (I = this.options).onSettled) == null ? void 0 : P.call(I, w, null, e, this.state.context)), q(this, _, U).call(this, { type: "success", data: w }), w;
|
|
188
188
|
} catch (w) {
|
|
189
189
|
try {
|
|
190
|
-
throw await ((
|
|
190
|
+
throw await ((V = (G = h(this, T).config).onError) == null ? void 0 : V.call(
|
|
191
191
|
G,
|
|
192
192
|
w,
|
|
193
193
|
e,
|
|
@@ -198,28 +198,28 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
198
198
|
w,
|
|
199
199
|
e,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((
|
|
202
|
-
|
|
201
|
+
)), await ((Z = (A = h(this, T).config).onSettled) == null ? void 0 : Z.call(
|
|
202
|
+
A,
|
|
203
203
|
void 0,
|
|
204
204
|
w,
|
|
205
205
|
this.state.variables,
|
|
206
206
|
this.state.context,
|
|
207
207
|
this
|
|
208
|
-
)), await ((ie = (
|
|
209
|
-
|
|
208
|
+
)), await ((ie = (xe = this.options).onSettled) == null ? void 0 : ie.call(
|
|
209
|
+
xe,
|
|
210
210
|
void 0,
|
|
211
211
|
w,
|
|
212
212
|
e,
|
|
213
213
|
this.state.context
|
|
214
214
|
)), w;
|
|
215
215
|
} finally {
|
|
216
|
-
|
|
216
|
+
q(this, _, U).call(this, { type: "error", error: w });
|
|
217
217
|
}
|
|
218
218
|
} finally {
|
|
219
219
|
h(this, T).runNext(this);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
}, R = new WeakMap(), T = new WeakMap(),
|
|
222
|
+
}, R = new WeakMap(), T = new WeakMap(), J = new WeakMap(), _ = new WeakSet(), U = function(e) {
|
|
223
223
|
const n = (o) => {
|
|
224
224
|
switch (e.type) {
|
|
225
225
|
case "failed":
|
|
@@ -296,18 +296,18 @@ function $t() {
|
|
|
296
296
|
submittedAt: 0
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
var L, O,
|
|
299
|
+
var L, O, me, Ke, Zt = (Ke = class extends Ze {
|
|
300
300
|
constructor(e = {}) {
|
|
301
301
|
super();
|
|
302
302
|
C(this, L);
|
|
303
303
|
C(this, O);
|
|
304
|
-
C(this,
|
|
305
|
-
this.config = e, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this,
|
|
304
|
+
C(this, me);
|
|
305
|
+
this.config = e, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this, me, 0);
|
|
306
306
|
}
|
|
307
307
|
build(e, n, o) {
|
|
308
308
|
const i = new Kt({
|
|
309
309
|
mutationCache: this,
|
|
310
|
-
mutationId: ++
|
|
310
|
+
mutationId: ++pe(this, me)._,
|
|
311
311
|
options: e.defaultMutationOptions(n),
|
|
312
312
|
state: o
|
|
313
313
|
});
|
|
@@ -315,7 +315,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
|
|
|
315
315
|
}
|
|
316
316
|
add(e) {
|
|
317
317
|
h(this, L).add(e);
|
|
318
|
-
const n =
|
|
318
|
+
const n = ce(e);
|
|
319
319
|
if (typeof n == "string") {
|
|
320
320
|
const o = h(this, O).get(n);
|
|
321
321
|
o ? o.push(e) : h(this, O).set(n, [e]);
|
|
@@ -324,7 +324,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
|
|
|
324
324
|
}
|
|
325
325
|
remove(e) {
|
|
326
326
|
if (h(this, L).delete(e)) {
|
|
327
|
-
const n =
|
|
327
|
+
const n = ce(e);
|
|
328
328
|
if (typeof n == "string") {
|
|
329
329
|
const o = h(this, O).get(n);
|
|
330
330
|
if (o)
|
|
@@ -337,7 +337,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
|
|
|
337
337
|
this.notify({ type: "removed", mutation: e });
|
|
338
338
|
}
|
|
339
339
|
canRun(e) {
|
|
340
|
-
const n =
|
|
340
|
+
const n = ce(e);
|
|
341
341
|
if (typeof n == "string") {
|
|
342
342
|
const o = h(this, O).get(n), i = o == null ? void 0 : o.find(
|
|
343
343
|
(a) => a.state.status === "pending"
|
|
@@ -348,7 +348,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
|
|
|
348
348
|
}
|
|
349
349
|
runNext(e) {
|
|
350
350
|
var o;
|
|
351
|
-
const n =
|
|
351
|
+
const n = ce(e);
|
|
352
352
|
if (typeof n == "string") {
|
|
353
353
|
const i = (o = h(this, O).get(n)) == null ? void 0 : o.find((a) => a !== e && a.state.isPaused);
|
|
354
354
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
@@ -389,8 +389,8 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
|
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
}, L = new WeakMap(), O = new WeakMap(),
|
|
393
|
-
function
|
|
392
|
+
}, L = new WeakMap(), O = new WeakMap(), me = new WeakMap(), Ke);
|
|
393
|
+
function ce(t) {
|
|
394
394
|
var e;
|
|
395
395
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
396
396
|
}
|
|
@@ -409,40 +409,40 @@ function Le(t) {
|
|
|
409
409
|
I = !0;
|
|
410
410
|
}), e.signal)
|
|
411
411
|
});
|
|
412
|
-
}, G = wt(e.options, e.fetchOptions),
|
|
412
|
+
}, G = wt(e.options, e.fetchOptions), V = async (N, M, A) => {
|
|
413
413
|
if (I)
|
|
414
414
|
return Promise.reject();
|
|
415
415
|
if (M == null && N.pages.length)
|
|
416
416
|
return Promise.resolve(N);
|
|
417
|
-
const
|
|
417
|
+
const Z = {
|
|
418
418
|
client: e.client,
|
|
419
419
|
queryKey: e.queryKey,
|
|
420
420
|
pageParam: M,
|
|
421
|
-
direction:
|
|
421
|
+
direction: A ? "backward" : "forward",
|
|
422
422
|
meta: e.options.meta
|
|
423
423
|
};
|
|
424
|
-
P(
|
|
425
|
-
const
|
|
426
|
-
|
|
427
|
-
), { maxPages: ie } = e.options, w =
|
|
424
|
+
P(Z);
|
|
425
|
+
const xe = await G(
|
|
426
|
+
Z
|
|
427
|
+
), { maxPages: ie } = e.options, w = A ? vt : Nt;
|
|
428
428
|
return {
|
|
429
|
-
pages: w(N.pages,
|
|
429
|
+
pages: w(N.pages, xe, ie),
|
|
430
430
|
pageParams: w(N.pageParams, M, ie)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
433
|
if (i && a.length) {
|
|
434
|
-
const N = i === "backward", M = N ? Xt : ze,
|
|
434
|
+
const N = i === "backward", M = N ? Xt : ze, A = {
|
|
435
435
|
pages: a,
|
|
436
436
|
pageParams: l
|
|
437
|
-
},
|
|
438
|
-
u = await
|
|
437
|
+
}, Z = M(o, A);
|
|
438
|
+
u = await V(A, Z, N);
|
|
439
439
|
} else {
|
|
440
440
|
const N = t ?? a.length;
|
|
441
441
|
do {
|
|
442
442
|
const M = m === 0 ? l[0] ?? o.initialPageParam : ze(o, u);
|
|
443
443
|
if (m > 0 && M == null)
|
|
444
444
|
break;
|
|
445
|
-
u = await
|
|
445
|
+
u = await V(u, M), m++;
|
|
446
446
|
} while (m < N);
|
|
447
447
|
}
|
|
448
448
|
return u;
|
|
@@ -477,20 +477,20 @@ function Xt(t, { pages: e, pageParams: n }) {
|
|
|
477
477
|
var o;
|
|
478
478
|
return e.length > 0 ? (o = t.getPreviousPageParam) == null ? void 0 : o.call(t, e[0], e, n[0], n) : void 0;
|
|
479
479
|
}
|
|
480
|
-
var j,
|
|
480
|
+
var j, W, K, ee, te, $, re, ne, $e, Jt = ($e = class {
|
|
481
481
|
constructor(t = {}) {
|
|
482
482
|
C(this, j);
|
|
483
|
-
C(this, U);
|
|
484
483
|
C(this, W);
|
|
484
|
+
C(this, K);
|
|
485
485
|
C(this, ee);
|
|
486
486
|
C(this, te);
|
|
487
|
-
C(this,
|
|
487
|
+
C(this, $);
|
|
488
488
|
C(this, re);
|
|
489
489
|
C(this, ne);
|
|
490
|
-
y(this, j, t.queryCache || new Wt()), y(this,
|
|
490
|
+
y(this, j, t.queryCache || new Wt()), y(this, W, t.mutationCache || new Zt()), y(this, K, t.defaultOptions || {}), y(this, ee, /* @__PURE__ */ new Map()), y(this, te, /* @__PURE__ */ new Map()), y(this, $, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
|
|
493
|
+
pe(this, $)._++, h(this, $) === 1 && (y(this, re, Ct.subscribe(async (t) => {
|
|
494
494
|
t && (await this.resumePausedMutations(), h(this, j).onFocus());
|
|
495
495
|
})), y(this, ne, Re.subscribe(async (t) => {
|
|
496
496
|
t && (await this.resumePausedMutations(), h(this, j).onOnline());
|
|
@@ -498,13 +498,13 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
|
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var t, e;
|
|
501
|
-
|
|
501
|
+
pe(this, $)._--, h(this, $) === 0 && ((t = h(this, re)) == null || t.call(this), y(this, re, void 0), (e = h(this, ne)) == null || e.call(this), y(this, ne, void 0));
|
|
502
502
|
}
|
|
503
503
|
isFetching(t) {
|
|
504
504
|
return h(this, j).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
505
505
|
}
|
|
506
506
|
isMutating(t) {
|
|
507
|
-
return h(this,
|
|
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.
|
|
@@ -620,19 +620,19 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
|
|
|
620
620
|
return t.behavior = Le(t.pages), this.ensureQueryData(t);
|
|
621
621
|
}
|
|
622
622
|
resumePausedMutations() {
|
|
623
|
-
return Re.isOnline() ? h(this,
|
|
623
|
+
return Re.isOnline() ? h(this, W).resumePausedMutations() : Promise.resolve();
|
|
624
624
|
}
|
|
625
625
|
getQueryCache() {
|
|
626
626
|
return h(this, j);
|
|
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
634
|
setDefaultOptions(t) {
|
|
635
|
-
y(this,
|
|
635
|
+
y(this, K, t);
|
|
636
636
|
}
|
|
637
637
|
setQueryDefaults(t, e) {
|
|
638
638
|
h(this, ee).set(He(t), {
|
|
@@ -662,7 +662,7 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
|
|
|
662
662
|
if (t._defaulted)
|
|
663
663
|
return t;
|
|
664
664
|
const e = {
|
|
665
|
-
...h(this,
|
|
665
|
+
...h(this, K).queries,
|
|
666
666
|
...this.getQueryDefaults(t.queryKey),
|
|
667
667
|
...t,
|
|
668
668
|
_defaulted: !0
|
|
@@ -674,16 +674,16 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
|
|
|
674
674
|
}
|
|
675
675
|
defaultMutationOptions(t) {
|
|
676
676
|
return t != null && t._defaulted ? t : {
|
|
677
|
-
...h(this,
|
|
677
|
+
...h(this, K).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
|
-
h(this, j).clear(), h(this,
|
|
684
|
+
h(this, j).clear(), h(this, W).clear();
|
|
685
685
|
}
|
|
686
|
-
}, j = new WeakMap(),
|
|
686
|
+
}, j = new WeakMap(), W = new WeakMap(), K = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), $ = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), $e);
|
|
687
687
|
const Yt = [
|
|
688
688
|
"header",
|
|
689
689
|
"footer",
|
|
@@ -731,9 +731,9 @@ const Yt = [
|
|
|
731
731
|
break;
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
}, [t]),
|
|
735
|
-
const
|
|
736
|
-
return /* @__PURE__ */ r.jsx(
|
|
734
|
+
}, [t]), z = ({ handlerOptions: t, className: e, ...n }) => {
|
|
735
|
+
const o = rr(t);
|
|
736
|
+
return /* @__PURE__ */ r.jsx(Ce, { className: d(e), onClick: o, ...n, children: n.children });
|
|
737
737
|
}, nr = F(
|
|
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
|
{
|
|
@@ -774,7 +774,7 @@ const Yt = [
|
|
|
774
774
|
}
|
|
775
775
|
)
|
|
776
776
|
] }),
|
|
777
|
-
a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ r.jsx(
|
|
777
|
+
a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ r.jsx(z, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
|
|
778
778
|
] }),
|
|
779
779
|
(o || x) && n && /* @__PURE__ */ r.jsx("div", { className: d("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: n && "url" in n && s.isObject(n) ? /* @__PURE__ */ r.jsx("img", { className: d("h-[246px] object-cover", i == null ? void 0 : i.img), src: n.url, alt: n.alt }) : n })
|
|
780
780
|
]
|
|
@@ -789,7 +789,7 @@ const Yt = [
|
|
|
789
789
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
}),
|
|
792
|
+
}), Kn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: b.benefit, "data-test-id": b.benefit, className: d("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(S, { className: o == null ? void 0 : o.container, children: [
|
|
793
793
|
/* @__PURE__ */ r.jsx(
|
|
794
794
|
"div",
|
|
795
795
|
{
|
|
@@ -801,13 +801,13 @@ const Yt = [
|
|
|
801
801
|
] }) }), ar = ({ variant: t, details: e }) => {
|
|
802
802
|
switch (t) {
|
|
803
803
|
case "withButton":
|
|
804
|
-
return /* @__PURE__ */ r.jsx(
|
|
804
|
+
return /* @__PURE__ */ r.jsx(z, { ...e });
|
|
805
805
|
case "withPhone":
|
|
806
|
-
return /* @__PURE__ */ r.jsx(Je, { classes: { root: "items-end" }, ...e, phone:
|
|
806
|
+
return /* @__PURE__ */ r.jsx(Je, { classes: { root: "items-end" }, ...e, phone: ye(e.phone) });
|
|
807
807
|
default:
|
|
808
808
|
return null;
|
|
809
809
|
}
|
|
810
|
-
},
|
|
810
|
+
}, $n = (t) => {
|
|
811
811
|
const { logoPath: e = "/", logoType: n = "main", classes: o } = t;
|
|
812
812
|
return /* @__PURE__ */ r.jsx(
|
|
813
813
|
"header",
|
|
@@ -852,7 +852,7 @@ const Yt = [
|
|
|
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) && ((I = o == null ? void 0 : o.details) == null ? void 0 : I.items.length) > 0 && /* @__PURE__ */ r.jsx(
|
|
855
|
+
children: (o == null ? void 0 : o.details) && ((I = o == null ? void 0 : o.details) == null ? void 0 : I.items.length) > 0 && /* @__PURE__ */ r.jsx(ve, { ...o })
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
858
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -893,7 +893,7 @@ const Yt = [
|
|
|
893
893
|
),
|
|
894
894
|
children: [
|
|
895
895
|
p.enabled && /* @__PURE__ */ r.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 Yt = [
|
|
|
902
902
|
}
|
|
903
903
|
),
|
|
904
904
|
(c == null ? void 0 : c.enabled) && /* @__PURE__ */ r.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),
|
|
@@ -969,7 +969,7 @@ const Yt = [
|
|
|
969
969
|
),
|
|
970
970
|
children: [
|
|
971
971
|
x.enabled && /* @__PURE__ */ r.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 Yt = [
|
|
|
978
978
|
}
|
|
979
979
|
),
|
|
980
980
|
(p == null ? void 0 : p.enabled) && /* @__PURE__ */ r.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),
|
|
@@ -1007,7 +1007,7 @@ const Yt = [
|
|
|
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) && ((k = o == null ? void 0 : o.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ r.jsx(
|
|
1010
|
+
children: (o == null ? void 0 : o.details) && ((k = o == null ? void 0 : o.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ r.jsx(ve, { ...o })
|
|
1011
1011
|
}
|
|
1012
1012
|
)
|
|
1013
1013
|
] })
|
|
@@ -1020,11 +1020,11 @@ const Yt = [
|
|
|
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) && ((v = o == null ? void 0 : o.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(
|
|
1023
|
+
children: (o == null ? void 0 : o.details) && ((v = o == null ? void 0 : o.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(ve, { ...o })
|
|
1024
1024
|
}
|
|
1025
1025
|
)
|
|
1026
1026
|
] });
|
|
1027
|
-
},
|
|
1027
|
+
}, Zn = ({ variant: t, ...e }) => {
|
|
1028
1028
|
switch (t) {
|
|
1029
1029
|
case "separateImg":
|
|
1030
1030
|
return /* @__PURE__ */ r.jsx(Qe, { ...e });
|
|
@@ -1033,7 +1033,7 @@ const Yt = [
|
|
|
1033
1033
|
default:
|
|
1034
1034
|
return /* @__PURE__ */ r.jsx(Qe, { ...e });
|
|
1035
1035
|
}
|
|
1036
|
-
},
|
|
1036
|
+
}, ve = ({ details: t, classes: e }) => {
|
|
1037
1037
|
const { variant: n, items: o } = t ?? {};
|
|
1038
1038
|
return /* @__PURE__ */ r.jsx(
|
|
1039
1039
|
"div",
|
|
@@ -1073,7 +1073,7 @@ const Yt = [
|
|
|
1073
1073
|
)) }), ur = ({ phones: t, classes: e }) => /* @__PURE__ */ r.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: n, text: o }) => /* @__PURE__ */ r.jsx(
|
|
1074
1074
|
Je,
|
|
1075
1075
|
{
|
|
1076
|
-
phone:
|
|
1076
|
+
phone: ye(n),
|
|
1077
1077
|
text: o,
|
|
1078
1078
|
classes: {
|
|
1079
1079
|
root: d(e == null ? void 0 : e.phoneWrapper),
|
|
@@ -1093,7 +1093,7 @@ const Yt = [
|
|
|
1093
1093
|
({ column: n }) => n == null ? void 0 : n.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
|
|
1094
1094
|
/* @__PURE__ */ r.jsx("div", { className: d("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: o }),
|
|
1095
1095
|
/* @__PURE__ */ r.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__ */ r.jsx(
|
|
1096
|
-
|
|
1096
|
+
ge,
|
|
1097
1097
|
{
|
|
1098
1098
|
href: a,
|
|
1099
1099
|
"aria-label": l,
|
|
@@ -1124,7 +1124,7 @@ const Yt = [
|
|
|
1124
1124
|
children: /* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1125
1125
|
}
|
|
1126
1126
|
), pr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
|
|
1127
|
-
|
|
1127
|
+
ge,
|
|
1128
1128
|
{
|
|
1129
1129
|
intent: "white",
|
|
1130
1130
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1165,7 +1165,7 @@ const Yt = [
|
|
|
1165
1165
|
}
|
|
1166
1166
|
)
|
|
1167
1167
|
] });
|
|
1168
|
-
},
|
|
1168
|
+
}, Xn = ({
|
|
1169
1169
|
socialsLinks: t,
|
|
1170
1170
|
phones: e,
|
|
1171
1171
|
ligal: n,
|
|
@@ -1252,7 +1252,7 @@ const Yt = [
|
|
|
1252
1252
|
]
|
|
1253
1253
|
}
|
|
1254
1254
|
);
|
|
1255
|
-
},
|
|
1255
|
+
}, Jn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: b.stepper, "data-test-id": b.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ r.jsx(S, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
1256
1256
|
/* @__PURE__ */ r.jsx(H, { as: "h2", className: d("text-color-dark", o == null ? void 0 : o.headline), children: t }),
|
|
1257
1257
|
/* @__PURE__ */ r.jsx(
|
|
1258
1258
|
"div",
|
|
@@ -1363,7 +1363,7 @@ const Yt = [
|
|
|
1363
1363
|
] }),
|
|
1364
1364
|
/* @__PURE__ */ r.jsx("div", { className: d("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1365
1365
|
] }) });
|
|
1366
|
-
},
|
|
1366
|
+
}, ke = ({ intent: t, headline: e, desktopHidden: n = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: d(br({ intent: t, desktopHidden: n, mobileHidden: o })), children: e }), kr = ({ details: t, intent: e, withButton: n }) => /* @__PURE__ */ r.jsx("ul", { className: d(gr({ intent: e, withButton: n })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ r.jsx(sr, { intent: e, data: o }, i)) }), Yn = ({
|
|
1367
1367
|
headline: t,
|
|
1368
1368
|
buttonConfig: e,
|
|
1369
1369
|
intent: n = "twoItems",
|
|
@@ -1373,7 +1373,7 @@ const Yt = [
|
|
|
1373
1373
|
}) => {
|
|
1374
1374
|
const l = n === "fourItems", u = n === "twoItems", m = i && "url" in i && s.isObject(i) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
|
|
1375
1375
|
return /* @__PURE__ */ r.jsx("section", { id: b.longBanner, "data-test-id": b.longBanner, className: d(a == null ? void 0 : a.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(a == null ? void 0 : a.container), children: [
|
|
1376
|
-
u && /* @__PURE__ */ r.jsx(
|
|
1376
|
+
u && /* @__PURE__ */ r.jsx(ke, { intent: n, headline: t }),
|
|
1377
1377
|
/* @__PURE__ */ r.jsxs(
|
|
1378
1378
|
"div",
|
|
1379
1379
|
{
|
|
@@ -1382,17 +1382,17 @@ const Yt = [
|
|
|
1382
1382
|
a == null ? void 0 : a.contentContainer
|
|
1383
1383
|
),
|
|
1384
1384
|
children: [
|
|
1385
|
-
l && /* @__PURE__ */ r.jsx(
|
|
1385
|
+
l && /* @__PURE__ */ r.jsx(ke, { intent: n, headline: t, desktopHidden: !0 }),
|
|
1386
1386
|
/* @__PURE__ */ r.jsx("div", { className: d(yr({ intent: n, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
|
|
1387
1387
|
/* @__PURE__ */ r.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__ */ r.jsx(
|
|
1392
|
+
l && /* @__PURE__ */ r.jsx(ke, { intent: n, headline: t, mobileHidden: !0 }),
|
|
1393
1393
|
/* @__PURE__ */ r.jsx(kr, { details: o, intent: n, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
|
|
1394
1394
|
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ r.jsx(
|
|
1395
|
-
|
|
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",
|
|
@@ -1407,7 +1407,7 @@ const Yt = [
|
|
|
1407
1407
|
}
|
|
1408
1408
|
)
|
|
1409
1409
|
] }) });
|
|
1410
|
-
},
|
|
1410
|
+
}, we = {
|
|
1411
1411
|
ESIA: "esia",
|
|
1412
1412
|
MOBILE_ID: "mobileId",
|
|
1413
1413
|
COMBINE: "combine"
|
|
@@ -1476,7 +1476,7 @@ const Yt = [
|
|
|
1476
1476
|
}
|
|
1477
1477
|
),
|
|
1478
1478
|
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ r.jsx(
|
|
1479
|
-
|
|
1479
|
+
ge,
|
|
1480
1480
|
{
|
|
1481
1481
|
intent: "blue",
|
|
1482
1482
|
withUnderline: !0,
|
|
@@ -1535,11 +1535,11 @@ const Yt = [
|
|
|
1535
1535
|
) });
|
|
1536
1536
|
}, vr = (t) => {
|
|
1537
1537
|
switch (t.mode) {
|
|
1538
|
-
case
|
|
1538
|
+
case we.ESIA:
|
|
1539
1539
|
return /* @__PURE__ */ r.jsx(Ae, { ...t });
|
|
1540
|
-
case
|
|
1540
|
+
case we.MOBILE_ID:
|
|
1541
1541
|
return /* @__PURE__ */ r.jsx(Ve, { ...t });
|
|
1542
|
-
case
|
|
1542
|
+
case we.COMBINE:
|
|
1543
1543
|
default:
|
|
1544
1544
|
const { esiaConfig: e, mobileIdConfig: n, subtitle: o, badge: i, classes: a } = t, l = !o && !i ? le.Fragment : "div";
|
|
1545
1545
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -1582,8 +1582,8 @@ const Yt = [
|
|
|
1582
1582
|
}
|
|
1583
1583
|
);
|
|
1584
1584
|
}
|
|
1585
|
-
},
|
|
1586
|
-
|
|
1585
|
+
}, Gn = (t) => vr(t), qe = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className: d("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: n, label: o }) => /* @__PURE__ */ r.jsx(
|
|
1586
|
+
ge,
|
|
1587
1587
|
{
|
|
1588
1588
|
classes: {
|
|
1589
1589
|
link: d("w-max", e == null ? void 0 : e.linkText),
|
|
@@ -1631,7 +1631,7 @@ const Yt = [
|
|
|
1631
1631
|
defaultVariants: {
|
|
1632
1632
|
variant: "fourCols"
|
|
1633
1633
|
}
|
|
1634
|
-
}),
|
|
1634
|
+
}), eo = ({
|
|
1635
1635
|
variant: t,
|
|
1636
1636
|
details: e,
|
|
1637
1637
|
headline: n,
|
|
@@ -1876,9 +1876,9 @@ const Yt = [
|
|
|
1876
1876
|
default:
|
|
1877
1877
|
return null;
|
|
1878
1878
|
}
|
|
1879
|
-
}, Kr = ({ entity: t, classes: e, accordionsConfig: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Wr({ entity: t, classes: e, accordionsConfig: n }) }),
|
|
1879
|
+
}, Kr = ({ entity: t, classes: e, accordionsConfig: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Wr({ entity: t, classes: e, accordionsConfig: n }) }), to = ({ headline: t, tabs: e, classes: n, accordionsConfig: o }) => {
|
|
1880
1880
|
var u, m;
|
|
1881
|
-
const [i, a] =
|
|
1881
|
+
const [i, a] = Q(0), l = je(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
|
|
1882
1882
|
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: b.usefulInfo, "data-test-id": b.usefulInfo, className: d(n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(n == null ? void 0 : n.container), children: [
|
|
1883
1883
|
/* @__PURE__ */ r.jsx(H, { className: d(n == null ? void 0 : n.headline), as: "h2", children: t }),
|
|
1884
1884
|
/* @__PURE__ */ r.jsx("div", { className: d("mt-6 flex flex-col gap-2 desktop:mt-12", n == null ? void 0 : n.tabsWrapper), children: /* @__PURE__ */ r.jsx(Tr, { tabsNames: l, activeTab: i, setActiveTab: a, classes: n == null ? void 0 : n.tabs }) }),
|
|
@@ -1969,7 +1969,7 @@ class Xr extends $r {
|
|
|
1969
1969
|
return Zr ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
|
|
1970
1970
|
}
|
|
1971
1971
|
}
|
|
1972
|
-
class
|
|
1972
|
+
class Ne {
|
|
1973
1973
|
/**
|
|
1974
1974
|
* Функция для парсинга ноды в react элемент
|
|
1975
1975
|
*/
|
|
@@ -2027,16 +2027,16 @@ class Ce {
|
|
|
2027
2027
|
return i.map((a) => this.parseNode(a));
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
|
-
ae(
|
|
2030
|
+
ae(Ne, "TEXT_NODE", 3), ae(Ne, "ELEMENT_NODE", 1);
|
|
2031
2031
|
const Jr = ({ promises: t }) => {
|
|
2032
|
-
const [e, n] =
|
|
2032
|
+
const [e, n] = Q([]);
|
|
2033
2033
|
return tt(() => {
|
|
2034
2034
|
(async () => {
|
|
2035
2035
|
n(await t);
|
|
2036
2036
|
})();
|
|
2037
2037
|
}, [t]), /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
|
|
2038
|
-
},
|
|
2039
|
-
const i = n ?? _t, a = n ? o : {}, l =
|
|
2038
|
+
}, be = ({ html: t, options: e, as: n, ...o }) => {
|
|
2039
|
+
const i = n ?? _t, a = n ? o : {}, l = Ne.toReactNodes(t, e);
|
|
2040
2040
|
return (
|
|
2041
2041
|
// @ts-expect-error disable warning
|
|
2042
2042
|
/* @__PURE__ */ r.jsx(i, { ...a, children: /* @__PURE__ */ r.jsx(Jr, { promises: l }) })
|
|
@@ -2044,7 +2044,7 @@ const Jr = ({ promises: t }) => {
|
|
|
2044
2044
|
}, Yr = (t, e) => t.enabled ? e.map((n) => ({
|
|
2045
2045
|
name: n.args.name,
|
|
2046
2046
|
...n.args.progress
|
|
2047
|
-
})) : null, Gr = new Jt(), en = ({ children: t }) => /* @__PURE__ */ r.jsx(Ot, { client: Gr, children: t }), tn = (t, e, n, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(
|
|
2047
|
+
})) : null, Gr = new Jt(), en = ({ children: t }) => /* @__PURE__ */ r.jsx(Ot, { client: Gr, children: t }), tn = (t, e, n, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(be, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ r.jsxs(
|
|
2048
2048
|
"label",
|
|
2049
2049
|
{
|
|
2050
2050
|
className: d(
|
|
@@ -2054,10 +2054,10 @@ const Jr = ({ promises: t }) => {
|
|
|
2054
2054
|
),
|
|
2055
2055
|
children: [
|
|
2056
2056
|
/* @__PURE__ */ r.jsx(Ye.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: n }),
|
|
2057
|
-
/* @__PURE__ */ r.jsx(
|
|
2057
|
+
/* @__PURE__ */ r.jsx(be, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2058
2058
|
]
|
|
2059
2059
|
}
|
|
2060
|
-
),
|
|
2060
|
+
), ro = ({
|
|
2061
2061
|
fields: t,
|
|
2062
2062
|
title: e,
|
|
2063
2063
|
progress: n,
|
|
@@ -2066,8 +2066,8 @@ const Jr = ({ promises: t }) => {
|
|
|
2066
2066
|
submitProps: a,
|
|
2067
2067
|
classes: l
|
|
2068
2068
|
}) => {
|
|
2069
|
-
var
|
|
2070
|
-
const { submitCallback: u, ...m } = a || {}, [x, p] =
|
|
2069
|
+
var V, N;
|
|
2070
|
+
const { submitCallback: u, ...m } = a || {}, [x, p] = Q(!1), c = ut(t), g = at.getZodDefaults(c), { control: k, handleSubmit: v } = nt({
|
|
2071
2071
|
schema: c,
|
|
2072
2072
|
defaultValues: g,
|
|
2073
2073
|
mode: "onBlur"
|
|
@@ -2092,7 +2092,7 @@ const Jr = ({ promises: t }) => {
|
|
|
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
2098
|
i.image && /* @__PURE__ */ r.jsx(f, { name: i.image, className: d("size-4", (N = l == null ? void 0 : l.chips) == null ? void 0 : N.icon) }),
|
|
@@ -2111,8 +2111,8 @@ const Jr = ({ promises: t }) => {
|
|
|
2111
2111
|
St,
|
|
2112
2112
|
{
|
|
2113
2113
|
progress: P,
|
|
2114
|
-
topContent: /* @__PURE__ */ r.jsx(
|
|
2115
|
-
bottomContent: /* @__PURE__ */ r.jsx(
|
|
2114
|
+
topContent: /* @__PURE__ */ r.jsx(be, { html: n.title }),
|
|
2115
|
+
bottomContent: /* @__PURE__ */ r.jsx(be, { html: n.subtitle }),
|
|
2116
2116
|
maxPercent: n.maxPercent,
|
|
2117
2117
|
classes: l == null ? void 0 : l.progressBar
|
|
2118
2118
|
}
|
|
@@ -2121,7 +2121,7 @@ const Jr = ({ promises: t }) => {
|
|
|
2121
2121
|
/* @__PURE__ */ r.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__ */ r.jsx(
|
|
2124
|
-
|
|
2124
|
+
Ce,
|
|
2125
2125
|
{
|
|
2126
2126
|
...m,
|
|
2127
2127
|
type: "submit",
|
|
@@ -2204,7 +2204,7 @@ const Jr = ({ promises: t }) => {
|
|
|
2204
2204
|
text: "Вернуться на главную"
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
|
-
}),
|
|
2207
|
+
}), no = ({ status: t, navigationFn: e }) => /* @__PURE__ */ r.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ r.jsx(S, { className: "flex flex-col justify-center", children: /* @__PURE__ */ r.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
|
|
2208
2208
|
/* @__PURE__ */ r.jsx(
|
|
2209
2209
|
"span",
|
|
2210
2210
|
{
|
|
@@ -2219,9 +2219,9 @@ const Jr = ({ promises: t }) => {
|
|
|
2219
2219
|
/* @__PURE__ */ r.jsx(H, { as: "h2", children: de()[t].title }),
|
|
2220
2220
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: de()[t].description })
|
|
2221
2221
|
] }),
|
|
2222
|
-
/* @__PURE__ */ r.jsx(
|
|
2222
|
+
/* @__PURE__ */ r.jsx(Ce, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
|
|
2223
2223
|
] }) }) }), pt = ({ breadcrumb: t, className: e, ...n }) => /* @__PURE__ */ r.jsx("a", { href: t.path, className: d("desk-body-regular-m", e), ...n, children: t.label }), rn = ({ startsWith: t, endsWith: e, matcher: n, filter: o, rootEnabled: i = !0 }) => {
|
|
2224
|
-
const [a, l] =
|
|
2224
|
+
const [a, l] = Q([]);
|
|
2225
2225
|
return tt(() => {
|
|
2226
2226
|
if (!rt)
|
|
2227
2227
|
return;
|
|
@@ -2253,7 +2253,7 @@ const Jr = ({ promises: t }) => {
|
|
|
2253
2253
|
...n(p)
|
|
2254
2254
|
}))), l(o ? m.filter(o) : m);
|
|
2255
2255
|
}, [e, o, n, i, t]), a;
|
|
2256
|
-
},
|
|
2256
|
+
}, fe = (t, e, n, o) => t.map((i, a) => {
|
|
2257
2257
|
const l = a === o;
|
|
2258
2258
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2259
2259
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2268,9 +2268,9 @@ const Jr = ({ promises: t }) => {
|
|
|
2268
2268
|
a !== t.length - 1 && e
|
|
2269
2269
|
] }, i.id);
|
|
2270
2270
|
}), nn = ({ separator: t, ellipsis: e, classes: n, ...o }) => {
|
|
2271
|
-
const [i, a] =
|
|
2271
|
+
const [i, a] = Q(!1), l = Ee(null);
|
|
2272
2272
|
zt(l, () => a(!1));
|
|
2273
|
-
const u = rn(o), { first: m, middle: x, last: p } =
|
|
2273
|
+
const u = rn(o), { first: m, middle: x, last: p } = je(() => {
|
|
2274
2274
|
let g = [], k = [], v = [];
|
|
2275
2275
|
return e && (g = u.slice(0, e), k = u.slice(e, u.length - e), v = u.slice(u.length - e)), { first: g, middle: k, last: v };
|
|
2276
2276
|
}, [u, e]), c = t ?? /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("size-4", n == null ? void 0 : n.separator) });
|
|
@@ -2288,7 +2288,7 @@ const Jr = ({ promises: t }) => {
|
|
|
2288
2288
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2289
2289
|
// render hidden breadcrumbs
|
|
2290
2290
|
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2291
|
-
|
|
2291
|
+
fe(m, c, n == null ? void 0 : n.breadcrumb),
|
|
2292
2292
|
c,
|
|
2293
2293
|
x.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2294
2294
|
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
@@ -2322,28 +2322,28 @@ const Jr = ({ promises: t }) => {
|
|
|
2322
2322
|
] }),
|
|
2323
2323
|
c
|
|
2324
2324
|
] }),
|
|
2325
|
-
|
|
2325
|
+
fe(p, c, n == null ? void 0 : n.breadcrumb, p.length - 1)
|
|
2326
2326
|
] })
|
|
2327
2327
|
) : (
|
|
2328
2328
|
// otherwise render all breadcrumbs
|
|
2329
|
-
|
|
2329
|
+
fe(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
|
|
2330
2330
|
) })
|
|
2331
2331
|
) : (
|
|
2332
2332
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2333
|
-
|
|
2333
|
+
fe(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
|
|
2334
2334
|
)
|
|
2335
2335
|
}
|
|
2336
2336
|
);
|
|
2337
2337
|
};
|
|
2338
|
-
var
|
|
2338
|
+
var ue = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(ue || {});
|
|
2339
2339
|
const on = (t, e) => {
|
|
2340
2340
|
switch (e.type) {
|
|
2341
|
-
case
|
|
2341
|
+
case ue.ROOT:
|
|
2342
2342
|
return {
|
|
2343
2343
|
...t,
|
|
2344
2344
|
root: e.payload
|
|
2345
2345
|
};
|
|
2346
|
-
case
|
|
2346
|
+
case ue.CURRENT:
|
|
2347
2347
|
return {
|
|
2348
2348
|
...t,
|
|
2349
2349
|
current: e.payload
|
|
@@ -2355,10 +2355,10 @@ const on = (t, e) => {
|
|
|
2355
2355
|
const [e, n] = Ht(on, t);
|
|
2356
2356
|
return [e, n];
|
|
2357
2357
|
}, dn = (t) => ({
|
|
2358
|
-
type:
|
|
2358
|
+
type: ue.CURRENT,
|
|
2359
2359
|
payload: t
|
|
2360
2360
|
}), ln = (t) => ({
|
|
2361
|
-
type:
|
|
2361
|
+
type: ue.ROOT,
|
|
2362
2362
|
payload: t
|
|
2363
2363
|
}), un = ({ categories: t, ...e }) => {
|
|
2364
2364
|
var n, o;
|
|
@@ -2436,7 +2436,7 @@ const on = (t, e) => {
|
|
|
2436
2436
|
}
|
|
2437
2437
|
);
|
|
2438
2438
|
}), xn = Fe(mn), hn = ({ categories: t }) => {
|
|
2439
|
-
const [e, n] =
|
|
2439
|
+
const [e, n] = Q(null), o = Ge((a) => {
|
|
2440
2440
|
n(a);
|
|
2441
2441
|
}, []), i = Ee(null);
|
|
2442
2442
|
return /* @__PURE__ */ r.jsx(Bt, { mode: "sync", children: /* @__PURE__ */ r.jsxs(
|
|
@@ -2545,7 +2545,7 @@ const on = (t, e) => {
|
|
|
2545
2545
|
{
|
|
2546
2546
|
href: `tel:${n}`,
|
|
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(n, "x xxx xxx xx xx")
|
|
2549
2549
|
}
|
|
2550
2550
|
)
|
|
2551
2551
|
] }),
|
|
@@ -2596,9 +2596,9 @@ const on = (t, e) => {
|
|
|
2596
2596
|
value: e.title ?? "",
|
|
2597
2597
|
label: e.title ?? ""
|
|
2598
2598
|
})), jn = ({ categories: t, helpers: e, phone: n, ...o }) => {
|
|
2599
|
-
const i = gn(t), [a, l] =
|
|
2599
|
+
const i = gn(t), [a, l] = Q(i[0]), u = (x) => {
|
|
2600
2600
|
s.isUndefined(x) || s.isArray(x) || l(x);
|
|
2601
|
-
}, m =
|
|
2601
|
+
}, m = je(() => {
|
|
2602
2602
|
var x;
|
|
2603
2603
|
return s.isUndefined(a) || s.isArray(a) ? [] : ((x = t.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
|
|
2604
2604
|
}, [a, t]);
|
|
@@ -2631,7 +2631,7 @@ const on = (t, e) => {
|
|
|
2631
2631
|
}),
|
|
2632
2632
|
/* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: `tel:${n}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2633
2633
|
/* @__PURE__ */ r.jsx(f, { name: "communication/phone", className: "size-4" }),
|
|
2634
|
-
|
|
2634
|
+
ye(n)
|
|
2635
2635
|
] }) })
|
|
2636
2636
|
] })
|
|
2637
2637
|
]
|
|
@@ -2639,7 +2639,7 @@ const on = (t, e) => {
|
|
|
2639
2639
|
);
|
|
2640
2640
|
}, yn = ({ categories: t, helpers: e, phone: n }) => {
|
|
2641
2641
|
var m, x, p;
|
|
2642
|
-
const o = Ee(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] =
|
|
2642
|
+
const o = Ee(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = Q(!1), u = () => l(!a);
|
|
2643
2643
|
return /* @__PURE__ */ r.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__ */ r.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2645
2645
|
/* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(f, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
@@ -2659,7 +2659,7 @@ const on = (t, e) => {
|
|
|
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
|
-
},
|
|
2662
|
+
}, oo = ({ categories: t, helpers: e, phone: n }) => {
|
|
2663
2663
|
const { isMobile: o } = Y();
|
|
2664
2664
|
return /* @__PURE__ */ r.jsxs("div", { id: b.seoHeader, "data-test-id": b.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2665
2665
|
o ? /* @__PURE__ */ r.jsx(yn, { categories: t.map((i) => i.children).flat(), helpers: e, phone: n }) : /* @__PURE__ */ r.jsx(fn, { categories: t, helpers: e, phone: n }),
|
|
@@ -2685,19 +2685,26 @@ const on = (t, e) => {
|
|
|
2685
2685
|
break;
|
|
2686
2686
|
}
|
|
2687
2687
|
return new Intl.NumberFormat("ru-RU", o).format(n);
|
|
2688
|
-
}, sn = (t
|
|
2689
|
-
|
|
2688
|
+
}, sn = (t, e) => {
|
|
2689
|
+
switch (t) {
|
|
2690
|
+
case "text":
|
|
2691
|
+
return e;
|
|
2692
|
+
default:
|
|
2693
|
+
return ft(t, Number(e));
|
|
2694
|
+
}
|
|
2695
|
+
}, kn = (t) => Object.values(t).reduce((n, o) => n.merge(ut(o.fields)), At.object({})), wn = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, bt = (t, e) => {
|
|
2696
|
+
const n = Object.entries(e).map(([m, x]) => [m, x !== null ? x : "1"]), o = n.map(([m]) => m), i = n.map(([, m]) => m), a = wn(t, Object.fromEntries(n)), u = new Function(...o, `return ${a};`)(...i.map(Number));
|
|
2690
2697
|
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2691
|
-
},
|
|
2698
|
+
}, vn = (t, e) => t.map((n) => ({
|
|
2692
2699
|
...n,
|
|
2693
2700
|
value: ct(n.value) ? bt(n.value.formula, e) : n.value
|
|
2694
|
-
})),
|
|
2701
|
+
})), Nn = ({ subtitle: t, title: e }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: (e || t) && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2695
2702
|
e && /* @__PURE__ */ r.jsx(H, { as: "h3", children: e }),
|
|
2696
2703
|
t && /* @__PURE__ */ r.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
|
|
2697
|
-
] }) }),
|
|
2704
|
+
] }) }), Cn = ({ rootDescription: t, rootValue: e, suffix: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2698
2705
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
|
|
2699
2706
|
/* @__PURE__ */ r.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ r.jsx("span", { children: ft(n, Number(e)) }) })
|
|
2700
|
-
] }),
|
|
2707
|
+
] }), In = ({ hint: t, value: e, label: n, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2701
2708
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2702
2709
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: n }),
|
|
2703
2710
|
t && /* @__PURE__ */ r.jsx(
|
|
@@ -2712,33 +2719,30 @@ const on = (t, e) => {
|
|
|
2712
2719
|
/* @__PURE__ */ r.jsx(
|
|
2713
2720
|
"span",
|
|
2714
2721
|
{
|
|
2715
|
-
className: d("desk-body-
|
|
2722
|
+
className: d("desk-body-medium-l text-color-dark", {
|
|
2716
2723
|
"[&&]:desk-title-bold-s": a,
|
|
2717
2724
|
"text-color-primary-default": i === "blue"
|
|
2718
2725
|
}),
|
|
2719
|
-
children:
|
|
2726
|
+
children: sn(o, e)
|
|
2720
2727
|
}
|
|
2721
2728
|
)
|
|
2722
|
-
] }),
|
|
2723
|
-
const { watch: e } = ot(), n = e(), o =
|
|
2724
|
-
return /* @__PURE__ */ r.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__ */ r.jsx(
|
|
2725
|
-
},
|
|
2729
|
+
] }), Tn = ({ infoList: t }) => {
|
|
2730
|
+
const { watch: e } = ot(), n = e(), o = vn(t, n);
|
|
2731
|
+
return /* @__PURE__ */ r.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__ */ r.jsx(In, { ...i }, i.label)) });
|
|
2732
|
+
}, Mn = ({ iconName: t, text: e, hint: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2726
2733
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2727
2734
|
/* @__PURE__ */ r.jsx(f, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
2728
2735
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
|
|
2729
2736
|
] }),
|
|
2730
2737
|
n && /* @__PURE__ */ r.jsx(Ie, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ r.jsx(f, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ r.jsx("p", { children: n }) })
|
|
2731
|
-
] }),
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
/* @__PURE__ */ r.
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: n })
|
|
2740
|
-
] });
|
|
2741
|
-
}, En = ({
|
|
2738
|
+
] }), En = ({ assistHint: t, buttonsConfig: e, bottomDescription: n }) => /* @__PURE__ */ r.jsxs("div", { children: [
|
|
2739
|
+
t && /* @__PURE__ */ r.jsx(Mn, { ...t }),
|
|
2740
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("flex items-center gap-4 mobile:flex-col"), children: [
|
|
2741
|
+
/* @__PURE__ */ r.jsx(z, { className: "w-full", ...e.primaryBtn }),
|
|
2742
|
+
(e == null ? void 0 : e.secondaryBtn) && /* @__PURE__ */ r.jsx(z, { className: "w-full", ...e.secondaryBtn })
|
|
2743
|
+
] }),
|
|
2744
|
+
n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: n })
|
|
2745
|
+
] }), Fn = ({
|
|
2742
2746
|
rootDescription: t,
|
|
2743
2747
|
bottomDescription: e,
|
|
2744
2748
|
rootValue: n,
|
|
@@ -2749,18 +2753,18 @@ const on = (t, e) => {
|
|
|
2749
2753
|
suffix: u,
|
|
2750
2754
|
assistHint: m
|
|
2751
2755
|
}) => /* @__PURE__ */ r.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
|
|
2752
|
-
/* @__PURE__ */ r.jsx(
|
|
2753
|
-
/* @__PURE__ */ r.jsx(
|
|
2754
|
-
/* @__PURE__ */ r.jsx(
|
|
2755
|
-
/* @__PURE__ */ r.jsx(
|
|
2756
|
-
] }),
|
|
2756
|
+
/* @__PURE__ */ r.jsx(Cn, { suffix: u, rootValue: n, rootDescription: t }),
|
|
2757
|
+
/* @__PURE__ */ r.jsx(Nn, { title: o, subtitle: i }),
|
|
2758
|
+
/* @__PURE__ */ r.jsx(Tn, { infoList: l }),
|
|
2759
|
+
/* @__PURE__ */ r.jsx(En, { assistHint: m, buttonsConfig: a, bottomDescription: e })
|
|
2760
|
+
] }), On = (t) => {
|
|
2757
2761
|
switch (t) {
|
|
2758
2762
|
case "content1":
|
|
2759
2763
|
return /* @__PURE__ */ r.jsx("div", { children: "content 1" });
|
|
2760
2764
|
case "content2":
|
|
2761
2765
|
return /* @__PURE__ */ r.jsx("div", { children: "content 2" });
|
|
2762
2766
|
}
|
|
2763
|
-
},
|
|
2767
|
+
}, Sn = ({ triggerText: t, modalTitle: e, description: n, contentVariant: o }) => {
|
|
2764
2768
|
const [i, a] = Ut(!1);
|
|
2765
2769
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
2766
2770
|
n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: n }),
|
|
@@ -2772,21 +2776,21 @@ const on = (t, e) => {
|
|
|
2772
2776
|
children: t
|
|
2773
2777
|
}
|
|
2774
2778
|
),
|
|
2775
|
-
/* @__PURE__ */ r.jsx(Rt, { title: e, isModalOpen: i, closeModal: () => a(!1), children:
|
|
2779
|
+
/* @__PURE__ */ r.jsx(Rt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: On(o) })
|
|
2776
2780
|
] });
|
|
2777
|
-
},
|
|
2781
|
+
}, X = ({ fields: t }) => {
|
|
2778
2782
|
const { control: e } = ot();
|
|
2779
2783
|
return /* @__PURE__ */ r.jsx(ht, { control: e, fields: t });
|
|
2780
|
-
},
|
|
2781
|
-
t && /* @__PURE__ */ r.jsx(
|
|
2782
|
-
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(
|
|
2783
|
-
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ r.jsx(
|
|
2784
|
-
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(
|
|
2785
|
-
(e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(
|
|
2786
|
-
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ r.jsx(
|
|
2787
|
-
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(
|
|
2788
|
-
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(
|
|
2789
|
-
] }),
|
|
2784
|
+
}, Bn = ({ modalConfig: t, fieldsGroup: e }) => /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2785
|
+
t && /* @__PURE__ */ r.jsx(Sn, { ...t }),
|
|
2786
|
+
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.selectGroupConfig }) }),
|
|
2787
|
+
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.slidersGroupConfig }),
|
|
2788
|
+
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.radioGroupTabConfig }),
|
|
2789
|
+
(e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.checkboxGroupConfig }) }),
|
|
2790
|
+
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.radioGroupConfig }),
|
|
2791
|
+
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.radioGroupCardConfig }),
|
|
2792
|
+
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.switchGroupConfig }) })
|
|
2793
|
+
] }), Rn = Fe(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ r.jsx(
|
|
2790
2794
|
"button",
|
|
2791
2795
|
{
|
|
2792
2796
|
onClick: () => n(o),
|
|
@@ -2797,26 +2801,26 @@ const on = (t, e) => {
|
|
|
2797
2801
|
children: i
|
|
2798
2802
|
},
|
|
2799
2803
|
o
|
|
2800
|
-
)) })),
|
|
2804
|
+
)) })), _n = ({
|
|
2801
2805
|
calculatorInfoConfig: t,
|
|
2802
2806
|
calculatorFieldsConfig: e
|
|
2803
2807
|
}) => {
|
|
2804
|
-
const n =
|
|
2808
|
+
const n = kn(e == null ? void 0 : e.fieldsGroup), o = nt({
|
|
2805
2809
|
schema: n,
|
|
2806
2810
|
mode: "onBlur",
|
|
2807
2811
|
defaultValues: at.getZodDefaults(n)
|
|
2808
2812
|
}), i = o.watch(), { rootValue: a } = t, l = ct(a) ? bt(a.formula, i) : a, u = { ...t, rootValue: l };
|
|
2809
2813
|
return /* @__PURE__ */ r.jsx(Qt, { ...o, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2810
|
-
/* @__PURE__ */ r.jsx(
|
|
2811
|
-
/* @__PURE__ */ r.jsx(
|
|
2814
|
+
/* @__PURE__ */ r.jsx(Bn, { ...e }),
|
|
2815
|
+
/* @__PURE__ */ r.jsx(Fn, { ...u })
|
|
2812
2816
|
] }) });
|
|
2813
|
-
},
|
|
2817
|
+
}, io = ({ calculators: t, headline: e }) => {
|
|
2814
2818
|
var m;
|
|
2815
|
-
const n = t.length > 1, [o, i] =
|
|
2819
|
+
const n = t.length > 1, [o, i] = Q(n ? (m = t[0]) == null ? void 0 : m.name : ""), a = je(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), l = n ? a == null ? void 0 : a.findIndex((x) => x.name === o) : 0, u = t[l];
|
|
2816
2820
|
return /* @__PURE__ */ r.jsx("section", { id: b.calculator, children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2817
2821
|
/* @__PURE__ */ r.jsx(H, { className: "mb-12", as: "h2", children: e }),
|
|
2818
2822
|
n && /* @__PURE__ */ r.jsx(
|
|
2819
|
-
|
|
2823
|
+
Rn,
|
|
2820
2824
|
{
|
|
2821
2825
|
calculatorTabs: a,
|
|
2822
2826
|
activeCalculator: o,
|
|
@@ -2824,7 +2828,7 @@ const on = (t, e) => {
|
|
|
2824
2828
|
}
|
|
2825
2829
|
),
|
|
2826
2830
|
/* @__PURE__ */ r.jsx(
|
|
2827
|
-
|
|
2831
|
+
_n,
|
|
2828
2832
|
{
|
|
2829
2833
|
name: u.name,
|
|
2830
2834
|
label: u.label,
|
|
@@ -2835,27 +2839,27 @@ const on = (t, e) => {
|
|
|
2835
2839
|
] }) }) });
|
|
2836
2840
|
};
|
|
2837
2841
|
export {
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2842
|
+
ve as Advantages,
|
|
2843
|
+
Gn as AuthProvider,
|
|
2844
|
+
Zn as Banner,
|
|
2841
2845
|
Qe as BannerWithSeparateImg,
|
|
2842
|
-
|
|
2846
|
+
Kn as Benefit,
|
|
2843
2847
|
nn as Breadcrumbs,
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2848
|
+
z as ButtonWithHandlers,
|
|
2849
|
+
io as Calculator,
|
|
2850
|
+
_n as CalculatorView,
|
|
2851
|
+
ro as DynamicForm,
|
|
2852
|
+
no as FallbacksView,
|
|
2849
2853
|
ht as FieldMapper,
|
|
2850
|
-
|
|
2854
|
+
Xn as Footer,
|
|
2851
2855
|
Xr as HTMLParser,
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2856
|
+
be as HTMLRenderer,
|
|
2857
|
+
$n as Header,
|
|
2858
|
+
eo as InterLinking,
|
|
2859
|
+
Yn as LongBanner,
|
|
2860
|
+
oo as SeoHeader,
|
|
2861
|
+
Jn as Stepper,
|
|
2862
|
+
to as UsefulInfo,
|
|
2859
2863
|
Yt as WIDGET_LIST,
|
|
2860
2864
|
ut as getDynamicSchema,
|
|
2861
2865
|
Gr as queryClient,
|