@scbt-ecom/ui 0.68.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks.js +2 -2
- package/dist/index-BwK6Inph.js +436 -0
- package/dist/index-BwK6Inph.js.map +1 -0
- package/dist/{index-37evuXv8.js → index-CheXd2Zl.js} +8489 -8589
- package/dist/index-CheXd2Zl.js.map +1 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/slider/SliderControl.d.ts +4 -3
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +3 -1
- package/dist/shared/ui/formElements/uncontrolled/slider/SliderBase.d.ts +4 -74
- package/dist/shared/ui/formElements/uncontrolled/slider/model/helpers/dates/getDayIntl.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/model/helpers/dates/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/model/helpers/getInputSliderSuffix.d.ts +2 -2
- package/dist/shared/ui/formElements/uncontrolled/slider/model/types.d.ts +103 -1
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/Slider.d.ts +10 -13
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/SliderAlgorithmic.d.ts +6 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/hooks/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/hooks/useSliderAlgorithmic.d.ts +18 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/SliderMarks.d.ts +6 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/hooks/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/hooks/useSliderMarks.d.ts +10 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/SliderStep.d.ts +7 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/hooks/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/hooks/useSliderStep.d.ts +14 -0
- package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/index.d.ts +1 -0
- package/dist/shared/validation/base/boolean.validators.d.ts +8 -1
- package/dist/shared/validation/base/date.validators.d.ts +5 -0
- package/dist/shared/validation/base/email.validators.d.ts +5 -0
- package/dist/shared/validation/base/number.validators.d.ts +5 -1
- package/dist/shared/validation/base/phone.validators.d.ts +5 -0
- package/dist/shared/validation/base/select.validators.d.ts +4 -0
- package/dist/shared/validation/base/string.validators.d.ts +4 -0
- package/dist/shared/validation/base/url.validators.d.ts +4 -0
- package/dist/ui.js +4 -4
- package/dist/{useDebounce-BZSs8EPD.js → useDebounce-MaKPBuaC.js} +282 -290
- package/dist/useDebounce-MaKPBuaC.js.map +1 -0
- package/dist/{useFieldsProgress-B_tgt_Hg.js → useFieldsProgress-CeEaFp3Q.js} +2 -2
- package/dist/{useFieldsProgress-B_tgt_Hg.js.map → useFieldsProgress-CeEaFp3Q.js.map} +1 -1
- package/dist/{utils-DaXd4sci.js → utils-DyIly-dX.js} +5 -3
- package/dist/utils-DyIly-dX.js.map +1 -0
- package/dist/validation.js +2 -2
- package/dist/widget.js +165 -171
- package/dist/widget.js.map +1 -1
- package/package.json +2 -2
- package/dist/index-37evuXv8.js.map +0 -1
- package/dist/index-cm9kMt4X.js +0 -435
- package/dist/index-cm9kMt4X.js.map +0 -1
- package/dist/shared/ui/formElements/uncontrolled/slider/model/useSlider.d.ts +0 -17
- package/dist/useDebounce-BZSs8EPD.js.map +0 -1
- package/dist/utils-DaXd4sci.js.map +0 -1
package/dist/widget.js
CHANGED
|
@@ -13,16 +13,16 @@ 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
|
|
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 ue, c as F, R as S, n as Je, s as Mt, H, i as f, t as je, 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-CheXd2Zl.js";
|
|
17
17
|
import { T as s, c as d } from "./typeGuards-Bhdr9KYW.js";
|
|
18
18
|
import * as le from "react";
|
|
19
19
|
import { useCallback as Ge, useState as z, useMemo as ye, createElement as et, Fragment as _t, useEffect as tt, useRef as Ee, useReducer as Ht, memo as Fe, forwardRef as Pt } from "react";
|
|
20
20
|
import { s as Dt, c as se, g as De, a as Lt } from "./uuid-2wKG15vy.js";
|
|
21
21
|
import { i as rt } from "./isClient-C9aZtt2Q.js";
|
|
22
|
-
import { u as
|
|
23
|
-
import { o as Vt, z as At } from "./utils-
|
|
24
|
-
import { z as it, Z as at } from "./index-
|
|
25
|
-
import { a as qt, u as Ut } from "./useFieldsProgress-
|
|
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-DyIly-dX.js";
|
|
24
|
+
import { z as it, Z as at } from "./index-BwK6Inph.js";
|
|
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 {
|
|
28
28
|
constructor(e = {}) {
|
|
@@ -53,7 +53,7 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
53
53
|
n && (e.destroy(), n === e && h(this, B).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
|
-
|
|
56
|
+
E.batch(() => {
|
|
57
57
|
this.getAll().forEach((e) => {
|
|
58
58
|
this.remove(e);
|
|
59
59
|
});
|
|
@@ -76,34 +76,34 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
76
76
|
return Object.keys(e).length > 0 ? n.filter((o) => Se(e, o)) : n;
|
|
77
77
|
}
|
|
78
78
|
notify(e) {
|
|
79
|
-
|
|
79
|
+
E.batch(() => {
|
|
80
80
|
this.listeners.forEach((n) => {
|
|
81
81
|
n(e);
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
onFocus() {
|
|
86
|
-
|
|
86
|
+
E.batch(() => {
|
|
87
87
|
this.getAll().forEach((e) => {
|
|
88
88
|
e.onFocus();
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
onOnline() {
|
|
93
|
-
|
|
93
|
+
E.batch(() => {
|
|
94
94
|
this.getAll().forEach((e) => {
|
|
95
95
|
e.onOnline();
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
}, B = new WeakMap(), Ue), R, T,
|
|
99
|
+
}, B = new WeakMap(), Ue), R, T, X, _, q, 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,
|
|
106
|
-
this.mutationId = e.mutationId, y(this, T, e.mutationCache), y(this, R, []), this.state = e.state ||
|
|
105
|
+
C(this, X);
|
|
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) {
|
|
109
109
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -130,18 +130,18 @@ 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, X)) == 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,
|
|
137
|
+
var a, l, u, m, x, p, c, g, k, v, I, P, G, Q, N, M, V, $, he, ie;
|
|
138
138
|
const n = () => {
|
|
139
139
|
A(this, _, q).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
|
-
y(this,
|
|
141
|
+
y(this, X, kt({
|
|
142
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
143
|
-
onFail: (
|
|
144
|
-
A(this, _, q).call(this, { type: "failed", failureCount:
|
|
143
|
+
onFail: (w, pe) => {
|
|
144
|
+
A(this, _, q).call(this, { type: "failed", failureCount: w, error: pe });
|
|
145
145
|
},
|
|
146
146
|
onPause: () => {
|
|
147
147
|
A(this, _, q).call(this, { type: "pause" });
|
|
@@ -152,7 +152,7 @@ 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, X).canStart();
|
|
156
156
|
try {
|
|
157
157
|
if (o)
|
|
158
158
|
n();
|
|
@@ -170,56 +170,56 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
170
170
|
isPaused: i
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
const
|
|
173
|
+
const w = await h(this, X).start();
|
|
174
174
|
return await ((p = (x = h(this, T).config).onSuccess) == null ? void 0 : p.call(
|
|
175
175
|
x,
|
|
176
|
-
|
|
176
|
+
w,
|
|
177
177
|
e,
|
|
178
178
|
this.state.context,
|
|
179
179
|
this
|
|
180
|
-
)), await ((
|
|
181
|
-
w,
|
|
180
|
+
)), await ((g = (c = this.options).onSuccess) == null ? void 0 : g.call(c, w, e, this.state.context)), await ((v = (k = h(this, T).config).onSettled) == null ? void 0 : v.call(
|
|
182
181
|
k,
|
|
182
|
+
w,
|
|
183
183
|
null,
|
|
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,
|
|
188
|
-
} catch (
|
|
187
|
+
)), await ((P = (I = this.options).onSettled) == null ? void 0 : P.call(I, w, null, e, this.state.context)), A(this, _, q).call(this, { type: "success", data: w }), w;
|
|
188
|
+
} catch (w) {
|
|
189
189
|
try {
|
|
190
|
-
throw await ((Q = (
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
throw await ((Q = (G = h(this, T).config).onError) == null ? void 0 : Q.call(
|
|
191
|
+
G,
|
|
192
|
+
w,
|
|
193
193
|
e,
|
|
194
194
|
this.state.context,
|
|
195
195
|
this
|
|
196
|
-
)), await ((
|
|
196
|
+
)), await ((M = (N = this.options).onError) == null ? void 0 : M.call(
|
|
197
197
|
N,
|
|
198
|
-
|
|
198
|
+
w,
|
|
199
199
|
e,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((
|
|
201
|
+
)), await (($ = (V = h(this, T).config).onSettled) == null ? void 0 : $.call(
|
|
202
202
|
V,
|
|
203
203
|
void 0,
|
|
204
|
-
|
|
204
|
+
w,
|
|
205
205
|
this.state.variables,
|
|
206
206
|
this.state.context,
|
|
207
207
|
this
|
|
208
208
|
)), await ((ie = (he = this.options).onSettled) == null ? void 0 : ie.call(
|
|
209
209
|
he,
|
|
210
210
|
void 0,
|
|
211
|
-
|
|
211
|
+
w,
|
|
212
212
|
e,
|
|
213
213
|
this.state.context
|
|
214
|
-
)),
|
|
214
|
+
)), w;
|
|
215
215
|
} finally {
|
|
216
|
-
A(this, _, q).call(this, { type: "error", error:
|
|
216
|
+
A(this, _, q).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(), X = new WeakMap(), _ = new WeakSet(), q = function(e) {
|
|
223
223
|
const n = (o) => {
|
|
224
224
|
switch (e.type) {
|
|
225
225
|
case "failed":
|
|
@@ -273,7 +273,7 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
this.state = n(this.state),
|
|
276
|
+
this.state = n(this.state), E.batch(() => {
|
|
277
277
|
h(this, R).forEach((o) => {
|
|
278
278
|
o.onMutationUpdate(e);
|
|
279
279
|
}), h(this, T).notify({
|
|
@@ -283,7 +283,7 @@ var B, Ue, Wt = (Ue = class extends Ze {
|
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
285
|
}, We);
|
|
286
|
-
function
|
|
286
|
+
function $t() {
|
|
287
287
|
return {
|
|
288
288
|
context: void 0,
|
|
289
289
|
data: void 0,
|
|
@@ -296,7 +296,7 @@ function Kt() {
|
|
|
296
296
|
submittedAt: 0
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
var L, O, xe,
|
|
299
|
+
var L, O, xe, Ke, Zt = (Ke = class extends Ze {
|
|
300
300
|
constructor(e = {}) {
|
|
301
301
|
super();
|
|
302
302
|
C(this, L);
|
|
@@ -305,7 +305,7 @@ var L, O, xe, $e, Zt = ($e = class extends Ze {
|
|
|
305
305
|
this.config = e, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this, xe, 0);
|
|
306
306
|
}
|
|
307
307
|
build(e, n, o) {
|
|
308
|
-
const i = new
|
|
308
|
+
const i = new Kt({
|
|
309
309
|
mutationCache: this,
|
|
310
310
|
mutationId: ++ce(this, xe)._,
|
|
311
311
|
options: e.defaultMutationOptions(n),
|
|
@@ -356,7 +356,7 @@ var L, O, xe, $e, Zt = ($e = class extends Ze {
|
|
|
356
356
|
return Promise.resolve();
|
|
357
357
|
}
|
|
358
358
|
clear() {
|
|
359
|
-
|
|
359
|
+
E.batch(() => {
|
|
360
360
|
h(this, L).forEach((e) => {
|
|
361
361
|
this.notify({ type: "removed", mutation: e });
|
|
362
362
|
}), h(this, L).clear(), h(this, O).clear();
|
|
@@ -375,7 +375,7 @@ var L, O, xe, $e, Zt = ($e = class extends Ze {
|
|
|
375
375
|
return this.getAll().filter((n) => Be(e, n));
|
|
376
376
|
}
|
|
377
377
|
notify(e) {
|
|
378
|
-
|
|
378
|
+
E.batch(() => {
|
|
379
379
|
this.listeners.forEach((n) => {
|
|
380
380
|
n(e);
|
|
381
381
|
});
|
|
@@ -383,13 +383,13 @@ var L, O, xe, $e, Zt = ($e = class extends Ze {
|
|
|
383
383
|
}
|
|
384
384
|
resumePausedMutations() {
|
|
385
385
|
const e = this.getAll().filter((n) => n.state.isPaused);
|
|
386
|
-
return
|
|
386
|
+
return E.batch(
|
|
387
387
|
() => Promise.all(
|
|
388
388
|
e.map((n) => n.continue().catch(D))
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
}, L = new WeakMap(), O = new WeakMap(), xe = new WeakMap(),
|
|
392
|
+
}, L = new WeakMap(), O = new WeakMap(), xe = new WeakMap(), Ke);
|
|
393
393
|
function fe(t) {
|
|
394
394
|
var e;
|
|
395
395
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
@@ -397,8 +397,8 @@ function fe(t) {
|
|
|
397
397
|
function Le(t) {
|
|
398
398
|
return {
|
|
399
399
|
onFetch: (e, n) => {
|
|
400
|
-
var p, c,
|
|
401
|
-
const o = e.options, i = (
|
|
400
|
+
var p, c, g, k, v;
|
|
401
|
+
const o = e.options, i = (g = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : g.direction, a = ((k = e.state.data) == null ? void 0 : k.pages) || [], l = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
|
|
402
402
|
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
403
|
const x = async () => {
|
|
404
404
|
let I = !1;
|
|
@@ -409,40 +409,40 @@ function Le(t) {
|
|
|
409
409
|
I = !0;
|
|
410
410
|
}), e.signal)
|
|
411
411
|
});
|
|
412
|
-
},
|
|
412
|
+
}, G = wt(e.options, e.fetchOptions), Q = async (N, M, V) => {
|
|
413
413
|
if (I)
|
|
414
414
|
return Promise.reject();
|
|
415
|
-
if (
|
|
415
|
+
if (M == null && N.pages.length)
|
|
416
416
|
return Promise.resolve(N);
|
|
417
|
-
const
|
|
417
|
+
const $ = {
|
|
418
418
|
client: e.client,
|
|
419
419
|
queryKey: e.queryKey,
|
|
420
|
-
pageParam:
|
|
420
|
+
pageParam: M,
|
|
421
421
|
direction: V ? "backward" : "forward",
|
|
422
422
|
meta: e.options.meta
|
|
423
423
|
};
|
|
424
|
-
P(
|
|
425
|
-
const he = await
|
|
426
|
-
|
|
427
|
-
), { maxPages: ie } = e.options,
|
|
424
|
+
P($);
|
|
425
|
+
const he = await G(
|
|
426
|
+
$
|
|
427
|
+
), { maxPages: ie } = e.options, w = V ? vt : Nt;
|
|
428
428
|
return {
|
|
429
|
-
pages:
|
|
430
|
-
pageParams:
|
|
429
|
+
pages: w(N.pages, he, ie),
|
|
430
|
+
pageParams: w(N.pageParams, M, ie)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
433
|
if (i && a.length) {
|
|
434
|
-
const N = i === "backward",
|
|
434
|
+
const N = i === "backward", M = N ? Xt : ze, V = {
|
|
435
435
|
pages: a,
|
|
436
436
|
pageParams: l
|
|
437
|
-
},
|
|
438
|
-
u = await Q(V,
|
|
437
|
+
}, $ = M(o, V);
|
|
438
|
+
u = await Q(V, $, N);
|
|
439
439
|
} else {
|
|
440
440
|
const N = t ?? a.length;
|
|
441
441
|
do {
|
|
442
|
-
const
|
|
443
|
-
if (m > 0 &&
|
|
442
|
+
const M = m === 0 ? l[0] ?? o.initialPageParam : ze(o, u);
|
|
443
|
+
if (m > 0 && M == null)
|
|
444
444
|
break;
|
|
445
|
-
u = await Q(u,
|
|
445
|
+
u = await Q(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, U, W, ee, te,
|
|
480
|
+
var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
|
|
481
481
|
constructor(t = {}) {
|
|
482
482
|
C(this, j);
|
|
483
483
|
C(this, U);
|
|
484
484
|
C(this, W);
|
|
485
485
|
C(this, ee);
|
|
486
486
|
C(this, te);
|
|
487
|
-
C(this,
|
|
487
|
+
C(this, K);
|
|
488
488
|
C(this, re);
|
|
489
489
|
C(this, ne);
|
|
490
|
-
y(this, j, t.queryCache || new Wt()), y(this, U, t.mutationCache || new Zt()), y(this, W, t.defaultOptions || {}), y(this, ee, /* @__PURE__ */ new Map()), y(this, te, /* @__PURE__ */ new Map()), y(this,
|
|
490
|
+
y(this, j, t.queryCache || new Wt()), y(this, U, t.mutationCache || new Zt()), y(this, W, t.defaultOptions || {}), y(this, ee, /* @__PURE__ */ new Map()), y(this, te, /* @__PURE__ */ new Map()), y(this, K, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
ce(this,
|
|
493
|
+
ce(this, K)._++, h(this, K) === 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,7 +498,7 @@ var j, U, W, ee, te, $, re, ne, Ke, Jt = (Ke = class {
|
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var t, e;
|
|
501
|
-
ce(this,
|
|
501
|
+
ce(this, K)._--, h(this, K) === 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;
|
|
@@ -536,7 +536,7 @@ var j, U, W, ee, te, $, re, ne, Ke, Jt = (Ke = class {
|
|
|
536
536
|
return h(this, j).build(this, o).setData(l, { ...n, manual: !0 });
|
|
537
537
|
}
|
|
538
538
|
setQueriesData(t, e, n) {
|
|
539
|
-
return
|
|
539
|
+
return E.batch(
|
|
540
540
|
() => h(this, j).findAll(t).map(({ queryKey: o }) => [
|
|
541
541
|
o,
|
|
542
542
|
this.setQueryData(o, e, n)
|
|
@@ -552,7 +552,7 @@ var j, U, W, ee, te, $, re, ne, Ke, Jt = (Ke = class {
|
|
|
552
552
|
}
|
|
553
553
|
removeQueries(t) {
|
|
554
554
|
const e = h(this, j);
|
|
555
|
-
|
|
555
|
+
E.batch(() => {
|
|
556
556
|
e.findAll(t).forEach((n) => {
|
|
557
557
|
e.remove(n);
|
|
558
558
|
});
|
|
@@ -560,7 +560,7 @@ var j, U, W, ee, te, $, re, ne, Ke, Jt = (Ke = class {
|
|
|
560
560
|
}
|
|
561
561
|
resetQueries(t, e) {
|
|
562
562
|
const n = h(this, j);
|
|
563
|
-
return
|
|
563
|
+
return E.batch(() => (n.findAll(t).forEach((o) => {
|
|
564
564
|
o.reset();
|
|
565
565
|
}), this.refetchQueries(
|
|
566
566
|
{
|
|
@@ -571,13 +571,13 @@ var j, U, W, ee, te, $, re, ne, Ke, Jt = (Ke = class {
|
|
|
571
571
|
)));
|
|
572
572
|
}
|
|
573
573
|
cancelQueries(t, e = {}) {
|
|
574
|
-
const n = { revert: !0, ...e }, o =
|
|
574
|
+
const n = { revert: !0, ...e }, o = E.batch(
|
|
575
575
|
() => h(this, j).findAll(t).map((i) => i.cancel(n))
|
|
576
576
|
);
|
|
577
577
|
return Promise.all(o).then(D).catch(D);
|
|
578
578
|
}
|
|
579
579
|
invalidateQueries(t, e = {}) {
|
|
580
|
-
return
|
|
580
|
+
return E.batch(() => (h(this, j).findAll(t).forEach((n) => {
|
|
581
581
|
n.invalidate();
|
|
582
582
|
}), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
583
583
|
{
|
|
@@ -591,7 +591,7 @@ var j, U, W, ee, te, $, re, ne, Ke, Jt = (Ke = class {
|
|
|
591
591
|
const n = {
|
|
592
592
|
...e,
|
|
593
593
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
594
|
-
}, o =
|
|
594
|
+
}, o = E.batch(
|
|
595
595
|
() => h(this, j).findAll(t).filter((i) => !i.isDisabled()).map((i) => {
|
|
596
596
|
let a = i.fetch(void 0, n);
|
|
597
597
|
return n.throwOnError || (a = a.catch(D)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
|
|
@@ -683,7 +683,7 @@ var j, U, W, ee, te, $, re, ne, Ke, Jt = (Ke = class {
|
|
|
683
683
|
clear() {
|
|
684
684
|
h(this, j).clear(), h(this, U).clear();
|
|
685
685
|
}
|
|
686
|
-
}, j = new WeakMap(), U = new WeakMap(), W = new WeakMap(), ee = new WeakMap(), te = new WeakMap(),
|
|
686
|
+
}, j = new WeakMap(), U = new WeakMap(), W = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), K = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), $e);
|
|
687
687
|
const Yt = [
|
|
688
688
|
"header",
|
|
689
689
|
"footer",
|
|
@@ -696,7 +696,7 @@ const Yt = [
|
|
|
696
696
|
"form",
|
|
697
697
|
"seoHeader",
|
|
698
698
|
"calculator"
|
|
699
|
-
],
|
|
699
|
+
], b = Yt.reduce(
|
|
700
700
|
(t, e) => (t[e] = e, t),
|
|
701
701
|
{}
|
|
702
702
|
), Gt = ["getFioSchema"], lt = (t, e, n) => {
|
|
@@ -731,10 +731,10 @@ const Yt = [
|
|
|
731
731
|
break;
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
}, [t]),
|
|
734
|
+
}, [t]), J = ({ handlerOptions: t, ...e }) => {
|
|
735
735
|
const n = rr(t);
|
|
736
736
|
return /* @__PURE__ */ r.jsx(ue, { onClick: n, ...e, children: e.children });
|
|
737
|
-
}, nr =
|
|
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
|
{
|
|
740
740
|
variants: {
|
|
@@ -756,7 +756,7 @@ const Yt = [
|
|
|
756
756
|
variant: u,
|
|
757
757
|
color: m
|
|
758
758
|
}) => {
|
|
759
|
-
const { isDesktop: x } =
|
|
759
|
+
const { isDesktop: x } = Y();
|
|
760
760
|
return /* @__PURE__ */ r.jsxs(
|
|
761
761
|
"li",
|
|
762
762
|
{
|
|
@@ -774,14 +774,14 @@ 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(J, { 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
|
]
|
|
781
781
|
},
|
|
782
782
|
e
|
|
783
783
|
);
|
|
784
|
-
}, ir =
|
|
784
|
+
}, ir = F("grid gap-4", {
|
|
785
785
|
variants: {
|
|
786
786
|
variant: {
|
|
787
787
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -789,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
|
-
}), Wn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id:
|
|
792
|
+
}), Wn = ({ 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,19 +801,19 @@ 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(J, { ...e });
|
|
805
805
|
case "withPhone":
|
|
806
806
|
return /* @__PURE__ */ r.jsx(Je, { classes: { root: "items-end" }, ...e, phone: se(e.phone) });
|
|
807
807
|
default:
|
|
808
808
|
return null;
|
|
809
809
|
}
|
|
810
|
-
},
|
|
810
|
+
}, Kn = (t) => {
|
|
811
811
|
const { logoPath: e = "/", logoType: n = "main", classes: o } = t;
|
|
812
812
|
return /* @__PURE__ */ r.jsx(
|
|
813
813
|
"header",
|
|
814
814
|
{
|
|
815
|
-
id:
|
|
816
|
-
"data-test-id":
|
|
815
|
+
id: b.header,
|
|
816
|
+
"data-test-id": b.header,
|
|
817
817
|
className: d("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
818
818
|
children: /* @__PURE__ */ r.jsx(S, { className: d(o == null ? void 0 : o.container), children: /* @__PURE__ */ r.jsxs("div", { className: d("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
819
819
|
/* @__PURE__ */ r.jsx(
|
|
@@ -845,7 +845,7 @@ const Yt = [
|
|
|
845
845
|
color: u
|
|
846
846
|
}) => {
|
|
847
847
|
var I;
|
|
848
|
-
const { isDesktop: m, isMobile: x } =
|
|
848
|
+
const { isDesktop: m, isMobile: x } = Y(), { primary: p, secondary: c } = n || {}, g = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: a.url }) : a, k = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, v = /* @__PURE__ */ r.jsx(
|
|
849
849
|
"div",
|
|
850
850
|
{
|
|
851
851
|
className: d(
|
|
@@ -859,12 +859,12 @@ const Yt = [
|
|
|
859
859
|
/* @__PURE__ */ r.jsxs(
|
|
860
860
|
"section",
|
|
861
861
|
{
|
|
862
|
-
id:
|
|
863
|
-
"data-test-id":
|
|
862
|
+
id: b.banner,
|
|
863
|
+
"data-test-id": b.banner,
|
|
864
864
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
865
865
|
className: d("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
866
866
|
children: [
|
|
867
|
-
/* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: x ?
|
|
867
|
+
/* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: x ? g : k }),
|
|
868
868
|
/* @__PURE__ */ r.jsxs(S, { className: d("h-full", i == null ? void 0 : i.container), children: [
|
|
869
869
|
/* @__PURE__ */ r.jsx("div", { className: d("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ r.jsxs("div", { className: d("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
|
|
870
870
|
/* @__PURE__ */ r.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
@@ -893,7 +893,7 @@ const Yt = [
|
|
|
893
893
|
),
|
|
894
894
|
children: [
|
|
895
895
|
p.enabled && /* @__PURE__ */ r.jsx(
|
|
896
|
-
|
|
896
|
+
J,
|
|
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
|
+
J,
|
|
906
906
|
{
|
|
907
907
|
intent: "secondary",
|
|
908
908
|
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
@@ -930,14 +930,14 @@ const Yt = [
|
|
|
930
930
|
imgDesktop: l,
|
|
931
931
|
color: u
|
|
932
932
|
}) => {
|
|
933
|
-
var
|
|
934
|
-
const { isMobile: m } =
|
|
933
|
+
var k, v;
|
|
934
|
+
const { isMobile: m } = Y(), { primary: x, secondary: p } = n || {}, c = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: a.alt, src: a.url }) : a, g = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
|
|
935
935
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
936
936
|
/* @__PURE__ */ r.jsx(
|
|
937
937
|
"section",
|
|
938
938
|
{
|
|
939
|
-
id:
|
|
940
|
-
"data-test-id":
|
|
939
|
+
id: b.banner,
|
|
940
|
+
"data-test-id": b.banner,
|
|
941
941
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
942
942
|
className: d("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
943
943
|
children: /* @__PURE__ */ r.jsxs(S, { className: d("relative", i == null ? void 0 : i.container), children: [
|
|
@@ -969,7 +969,7 @@ const Yt = [
|
|
|
969
969
|
),
|
|
970
970
|
children: [
|
|
971
971
|
x.enabled && /* @__PURE__ */ r.jsx(
|
|
972
|
-
|
|
972
|
+
J,
|
|
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
|
+
J,
|
|
982
982
|
{
|
|
983
983
|
intent: "secondary",
|
|
984
984
|
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
@@ -996,7 +996,7 @@ const Yt = [
|
|
|
996
996
|
"relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]",
|
|
997
997
|
i == null ? void 0 : i.imageContainer
|
|
998
998
|
),
|
|
999
|
-
children: m ? c :
|
|
999
|
+
children: m ? c : g
|
|
1000
1000
|
}
|
|
1001
1001
|
)
|
|
1002
1002
|
] }),
|
|
@@ -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) && ((
|
|
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(Ne, { ...o })
|
|
1011
1011
|
}
|
|
1012
1012
|
)
|
|
1013
1013
|
] })
|
|
@@ -1024,7 +1024,7 @@ const Yt = [
|
|
|
1024
1024
|
}
|
|
1025
1025
|
)
|
|
1026
1026
|
] });
|
|
1027
|
-
},
|
|
1027
|
+
}, $n = ({ variant: t, ...e }) => {
|
|
1028
1028
|
switch (t) {
|
|
1029
1029
|
case "separateImg":
|
|
1030
1030
|
return /* @__PURE__ */ r.jsx(Qe, { ...e });
|
|
@@ -1176,8 +1176,8 @@ const Yt = [
|
|
|
1176
1176
|
}) => /* @__PURE__ */ r.jsx(
|
|
1177
1177
|
"footer",
|
|
1178
1178
|
{
|
|
1179
|
-
id:
|
|
1180
|
-
"data-test-id":
|
|
1179
|
+
id: b.footer,
|
|
1180
|
+
"data-test-id": b.footer,
|
|
1181
1181
|
className: d("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1182
1182
|
children: /* @__PURE__ */ r.jsx(S, { className: d(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ r.jsxs("div", { className: d("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1183
1183
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -1252,7 +1252,7 @@ const Yt = [
|
|
|
1252
1252
|
]
|
|
1253
1253
|
}
|
|
1254
1254
|
);
|
|
1255
|
-
}, Xn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id:
|
|
1255
|
+
}, Xn = ({ 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",
|
|
@@ -1264,7 +1264,7 @@ const Yt = [
|
|
|
1264
1264
|
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ r.jsx(fr, { variant: n, ...i, index: a + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
1265
1265
|
}
|
|
1266
1266
|
)
|
|
1267
|
-
] }) }) }), br =
|
|
1267
|
+
] }) }) }), br = F("", {
|
|
1268
1268
|
variants: {
|
|
1269
1269
|
intent: {
|
|
1270
1270
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -1280,7 +1280,7 @@ const Yt = [
|
|
|
1280
1280
|
defaultVariants: {
|
|
1281
1281
|
intent: "twoItems"
|
|
1282
1282
|
}
|
|
1283
|
-
}), gr =
|
|
1283
|
+
}), gr = F("", {
|
|
1284
1284
|
variants: {
|
|
1285
1285
|
intent: {
|
|
1286
1286
|
twoItems: "",
|
|
@@ -1312,7 +1312,7 @@ const Yt = [
|
|
|
1312
1312
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
|
-
}), jr =
|
|
1315
|
+
}), jr = F("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1316
1316
|
variants: {
|
|
1317
1317
|
intent: {
|
|
1318
1318
|
twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
|
|
@@ -1322,7 +1322,7 @@ const Yt = [
|
|
|
1322
1322
|
defaultVariants: {
|
|
1323
1323
|
intent: "twoItems"
|
|
1324
1324
|
}
|
|
1325
|
-
}), yr =
|
|
1325
|
+
}), yr = F("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1326
1326
|
variants: {
|
|
1327
1327
|
intent: {
|
|
1328
1328
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1372,7 +1372,7 @@ const Yt = [
|
|
|
1372
1372
|
classes: a
|
|
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
|
-
return /* @__PURE__ */ r.jsx("section", { id:
|
|
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
1376
|
u && /* @__PURE__ */ r.jsx(we, { intent: n, headline: t }),
|
|
1377
1377
|
/* @__PURE__ */ r.jsxs(
|
|
1378
1378
|
"div",
|
|
@@ -1392,7 +1392,7 @@ const Yt = [
|
|
|
1392
1392
|
l && /* @__PURE__ */ r.jsx(we, { 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
|
+
J,
|
|
1396
1396
|
{
|
|
1397
1397
|
className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
|
|
1398
1398
|
size: "lg",
|
|
@@ -1490,7 +1490,7 @@ const Yt = [
|
|
|
1490
1490
|
}
|
|
1491
1491
|
)
|
|
1492
1492
|
] }), Ve = ({ mainLink: t, subLink: e, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
|
|
1493
|
-
const { isMobile: l } =
|
|
1493
|
+
const { isMobile: l } = Y();
|
|
1494
1494
|
return /* @__PURE__ */ r.jsx(mt, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1495
1495
|
"div",
|
|
1496
1496
|
{
|
|
@@ -1514,7 +1514,7 @@ const Yt = [
|
|
|
1514
1514
|
}
|
|
1515
1515
|
) });
|
|
1516
1516
|
}, Ae = ({ mainLink: t, subLink: e, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
|
|
1517
|
-
const { isMobile: l } =
|
|
1517
|
+
const { isMobile: l } = Y();
|
|
1518
1518
|
return /* @__PURE__ */ r.jsx(mt, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1519
1519
|
"div",
|
|
1520
1520
|
{
|
|
@@ -1596,7 +1596,7 @@ const Yt = [
|
|
|
1596
1596
|
n
|
|
1597
1597
|
)) }), Nr = ({ groupLabel: t, links: e, mobileAccordionProps: n, classes: o }) => {
|
|
1598
1598
|
var a, l, u;
|
|
1599
|
-
const { isMobile: i } =
|
|
1599
|
+
const { isMobile: i } = Y();
|
|
1600
1600
|
return /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1601
1601
|
!i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1602
1602
|
/* @__PURE__ */ r.jsx("h5", { className: d("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: t }),
|
|
@@ -1620,7 +1620,7 @@ const Yt = [
|
|
|
1620
1620
|
}
|
|
1621
1621
|
)
|
|
1622
1622
|
] });
|
|
1623
|
-
}, Cr = ({ column: t, mobileAccordionProps: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", n == null ? void 0 : n.column), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx(Nr, { ...e, ...o, classes: n == null ? void 0 : n.columnGroup }, o.groupLabel)) }), Ir =
|
|
1623
|
+
}, Cr = ({ column: t, mobileAccordionProps: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", n == null ? void 0 : n.column), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx(Nr, { ...e, ...o, classes: n == null ? void 0 : n.columnGroup }, o.groupLabel)) }), Ir = F("grid gap-4 grid-cols-1", {
|
|
1624
1624
|
variants: {
|
|
1625
1625
|
variant: {
|
|
1626
1626
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1644,8 +1644,8 @@ const Yt = [
|
|
|
1644
1644
|
return /* @__PURE__ */ r.jsx(
|
|
1645
1645
|
"section",
|
|
1646
1646
|
{
|
|
1647
|
-
id:
|
|
1648
|
-
"data-test-id":
|
|
1647
|
+
id: b.interLinking,
|
|
1648
|
+
"data-test-id": b.interLinking,
|
|
1649
1649
|
className: d("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1650
1650
|
children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsx(
|
|
1651
1651
|
oe,
|
|
@@ -1692,21 +1692,21 @@ const Yt = [
|
|
|
1692
1692
|
};
|
|
1693
1693
|
})
|
|
1694
1694
|
}))
|
|
1695
|
-
}), Br =
|
|
1695
|
+
}), Br = F("flex flex-col", {
|
|
1696
1696
|
variants: {
|
|
1697
1697
|
columnsVariant: {
|
|
1698
1698
|
twoCols: "w-full max-w-[656px]",
|
|
1699
1699
|
threeCols: "w-full max-w-[768px]"
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
}), Rr =
|
|
1702
|
+
}), Rr = F("desktop:grid mobile:hidden px-4 mb-4", {
|
|
1703
1703
|
variants: {
|
|
1704
1704
|
columnsVariant: {
|
|
1705
1705
|
twoCols: "grid-cols-2 gap-16",
|
|
1706
1706
|
threeCols: "grid-cols-3 gap-12"
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
}), _r = ({ headings: t, columnsVariant: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d(Rr({ columnsVariant: e }), n == null ? void 0 : n.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx("div", { className: d("text-color-secondary", n == null ? void 0 : n.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), Hr =
|
|
1709
|
+
}), _r = ({ headings: t, columnsVariant: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d(Rr({ columnsVariant: e }), n == null ? void 0 : n.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx("div", { className: d("text-color-secondary", n == null ? void 0 : n.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), Hr = F("desktop:grid mobile:hidden items-center", {
|
|
1710
1710
|
variants: {
|
|
1711
1711
|
columnsVariant: {
|
|
1712
1712
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1724,7 +1724,7 @@ const Yt = [
|
|
|
1724
1724
|
children: a && a
|
|
1725
1725
|
},
|
|
1726
1726
|
l
|
|
1727
|
-
)) }), Dr =
|
|
1727
|
+
)) }), Dr = F("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1728
1728
|
variants: {
|
|
1729
1729
|
tableVariant: {
|
|
1730
1730
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
@@ -1800,7 +1800,7 @@ const Yt = [
|
|
|
1800
1800
|
}, Vr = {
|
|
1801
1801
|
documentFilled: "files/documentFilled",
|
|
1802
1802
|
documentOutline: "files/documentOutline"
|
|
1803
|
-
}, Ar =
|
|
1803
|
+
}, Ar = F("size-8 transition-colors", {
|
|
1804
1804
|
variants: {
|
|
1805
1805
|
iconType: {
|
|
1806
1806
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1876,19 +1876,19 @@ const Yt = [
|
|
|
1876
1876
|
default:
|
|
1877
1877
|
return null;
|
|
1878
1878
|
}
|
|
1879
|
-
},
|
|
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 }) }), eo = ({ headline: t, tabs: e, classes: n, accordionsConfig: o }) => {
|
|
1880
1880
|
var u, m;
|
|
1881
1881
|
const [i, a] = z(0), l = ye(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
|
|
1882
|
-
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id:
|
|
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 }) }),
|
|
1885
|
-
/* @__PURE__ */ r.jsx("div", { className: d("mt-6 flex flex-col gap-6", n == null ? void 0 : n.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ r.jsx(
|
|
1885
|
+
/* @__PURE__ */ r.jsx("div", { className: d("mt-6 flex flex-col gap-6", n == null ? void 0 : n.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ r.jsx(Kr, { accordionsConfig: o, ...x, classes: n == null ? void 0 : n.entityClasses }, p)) })
|
|
1886
1886
|
] }) });
|
|
1887
1887
|
}, ht = ({ fields: t, control: e }) => t.map(({ type: n, args: o }) => {
|
|
1888
1888
|
const i = Ft[n];
|
|
1889
1889
|
return /* @__PURE__ */ et(i, { ...o, key: o.name, control: e });
|
|
1890
1890
|
});
|
|
1891
|
-
class
|
|
1891
|
+
class $r {
|
|
1892
1892
|
constructor(e) {
|
|
1893
1893
|
ae(this, "TEXT_NODE", 3);
|
|
1894
1894
|
ae(this, "ELEMENT_NODE", 1);
|
|
@@ -1961,7 +1961,7 @@ class Kr {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
1963
|
const Zr = typeof window < "u";
|
|
1964
|
-
class Xr extends
|
|
1964
|
+
class Xr extends $r {
|
|
1965
1965
|
constructor(e) {
|
|
1966
1966
|
super(e);
|
|
1967
1967
|
}
|
|
@@ -1999,10 +1999,10 @@ class Ce {
|
|
|
1999
1999
|
u = "style";
|
|
2000
2000
|
const x = {};
|
|
2001
2001
|
l.value.split(";").forEach((p) => {
|
|
2002
|
-
const [c,
|
|
2003
|
-
if (c &&
|
|
2004
|
-
const
|
|
2005
|
-
x[
|
|
2002
|
+
const [c, g] = p.split(":");
|
|
2003
|
+
if (c && g) {
|
|
2004
|
+
const k = c.trim().replace(/-([a-z])/g, (v, I) => I.toUpperCase());
|
|
2005
|
+
x[k] = g.trim();
|
|
2006
2006
|
}
|
|
2007
2007
|
}), m = x;
|
|
2008
2008
|
break;
|
|
@@ -2066,19 +2066,19 @@ const Jr = ({ promises: t }) => {
|
|
|
2066
2066
|
submitProps: a,
|
|
2067
2067
|
classes: l
|
|
2068
2068
|
}) => {
|
|
2069
|
-
var
|
|
2070
|
-
const { submitCallback: u, ...m } = a || {}, [x, p] = z(!1), c = ut(t), { control:
|
|
2069
|
+
var Q, N;
|
|
2070
|
+
const { submitCallback: u, ...m } = a || {}, [x, p] = z(!1), c = ut(t), g = at.getZodDefaults(c), { control: k, handleSubmit: v } = nt({
|
|
2071
2071
|
schema: c,
|
|
2072
|
-
defaultValues:
|
|
2072
|
+
defaultValues: g,
|
|
2073
2073
|
mode: "onBlur"
|
|
2074
|
-
}),
|
|
2075
|
-
u && u({ ...
|
|
2074
|
+
}), I = Yr(n, t), P = qt({ control: k, fields: I || [], schema: c }), G = (M) => {
|
|
2075
|
+
u && u({ ...M, agree: x }), console.warn(M);
|
|
2076
2076
|
};
|
|
2077
2077
|
return /* @__PURE__ */ r.jsx(en, { children: /* @__PURE__ */ r.jsxs(
|
|
2078
2078
|
"div",
|
|
2079
2079
|
{
|
|
2080
|
-
id:
|
|
2081
|
-
"data-test-id":
|
|
2080
|
+
id: b.form,
|
|
2081
|
+
"data-test-id": b.form,
|
|
2082
2082
|
className: d(
|
|
2083
2083
|
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2084
2084
|
"relative flex flex-col gap-6 rounded-sm border py-8",
|
|
@@ -2092,10 +2092,10 @@ 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
|
+
(Q = l == null ? void 0 : l.chips) == null ? void 0 : Q.root
|
|
2096
2096
|
),
|
|
2097
2097
|
children: [
|
|
2098
|
-
i.image && /* @__PURE__ */ r.jsx(f, { name: i.image, className: d("size-4", (
|
|
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) }),
|
|
2099
2099
|
i.content
|
|
2100
2100
|
]
|
|
2101
2101
|
}
|
|
@@ -2104,20 +2104,20 @@ const Jr = ({ promises: t }) => {
|
|
|
2104
2104
|
/* @__PURE__ */ r.jsxs(
|
|
2105
2105
|
"form",
|
|
2106
2106
|
{
|
|
2107
|
-
onSubmit:
|
|
2107
|
+
onSubmit: v(G),
|
|
2108
2108
|
className: d("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
|
|
2109
2109
|
children: [
|
|
2110
2110
|
n.enabled && /* @__PURE__ */ r.jsx(
|
|
2111
2111
|
St,
|
|
2112
2112
|
{
|
|
2113
|
-
progress:
|
|
2113
|
+
progress: P,
|
|
2114
2114
|
topContent: /* @__PURE__ */ r.jsx(ge, { html: n.title }),
|
|
2115
2115
|
bottomContent: /* @__PURE__ */ r.jsx(ge, { html: n.subtitle }),
|
|
2116
2116
|
maxPercent: n.maxPercent,
|
|
2117
2117
|
classes: l == null ? void 0 : l.progressBar
|
|
2118
2118
|
}
|
|
2119
2119
|
),
|
|
2120
|
-
/* @__PURE__ */ r.jsx(ht, { control:
|
|
2120
|
+
/* @__PURE__ */ r.jsx(ht, { control: k, fields: 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(
|
|
@@ -2239,7 +2239,7 @@ const Jr = ({ promises: t }) => {
|
|
|
2239
2239
|
}
|
|
2240
2240
|
u.forEach((p, c) => {
|
|
2241
2241
|
x += `/${p}`;
|
|
2242
|
-
const
|
|
2242
|
+
const g = {
|
|
2243
2243
|
// while root enabled we need to increment index
|
|
2244
2244
|
// cuz we have root breadcrumb
|
|
2245
2245
|
index: i ? c + 1 : c,
|
|
@@ -2247,7 +2247,7 @@ const Jr = ({ promises: t }) => {
|
|
|
2247
2247
|
path: x,
|
|
2248
2248
|
label: p
|
|
2249
2249
|
};
|
|
2250
|
-
m.push(
|
|
2250
|
+
m.push(g);
|
|
2251
2251
|
}), n && (m = m.map((p) => ({
|
|
2252
2252
|
...p,
|
|
2253
2253
|
...n(p)
|
|
@@ -2271,8 +2271,8 @@ const Jr = ({ promises: t }) => {
|
|
|
2271
2271
|
const [i, a] = z(!1), l = Ee(null);
|
|
2272
2272
|
zt(l, () => a(!1));
|
|
2273
2273
|
const u = rn(o), { first: m, middle: x, last: p } = ye(() => {
|
|
2274
|
-
let
|
|
2275
|
-
return e && (
|
|
2274
|
+
let g = [], k = [], v = [];
|
|
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) });
|
|
2277
2277
|
return /* @__PURE__ */ r.jsx(
|
|
2278
2278
|
"div",
|
|
@@ -2305,10 +2305,10 @@ const Jr = ({ promises: t }) => {
|
|
|
2305
2305
|
"visible opacity-100": i
|
|
2306
2306
|
}
|
|
2307
2307
|
),
|
|
2308
|
-
children: x.map((
|
|
2308
|
+
children: x.map((g) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
2309
2309
|
pt,
|
|
2310
2310
|
{
|
|
2311
|
-
breadcrumb:
|
|
2311
|
+
breadcrumb: g,
|
|
2312
2312
|
className: d(
|
|
2313
2313
|
"desk-body-regular-l inline-block py-3",
|
|
2314
2314
|
"w-full rounded-sm bg-color-white px-2",
|
|
@@ -2316,7 +2316,7 @@ const Jr = ({ promises: t }) => {
|
|
|
2316
2316
|
n == null ? void 0 : n.breadcrumb
|
|
2317
2317
|
)
|
|
2318
2318
|
}
|
|
2319
|
-
) },
|
|
2319
|
+
) }, g.id))
|
|
2320
2320
|
}
|
|
2321
2321
|
)
|
|
2322
2322
|
] }),
|
|
@@ -2660,8 +2660,8 @@ const on = (t, e) => {
|
|
|
2660
2660
|
)
|
|
2661
2661
|
] });
|
|
2662
2662
|
}, no = ({ categories: t, helpers: e, phone: n }) => {
|
|
2663
|
-
const { isMobile: o } =
|
|
2664
|
-
return /* @__PURE__ */ r.jsxs("div", { id:
|
|
2663
|
+
const { isMobile: o } = Y();
|
|
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 }),
|
|
2666
2666
|
/* @__PURE__ */ r.jsx(
|
|
2667
2667
|
nn,
|
|
@@ -2685,14 +2685,9 @@ const on = (t, e) => {
|
|
|
2685
2685
|
break;
|
|
2686
2686
|
}
|
|
2687
2687
|
return new Intl.NumberFormat("ru-RU", o).format(n);
|
|
2688
|
-
}, sn = (t) => Object.values(t).reduce((n, o) => n.merge(ut(o.fields)), At.object({})), kn = (t, e) => {
|
|
2689
|
-
const
|
|
2690
|
-
|
|
2691
|
-
throw new Error(`Отсутствуют переменные для калькулятора: ${o.join(", ")}`);
|
|
2692
|
-
return t;
|
|
2693
|
-
}, bt = (t, e) => {
|
|
2694
|
-
const n = Object.keys(e), o = Object.values(e), i = kn(t, e), l = new Function(...n, `return ${i};`)(...o);
|
|
2695
|
-
return Number.isNaN(l) ? "0" : l.toString();
|
|
2688
|
+
}, sn = (t) => Object.values(t).reduce((n, o) => n.merge(ut(o.fields)), At.object({})), kn = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, bt = (t, e) => {
|
|
2689
|
+
const n = Object.entries(e).map(([m, x]) => [m, x !== null ? x : "1"]), o = n.map(([m]) => m), i = n.map(([, m]) => m), a = kn(t, Object.fromEntries(n)), u = new Function(...o, `return ${a};`)(...i.map(Number));
|
|
2690
|
+
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2696
2691
|
}, wn = (t, e) => t.map((n) => ({
|
|
2697
2692
|
...n,
|
|
2698
2693
|
value: ct(n.value) ? bt(n.value.formula, e) : n.value
|
|
@@ -2779,18 +2774,18 @@ const on = (t, e) => {
|
|
|
2779
2774
|
),
|
|
2780
2775
|
/* @__PURE__ */ r.jsx(Rt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: Fn(o) })
|
|
2781
2776
|
] });
|
|
2782
|
-
},
|
|
2777
|
+
}, Z = ({ fields: t }) => {
|
|
2783
2778
|
const { control: e } = ot();
|
|
2784
2779
|
return /* @__PURE__ */ r.jsx(ht, { control: e, fields: t });
|
|
2785
2780
|
}, Sn = ({ modalConfig: t, fieldsGroup: e }) => /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2786
2781
|
t && /* @__PURE__ */ r.jsx(On, { ...t }),
|
|
2787
|
-
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(
|
|
2788
|
-
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ r.jsx(
|
|
2789
|
-
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(
|
|
2790
|
-
(e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(
|
|
2791
|
-
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ r.jsx(
|
|
2792
|
-
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(
|
|
2793
|
-
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(
|
|
2782
|
+
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(Z, { ...e == null ? void 0 : e.selectGroupConfig }) }),
|
|
2783
|
+
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ r.jsx(Z, { ...e == null ? void 0 : e.slidersGroupConfig }),
|
|
2784
|
+
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(Z, { ...e == null ? void 0 : e.radioGroupTabConfig }),
|
|
2785
|
+
(e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(Z, { ...e == null ? void 0 : e.checkboxGroupConfig }) }),
|
|
2786
|
+
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ r.jsx(Z, { ...e == null ? void 0 : e.radioGroupConfig }),
|
|
2787
|
+
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(Z, { ...e == null ? void 0 : e.radioGroupCardConfig }),
|
|
2788
|
+
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(Z, { ...e == null ? void 0 : e.switchGroupConfig }) })
|
|
2794
2789
|
] }), Bn = 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(
|
|
2795
2790
|
"button",
|
|
2796
2791
|
{
|
|
@@ -2806,7 +2801,6 @@ const on = (t, e) => {
|
|
|
2806
2801
|
calculatorInfoConfig: t,
|
|
2807
2802
|
calculatorFieldsConfig: e
|
|
2808
2803
|
}) => {
|
|
2809
|
-
console.log(t, "@calculatorInfoConfig"), console.log(e, "@calculatorFieldsConfig");
|
|
2810
2804
|
const n = sn(e == null ? void 0 : e.fieldsGroup), o = nt({
|
|
2811
2805
|
schema: n,
|
|
2812
2806
|
mode: "onBlur",
|
|
@@ -2819,7 +2813,7 @@ const on = (t, e) => {
|
|
|
2819
2813
|
}, oo = ({ calculators: t, headline: e }) => {
|
|
2820
2814
|
var m;
|
|
2821
2815
|
const n = t.length > 1, [o, i] = z(n ? (m = t[0]) == null ? void 0 : m.name : ""), a = ye(() => 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];
|
|
2822
|
-
return /* @__PURE__ */ r.jsx("section", { id:
|
|
2816
|
+
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: [
|
|
2823
2817
|
/* @__PURE__ */ r.jsx(H, { className: "mb-12", as: "h2", children: e }),
|
|
2824
2818
|
n && /* @__PURE__ */ r.jsx(
|
|
2825
2819
|
Bn,
|
|
@@ -2843,11 +2837,11 @@ const on = (t, e) => {
|
|
|
2843
2837
|
export {
|
|
2844
2838
|
Ne as Advantages,
|
|
2845
2839
|
Yn as AuthProvider,
|
|
2846
|
-
|
|
2840
|
+
$n as Banner,
|
|
2847
2841
|
Qe as BannerWithSeparateImg,
|
|
2848
2842
|
Wn as Benefit,
|
|
2849
2843
|
nn as Breadcrumbs,
|
|
2850
|
-
|
|
2844
|
+
J as ButtonWithHandlers,
|
|
2851
2845
|
oo as Calculator,
|
|
2852
2846
|
Rn as CalculatorView,
|
|
2853
2847
|
to as DynamicForm,
|
|
@@ -2856,7 +2850,7 @@ export {
|
|
|
2856
2850
|
Zn as Footer,
|
|
2857
2851
|
Xr as HTMLParser,
|
|
2858
2852
|
ge as HTMLRenderer,
|
|
2859
|
-
|
|
2853
|
+
Kn as Header,
|
|
2860
2854
|
Gn as InterLinking,
|
|
2861
2855
|
Jn as LongBanner,
|
|
2862
2856
|
no as SeoHeader,
|
|
@@ -2865,6 +2859,6 @@ export {
|
|
|
2865
2859
|
Yt as WIDGET_LIST,
|
|
2866
2860
|
ut as getDynamicSchema,
|
|
2867
2861
|
Gr as queryClient,
|
|
2868
|
-
|
|
2862
|
+
b as widgetIds
|
|
2869
2863
|
};
|
|
2870
2864
|
//# sourceMappingURL=widget.js.map
|