@scbt-ecom/ui 0.65.0 → 0.67.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 +40 -44
- package/dist/hooks.js.map +1 -1
- package/dist/{index-BC0CWE5w.js → index-CVI7dOhZ.js} +11412 -10821
- package/dist/index-CVI7dOhZ.js.map +1 -0
- package/dist/index-cm9kMt4X.js +435 -0
- package/dist/index-cm9kMt4X.js.map +1 -0
- package/dist/shared/types/dicriminatedUnion.d.ts +7 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/keysOf.d.ts +5 -0
- package/dist/shared/ui/button/model/helpers.d.ts +1 -1
- package/dist/shared/ui/carousel/CarouselBase.d.ts +29 -0
- package/dist/shared/ui/carousel/CarouselNative.d.ts +6 -0
- package/dist/shared/ui/carousel/index.d.ts +3 -0
- package/dist/shared/ui/carousel/model/helpers.d.ts +9 -0
- package/dist/shared/ui/carousel/model/hooks/index.d.ts +3 -0
- package/dist/shared/ui/carousel/model/hooks/useArrowNavigation.d.ts +12 -0
- package/dist/shared/ui/carousel/model/hooks/useCarousel.d.ts +12 -0
- package/dist/shared/ui/carousel/model/hooks/useDotsNavigation.d.ts +15 -0
- package/dist/shared/ui/carousel/model/index.d.ts +3 -0
- package/dist/shared/ui/carousel/model/types.d.ts +27 -0
- package/dist/shared/ui/carousel/ui/ArrowNavigationButton.d.ts +13 -0
- package/dist/shared/ui/carousel/ui/CarouselContent.d.ts +16 -0
- package/dist/shared/ui/carousel/ui/CarouselSlide.d.ts +10 -0
- package/dist/shared/ui/carousel/ui/ContainerWithNavigation.d.ts +16 -0
- package/dist/shared/ui/carousel/ui/DotsNavigations.d.ts +13 -0
- package/dist/shared/ui/carousel/ui/index.d.ts +5 -0
- package/dist/shared/ui/carousel/ui/slideVariants/SlideFullScreen.d.ts +19 -0
- package/dist/shared/ui/carousel/ui/slideVariants/SlideOnlyImage.d.ts +11 -0
- package/dist/shared/ui/carousel/ui/slideVariants/SlideProductCard.d.ts +20 -0
- package/dist/shared/ui/carousel/ui/slideVariants/index.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +2 -0
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupCardControl.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupTabControl.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/radio/index.d.ts +2 -0
- package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +7 -6
- package/dist/shared/ui/formElements/uncontrolled/input/Input.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/maskInput/MaskInput.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/radio/RadioGroup.d.ts +12 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/index.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/AdditionalContent.d.ts +12 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +3 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItemCard.d.ts +4 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItemTab.d.ts +4 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/index.d.ts +3 -1
- package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/select/ui/SelectItem.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/textarea/Textarea.d.ts +1 -1
- package/dist/shared/ui/heading/Heading.d.ts +1 -1
- package/dist/shared/ui/hint/Hint.d.ts +1 -0
- package/dist/shared/ui/icon/sprite.gen.d.ts +1 -1
- package/dist/shared/ui/index.d.ts +1 -0
- package/dist/shared/ui/popover/Popover.d.ts +2 -1
- package/dist/shared/validation/base/base.validators.d.ts +2 -0
- package/dist/shared/validation/base/boolean.validators.d.ts +13 -0
- package/dist/shared/validation/base/number.validators.d.ts +1 -0
- package/dist/shared/validation/base/select.validators.d.ts +1 -0
- package/dist/shared/validation/base/string.validators.d.ts +1 -0
- package/dist/shared/validation/index.d.ts +1 -0
- package/dist/sprites/general.svg +1 -1
- package/dist/ui.js +2574 -1038
- package/dist/ui.js.map +1 -1
- package/dist/useDebounce-B-41PFpS.js +1211 -0
- package/dist/useDebounce-B-41PFpS.js.map +1 -0
- package/dist/useFieldsProgress-BQ99Vijl.js +26 -0
- package/dist/useFieldsProgress-BQ99Vijl.js.map +1 -0
- package/dist/validation.js +1 -1
- package/dist/widget.js +1126 -954
- package/dist/widget.js.map +1 -1
- package/dist/widgets/calculator/Calculator.d.ts +7 -0
- package/dist/widgets/calculator/CalculatorRoot.d.ts +8 -0
- package/dist/widgets/calculator/index.d.ts +2 -0
- package/dist/widgets/calculator/model/helpers.d.ts +4 -0
- package/dist/widgets/calculator/model/index.d.ts +3 -0
- package/dist/widgets/calculator/model/types.d.ts +9 -0
- package/dist/widgets/calculator/model/utils.d.ts +11 -0
- package/dist/widgets/calculator/ui/CalculatorTabs.d.ts +12 -0
- package/dist/widgets/calculator/ui/calculatorInfo/CalculatorInfo.d.ts +4 -0
- package/dist/widgets/calculator/ui/calculatorInfo/index.d.ts +2 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/AssistHint.d.ts +7 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatedBlock.d.ts +7 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.d.ts +5 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +8 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoHead.d.ts +5 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +15 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/index.d.ts +6 -0
- package/dist/widgets/calculator/ui/index.d.ts +3 -0
- package/dist/widgets/calculator/ui/rootCalculator/RootCalculator.d.ts +14 -0
- package/dist/widgets/calculator/ui/rootCalculator/index.d.ts +1 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/CalculatorModal.d.ts +8 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/CheckboxGroup.d.ts +9 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/RadioGroup.d.ts +11 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/SlidersGroup.d.ts +9 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/SwitchGroup.d.ts +9 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/index.d.ts +5 -0
- package/dist/widgets/dynamicForm/DynamicForm.d.ts +2 -1
- package/dist/widgets/dynamicForm/model/getDynamicSchema.d.ts +0 -10
- package/dist/widgets/dynamicForm/model/index.d.ts +0 -1
- package/dist/widgets/fieldMapper/index.d.ts +1 -1
- package/dist/widgets/fieldMapper/model/types.d.ts +6 -0
- package/dist/widgets/index.d.ts +1 -0
- package/dist/widgets/model/helpers.d.ts +2 -2
- package/dist/widgets/model/index.d.ts +1 -0
- package/dist/widgets/model/utils.d.ts +10 -0
- package/package.json +6 -2
- package/dist/index-BC0CWE5w.js.map +0 -1
- package/dist/index-BKXpPQ1s.js +0 -426
- package/dist/index-BKXpPQ1s.js.map +0 -1
- package/dist/useDebounce-i1sdXecI.js +0 -1196
- package/dist/useDebounce-i1sdXecI.js.map +0 -1
- package/dist/useFieldsProgress-C3nmU8Vi.js +0 -21
- package/dist/useFieldsProgress-C3nmU8Vi.js.map +0 -1
package/dist/widget.js
CHANGED
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var St = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var it = (e, t,
|
|
7
|
-
var h = (e, t,
|
|
8
|
-
var
|
|
5
|
+
var je = (e, t, n) => t in e ? ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var it = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n), kt = (e, t, n) => t.has(e) || St("Cannot " + n);
|
|
7
|
+
var h = (e, t, n) => (kt(e, t, "read from private field"), n ? n.call(e) : t.get(e)), C = (e, t, n) => t.has(e) ? St("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), y = (e, t, n, o) => (kt(e, t, "write to private field"), o ? o.call(e, n) : t.set(e, n), n), V = (e, t, n) => (kt(e, t, "access private method"), n);
|
|
8
|
+
var ct = (e, t, n, o) => ({
|
|
9
9
|
set _(i) {
|
|
10
|
-
y(e, t, i,
|
|
10
|
+
y(e, t, i, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return h(e, t,
|
|
13
|
+
return h(e, t, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as
|
|
17
|
-
import {
|
|
16
|
+
import { S as Xt, x as Jt, Q as ye, y as T, z as Bt, E as se, F as ke, G as Rt, J as P, T as we, W as ve, X as Ne, Y as Ce, Z as _t, _ as Ht, $ as Ie, a0 as Dt, a1 as Pt, a2 as Me, j as r, B as jt, c as E, R as S, n as Yt, s as Te, H, i as f, t as yt, q as Mt, L as Ee, o as Tt, A as nt, v as Fe, a3 as Oe, r as Se, U as Gt, a4 as Et, a5 as Be, M as Re } from "./index-CVI7dOhZ.js";
|
|
17
|
+
import { T as s, c as a } from "./typeGuards-Bhdr9KYW.js";
|
|
18
18
|
import * as at from "react";
|
|
19
|
-
import { useCallback as
|
|
20
|
-
import { s as
|
|
21
|
-
import { i as
|
|
22
|
-
import {
|
|
23
|
-
import { o as
|
|
24
|
-
import { z as
|
|
25
|
-
import { u as
|
|
26
|
-
import { createPortal as
|
|
27
|
-
var
|
|
19
|
+
import { useCallback as te, useState as z, useMemo as Ft, createElement as ee, Fragment as _e, useEffect as re, useRef as Ot, useReducer as He, memo as ne, forwardRef as De } from "react";
|
|
20
|
+
import { s as Pe, c as st, g as Lt, a as Le } from "./uuid-2wKG15vy.js";
|
|
21
|
+
import { i as oe } from "./isClient-C9aZtt2Q.js";
|
|
22
|
+
import { u as Y, b as ie, a as ze, g as mt, F as Qe } from "./useDebounce-B-41PFpS.js";
|
|
23
|
+
import { o as Ae, z as Ve } from "./utils-DaXd4sci.js";
|
|
24
|
+
import { z as de, Z as ae } from "./index-cm9kMt4X.js";
|
|
25
|
+
import { a as qe, u as Ue } from "./useFieldsProgress-BQ99Vijl.js";
|
|
26
|
+
import { createPortal as le } from "react-dom";
|
|
27
|
+
var B, Wt, We = (Wt = class extends Xt {
|
|
28
28
|
constructor(t = {}) {
|
|
29
29
|
super();
|
|
30
|
-
C(this,
|
|
31
|
-
this.config = t, y(this,
|
|
30
|
+
C(this, B);
|
|
31
|
+
this.config = t, y(this, B, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
|
-
build(t,
|
|
34
|
-
const i =
|
|
33
|
+
build(t, n, o) {
|
|
34
|
+
const i = n.queryKey, d = n.queryHash ?? Jt(i, n);
|
|
35
35
|
let l = this.get(d);
|
|
36
|
-
return l || (l = new
|
|
36
|
+
return l || (l = new ye({
|
|
37
37
|
client: t,
|
|
38
38
|
queryKey: i,
|
|
39
39
|
queryHash: d,
|
|
40
|
-
options: t.defaultQueryOptions(
|
|
41
|
-
state:
|
|
40
|
+
options: t.defaultQueryOptions(n),
|
|
41
|
+
state: o,
|
|
42
42
|
defaultOptions: t.getQueryDefaults(i)
|
|
43
43
|
}), this.add(l)), l;
|
|
44
44
|
}
|
|
45
45
|
add(t) {
|
|
46
|
-
h(this,
|
|
46
|
+
h(this, B).has(t.queryHash) || (h(this, B).set(t.queryHash, t), this.notify({
|
|
47
47
|
type: "added",
|
|
48
48
|
query: t
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
remove(t) {
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const n = h(this, B).get(t.queryHash);
|
|
53
|
+
n && (t.destroy(), n === t && h(this, B).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
|
-
|
|
56
|
+
T.batch(() => {
|
|
57
57
|
this.getAll().forEach((t) => {
|
|
58
58
|
this.remove(t);
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
get(t) {
|
|
63
|
-
return h(this,
|
|
63
|
+
return h(this, B).get(t);
|
|
64
64
|
}
|
|
65
65
|
getAll() {
|
|
66
|
-
return [...h(this,
|
|
66
|
+
return [...h(this, B).values()];
|
|
67
67
|
}
|
|
68
68
|
find(t) {
|
|
69
|
-
const
|
|
69
|
+
const n = { exact: !0, ...t };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(
|
|
71
|
+
(o) => Bt(n, o)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
findAll(t = {}) {
|
|
75
|
-
const
|
|
76
|
-
return Object.keys(t).length > 0 ?
|
|
75
|
+
const n = this.getAll();
|
|
76
|
+
return Object.keys(t).length > 0 ? n.filter((o) => Bt(t, o)) : n;
|
|
77
77
|
}
|
|
78
78
|
notify(t) {
|
|
79
|
-
|
|
80
|
-
this.listeners.forEach((
|
|
81
|
-
|
|
79
|
+
T.batch(() => {
|
|
80
|
+
this.listeners.forEach((n) => {
|
|
81
|
+
n(t);
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
onFocus() {
|
|
86
|
-
|
|
86
|
+
T.batch(() => {
|
|
87
87
|
this.getAll().forEach((t) => {
|
|
88
88
|
t.onFocus();
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
onOnline() {
|
|
93
|
-
|
|
93
|
+
T.batch(() => {
|
|
94
94
|
this.getAll().forEach((t) => {
|
|
95
95
|
t.onOnline();
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, B = new WeakMap(), Wt), R, M, X, _, q, $t, $e = ($t = class extends se {
|
|
100
100
|
constructor(t) {
|
|
101
101
|
super();
|
|
102
|
+
C(this, _);
|
|
102
103
|
C(this, R);
|
|
103
|
-
C(this,
|
|
104
|
-
C(this, I);
|
|
104
|
+
C(this, M);
|
|
105
105
|
C(this, X);
|
|
106
|
-
this.mutationId = t.mutationId, y(this,
|
|
106
|
+
this.mutationId = t.mutationId, y(this, M, t.mutationCache), y(this, R, []), this.state = t.state || Ke(), this.setOptions(t.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(t) {
|
|
109
109
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -112,21 +112,21 @@ var F, zt, Re = (zt = class extends Vt {
|
|
|
112
112
|
return this.options.meta;
|
|
113
113
|
}
|
|
114
114
|
addObserver(t) {
|
|
115
|
-
h(this,
|
|
115
|
+
h(this, R).includes(t) || (h(this, R).push(t), this.clearGcTimeout(), h(this, M).notify({
|
|
116
116
|
type: "observerAdded",
|
|
117
117
|
mutation: this,
|
|
118
118
|
observer: t
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(t) {
|
|
122
|
-
y(this,
|
|
122
|
+
y(this, R, h(this, R).filter((n) => n !== t)), this.scheduleGc(), h(this, M).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: t
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
optionalRemove() {
|
|
129
|
-
h(this,
|
|
129
|
+
h(this, R).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, M).remove(this));
|
|
130
130
|
}
|
|
131
131
|
continue() {
|
|
132
132
|
var t;
|
|
@@ -134,110 +134,113 @@ var F, zt, Re = (zt = class extends Vt {
|
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(t) {
|
|
137
|
-
var
|
|
138
|
-
|
|
137
|
+
var d, l, u, m, p, x, c, b, w, v, I, D, K, Q, N, F, A, Z, ht, ot;
|
|
138
|
+
const n = () => {
|
|
139
|
+
V(this, _, q).call(this, { type: "continue" });
|
|
140
|
+
};
|
|
141
|
+
y(this, X, ke({
|
|
139
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
140
|
-
onFail: (
|
|
141
|
-
|
|
143
|
+
onFail: (k, xt) => {
|
|
144
|
+
V(this, _, q).call(this, { type: "failed", failureCount: k, error: xt });
|
|
142
145
|
},
|
|
143
146
|
onPause: () => {
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
onContinue: () => {
|
|
147
|
-
z(this, R, q).call(this, { type: "continue" });
|
|
147
|
+
V(this, _, q).call(this, { type: "pause" });
|
|
148
148
|
},
|
|
149
|
+
onContinue: n,
|
|
149
150
|
retry: this.options.retry ?? 0,
|
|
150
151
|
retryDelay: this.options.retryDelay,
|
|
151
152
|
networkMode: this.options.networkMode,
|
|
152
|
-
canRun: () => h(this,
|
|
153
|
+
canRun: () => h(this, M).canRun(this)
|
|
153
154
|
}));
|
|
154
|
-
const
|
|
155
|
+
const o = this.state.status === "pending", i = !h(this, X).canStart();
|
|
155
156
|
try {
|
|
156
|
-
if (
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
if (o)
|
|
158
|
+
n();
|
|
159
|
+
else {
|
|
160
|
+
V(this, _, q).call(this, { type: "pending", variables: t, isPaused: i }), await ((l = (d = h(this, M).config).onMutate) == null ? void 0 : l.call(
|
|
161
|
+
d,
|
|
159
162
|
t,
|
|
160
163
|
this
|
|
161
164
|
));
|
|
162
|
-
const
|
|
163
|
-
|
|
165
|
+
const xt = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, t));
|
|
166
|
+
xt !== this.state.context && V(this, _, q).call(this, {
|
|
164
167
|
type: "pending",
|
|
165
|
-
context:
|
|
168
|
+
context: xt,
|
|
166
169
|
variables: t,
|
|
167
|
-
isPaused:
|
|
170
|
+
isPaused: i
|
|
168
171
|
});
|
|
169
172
|
}
|
|
170
|
-
const
|
|
171
|
-
return await ((
|
|
173
|
+
const k = await h(this, X).start();
|
|
174
|
+
return await ((x = (p = h(this, M).config).onSuccess) == null ? void 0 : x.call(
|
|
172
175
|
p,
|
|
173
|
-
|
|
176
|
+
k,
|
|
174
177
|
t,
|
|
175
178
|
this.state.context,
|
|
176
179
|
this
|
|
177
|
-
)), await ((
|
|
178
|
-
b,
|
|
180
|
+
)), await ((b = (c = this.options).onSuccess) == null ? void 0 : b.call(c, k, t, this.state.context)), await ((v = (w = h(this, M).config).onSettled) == null ? void 0 : v.call(
|
|
179
181
|
w,
|
|
182
|
+
k,
|
|
180
183
|
null,
|
|
181
184
|
this.state.variables,
|
|
182
185
|
this.state.context,
|
|
183
186
|
this
|
|
184
|
-
)), await ((
|
|
185
|
-
} catch (
|
|
187
|
+
)), await ((D = (I = this.options).onSettled) == null ? void 0 : D.call(I, k, null, t, this.state.context)), V(this, _, q).call(this, { type: "success", data: k }), k;
|
|
188
|
+
} catch (k) {
|
|
186
189
|
try {
|
|
187
|
-
throw await ((
|
|
188
|
-
|
|
189
|
-
|
|
190
|
+
throw await ((Q = (K = h(this, M).config).onError) == null ? void 0 : Q.call(
|
|
191
|
+
K,
|
|
192
|
+
k,
|
|
190
193
|
t,
|
|
191
194
|
this.state.context,
|
|
192
195
|
this
|
|
193
|
-
)), await ((
|
|
194
|
-
|
|
195
|
-
|
|
196
|
+
)), await ((F = (N = this.options).onError) == null ? void 0 : F.call(
|
|
197
|
+
N,
|
|
198
|
+
k,
|
|
196
199
|
t,
|
|
197
200
|
this.state.context
|
|
198
|
-
)), await ((
|
|
199
|
-
|
|
201
|
+
)), await ((Z = (A = h(this, M).config).onSettled) == null ? void 0 : Z.call(
|
|
202
|
+
A,
|
|
200
203
|
void 0,
|
|
201
|
-
|
|
204
|
+
k,
|
|
202
205
|
this.state.variables,
|
|
203
206
|
this.state.context,
|
|
204
207
|
this
|
|
205
|
-
)), await ((
|
|
206
|
-
|
|
208
|
+
)), await ((ot = (ht = this.options).onSettled) == null ? void 0 : ot.call(
|
|
209
|
+
ht,
|
|
207
210
|
void 0,
|
|
208
|
-
|
|
211
|
+
k,
|
|
209
212
|
t,
|
|
210
213
|
this.state.context
|
|
211
|
-
)),
|
|
214
|
+
)), k;
|
|
212
215
|
} finally {
|
|
213
|
-
|
|
216
|
+
V(this, _, q).call(this, { type: "error", error: k });
|
|
214
217
|
}
|
|
215
218
|
} finally {
|
|
216
|
-
h(this,
|
|
219
|
+
h(this, M).runNext(this);
|
|
217
220
|
}
|
|
218
221
|
}
|
|
219
|
-
},
|
|
220
|
-
const
|
|
222
|
+
}, R = new WeakMap(), M = new WeakMap(), X = new WeakMap(), _ = new WeakSet(), q = function(t) {
|
|
223
|
+
const n = (o) => {
|
|
221
224
|
switch (t.type) {
|
|
222
225
|
case "failed":
|
|
223
226
|
return {
|
|
224
|
-
...
|
|
227
|
+
...o,
|
|
225
228
|
failureCount: t.failureCount,
|
|
226
229
|
failureReason: t.error
|
|
227
230
|
};
|
|
228
231
|
case "pause":
|
|
229
232
|
return {
|
|
230
|
-
...
|
|
233
|
+
...o,
|
|
231
234
|
isPaused: !0
|
|
232
235
|
};
|
|
233
236
|
case "continue":
|
|
234
237
|
return {
|
|
235
|
-
...
|
|
238
|
+
...o,
|
|
236
239
|
isPaused: !1
|
|
237
240
|
};
|
|
238
241
|
case "pending":
|
|
239
242
|
return {
|
|
240
|
-
...
|
|
243
|
+
...o,
|
|
241
244
|
context: t.context,
|
|
242
245
|
data: void 0,
|
|
243
246
|
failureCount: 0,
|
|
@@ -250,7 +253,7 @@ var F, zt, Re = (zt = class extends Vt {
|
|
|
250
253
|
};
|
|
251
254
|
case "success":
|
|
252
255
|
return {
|
|
253
|
-
...
|
|
256
|
+
...o,
|
|
254
257
|
data: t.data,
|
|
255
258
|
failureCount: 0,
|
|
256
259
|
failureReason: null,
|
|
@@ -260,27 +263,27 @@ var F, zt, Re = (zt = class extends Vt {
|
|
|
260
263
|
};
|
|
261
264
|
case "error":
|
|
262
265
|
return {
|
|
263
|
-
...
|
|
266
|
+
...o,
|
|
264
267
|
data: void 0,
|
|
265
268
|
error: t.error,
|
|
266
|
-
failureCount:
|
|
269
|
+
failureCount: o.failureCount + 1,
|
|
267
270
|
failureReason: t.error,
|
|
268
271
|
isPaused: !1,
|
|
269
272
|
status: "error"
|
|
270
273
|
};
|
|
271
274
|
}
|
|
272
275
|
};
|
|
273
|
-
this.state =
|
|
274
|
-
h(this,
|
|
275
|
-
|
|
276
|
-
}), h(this,
|
|
276
|
+
this.state = n(this.state), T.batch(() => {
|
|
277
|
+
h(this, R).forEach((o) => {
|
|
278
|
+
o.onMutationUpdate(t);
|
|
279
|
+
}), h(this, M).notify({
|
|
277
280
|
mutation: this,
|
|
278
281
|
type: "updated",
|
|
279
282
|
action: t
|
|
280
283
|
});
|
|
281
284
|
});
|
|
282
|
-
},
|
|
283
|
-
function
|
|
285
|
+
}, $t);
|
|
286
|
+
function Ke() {
|
|
284
287
|
return {
|
|
285
288
|
context: void 0,
|
|
286
289
|
data: void 0,
|
|
@@ -293,50 +296,50 @@ function He() {
|
|
|
293
296
|
submittedAt: 0
|
|
294
297
|
};
|
|
295
298
|
}
|
|
296
|
-
var
|
|
299
|
+
var L, O, ut, Kt, Ze = (Kt = class extends Xt {
|
|
297
300
|
constructor(t = {}) {
|
|
298
301
|
super();
|
|
299
|
-
C(this,
|
|
300
|
-
C(this,
|
|
302
|
+
C(this, L);
|
|
303
|
+
C(this, O);
|
|
301
304
|
C(this, ut);
|
|
302
|
-
this.config = t, y(this,
|
|
305
|
+
this.config = t, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this, ut, 0);
|
|
303
306
|
}
|
|
304
|
-
build(t,
|
|
305
|
-
const i = new
|
|
307
|
+
build(t, n, o) {
|
|
308
|
+
const i = new $e({
|
|
306
309
|
mutationCache: this,
|
|
307
|
-
mutationId: ++
|
|
308
|
-
options: t.defaultMutationOptions(
|
|
309
|
-
state:
|
|
310
|
+
mutationId: ++ct(this, ut)._,
|
|
311
|
+
options: t.defaultMutationOptions(n),
|
|
312
|
+
state: o
|
|
310
313
|
});
|
|
311
314
|
return this.add(i), i;
|
|
312
315
|
}
|
|
313
316
|
add(t) {
|
|
314
|
-
h(this,
|
|
315
|
-
const
|
|
316
|
-
if (typeof
|
|
317
|
-
const
|
|
318
|
-
|
|
317
|
+
h(this, L).add(t);
|
|
318
|
+
const n = ft(t);
|
|
319
|
+
if (typeof n == "string") {
|
|
320
|
+
const o = h(this, O).get(n);
|
|
321
|
+
o ? o.push(t) : h(this, O).set(n, [t]);
|
|
319
322
|
}
|
|
320
323
|
this.notify({ type: "added", mutation: t });
|
|
321
324
|
}
|
|
322
325
|
remove(t) {
|
|
323
|
-
if (h(this,
|
|
324
|
-
const
|
|
325
|
-
if (typeof
|
|
326
|
-
const
|
|
327
|
-
if (
|
|
328
|
-
if (
|
|
329
|
-
const i =
|
|
330
|
-
i !== -1 &&
|
|
331
|
-
} else
|
|
326
|
+
if (h(this, L).delete(t)) {
|
|
327
|
+
const n = ft(t);
|
|
328
|
+
if (typeof n == "string") {
|
|
329
|
+
const o = h(this, O).get(n);
|
|
330
|
+
if (o)
|
|
331
|
+
if (o.length > 1) {
|
|
332
|
+
const i = o.indexOf(t);
|
|
333
|
+
i !== -1 && o.splice(i, 1);
|
|
334
|
+
} else o[0] === t && h(this, O).delete(n);
|
|
332
335
|
}
|
|
333
336
|
}
|
|
334
337
|
this.notify({ type: "removed", mutation: t });
|
|
335
338
|
}
|
|
336
339
|
canRun(t) {
|
|
337
|
-
const
|
|
338
|
-
if (typeof
|
|
339
|
-
const
|
|
340
|
+
const n = ft(t);
|
|
341
|
+
if (typeof n == "string") {
|
|
342
|
+
const o = h(this, O).get(n), i = o == null ? void 0 : o.find(
|
|
340
343
|
(d) => d.state.status === "pending"
|
|
341
344
|
);
|
|
342
345
|
return !i || i === t;
|
|
@@ -344,164 +347,164 @@ var D, S, ut, At, Pe = (At = class extends Vt {
|
|
|
344
347
|
return !0;
|
|
345
348
|
}
|
|
346
349
|
runNext(t) {
|
|
347
|
-
var
|
|
348
|
-
const
|
|
349
|
-
if (typeof
|
|
350
|
-
const i = (
|
|
350
|
+
var o;
|
|
351
|
+
const n = ft(t);
|
|
352
|
+
if (typeof n == "string") {
|
|
353
|
+
const i = (o = h(this, O).get(n)) == null ? void 0 : o.find((d) => d !== t && d.state.isPaused);
|
|
351
354
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
352
355
|
} else
|
|
353
356
|
return Promise.resolve();
|
|
354
357
|
}
|
|
355
358
|
clear() {
|
|
356
|
-
|
|
357
|
-
h(this,
|
|
359
|
+
T.batch(() => {
|
|
360
|
+
h(this, L).forEach((t) => {
|
|
358
361
|
this.notify({ type: "removed", mutation: t });
|
|
359
|
-
}), h(this,
|
|
362
|
+
}), h(this, L).clear(), h(this, O).clear();
|
|
360
363
|
});
|
|
361
364
|
}
|
|
362
365
|
getAll() {
|
|
363
|
-
return Array.from(h(this,
|
|
366
|
+
return Array.from(h(this, L));
|
|
364
367
|
}
|
|
365
368
|
find(t) {
|
|
366
|
-
const
|
|
369
|
+
const n = { exact: !0, ...t };
|
|
367
370
|
return this.getAll().find(
|
|
368
|
-
(
|
|
371
|
+
(o) => Rt(n, o)
|
|
369
372
|
);
|
|
370
373
|
}
|
|
371
374
|
findAll(t = {}) {
|
|
372
|
-
return this.getAll().filter((
|
|
375
|
+
return this.getAll().filter((n) => Rt(t, n));
|
|
373
376
|
}
|
|
374
377
|
notify(t) {
|
|
375
|
-
|
|
376
|
-
this.listeners.forEach((
|
|
377
|
-
|
|
378
|
+
T.batch(() => {
|
|
379
|
+
this.listeners.forEach((n) => {
|
|
380
|
+
n(t);
|
|
378
381
|
});
|
|
379
382
|
});
|
|
380
383
|
}
|
|
381
384
|
resumePausedMutations() {
|
|
382
|
-
const t = this.getAll().filter((
|
|
383
|
-
return
|
|
385
|
+
const t = this.getAll().filter((n) => n.state.isPaused);
|
|
386
|
+
return T.batch(
|
|
384
387
|
() => Promise.all(
|
|
385
|
-
t.map((
|
|
388
|
+
t.map((n) => n.continue().catch(P))
|
|
386
389
|
)
|
|
387
390
|
);
|
|
388
391
|
}
|
|
389
|
-
},
|
|
390
|
-
function
|
|
392
|
+
}, L = new WeakMap(), O = new WeakMap(), ut = new WeakMap(), Kt);
|
|
393
|
+
function ft(e) {
|
|
391
394
|
var t;
|
|
392
395
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
393
396
|
}
|
|
394
|
-
function
|
|
397
|
+
function zt(e) {
|
|
395
398
|
return {
|
|
396
|
-
onFetch: (t,
|
|
397
|
-
var x,
|
|
398
|
-
const
|
|
399
|
-
let u = { pages: [], pageParams: [] },
|
|
400
|
-
const
|
|
401
|
-
let
|
|
402
|
-
const
|
|
403
|
-
Object.defineProperty(
|
|
399
|
+
onFetch: (t, n) => {
|
|
400
|
+
var x, c, b, w, v;
|
|
401
|
+
const o = t.options, i = (b = (c = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : b.direction, d = ((w = t.state.data) == null ? void 0 : w.pages) || [], l = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
|
|
402
|
+
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
|
+
const p = async () => {
|
|
404
|
+
let I = !1;
|
|
405
|
+
const D = (N) => {
|
|
406
|
+
Object.defineProperty(N, "signal", {
|
|
404
407
|
enumerable: !0,
|
|
405
|
-
get: () => (t.signal.aborted ?
|
|
406
|
-
|
|
408
|
+
get: () => (t.signal.aborted ? I = !0 : t.signal.addEventListener("abort", () => {
|
|
409
|
+
I = !0;
|
|
407
410
|
}), t.signal)
|
|
408
411
|
});
|
|
409
|
-
}, K =
|
|
410
|
-
if (
|
|
412
|
+
}, K = we(t.options, t.fetchOptions), Q = async (N, F, A) => {
|
|
413
|
+
if (I)
|
|
411
414
|
return Promise.reject();
|
|
412
|
-
if (
|
|
413
|
-
return Promise.resolve(
|
|
414
|
-
const
|
|
415
|
+
if (F == null && N.pages.length)
|
|
416
|
+
return Promise.resolve(N);
|
|
417
|
+
const Z = {
|
|
415
418
|
client: t.client,
|
|
416
419
|
queryKey: t.queryKey,
|
|
417
|
-
pageParam:
|
|
418
|
-
direction:
|
|
420
|
+
pageParam: F,
|
|
421
|
+
direction: A ? "backward" : "forward",
|
|
419
422
|
meta: t.options.meta
|
|
420
423
|
};
|
|
421
|
-
|
|
422
|
-
const
|
|
423
|
-
|
|
424
|
-
), { maxPages:
|
|
424
|
+
D(Z);
|
|
425
|
+
const ht = await K(
|
|
426
|
+
Z
|
|
427
|
+
), { maxPages: ot } = t.options, k = A ? ve : Ne;
|
|
425
428
|
return {
|
|
426
|
-
pages:
|
|
427
|
-
pageParams:
|
|
429
|
+
pages: k(N.pages, ht, ot),
|
|
430
|
+
pageParams: k(N.pageParams, F, ot)
|
|
428
431
|
};
|
|
429
432
|
};
|
|
430
433
|
if (i && d.length) {
|
|
431
|
-
const
|
|
434
|
+
const N = i === "backward", F = N ? Xe : Qt, A = {
|
|
432
435
|
pages: d,
|
|
433
436
|
pageParams: l
|
|
434
|
-
},
|
|
435
|
-
u = await
|
|
437
|
+
}, Z = F(o, A);
|
|
438
|
+
u = await Q(A, Z, N);
|
|
436
439
|
} else {
|
|
437
|
-
const
|
|
440
|
+
const N = e ?? d.length;
|
|
438
441
|
do {
|
|
439
|
-
const
|
|
440
|
-
if (
|
|
442
|
+
const F = m === 0 ? l[0] ?? o.initialPageParam : Qt(o, u);
|
|
443
|
+
if (m > 0 && F == null)
|
|
441
444
|
break;
|
|
442
|
-
u = await
|
|
443
|
-
} while (
|
|
445
|
+
u = await Q(u, F), m++;
|
|
446
|
+
} while (m < N);
|
|
444
447
|
}
|
|
445
448
|
return u;
|
|
446
449
|
};
|
|
447
450
|
t.options.persister ? t.fetchFn = () => {
|
|
448
|
-
var
|
|
449
|
-
return (
|
|
450
|
-
|
|
451
|
-
|
|
451
|
+
var I, D;
|
|
452
|
+
return (D = (I = t.options).persister) == null ? void 0 : D.call(
|
|
453
|
+
I,
|
|
454
|
+
p,
|
|
452
455
|
{
|
|
453
456
|
client: t.client,
|
|
454
457
|
queryKey: t.queryKey,
|
|
455
458
|
meta: t.options.meta,
|
|
456
459
|
signal: t.signal
|
|
457
460
|
},
|
|
458
|
-
|
|
461
|
+
n
|
|
459
462
|
);
|
|
460
|
-
} : t.fetchFn =
|
|
463
|
+
} : t.fetchFn = p;
|
|
461
464
|
}
|
|
462
465
|
};
|
|
463
466
|
}
|
|
464
|
-
function
|
|
465
|
-
const
|
|
467
|
+
function Qt(e, { pages: t, pageParams: n }) {
|
|
468
|
+
const o = t.length - 1;
|
|
466
469
|
return t.length > 0 ? e.getNextPageParam(
|
|
467
|
-
t[
|
|
470
|
+
t[o],
|
|
468
471
|
t,
|
|
469
|
-
|
|
470
|
-
|
|
472
|
+
n[o],
|
|
473
|
+
n
|
|
471
474
|
) : void 0;
|
|
472
475
|
}
|
|
473
|
-
function
|
|
474
|
-
var
|
|
475
|
-
return t.length > 0 ? (
|
|
476
|
+
function Xe(e, { pages: t, pageParams: n }) {
|
|
477
|
+
var o;
|
|
478
|
+
return t.length > 0 ? (o = e.getPreviousPageParam) == null ? void 0 : o.call(e, t[0], t, n[0], n) : void 0;
|
|
476
479
|
}
|
|
477
|
-
var
|
|
480
|
+
var j, U, W, G, tt, $, et, rt, Zt, Je = (Zt = class {
|
|
478
481
|
constructor(e = {}) {
|
|
479
|
-
C(this,
|
|
480
|
-
C(this, A);
|
|
482
|
+
C(this, j);
|
|
481
483
|
C(this, U);
|
|
484
|
+
C(this, W);
|
|
485
|
+
C(this, G);
|
|
482
486
|
C(this, tt);
|
|
487
|
+
C(this, $);
|
|
483
488
|
C(this, et);
|
|
484
|
-
C(this, V);
|
|
485
489
|
C(this, rt);
|
|
486
|
-
|
|
487
|
-
y(this, g, e.queryCache || new Re()), y(this, A, e.mutationCache || new Pe()), y(this, U, e.defaultOptions || {}), y(this, tt, /* @__PURE__ */ new Map()), y(this, et, /* @__PURE__ */ new Map()), y(this, V, 0);
|
|
490
|
+
y(this, j, e.queryCache || new We()), y(this, U, e.mutationCache || new Ze()), y(this, W, e.defaultOptions || {}), y(this, G, /* @__PURE__ */ new Map()), y(this, tt, /* @__PURE__ */ new Map()), y(this, $, 0);
|
|
488
491
|
}
|
|
489
492
|
mount() {
|
|
490
|
-
|
|
491
|
-
e && (await this.resumePausedMutations(), h(this,
|
|
492
|
-
})), y(this,
|
|
493
|
-
e && (await this.resumePausedMutations(), h(this,
|
|
493
|
+
ct(this, $)._++, h(this, $) === 1 && (y(this, et, Ce.subscribe(async (e) => {
|
|
494
|
+
e && (await this.resumePausedMutations(), h(this, j).onFocus());
|
|
495
|
+
})), y(this, rt, _t.subscribe(async (e) => {
|
|
496
|
+
e && (await this.resumePausedMutations(), h(this, j).onOnline());
|
|
494
497
|
})));
|
|
495
498
|
}
|
|
496
499
|
unmount() {
|
|
497
500
|
var e, t;
|
|
498
|
-
|
|
501
|
+
ct(this, $)._--, h(this, $) === 0 && ((e = h(this, et)) == null || e.call(this), y(this, et, void 0), (t = h(this, rt)) == null || t.call(this), y(this, rt, void 0));
|
|
499
502
|
}
|
|
500
503
|
isFetching(e) {
|
|
501
|
-
return h(this,
|
|
504
|
+
return h(this, j).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
502
505
|
}
|
|
503
506
|
isMutating(e) {
|
|
504
|
-
return h(this,
|
|
507
|
+
return h(this, U).findAll({ ...e, status: "pending" }).length;
|
|
505
508
|
}
|
|
506
509
|
/**
|
|
507
510
|
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
@@ -511,54 +514,54 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
|
|
|
511
514
|
* Use `useQuery` to create a `QueryObserver` that subscribes to changes.
|
|
512
515
|
*/
|
|
513
516
|
getQueryData(e) {
|
|
514
|
-
var
|
|
517
|
+
var n;
|
|
515
518
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
516
|
-
return (
|
|
519
|
+
return (n = h(this, j).get(t.queryHash)) == null ? void 0 : n.state.data;
|
|
517
520
|
}
|
|
518
521
|
ensureQueryData(e) {
|
|
519
|
-
const t = this.defaultQueryOptions(e),
|
|
520
|
-
return
|
|
522
|
+
const t = this.defaultQueryOptions(e), n = h(this, j).build(this, t), o = n.state.data;
|
|
523
|
+
return o === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(Ht(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(o));
|
|
521
524
|
}
|
|
522
525
|
getQueriesData(e) {
|
|
523
|
-
return h(this,
|
|
524
|
-
const
|
|
525
|
-
return [t,
|
|
526
|
+
return h(this, j).findAll(e).map(({ queryKey: t, state: n }) => {
|
|
527
|
+
const o = n.data;
|
|
528
|
+
return [t, o];
|
|
526
529
|
});
|
|
527
530
|
}
|
|
528
|
-
setQueryData(e, t,
|
|
529
|
-
const
|
|
530
|
-
|
|
531
|
-
), d = i == null ? void 0 : i.state.data, l =
|
|
531
|
+
setQueryData(e, t, n) {
|
|
532
|
+
const o = this.defaultQueryOptions({ queryKey: e }), i = h(this, j).get(
|
|
533
|
+
o.queryHash
|
|
534
|
+
), d = i == null ? void 0 : i.state.data, l = Ie(t, d);
|
|
532
535
|
if (l !== void 0)
|
|
533
|
-
return h(this,
|
|
536
|
+
return h(this, j).build(this, o).setData(l, { ...n, manual: !0 });
|
|
534
537
|
}
|
|
535
|
-
setQueriesData(e, t,
|
|
536
|
-
return
|
|
537
|
-
() => h(this,
|
|
538
|
-
|
|
539
|
-
this.setQueryData(
|
|
538
|
+
setQueriesData(e, t, n) {
|
|
539
|
+
return T.batch(
|
|
540
|
+
() => h(this, j).findAll(e).map(({ queryKey: o }) => [
|
|
541
|
+
o,
|
|
542
|
+
this.setQueryData(o, t, n)
|
|
540
543
|
])
|
|
541
544
|
);
|
|
542
545
|
}
|
|
543
546
|
getQueryState(e) {
|
|
544
|
-
var
|
|
547
|
+
var n;
|
|
545
548
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
546
|
-
return (
|
|
549
|
+
return (n = h(this, j).get(
|
|
547
550
|
t.queryHash
|
|
548
|
-
)) == null ? void 0 :
|
|
551
|
+
)) == null ? void 0 : n.state;
|
|
549
552
|
}
|
|
550
553
|
removeQueries(e) {
|
|
551
|
-
const t = h(this,
|
|
552
|
-
|
|
553
|
-
t.findAll(e).forEach((
|
|
554
|
-
t.remove(
|
|
554
|
+
const t = h(this, j);
|
|
555
|
+
T.batch(() => {
|
|
556
|
+
t.findAll(e).forEach((n) => {
|
|
557
|
+
t.remove(n);
|
|
555
558
|
});
|
|
556
559
|
});
|
|
557
560
|
}
|
|
558
561
|
resetQueries(e, t) {
|
|
559
|
-
const
|
|
560
|
-
return
|
|
561
|
-
|
|
562
|
+
const n = h(this, j);
|
|
563
|
+
return T.batch(() => (n.findAll(e).forEach((o) => {
|
|
564
|
+
o.reset();
|
|
562
565
|
}), this.refetchQueries(
|
|
563
566
|
{
|
|
564
567
|
type: "active",
|
|
@@ -568,14 +571,14 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
|
|
|
568
571
|
)));
|
|
569
572
|
}
|
|
570
573
|
cancelQueries(e, t = {}) {
|
|
571
|
-
const
|
|
572
|
-
() => h(this,
|
|
574
|
+
const n = { revert: !0, ...t }, o = T.batch(
|
|
575
|
+
() => h(this, j).findAll(e).map((i) => i.cancel(n))
|
|
573
576
|
);
|
|
574
|
-
return Promise.all(
|
|
577
|
+
return Promise.all(o).then(P).catch(P);
|
|
575
578
|
}
|
|
576
579
|
invalidateQueries(e, t = {}) {
|
|
577
|
-
return
|
|
578
|
-
|
|
580
|
+
return T.batch(() => (h(this, j).findAll(e).forEach((n) => {
|
|
581
|
+
n.invalidate();
|
|
579
582
|
}), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
580
583
|
{
|
|
581
584
|
...e,
|
|
@@ -585,103 +588,103 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
|
|
|
585
588
|
)));
|
|
586
589
|
}
|
|
587
590
|
refetchQueries(e, t = {}) {
|
|
588
|
-
const
|
|
591
|
+
const n = {
|
|
589
592
|
...t,
|
|
590
593
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
591
|
-
},
|
|
592
|
-
() => h(this,
|
|
593
|
-
let d = i.fetch(void 0,
|
|
594
|
-
return
|
|
594
|
+
}, o = T.batch(
|
|
595
|
+
() => h(this, j).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
|
|
596
|
+
let d = i.fetch(void 0, n);
|
|
597
|
+
return n.throwOnError || (d = d.catch(P)), i.state.fetchStatus === "paused" ? Promise.resolve() : d;
|
|
595
598
|
})
|
|
596
599
|
);
|
|
597
|
-
return Promise.all(
|
|
600
|
+
return Promise.all(o).then(P);
|
|
598
601
|
}
|
|
599
602
|
fetchQuery(e) {
|
|
600
603
|
const t = this.defaultQueryOptions(e);
|
|
601
604
|
t.retry === void 0 && (t.retry = !1);
|
|
602
|
-
const
|
|
603
|
-
return
|
|
604
|
-
|
|
605
|
-
) ?
|
|
605
|
+
const n = h(this, j).build(this, t);
|
|
606
|
+
return n.isStaleByTime(
|
|
607
|
+
Ht(t.staleTime, n)
|
|
608
|
+
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
606
609
|
}
|
|
607
610
|
prefetchQuery(e) {
|
|
608
611
|
return this.fetchQuery(e).then(P).catch(P);
|
|
609
612
|
}
|
|
610
613
|
fetchInfiniteQuery(e) {
|
|
611
|
-
return e.behavior =
|
|
614
|
+
return e.behavior = zt(e.pages), this.fetchQuery(e);
|
|
612
615
|
}
|
|
613
616
|
prefetchInfiniteQuery(e) {
|
|
614
617
|
return this.fetchInfiniteQuery(e).then(P).catch(P);
|
|
615
618
|
}
|
|
616
619
|
ensureInfiniteQueryData(e) {
|
|
617
|
-
return e.behavior =
|
|
620
|
+
return e.behavior = zt(e.pages), this.ensureQueryData(e);
|
|
618
621
|
}
|
|
619
622
|
resumePausedMutations() {
|
|
620
|
-
return
|
|
623
|
+
return _t.isOnline() ? h(this, U).resumePausedMutations() : Promise.resolve();
|
|
621
624
|
}
|
|
622
625
|
getQueryCache() {
|
|
623
|
-
return h(this,
|
|
626
|
+
return h(this, j);
|
|
624
627
|
}
|
|
625
628
|
getMutationCache() {
|
|
626
|
-
return h(this,
|
|
629
|
+
return h(this, U);
|
|
627
630
|
}
|
|
628
631
|
getDefaultOptions() {
|
|
629
|
-
return h(this,
|
|
632
|
+
return h(this, W);
|
|
630
633
|
}
|
|
631
634
|
setDefaultOptions(e) {
|
|
632
|
-
y(this,
|
|
635
|
+
y(this, W, e);
|
|
633
636
|
}
|
|
634
637
|
setQueryDefaults(e, t) {
|
|
635
|
-
h(this,
|
|
638
|
+
h(this, G).set(Dt(e), {
|
|
636
639
|
queryKey: e,
|
|
637
640
|
defaultOptions: t
|
|
638
641
|
});
|
|
639
642
|
}
|
|
640
643
|
getQueryDefaults(e) {
|
|
641
|
-
const t = [...h(this,
|
|
642
|
-
return t.forEach((
|
|
643
|
-
|
|
644
|
-
}),
|
|
644
|
+
const t = [...h(this, G).values()], n = {};
|
|
645
|
+
return t.forEach((o) => {
|
|
646
|
+
Pt(e, o.queryKey) && Object.assign(n, o.defaultOptions);
|
|
647
|
+
}), n;
|
|
645
648
|
}
|
|
646
649
|
setMutationDefaults(e, t) {
|
|
647
|
-
h(this,
|
|
650
|
+
h(this, tt).set(Dt(e), {
|
|
648
651
|
mutationKey: e,
|
|
649
652
|
defaultOptions: t
|
|
650
653
|
});
|
|
651
654
|
}
|
|
652
655
|
getMutationDefaults(e) {
|
|
653
|
-
const t = [...h(this,
|
|
654
|
-
return t.forEach((
|
|
655
|
-
|
|
656
|
-
}),
|
|
656
|
+
const t = [...h(this, tt).values()], n = {};
|
|
657
|
+
return t.forEach((o) => {
|
|
658
|
+
Pt(e, o.mutationKey) && Object.assign(n, o.defaultOptions);
|
|
659
|
+
}), n;
|
|
657
660
|
}
|
|
658
661
|
defaultQueryOptions(e) {
|
|
659
662
|
if (e._defaulted)
|
|
660
663
|
return e;
|
|
661
664
|
const t = {
|
|
662
|
-
...h(this,
|
|
665
|
+
...h(this, W).queries,
|
|
663
666
|
...this.getQueryDefaults(e.queryKey),
|
|
664
667
|
...e,
|
|
665
668
|
_defaulted: !0
|
|
666
669
|
};
|
|
667
|
-
return t.queryHash || (t.queryHash =
|
|
670
|
+
return t.queryHash || (t.queryHash = Jt(
|
|
668
671
|
t.queryKey,
|
|
669
672
|
t
|
|
670
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
673
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Me && (t.enabled = !1), t;
|
|
671
674
|
}
|
|
672
675
|
defaultMutationOptions(e) {
|
|
673
676
|
return e != null && e._defaulted ? e : {
|
|
674
|
-
...h(this,
|
|
677
|
+
...h(this, W).mutations,
|
|
675
678
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
676
679
|
...e,
|
|
677
680
|
_defaulted: !0
|
|
678
681
|
};
|
|
679
682
|
}
|
|
680
683
|
clear() {
|
|
681
|
-
h(this,
|
|
684
|
+
h(this, j).clear(), h(this, U).clear();
|
|
682
685
|
}
|
|
683
|
-
},
|
|
684
|
-
const
|
|
686
|
+
}, j = new WeakMap(), U = new WeakMap(), W = new WeakMap(), G = new WeakMap(), tt = new WeakMap(), $ = new WeakMap(), et = new WeakMap(), rt = new WeakMap(), Zt);
|
|
687
|
+
const Ye = [
|
|
685
688
|
"header",
|
|
686
689
|
"footer",
|
|
687
690
|
"interLinking",
|
|
@@ -691,27 +694,47 @@ const Qe = [
|
|
|
691
694
|
"banner",
|
|
692
695
|
"benefit",
|
|
693
696
|
"form",
|
|
694
|
-
"seoHeader"
|
|
695
|
-
|
|
697
|
+
"seoHeader",
|
|
698
|
+
"calculator"
|
|
699
|
+
], g = Ye.reduce(
|
|
696
700
|
(e, t) => (e[t] = t, e),
|
|
697
701
|
{}
|
|
698
|
-
),
|
|
702
|
+
), Ge = ["getFioSchema"], ue = (e, t, n) => {
|
|
703
|
+
const o = e[t];
|
|
704
|
+
if (s.isNil(o))
|
|
705
|
+
throw new Error(`validation for type ${String(t)} not found`);
|
|
706
|
+
if (!s.isFunction(o))
|
|
707
|
+
throw new Error(`Cannot generate ${String(t)} because is not a function`);
|
|
708
|
+
return o(n);
|
|
709
|
+
}, tr = (e, t) => ue(de.base, e, t), er = (e, t) => ue(de.dadata, e, t), me = (e) => {
|
|
710
|
+
const n = e.map((o) => ({ name: o.args.name, validation: o.args.validation })).reduce((o, i) => {
|
|
711
|
+
const d = Ge.includes(i.validation.type) ? er(
|
|
712
|
+
i.validation.type,
|
|
713
|
+
i.validation.args
|
|
714
|
+
) : tr(
|
|
715
|
+
i.validation.type,
|
|
716
|
+
i.validation.args
|
|
717
|
+
);
|
|
718
|
+
return o[i.name] = d, o;
|
|
719
|
+
}, {});
|
|
720
|
+
return Ae(n);
|
|
721
|
+
}, rr = (e) => te(() => {
|
|
699
722
|
switch (e.handler) {
|
|
700
723
|
case "navigate": {
|
|
701
|
-
const { url:
|
|
702
|
-
|
|
724
|
+
const { url: n, target: o, rel: i } = e;
|
|
725
|
+
oe && (window == null || window.open(n, o, i));
|
|
703
726
|
break;
|
|
704
727
|
}
|
|
705
728
|
case "scroll": {
|
|
706
|
-
const { widgetId:
|
|
707
|
-
|
|
729
|
+
const { widgetId: n } = e ?? "";
|
|
730
|
+
Pe({ widgetId: n });
|
|
708
731
|
break;
|
|
709
732
|
}
|
|
710
733
|
}
|
|
711
734
|
}, [e]), J = ({ handlerOptions: e, ...t }) => {
|
|
712
|
-
const
|
|
713
|
-
return /* @__PURE__ */
|
|
714
|
-
},
|
|
735
|
+
const n = rr(e);
|
|
736
|
+
return /* @__PURE__ */ r.jsx(jt, { onClick: n, ...t, children: t.children });
|
|
737
|
+
}, nr = E(
|
|
715
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",
|
|
716
739
|
{
|
|
717
740
|
variants: {
|
|
@@ -722,28 +745,28 @@ const Qe = [
|
|
|
722
745
|
}
|
|
723
746
|
}
|
|
724
747
|
}
|
|
725
|
-
),
|
|
748
|
+
), or = ({
|
|
726
749
|
subtitle: e,
|
|
727
750
|
title: t,
|
|
728
|
-
img:
|
|
729
|
-
mobileImg:
|
|
751
|
+
img: n,
|
|
752
|
+
mobileImg: o,
|
|
730
753
|
classes: i,
|
|
731
754
|
withButton: d,
|
|
732
755
|
button: l,
|
|
733
756
|
variant: u,
|
|
734
|
-
color:
|
|
757
|
+
color: m
|
|
735
758
|
}) => {
|
|
736
|
-
const { isDesktop:
|
|
737
|
-
return /* @__PURE__ */
|
|
759
|
+
const { isDesktop: p } = Y();
|
|
760
|
+
return /* @__PURE__ */ r.jsxs(
|
|
738
761
|
"li",
|
|
739
762
|
{
|
|
740
|
-
style: { backgroundColor:
|
|
741
|
-
className: a(
|
|
763
|
+
style: { backgroundColor: m ?? "#F3F4F7" },
|
|
764
|
+
className: a(nr({ variant: u }), { "pb-0": o }, { "pb-12": !o }, i == null ? void 0 : i.root),
|
|
742
765
|
children: [
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
766
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
767
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
768
|
+
/* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: a("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
769
|
+
/* @__PURE__ */ r.jsx(
|
|
747
770
|
"div",
|
|
748
771
|
{
|
|
749
772
|
dangerouslySetInnerHTML: { __html: e },
|
|
@@ -751,14 +774,14 @@ const Qe = [
|
|
|
751
774
|
}
|
|
752
775
|
)
|
|
753
776
|
] }),
|
|
754
|
-
d &&
|
|
777
|
+
d && p && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ r.jsx(J, { intent: "primary", className: a("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
|
|
755
778
|
] }),
|
|
756
|
-
(
|
|
779
|
+
(o || p) && n && /* @__PURE__ */ r.jsx("div", { className: a("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: n && "url" in n && s.isObject(n) ? /* @__PURE__ */ r.jsx("img", { className: a("h-[246px] object-cover", i == null ? void 0 : i.img), src: n.url, alt: n.alt }) : n })
|
|
757
780
|
]
|
|
758
781
|
},
|
|
759
782
|
t
|
|
760
783
|
);
|
|
761
|
-
},
|
|
784
|
+
}, ir = E("grid gap-4", {
|
|
762
785
|
variants: {
|
|
763
786
|
variant: {
|
|
764
787
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -766,34 +789,34 @@ const Qe = [
|
|
|
766
789
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
767
790
|
}
|
|
768
791
|
}
|
|
769
|
-
}),
|
|
770
|
-
/* @__PURE__ */
|
|
792
|
+
}), Zn = ({ headline: e, details: t, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: g.benefit, "data-test-id": g.benefit, className: a("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(S, { className: o == null ? void 0 : o.container, children: [
|
|
793
|
+
/* @__PURE__ */ r.jsx(
|
|
771
794
|
"div",
|
|
772
795
|
{
|
|
773
796
|
dangerouslySetInnerHTML: { __html: e },
|
|
774
|
-
className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m",
|
|
797
|
+
className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
|
|
775
798
|
}
|
|
776
799
|
),
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
] }) }),
|
|
800
|
+
/* @__PURE__ */ r.jsx("ul", { className: a(ir({ variant: n }), o == null ? void 0 : o.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ r.jsx(or, { variant: n, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
|
|
801
|
+
] }) }), dr = ({ variant: e, details: t }) => {
|
|
779
802
|
switch (e) {
|
|
780
803
|
case "withButton":
|
|
781
|
-
return /* @__PURE__ */
|
|
804
|
+
return /* @__PURE__ */ r.jsx(J, { ...t });
|
|
782
805
|
case "withPhone":
|
|
783
|
-
return /* @__PURE__ */
|
|
806
|
+
return /* @__PURE__ */ r.jsx(Yt, { classes: { root: "items-end" }, ...t, phone: st(t.phone) });
|
|
784
807
|
default:
|
|
785
808
|
return null;
|
|
786
809
|
}
|
|
787
|
-
},
|
|
788
|
-
const { logoPath: t = "/", logoType:
|
|
789
|
-
return /* @__PURE__ */
|
|
810
|
+
}, Xn = (e) => {
|
|
811
|
+
const { logoPath: t = "/", logoType: n = "main", classes: o } = e;
|
|
812
|
+
return /* @__PURE__ */ r.jsx(
|
|
790
813
|
"header",
|
|
791
814
|
{
|
|
792
|
-
id:
|
|
793
|
-
"data-test-id":
|
|
794
|
-
className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]",
|
|
795
|
-
children: /* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
815
|
+
id: g.header,
|
|
816
|
+
"data-test-id": g.header,
|
|
817
|
+
className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
818
|
+
children: /* @__PURE__ */ r.jsx(S, { className: a(o == null ? void 0 : o.container), children: /* @__PURE__ */ r.jsxs("div", { className: a("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
819
|
+
/* @__PURE__ */ r.jsx(
|
|
797
820
|
"a",
|
|
798
821
|
{
|
|
799
822
|
href: t,
|
|
@@ -802,57 +825,57 @@ const Qe = [
|
|
|
802
825
|
rel: "noreferrer",
|
|
803
826
|
className: a(
|
|
804
827
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
805
|
-
|
|
828
|
+
o == null ? void 0 : o.logo
|
|
806
829
|
),
|
|
807
|
-
children:
|
|
830
|
+
children: Te[n]
|
|
808
831
|
}
|
|
809
832
|
),
|
|
810
|
-
|
|
833
|
+
dr(e)
|
|
811
834
|
] }) })
|
|
812
835
|
}
|
|
813
836
|
);
|
|
814
|
-
},
|
|
837
|
+
}, ar = ({
|
|
815
838
|
headTitle: e,
|
|
816
839
|
subtitle: t,
|
|
817
|
-
buttonsConfig:
|
|
818
|
-
advantages:
|
|
840
|
+
buttonsConfig: n,
|
|
841
|
+
advantages: o,
|
|
819
842
|
classes: i,
|
|
820
843
|
imgMobile: d,
|
|
821
844
|
imgDesktop: l,
|
|
822
845
|
color: u
|
|
823
846
|
}) => {
|
|
824
|
-
var
|
|
825
|
-
const { isDesktop:
|
|
847
|
+
var I;
|
|
848
|
+
const { isDesktop: m, isMobile: p } = Y(), { primary: x, secondary: c } = n || {}, b = d && "url" in d && s.isObject(d) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, w = 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(
|
|
826
849
|
"div",
|
|
827
850
|
{
|
|
828
851
|
className: a(
|
|
829
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",
|
|
830
853
|
i == null ? void 0 : i.advantageContainer
|
|
831
854
|
),
|
|
832
|
-
children: (
|
|
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(Ct, { ...o })
|
|
833
856
|
}
|
|
834
857
|
);
|
|
835
|
-
return /* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
858
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
859
|
+
/* @__PURE__ */ r.jsxs(
|
|
837
860
|
"section",
|
|
838
861
|
{
|
|
839
|
-
id:
|
|
840
|
-
"data-test-id":
|
|
862
|
+
id: g.banner,
|
|
863
|
+
"data-test-id": g.banner,
|
|
841
864
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
842
865
|
className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
843
866
|
children: [
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
/* @__PURE__ */
|
|
847
|
-
/* @__PURE__ */
|
|
848
|
-
/* @__PURE__ */
|
|
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: p ? b : w }),
|
|
868
|
+
/* @__PURE__ */ r.jsxs(S, { className: a("h-full", i == null ? void 0 : i.container), children: [
|
|
869
|
+
/* @__PURE__ */ r.jsx("div", { className: a("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ r.jsxs("div", { className: a("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
|
|
870
|
+
/* @__PURE__ */ r.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
871
|
+
/* @__PURE__ */ r.jsx(
|
|
849
872
|
"div",
|
|
850
873
|
{
|
|
851
874
|
dangerouslySetInnerHTML: { __html: e },
|
|
852
875
|
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
853
876
|
}
|
|
854
877
|
),
|
|
855
|
-
/* @__PURE__ */
|
|
878
|
+
/* @__PURE__ */ r.jsx(
|
|
856
879
|
"div",
|
|
857
880
|
{
|
|
858
881
|
dangerouslySetInnerHTML: { __html: t },
|
|
@@ -860,16 +883,16 @@ const Qe = [
|
|
|
860
883
|
}
|
|
861
884
|
)
|
|
862
885
|
] }),
|
|
863
|
-
/* @__PURE__ */
|
|
886
|
+
/* @__PURE__ */ r.jsxs(
|
|
864
887
|
"div",
|
|
865
888
|
{
|
|
866
889
|
className: a(
|
|
867
890
|
"grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col self-end justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:self-center desktop:px-0",
|
|
868
|
-
{ "flex items-center gap-4":
|
|
891
|
+
{ "flex items-center gap-4": c == null ? void 0 : c.enabled },
|
|
869
892
|
i == null ? void 0 : i.group
|
|
870
893
|
),
|
|
871
894
|
children: [
|
|
872
|
-
x.enabled && /* @__PURE__ */
|
|
895
|
+
x.enabled && /* @__PURE__ */ r.jsx(
|
|
873
896
|
J,
|
|
874
897
|
{
|
|
875
898
|
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
@@ -878,7 +901,7 @@ const Qe = [
|
|
|
878
901
|
...x.buttonContent
|
|
879
902
|
}
|
|
880
903
|
),
|
|
881
|
-
(
|
|
904
|
+
(c == null ? void 0 : c.enabled) && /* @__PURE__ */ r.jsx(
|
|
882
905
|
J,
|
|
883
906
|
{
|
|
884
907
|
intent: "secondary",
|
|
@@ -890,45 +913,45 @@ const Qe = [
|
|
|
890
913
|
}
|
|
891
914
|
)
|
|
892
915
|
] }) }),
|
|
893
|
-
|
|
916
|
+
m && (o == null ? void 0 : o.enabled) && v
|
|
894
917
|
] })
|
|
895
918
|
]
|
|
896
919
|
}
|
|
897
920
|
),
|
|
898
|
-
|
|
921
|
+
p && (o == null ? void 0 : o.enabled) && v
|
|
899
922
|
] });
|
|
900
|
-
},
|
|
923
|
+
}, At = ({
|
|
901
924
|
headTitle: e,
|
|
902
925
|
subtitle: t,
|
|
903
|
-
buttonsConfig:
|
|
904
|
-
advantages:
|
|
926
|
+
buttonsConfig: n,
|
|
927
|
+
advantages: o,
|
|
905
928
|
classes: i,
|
|
906
929
|
imgMobile: d,
|
|
907
930
|
imgDesktop: l,
|
|
908
931
|
color: u
|
|
909
932
|
}) => {
|
|
910
|
-
var
|
|
911
|
-
const { isMobile:
|
|
912
|
-
return /* @__PURE__ */
|
|
913
|
-
/* @__PURE__ */
|
|
933
|
+
var w, v;
|
|
934
|
+
const { isMobile: m } = Y(), { primary: p, secondary: x } = n || {}, c = d && "url" in d && s.isObject(d) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: d.alt, src: d.url }) : d, b = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
|
|
935
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
936
|
+
/* @__PURE__ */ r.jsx(
|
|
914
937
|
"section",
|
|
915
938
|
{
|
|
916
|
-
id:
|
|
917
|
-
"data-test-id":
|
|
939
|
+
id: g.banner,
|
|
940
|
+
"data-test-id": g.banner,
|
|
918
941
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
919
942
|
className: a("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
920
|
-
children: /* @__PURE__ */
|
|
921
|
-
/* @__PURE__ */
|
|
922
|
-
/* @__PURE__ */
|
|
923
|
-
/* @__PURE__ */
|
|
924
|
-
/* @__PURE__ */
|
|
943
|
+
children: /* @__PURE__ */ r.jsxs(S, { className: a("relative", i == null ? void 0 : i.container), children: [
|
|
944
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
945
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
946
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
947
|
+
/* @__PURE__ */ r.jsx(
|
|
925
948
|
"div",
|
|
926
949
|
{
|
|
927
950
|
dangerouslySetInnerHTML: { __html: e },
|
|
928
951
|
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
929
952
|
}
|
|
930
953
|
),
|
|
931
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ r.jsx(
|
|
932
955
|
"div",
|
|
933
956
|
{
|
|
934
957
|
dangerouslySetInnerHTML: { __html: t },
|
|
@@ -936,7 +959,7 @@ const Qe = [
|
|
|
936
959
|
}
|
|
937
960
|
)
|
|
938
961
|
] }),
|
|
939
|
-
/* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ r.jsxs(
|
|
940
963
|
"div",
|
|
941
964
|
{
|
|
942
965
|
className: a(
|
|
@@ -945,84 +968,84 @@ const Qe = [
|
|
|
945
968
|
i == null ? void 0 : i.group
|
|
946
969
|
),
|
|
947
970
|
children: [
|
|
948
|
-
|
|
971
|
+
p.enabled && /* @__PURE__ */ r.jsx(
|
|
949
972
|
J,
|
|
950
973
|
{
|
|
951
974
|
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
952
975
|
size: "lg",
|
|
953
976
|
intent: "primary",
|
|
954
|
-
...
|
|
977
|
+
...p.buttonContent
|
|
955
978
|
}
|
|
956
979
|
),
|
|
957
|
-
(x == null ? void 0 : x.enabled) && /* @__PURE__ */
|
|
980
|
+
(x == null ? void 0 : x.enabled) && /* @__PURE__ */ r.jsx(
|
|
958
981
|
J,
|
|
959
982
|
{
|
|
960
983
|
intent: "secondary",
|
|
961
984
|
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
962
|
-
...
|
|
985
|
+
...p.buttonContent
|
|
963
986
|
}
|
|
964
987
|
)
|
|
965
988
|
]
|
|
966
989
|
}
|
|
967
990
|
)
|
|
968
991
|
] }),
|
|
969
|
-
/* @__PURE__ */
|
|
992
|
+
/* @__PURE__ */ r.jsx(
|
|
970
993
|
"div",
|
|
971
994
|
{
|
|
972
995
|
className: a(
|
|
973
996
|
"relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]",
|
|
974
997
|
i == null ? void 0 : i.imageContainer
|
|
975
998
|
),
|
|
976
|
-
children:
|
|
999
|
+
children: m ? c : b
|
|
977
1000
|
}
|
|
978
1001
|
)
|
|
979
1002
|
] }),
|
|
980
|
-
(
|
|
1003
|
+
(o == null ? void 0 : o.enabled) && /* @__PURE__ */ r.jsx(
|
|
981
1004
|
"div",
|
|
982
1005
|
{
|
|
983
1006
|
className: a(
|
|
984
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",
|
|
985
1008
|
i == null ? void 0 : i.advantageContainer
|
|
986
1009
|
),
|
|
987
|
-
children: (
|
|
1010
|
+
children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ r.jsx(Ct, { ...o })
|
|
988
1011
|
}
|
|
989
1012
|
)
|
|
990
1013
|
] })
|
|
991
1014
|
}
|
|
992
1015
|
),
|
|
993
|
-
(
|
|
1016
|
+
(o == null ? void 0 : o.enabled) && /* @__PURE__ */ r.jsx(
|
|
994
1017
|
"div",
|
|
995
1018
|
{
|
|
996
1019
|
className: a(
|
|
997
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",
|
|
998
1021
|
i == null ? void 0 : i.advantageContainer
|
|
999
1022
|
),
|
|
1000
|
-
children: (
|
|
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(Ct, { ...o })
|
|
1001
1024
|
}
|
|
1002
1025
|
)
|
|
1003
1026
|
] });
|
|
1004
|
-
},
|
|
1027
|
+
}, Jn = ({ variant: e, ...t }) => {
|
|
1005
1028
|
switch (e) {
|
|
1006
1029
|
case "separateImg":
|
|
1007
|
-
return /* @__PURE__ */
|
|
1030
|
+
return /* @__PURE__ */ r.jsx(At, { ...t });
|
|
1008
1031
|
case "fullImg":
|
|
1009
|
-
return /* @__PURE__ */
|
|
1032
|
+
return /* @__PURE__ */ r.jsx(ar, { ...t });
|
|
1010
1033
|
default:
|
|
1011
|
-
return /* @__PURE__ */
|
|
1034
|
+
return /* @__PURE__ */ r.jsx(At, { ...t });
|
|
1012
1035
|
}
|
|
1013
|
-
},
|
|
1014
|
-
const { variant:
|
|
1015
|
-
return /* @__PURE__ */
|
|
1036
|
+
}, Ct = ({ details: e, classes: t }) => {
|
|
1037
|
+
const { variant: n, items: o } = e ?? {};
|
|
1038
|
+
return /* @__PURE__ */ r.jsx(
|
|
1016
1039
|
"div",
|
|
1017
1040
|
{
|
|
1018
1041
|
id: "advantages",
|
|
1019
1042
|
className: a(
|
|
1020
1043
|
"m-auto flex w-full min-w-[328px] max-w-[636px] flex-col gap-8 rounded-md bg-color-white p-6 shadow-sm desktop:w-full desktop:flex-row desktop:items-start desktop:gap-0 desktop:p-0 desktop:py-6",
|
|
1021
|
-
{ "desktop:max-w-[860px]":
|
|
1022
|
-
{ "desktop:max-w-[1140px]":
|
|
1044
|
+
{ "desktop:max-w-[860px]": n === "threeCards" },
|
|
1045
|
+
{ "desktop:max-w-[1140px]": n === "fourCards" },
|
|
1023
1046
|
t == null ? void 0 : t.root
|
|
1024
1047
|
),
|
|
1025
|
-
children:
|
|
1048
|
+
children: o == null ? void 0 : o.map(({ title: i, description: d }) => /* @__PURE__ */ r.jsxs(
|
|
1026
1049
|
"div",
|
|
1027
1050
|
{
|
|
1028
1051
|
className: a(
|
|
@@ -1030,36 +1053,36 @@ const Qe = [
|
|
|
1030
1053
|
t == null ? void 0 : t.item
|
|
1031
1054
|
),
|
|
1032
1055
|
children: [
|
|
1033
|
-
/* @__PURE__ */
|
|
1034
|
-
/* @__PURE__ */
|
|
1056
|
+
/* @__PURE__ */ r.jsx(H, { as: "h4", className: a("text-color-dark", t == null ? void 0 : t.title), children: i }),
|
|
1057
|
+
/* @__PURE__ */ r.jsx("p", { className: a("desk-body-regular-l text-color-secondary", t == null ? void 0 : t.description), children: d })
|
|
1035
1058
|
]
|
|
1036
1059
|
},
|
|
1037
1060
|
i
|
|
1038
1061
|
))
|
|
1039
1062
|
}
|
|
1040
1063
|
);
|
|
1041
|
-
},
|
|
1064
|
+
}, lr = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ r.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: n, href: o }) => /* @__PURE__ */ r.jsx(
|
|
1042
1065
|
"a",
|
|
1043
1066
|
{
|
|
1044
1067
|
className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
|
|
1045
|
-
href:
|
|
1046
|
-
"aria-label":
|
|
1047
|
-
children: /* @__PURE__ */
|
|
1068
|
+
href: o,
|
|
1069
|
+
"aria-label": n.replace("social/", ""),
|
|
1070
|
+
children: /* @__PURE__ */ r.jsx(f, { name: n, className: a("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
|
|
1048
1071
|
},
|
|
1049
|
-
|
|
1050
|
-
)) }),
|
|
1051
|
-
|
|
1072
|
+
o
|
|
1073
|
+
)) }), ur = ({ phones: e, classes: t }) => /* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: n, text: o }) => /* @__PURE__ */ r.jsx(
|
|
1074
|
+
Yt,
|
|
1052
1075
|
{
|
|
1053
|
-
phone:
|
|
1054
|
-
text:
|
|
1076
|
+
phone: st(n),
|
|
1077
|
+
text: o,
|
|
1055
1078
|
classes: {
|
|
1056
1079
|
root: a(t == null ? void 0 : t.phoneWrapper),
|
|
1057
1080
|
text: a("text-color-footer", t == null ? void 0 : t.phoneText),
|
|
1058
1081
|
link: a("text-color-white mobile:m-0", t == null ? void 0 : t.phoneLink)
|
|
1059
1082
|
}
|
|
1060
1083
|
},
|
|
1061
|
-
|
|
1062
|
-
)) }),
|
|
1084
|
+
n
|
|
1085
|
+
)) }), mr = ({ classes: e, details: t }) => /* @__PURE__ */ r.jsx(
|
|
1063
1086
|
"div",
|
|
1064
1087
|
{
|
|
1065
1088
|
className: a(
|
|
@@ -1067,10 +1090,10 @@ const Qe = [
|
|
|
1067
1090
|
e == null ? void 0 : e.navRoot
|
|
1068
1091
|
),
|
|
1069
1092
|
children: t == null ? void 0 : t.map(
|
|
1070
|
-
({ column:
|
|
1071
|
-
/* @__PURE__ */
|
|
1072
|
-
/* @__PURE__ */
|
|
1073
|
-
|
|
1093
|
+
({ column: n }) => n == null ? void 0 : n.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
1094
|
+
/* @__PURE__ */ r.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: o }),
|
|
1095
|
+
/* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: i == null ? void 0 : i.map(({ path: d, label: l }) => /* @__PURE__ */ r.jsx(
|
|
1096
|
+
yt,
|
|
1074
1097
|
{
|
|
1075
1098
|
href: d,
|
|
1076
1099
|
"aria-label": l,
|
|
@@ -1083,25 +1106,25 @@ const Qe = [
|
|
|
1083
1106
|
},
|
|
1084
1107
|
l
|
|
1085
1108
|
)) })
|
|
1086
|
-
] },
|
|
1109
|
+
] }, o))
|
|
1087
1110
|
)
|
|
1088
1111
|
}
|
|
1089
|
-
),
|
|
1112
|
+
), pr = ({ text: e, classes: t }) => /* @__PURE__ */ r.jsx(
|
|
1090
1113
|
"div",
|
|
1091
1114
|
{
|
|
1092
1115
|
className: a("desk-body-regular-m text-color-footer", t == null ? void 0 : t.copyRight),
|
|
1093
1116
|
dangerouslySetInnerHTML: { __html: e }
|
|
1094
1117
|
}
|
|
1095
|
-
),
|
|
1118
|
+
), hr = ({ classes: e }) => /* @__PURE__ */ r.jsx(
|
|
1096
1119
|
"a",
|
|
1097
1120
|
{
|
|
1098
1121
|
"aria-label": "logo",
|
|
1099
1122
|
href: "https://sovcombank.ru/",
|
|
1100
1123
|
className: a("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", e == null ? void 0 : e.footerLogo),
|
|
1101
|
-
children: /* @__PURE__ */
|
|
1124
|
+
children: /* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoWhite", className: a("size-full", e == null ? void 0 : e.footerLogoIcon) })
|
|
1102
1125
|
}
|
|
1103
|
-
),
|
|
1104
|
-
|
|
1126
|
+
), xr = ({ classes: e }) => /* @__PURE__ */ r.jsx(
|
|
1127
|
+
yt,
|
|
1105
1128
|
{
|
|
1106
1129
|
intent: "white",
|
|
1107
1130
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1114,26 +1137,26 @@ const Qe = [
|
|
|
1114
1137
|
},
|
|
1115
1138
|
children: "Карта сайта"
|
|
1116
1139
|
}
|
|
1117
|
-
),
|
|
1118
|
-
const [
|
|
1140
|
+
), cr = ({ text: e, classes: t }) => {
|
|
1141
|
+
const [n, o] = at.useState(!1), [i, d] = at.useState(!1), l = at.useRef(null);
|
|
1119
1142
|
return at.useEffect(() => {
|
|
1120
1143
|
const u = l.current;
|
|
1121
1144
|
u && d(u.scrollHeight > u.clientHeight);
|
|
1122
|
-
}, []), /* @__PURE__ */
|
|
1123
|
-
/* @__PURE__ */
|
|
1145
|
+
}, []), /* @__PURE__ */ r.jsxs("div", { className: a("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
|
|
1146
|
+
/* @__PURE__ */ r.jsx(
|
|
1124
1147
|
"div",
|
|
1125
1148
|
{
|
|
1126
1149
|
ref: l,
|
|
1127
|
-
className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !
|
|
1150
|
+
className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !n }, t == null ? void 0 : t.ligalText),
|
|
1128
1151
|
dangerouslySetInnerHTML: { __html: e }
|
|
1129
1152
|
}
|
|
1130
1153
|
),
|
|
1131
|
-
i && /* @__PURE__ */
|
|
1154
|
+
i && /* @__PURE__ */ r.jsx(
|
|
1132
1155
|
"div",
|
|
1133
1156
|
{
|
|
1134
1157
|
tabIndex: 0,
|
|
1135
1158
|
role: "button",
|
|
1136
|
-
onClick: () =>
|
|
1159
|
+
onClick: () => o((u) => !u),
|
|
1137
1160
|
className: a(
|
|
1138
1161
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1139
1162
|
t == null ? void 0 : t.ligalButton
|
|
@@ -1142,22 +1165,22 @@ const Qe = [
|
|
|
1142
1165
|
}
|
|
1143
1166
|
)
|
|
1144
1167
|
] });
|
|
1145
|
-
},
|
|
1168
|
+
}, Yn = ({
|
|
1146
1169
|
socialsLinks: e,
|
|
1147
1170
|
phones: t,
|
|
1148
|
-
ligal:
|
|
1149
|
-
copyright:
|
|
1171
|
+
ligal: n,
|
|
1172
|
+
copyright: o,
|
|
1150
1173
|
classes: i,
|
|
1151
1174
|
details: d,
|
|
1152
1175
|
siteMap: l = !0
|
|
1153
|
-
}) => /* @__PURE__ */
|
|
1176
|
+
}) => /* @__PURE__ */ r.jsx(
|
|
1154
1177
|
"footer",
|
|
1155
1178
|
{
|
|
1156
|
-
id:
|
|
1157
|
-
"data-test-id":
|
|
1179
|
+
id: g.footer,
|
|
1180
|
+
"data-test-id": g.footer,
|
|
1158
1181
|
className: a("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1159
|
-
children: /* @__PURE__ */
|
|
1160
|
-
/* @__PURE__ */
|
|
1182
|
+
children: /* @__PURE__ */ r.jsx(S, { className: a(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ r.jsxs("div", { className: a("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1183
|
+
/* @__PURE__ */ r.jsxs(
|
|
1161
1184
|
"div",
|
|
1162
1185
|
{
|
|
1163
1186
|
className: a(
|
|
@@ -1165,17 +1188,17 @@ const Qe = [
|
|
|
1165
1188
|
i == null ? void 0 : i.footerHead
|
|
1166
1189
|
),
|
|
1167
1190
|
children: [
|
|
1168
|
-
/* @__PURE__ */
|
|
1169
|
-
/* @__PURE__ */
|
|
1170
|
-
e.enabled && /* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ r.jsxs("div", { className: a(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1192
|
+
/* @__PURE__ */ r.jsx(hr, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1193
|
+
e.enabled && /* @__PURE__ */ r.jsx(lr, { socialsLinks: e.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1171
1194
|
] }),
|
|
1172
|
-
t.enabled && /* @__PURE__ */
|
|
1195
|
+
t.enabled && /* @__PURE__ */ r.jsx(ur, { phones: t.items, classes: i == null ? void 0 : i.phonesBlock })
|
|
1173
1196
|
]
|
|
1174
1197
|
}
|
|
1175
1198
|
),
|
|
1176
|
-
!
|
|
1177
|
-
|
|
1178
|
-
/* @__PURE__ */
|
|
1199
|
+
!s.isArrayEmpty(d) && /* @__PURE__ */ r.jsx(mr, { details: d, classes: i == null ? void 0 : i.navLinks }),
|
|
1200
|
+
n.enabled && /* @__PURE__ */ r.jsx(cr, { text: n.text }),
|
|
1201
|
+
/* @__PURE__ */ r.jsxs(
|
|
1179
1202
|
"div",
|
|
1180
1203
|
{
|
|
1181
1204
|
className: a(
|
|
@@ -1183,16 +1206,16 @@ const Qe = [
|
|
|
1183
1206
|
i == null ? void 0 : i.footerBottom
|
|
1184
1207
|
),
|
|
1185
1208
|
children: [
|
|
1186
|
-
|
|
1187
|
-
l && /* @__PURE__ */
|
|
1209
|
+
o.enabled && /* @__PURE__ */ r.jsx(pr, { text: o.text, classes: i == null ? void 0 : i.copyright }),
|
|
1210
|
+
l && /* @__PURE__ */ r.jsx(xr, { classes: i == null ? void 0 : i.siteMap })
|
|
1188
1211
|
]
|
|
1189
1212
|
}
|
|
1190
1213
|
)
|
|
1191
1214
|
] }) })
|
|
1192
1215
|
}
|
|
1193
|
-
),
|
|
1194
|
-
const d =
|
|
1195
|
-
return /* @__PURE__ */
|
|
1216
|
+
), fr = ({ classes: e, index: t, variant: n, title: o, description: i }) => {
|
|
1217
|
+
const d = n === "withTitleAndDescription" && o;
|
|
1218
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1196
1219
|
"div",
|
|
1197
1220
|
{
|
|
1198
1221
|
className: a(
|
|
@@ -1200,7 +1223,7 @@ const Qe = [
|
|
|
1200
1223
|
e == null ? void 0 : e.singleStep
|
|
1201
1224
|
),
|
|
1202
1225
|
children: [
|
|
1203
|
-
/* @__PURE__ */
|
|
1226
|
+
/* @__PURE__ */ r.jsx(
|
|
1204
1227
|
"div",
|
|
1205
1228
|
{
|
|
1206
1229
|
className: a(
|
|
@@ -1210,15 +1233,15 @@ const Qe = [
|
|
|
1210
1233
|
children: t
|
|
1211
1234
|
}
|
|
1212
1235
|
),
|
|
1213
|
-
/* @__PURE__ */
|
|
1214
|
-
d && /* @__PURE__ */
|
|
1236
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-2"), children: [
|
|
1237
|
+
d && /* @__PURE__ */ r.jsx(
|
|
1215
1238
|
"div",
|
|
1216
1239
|
{
|
|
1217
|
-
dangerouslySetInnerHTML: { __html:
|
|
1240
|
+
dangerouslySetInnerHTML: { __html: o },
|
|
1218
1241
|
className: a("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", e == null ? void 0 : e.title)
|
|
1219
1242
|
}
|
|
1220
1243
|
),
|
|
1221
|
-
/* @__PURE__ */
|
|
1244
|
+
/* @__PURE__ */ r.jsx(
|
|
1222
1245
|
"div",
|
|
1223
1246
|
{
|
|
1224
1247
|
dangerouslySetInnerHTML: { __html: i ?? "" },
|
|
@@ -1229,19 +1252,19 @@ const Qe = [
|
|
|
1229
1252
|
]
|
|
1230
1253
|
}
|
|
1231
1254
|
);
|
|
1232
|
-
},
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
-
/* @__PURE__ */
|
|
1255
|
+
}, Gn = ({ headline: e, details: t, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: g.stepper, "data-test-id": g.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: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
1256
|
+
/* @__PURE__ */ r.jsx(H, { as: "h2", className: a("text-color-dark", o == null ? void 0 : o.headline), children: e }),
|
|
1257
|
+
/* @__PURE__ */ r.jsx(
|
|
1235
1258
|
"div",
|
|
1236
1259
|
{
|
|
1237
1260
|
className: a(
|
|
1238
1261
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1239
|
-
|
|
1262
|
+
o == null ? void 0 : o.stepsWrapper
|
|
1240
1263
|
),
|
|
1241
|
-
children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */
|
|
1264
|
+
children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ r.jsx(fr, { variant: n, ...i, index: d + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
1242
1265
|
}
|
|
1243
1266
|
)
|
|
1244
|
-
] }) }) }),
|
|
1267
|
+
] }) }) }), br = E("", {
|
|
1245
1268
|
variants: {
|
|
1246
1269
|
intent: {
|
|
1247
1270
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -1257,7 +1280,7 @@ const Qe = [
|
|
|
1257
1280
|
defaultVariants: {
|
|
1258
1281
|
intent: "twoItems"
|
|
1259
1282
|
}
|
|
1260
|
-
}),
|
|
1283
|
+
}), gr = E("", {
|
|
1261
1284
|
variants: {
|
|
1262
1285
|
intent: {
|
|
1263
1286
|
twoItems: "",
|
|
@@ -1289,7 +1312,7 @@ const Qe = [
|
|
|
1289
1312
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1290
1313
|
}
|
|
1291
1314
|
]
|
|
1292
|
-
}),
|
|
1315
|
+
}), jr = E("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1293
1316
|
variants: {
|
|
1294
1317
|
intent: {
|
|
1295
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',
|
|
@@ -1299,7 +1322,7 @@ const Qe = [
|
|
|
1299
1322
|
defaultVariants: {
|
|
1300
1323
|
intent: "twoItems"
|
|
1301
1324
|
}
|
|
1302
|
-
}),
|
|
1325
|
+
}), yr = E("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1303
1326
|
variants: {
|
|
1304
1327
|
intent: {
|
|
1305
1328
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1325,33 +1348,33 @@ const Qe = [
|
|
|
1325
1348
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
1326
1349
|
}
|
|
1327
1350
|
]
|
|
1328
|
-
}),
|
|
1351
|
+
}), sr = ({ data: e, intent: t }) => {
|
|
1329
1352
|
const {
|
|
1330
|
-
title:
|
|
1331
|
-
description:
|
|
1353
|
+
title: n,
|
|
1354
|
+
description: o,
|
|
1332
1355
|
popover: i = {
|
|
1333
1356
|
enabled: !1
|
|
1334
1357
|
}
|
|
1335
1358
|
} = e;
|
|
1336
|
-
return /* @__PURE__ */
|
|
1337
|
-
/* @__PURE__ */
|
|
1338
|
-
/* @__PURE__ */
|
|
1339
|
-
i.enabled && /* @__PURE__ */
|
|
1359
|
+
return /* @__PURE__ */ r.jsx("li", { className: a(jr({ intent: t })), children: /* @__PURE__ */ r.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1360
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("mb-2 flex items-center gap-2"), children: [
|
|
1361
|
+
/* @__PURE__ */ r.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children: n }),
|
|
1362
|
+
i.enabled && /* @__PURE__ */ r.jsx(Mt, { triggerElement: /* @__PURE__ */ r.jsx(f, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1340
1363
|
] }),
|
|
1341
|
-
/* @__PURE__ */
|
|
1364
|
+
/* @__PURE__ */ r.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1342
1365
|
] }) });
|
|
1343
|
-
},
|
|
1366
|
+
}, wt = ({ intent: e, headline: t, desktopHidden: n = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: a(br({ intent: e, desktopHidden: n, mobileHidden: o })), children: t }), kr = ({ details: e, intent: t, withButton: n }) => /* @__PURE__ */ r.jsx("ul", { className: a(gr({ intent: t, withButton: n })), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ r.jsx(sr, { intent: t, data: o }, i)) }), to = ({
|
|
1344
1367
|
headline: e,
|
|
1345
1368
|
buttonConfig: t,
|
|
1346
|
-
intent:
|
|
1347
|
-
details:
|
|
1369
|
+
intent: n = "twoItems",
|
|
1370
|
+
details: o,
|
|
1348
1371
|
image: i,
|
|
1349
1372
|
classes: d
|
|
1350
1373
|
}) => {
|
|
1351
|
-
const l =
|
|
1352
|
-
return /* @__PURE__ */
|
|
1353
|
-
u && /* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */
|
|
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: g.longBanner, "data-test-id": g.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ r.jsxs(S, { className: a(d == null ? void 0 : d.container), children: [
|
|
1376
|
+
u && /* @__PURE__ */ r.jsx(wt, { intent: n, headline: e }),
|
|
1377
|
+
/* @__PURE__ */ r.jsxs(
|
|
1355
1378
|
"div",
|
|
1356
1379
|
{
|
|
1357
1380
|
className: a(
|
|
@@ -1359,16 +1382,16 @@ const Qe = [
|
|
|
1359
1382
|
d == null ? void 0 : d.contentContainer
|
|
1360
1383
|
),
|
|
1361
1384
|
children: [
|
|
1362
|
-
l && /* @__PURE__ */
|
|
1363
|
-
/* @__PURE__ */
|
|
1364
|
-
/* @__PURE__ */
|
|
1385
|
+
l && /* @__PURE__ */ r.jsx(wt, { intent: n, headline: e, desktopHidden: !0 }),
|
|
1386
|
+
/* @__PURE__ */ r.jsx("div", { className: a(yr({ intent: n, withButton: t == null ? void 0 : t.enabled }), d == null ? void 0 : d.imgContainer), children: m }),
|
|
1387
|
+
/* @__PURE__ */ r.jsxs(
|
|
1365
1388
|
"div",
|
|
1366
1389
|
{
|
|
1367
1390
|
className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
|
|
1368
1391
|
children: [
|
|
1369
|
-
l && /* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
1371
|
-
(t == null ? void 0 : t.enabled) && t && /* @__PURE__ */
|
|
1392
|
+
l && /* @__PURE__ */ r.jsx(wt, { intent: n, headline: e, mobileHidden: !0 }),
|
|
1393
|
+
/* @__PURE__ */ r.jsx(kr, { details: o, intent: n, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
|
|
1394
|
+
(t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ r.jsx(
|
|
1372
1395
|
J,
|
|
1373
1396
|
{
|
|
1374
1397
|
className: a("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
|
|
@@ -1384,62 +1407,62 @@ const Qe = [
|
|
|
1384
1407
|
}
|
|
1385
1408
|
)
|
|
1386
1409
|
] }) });
|
|
1387
|
-
},
|
|
1410
|
+
}, vt = {
|
|
1388
1411
|
ESIA: "esia",
|
|
1389
1412
|
MOBILE_ID: "mobileId",
|
|
1390
1413
|
COMBINE: "combine"
|
|
1391
|
-
},
|
|
1414
|
+
}, pe = ({ children: e, isLoading: t, classes: n, loaderProps: o }) => /* @__PURE__ */ r.jsx(
|
|
1392
1415
|
"div",
|
|
1393
1416
|
{
|
|
1394
1417
|
tabIndex: 0,
|
|
1395
1418
|
className: a(
|
|
1396
1419
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
1397
1420
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
1398
|
-
|
|
1421
|
+
n == null ? void 0 : n.root
|
|
1399
1422
|
),
|
|
1400
|
-
children: /* @__PURE__ */
|
|
1423
|
+
children: /* @__PURE__ */ r.jsx(
|
|
1401
1424
|
"div",
|
|
1402
1425
|
{
|
|
1403
1426
|
className: a(
|
|
1404
1427
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
1405
1428
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
1406
1429
|
{ "items-center": t },
|
|
1407
|
-
|
|
1430
|
+
n == null ? void 0 : n.wrapper
|
|
1408
1431
|
),
|
|
1409
|
-
children: t ? /* @__PURE__ */
|
|
1432
|
+
children: t ? /* @__PURE__ */ r.jsx(Ee, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : e
|
|
1410
1433
|
}
|
|
1411
1434
|
)
|
|
1412
1435
|
}
|
|
1413
|
-
),
|
|
1414
|
-
/* @__PURE__ */
|
|
1436
|
+
), wr = ({ ...e }) => /* @__PURE__ */ r.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
1437
|
+
/* @__PURE__ */ r.jsx(
|
|
1415
1438
|
"path",
|
|
1416
1439
|
{
|
|
1417
1440
|
d: "M30.3986 10.6149C30.2728 8.96576 29.014 6.85155 27.7553 5.83672C26.3398 4.79816 24.8691 3.83828 23.3497 2.96139C21.8418 2.06068 20.2871 1.24201 18.6923 0.508895C17.8404 0.15868 16.927 -0.0139306 16.007 0.00148264C15.0868 -0.0180029 14.1725 0.154761 13.3217 0.508895C11.7272 1.24253 10.1725 2.06119 8.66438 2.96139C6.23081 4.44134 4.25878 5.83672 4.25878 5.83672C3.22329 6.71008 2.43892 7.83418 1.97146 9.09195C1.87834 9.34251 2.07032 9.59987 2.33762 9.59987H4.2568C4.55401 9.59987 4.82321 9.43281 4.98085 9.18085C5.33539 8.61417 5.77902 8.10202 6.29948 7.66607C6.29948 7.66607 7.92774 6.52186 9.93709 5.3083C11.1823 4.57013 12.466 3.89884 13.7826 3.29725C14.485 3.00687 15.2399 2.8652 15.9998 2.88118C16.7593 2.86854 17.5136 3.01008 18.217 3.29725C19.5337 3.89841 20.8174 4.56972 22.0624 5.3083C23.317 6.02735 24.5313 6.81445 25.7 7.66607C26.7394 8.49823 27.7787 10.2319 27.8826 11.5841C27.8826 11.5841 28.1251 13.5952 28.1598 15.9772C28.1576 17.4483 28.0767 18.9183 27.9173 20.3807C27.6755 21.912 26.8879 23.3038 25.7 24.2988C25.7 24.2988 24.0718 25.4777 22.0624 26.6912C20.8172 27.4294 19.5335 28.1007 18.217 28.7023C17.5145 28.9927 16.7596 29.1343 15.9998 29.1184C15.2409 29.1343 14.4867 28.9963 13.7826 28.7127C12.4658 28.1115 11.1821 27.4402 9.93709 26.7016C7.92774 25.5228 6.29948 24.3092 6.29948 24.3092C5.84515 23.9454 5.39081 23.4094 5.01172 22.8082C4.85581 22.561 4.5896 22.3997 4.2973 22.3997H2.34718C2.07645 22.3997 1.88475 22.6629 1.98611 22.914C2.49249 24.168 3.37564 25.4212 4.25878 26.1332C4.25878 26.1332 6.23081 27.6132 8.66438 29.0508C10.1723 29.9515 11.7269 30.7702 13.3217 31.5033C14.1745 31.8492 15.088 32.0175 16.007 31.998C16.9273 32.0175 17.8416 31.8448 18.6923 31.4906C20.2869 30.757 21.8415 29.9383 23.3497 29.0381C25.7833 27.5582 27.7553 26.1205 27.7553 26.1205C29.1939 24.9072 30.1478 23.2098 30.4406 21.3424C30.6337 19.5589 30.7317 17.7663 30.7343 15.9723C30.6923 13.0673 30.3986 10.6149 30.3986 10.6149Z",
|
|
1418
1441
|
fill: "url(#paint0_linear_6493_452)"
|
|
1419
1442
|
}
|
|
1420
1443
|
),
|
|
1421
|
-
/* @__PURE__ */
|
|
1444
|
+
/* @__PURE__ */ r.jsx(
|
|
1422
1445
|
"path",
|
|
1423
1446
|
{
|
|
1424
1447
|
d: "M1.27985 12.4821C1.27985 12.1286 1.56638 11.8421 1.91985 11.8421H11.8398C12.1933 11.8421 12.4798 12.1286 12.4798 12.4821V14.4021C12.4798 14.7555 12.1933 15.0421 11.8398 15.0421H1.27985V12.4821Z",
|
|
1425
1448
|
fill: "#0066B3"
|
|
1426
1449
|
}
|
|
1427
1450
|
),
|
|
1428
|
-
/* @__PURE__ */
|
|
1451
|
+
/* @__PURE__ */ r.jsx(
|
|
1429
1452
|
"path",
|
|
1430
1453
|
{
|
|
1431
1454
|
d: "M1.27985 16.9618H21.4398C21.7933 16.9618 22.0798 17.2484 22.0798 17.6018V19.5218C22.0798 19.8752 21.7933 20.1618 21.4398 20.1618H1.91985C1.56638 20.1618 1.27985 19.8752 1.27985 19.5218V16.9618Z",
|
|
1432
1455
|
fill: "#EE2F53"
|
|
1433
1456
|
}
|
|
1434
1457
|
),
|
|
1435
|
-
/* @__PURE__ */
|
|
1436
|
-
/* @__PURE__ */
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
/* @__PURE__ */
|
|
1439
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ r.jsx("defs", { children: /* @__PURE__ */ r.jsxs("linearGradient", { id: "paint0_linear_6493_452", x1: "16.0071", y1: "0", x2: "16.0071", y2: "31.9996", gradientUnits: "userSpaceOnUse", children: [
|
|
1459
|
+
/* @__PURE__ */ r.jsx("stop", { stopColor: "#0066B3" }),
|
|
1460
|
+
/* @__PURE__ */ r.jsx("stop", { offset: "0.354167", stopColor: "#0066B3" }),
|
|
1461
|
+
/* @__PURE__ */ r.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1462
|
+
/* @__PURE__ */ r.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1440
1463
|
] }) })
|
|
1441
|
-
] }),
|
|
1442
|
-
/* @__PURE__ */
|
|
1464
|
+
] }), he = ({ mainLink: e, subLink: t, isMobile: n, classes: o }) => /* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
|
|
1465
|
+
/* @__PURE__ */ r.jsx(
|
|
1443
1466
|
"a",
|
|
1444
1467
|
{
|
|
1445
1468
|
href: e.href,
|
|
@@ -1447,13 +1470,13 @@ const Qe = [
|
|
|
1447
1470
|
rel: "noreferrer",
|
|
1448
1471
|
className: a(
|
|
1449
1472
|
'before:content=[" "] desk-body-medium-l z-[4] text-color-dark before:absolute before:left-1/2 before:top-1/2 before:h-full before:w-full before:-translate-x-1/2 before:-translate-y-1/2',
|
|
1450
|
-
|
|
1473
|
+
o == null ? void 0 : o.linksMainLink
|
|
1451
1474
|
),
|
|
1452
|
-
children:
|
|
1475
|
+
children: n ? e.mobileTitle : e.title
|
|
1453
1476
|
}
|
|
1454
1477
|
),
|
|
1455
|
-
(t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */
|
|
1456
|
-
|
|
1478
|
+
(t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ r.jsx(
|
|
1479
|
+
yt,
|
|
1457
1480
|
{
|
|
1458
1481
|
intent: "blue",
|
|
1459
1482
|
withUnderline: !0,
|
|
@@ -1461,65 +1484,65 @@ const Qe = [
|
|
|
1461
1484
|
target: "_blank",
|
|
1462
1485
|
rel: "noreferrer",
|
|
1463
1486
|
classes: {
|
|
1464
|
-
link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary",
|
|
1487
|
+
link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", o == null ? void 0 : o.linksSubLink)
|
|
1465
1488
|
},
|
|
1466
1489
|
children: t == null ? void 0 : t.text
|
|
1467
1490
|
}
|
|
1468
1491
|
)
|
|
1469
|
-
] }),
|
|
1492
|
+
] }), Vt = ({ mainLink: e, subLink: t, isLoading: n, badge: o, loaderProps: i, classes: d }) => {
|
|
1470
1493
|
const { isMobile: l } = Y();
|
|
1471
|
-
return /* @__PURE__ */
|
|
1494
|
+
return /* @__PURE__ */ r.jsx(pe, { isLoading: n, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1472
1495
|
"div",
|
|
1473
1496
|
{
|
|
1474
1497
|
className: a(
|
|
1475
1498
|
"flex flex-1 items-center justify-between gap-1",
|
|
1476
|
-
{ "justify-center": !
|
|
1499
|
+
{ "justify-center": !o && l },
|
|
1477
1500
|
d == null ? void 0 : d.innerWrapper
|
|
1478
1501
|
),
|
|
1479
1502
|
children: [
|
|
1480
|
-
/* @__PURE__ */
|
|
1481
|
-
/* @__PURE__ */
|
|
1482
|
-
/* @__PURE__ */
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
|
|
1504
|
+
/* @__PURE__ */ r.jsxs("div", { children: [
|
|
1505
|
+
/* @__PURE__ */ r.jsx(f, { name: "logos/mts", className: a("relative z-[9] size-7 desktop:size-8", d == null ? void 0 : d.mtsLogo) }),
|
|
1506
|
+
/* @__PURE__ */ r.jsx(f, { name: "logos/megafon", className: a("relative z-[8] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.megafonLogo) }),
|
|
1507
|
+
/* @__PURE__ */ r.jsx(f, { name: "logos/beeline", className: a("relative z-[7] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.beelineLogo) })
|
|
1485
1508
|
] }),
|
|
1486
|
-
/* @__PURE__ */
|
|
1487
|
-
/* @__PURE__ */
|
|
1509
|
+
/* @__PURE__ */ r.jsx(he, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
|
|
1510
|
+
/* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
|
|
1488
1511
|
] }),
|
|
1489
|
-
|
|
1512
|
+
o && /* @__PURE__ */ r.jsx(Tt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: o })
|
|
1490
1513
|
]
|
|
1491
1514
|
}
|
|
1492
1515
|
) });
|
|
1493
|
-
},
|
|
1516
|
+
}, qt = ({ mainLink: e, subLink: t, isLoading: n, badge: o, loaderProps: i, classes: d }) => {
|
|
1494
1517
|
const { isMobile: l } = Y();
|
|
1495
|
-
return /* @__PURE__ */
|
|
1518
|
+
return /* @__PURE__ */ r.jsx(pe, { isLoading: n, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1496
1519
|
"div",
|
|
1497
1520
|
{
|
|
1498
1521
|
className: a(
|
|
1499
1522
|
"flex flex-1 items-center justify-between gap-1",
|
|
1500
|
-
{ "justify-center": !
|
|
1523
|
+
{ "justify-center": !o && l },
|
|
1501
1524
|
d == null ? void 0 : d.innerWrapper
|
|
1502
1525
|
),
|
|
1503
1526
|
children: [
|
|
1504
|
-
/* @__PURE__ */
|
|
1505
|
-
/* @__PURE__ */
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
-
/* @__PURE__ */
|
|
1527
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
|
|
1528
|
+
/* @__PURE__ */ r.jsx(wr, { className: a("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
|
|
1529
|
+
/* @__PURE__ */ r.jsx(he, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
|
|
1530
|
+
/* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
|
|
1508
1531
|
] }),
|
|
1509
|
-
|
|
1532
|
+
o && /* @__PURE__ */ r.jsx(Tt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: o })
|
|
1510
1533
|
]
|
|
1511
1534
|
}
|
|
1512
1535
|
) });
|
|
1513
|
-
},
|
|
1536
|
+
}, vr = (e) => {
|
|
1514
1537
|
switch (e.mode) {
|
|
1515
|
-
case
|
|
1516
|
-
return /* @__PURE__ */
|
|
1517
|
-
case
|
|
1518
|
-
return /* @__PURE__ */
|
|
1519
|
-
case
|
|
1538
|
+
case vt.ESIA:
|
|
1539
|
+
return /* @__PURE__ */ r.jsx(qt, { ...e });
|
|
1540
|
+
case vt.MOBILE_ID:
|
|
1541
|
+
return /* @__PURE__ */ r.jsx(Vt, { ...e });
|
|
1542
|
+
case vt.COMBINE:
|
|
1520
1543
|
default:
|
|
1521
|
-
const { esiaConfig: t, mobileIdConfig:
|
|
1522
|
-
return /* @__PURE__ */
|
|
1544
|
+
const { esiaConfig: t, mobileIdConfig: n, subtitle: o, badge: i, classes: d } = e, l = !o && !i ? at.Fragment : "div";
|
|
1545
|
+
return /* @__PURE__ */ r.jsxs(
|
|
1523
1546
|
"div",
|
|
1524
1547
|
{
|
|
1525
1548
|
className: a(
|
|
@@ -1527,13 +1550,13 @@ const Qe = [
|
|
|
1527
1550
|
d == null ? void 0 : d.root
|
|
1528
1551
|
),
|
|
1529
1552
|
children: [
|
|
1530
|
-
/* @__PURE__ */
|
|
1531
|
-
|
|
1532
|
-
i && /* @__PURE__ */
|
|
1553
|
+
/* @__PURE__ */ r.jsxs(l, { className: a("flex w-full items-center justify-between gap-2", d == null ? void 0 : d.topContent), children: [
|
|
1554
|
+
o && /* @__PURE__ */ r.jsx("h5", { className: a("desk-body-regular-l flex flex-1 text-color-dark", d == null ? void 0 : d.subtitle), children: o }),
|
|
1555
|
+
i && /* @__PURE__ */ r.jsx(Tt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
|
|
1533
1556
|
] }),
|
|
1534
|
-
/* @__PURE__ */
|
|
1535
|
-
/* @__PURE__ */
|
|
1536
|
-
|
|
1557
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
|
|
1558
|
+
/* @__PURE__ */ r.jsx(
|
|
1559
|
+
qt,
|
|
1537
1560
|
{
|
|
1538
1561
|
...t,
|
|
1539
1562
|
classes: {
|
|
@@ -1543,14 +1566,14 @@ const Qe = [
|
|
|
1543
1566
|
}
|
|
1544
1567
|
}
|
|
1545
1568
|
),
|
|
1546
|
-
/* @__PURE__ */
|
|
1547
|
-
|
|
1569
|
+
/* @__PURE__ */ r.jsx(
|
|
1570
|
+
Vt,
|
|
1548
1571
|
{
|
|
1549
|
-
...
|
|
1572
|
+
...n,
|
|
1550
1573
|
classes: {
|
|
1551
1574
|
root: "p-0 outline-0 h-[74px]",
|
|
1552
1575
|
arrowIcon: "hidden",
|
|
1553
|
-
...
|
|
1576
|
+
...n.classes
|
|
1554
1577
|
}
|
|
1555
1578
|
}
|
|
1556
1579
|
)
|
|
@@ -1559,45 +1582,45 @@ const Qe = [
|
|
|
1559
1582
|
}
|
|
1560
1583
|
);
|
|
1561
1584
|
}
|
|
1562
|
-
},
|
|
1563
|
-
|
|
1585
|
+
}, eo = (e) => vr(e), Ut = ({ links: e, classes: t }) => /* @__PURE__ */ r.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: n, label: o }) => /* @__PURE__ */ r.jsx(
|
|
1586
|
+
yt,
|
|
1564
1587
|
{
|
|
1565
1588
|
classes: {
|
|
1566
1589
|
link: a("w-max", t == null ? void 0 : t.linkText),
|
|
1567
1590
|
icon: a(t == null ? void 0 : t.linkIcon)
|
|
1568
1591
|
},
|
|
1569
1592
|
intent: "dark",
|
|
1570
|
-
href:
|
|
1571
|
-
children:
|
|
1593
|
+
href: n,
|
|
1594
|
+
children: o
|
|
1572
1595
|
},
|
|
1573
|
-
|
|
1574
|
-
)) }),
|
|
1596
|
+
n
|
|
1597
|
+
)) }), Nr = ({ groupLabel: e, links: t, mobileAccordionProps: n, classes: o }) => {
|
|
1575
1598
|
var d, l, u;
|
|
1576
1599
|
const { isMobile: i } = Y();
|
|
1577
|
-
return /* @__PURE__ */
|
|
1578
|
-
!i && /* @__PURE__ */
|
|
1579
|
-
/* @__PURE__ */
|
|
1580
|
-
/* @__PURE__ */
|
|
1600
|
+
return /* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1601
|
+
!i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1602
|
+
/* @__PURE__ */ r.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: e }),
|
|
1603
|
+
/* @__PURE__ */ r.jsx(Ut, { links: t, classes: o == null ? void 0 : o.linksList }, "desktop")
|
|
1581
1604
|
] }),
|
|
1582
|
-
i && /* @__PURE__ */
|
|
1583
|
-
|
|
1605
|
+
i && /* @__PURE__ */ r.jsx(
|
|
1606
|
+
nt,
|
|
1584
1607
|
{
|
|
1585
1608
|
defaultOpen: !0,
|
|
1586
1609
|
label: e,
|
|
1587
|
-
icon: /* @__PURE__ */
|
|
1588
|
-
...
|
|
1610
|
+
icon: /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: a("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1611
|
+
...n,
|
|
1589
1612
|
classes: {
|
|
1590
|
-
...
|
|
1613
|
+
...n == null ? void 0 : n.classes,
|
|
1591
1614
|
header: {
|
|
1592
|
-
trigger: a("p-0 bg-color-blue-grey-100", (l = (d =
|
|
1615
|
+
trigger: a("p-0 bg-color-blue-grey-100", (l = (d = n == null ? void 0 : n.classes) == null ? void 0 : d.header) == null ? void 0 : l.trigger)
|
|
1593
1616
|
},
|
|
1594
|
-
contentInner: a("py-2 px-4", (u =
|
|
1617
|
+
contentInner: a("py-2 px-4", (u = n == null ? void 0 : n.classes) == null ? void 0 : u.contentInner)
|
|
1595
1618
|
},
|
|
1596
|
-
children: /* @__PURE__ */
|
|
1619
|
+
children: /* @__PURE__ */ r.jsx(Ut, { links: t, classes: o == null ? void 0 : o.linksList }, "mobile")
|
|
1597
1620
|
}
|
|
1598
1621
|
)
|
|
1599
1622
|
] });
|
|
1600
|
-
},
|
|
1623
|
+
}, Cr = ({ column: e, mobileAccordionProps: t, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", n == null ? void 0 : n.column), children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ r.jsx(Nr, { ...t, ...o, classes: n == null ? void 0 : n.columnGroup }, o.groupLabel)) }), Ir = E("grid gap-4 grid-cols-1", {
|
|
1601
1624
|
variants: {
|
|
1602
1625
|
variant: {
|
|
1603
1626
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1608,82 +1631,82 @@ const Qe = [
|
|
|
1608
1631
|
defaultVariants: {
|
|
1609
1632
|
variant: "fourCols"
|
|
1610
1633
|
}
|
|
1611
|
-
}),
|
|
1634
|
+
}), ro = ({
|
|
1612
1635
|
variant: e,
|
|
1613
1636
|
details: t,
|
|
1614
|
-
headline:
|
|
1615
|
-
mobileAccordionProps:
|
|
1637
|
+
headline: n,
|
|
1638
|
+
mobileAccordionProps: o,
|
|
1616
1639
|
rootAccordionProps: i,
|
|
1617
1640
|
classes: d,
|
|
1618
1641
|
defaultOpen: l
|
|
1619
1642
|
}) => {
|
|
1620
|
-
var u,
|
|
1621
|
-
return /* @__PURE__ */
|
|
1643
|
+
var u, m, p;
|
|
1644
|
+
return /* @__PURE__ */ r.jsx(
|
|
1622
1645
|
"section",
|
|
1623
1646
|
{
|
|
1624
|
-
id:
|
|
1625
|
-
"data-test-id":
|
|
1647
|
+
id: g.interLinking,
|
|
1648
|
+
"data-test-id": g.interLinking,
|
|
1626
1649
|
className: a("min-w-full desktop:min-w-[1140px]", d == null ? void 0 : d.root),
|
|
1627
|
-
children: /* @__PURE__ */
|
|
1628
|
-
|
|
1650
|
+
children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsx(
|
|
1651
|
+
nt,
|
|
1629
1652
|
{
|
|
1630
1653
|
defaultOpen: l,
|
|
1631
|
-
label: /* @__PURE__ */
|
|
1654
|
+
label: /* @__PURE__ */ r.jsx(H, { as: "h4", className: a("text-left", d == null ? void 0 : d.headline), children: n }),
|
|
1632
1655
|
...i,
|
|
1633
1656
|
classes: {
|
|
1634
1657
|
...i == null ? void 0 : i.classes,
|
|
1635
1658
|
header: {
|
|
1636
|
-
trigger: a("bg-color-blue-grey-100", (
|
|
1659
|
+
trigger: a("bg-color-blue-grey-100", (m = (u = i == null ? void 0 : i.classes) == null ? void 0 : u.header) == null ? void 0 : m.trigger)
|
|
1637
1660
|
},
|
|
1638
|
-
content: a("max-w-full bg-color-blue-grey-100 relative", (
|
|
1661
|
+
content: a("max-w-full bg-color-blue-grey-100 relative", (p = i == null ? void 0 : i.classes) == null ? void 0 : p.content)
|
|
1639
1662
|
},
|
|
1640
|
-
children: /* @__PURE__ */
|
|
1663
|
+
children: /* @__PURE__ */ r.jsx("div", { className: a(Ir({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((x, c) => /* @__PURE__ */ r.jsx(Cr, { ...x, ...o, classes: d == null ? void 0 : d.column }, c)) })
|
|
1641
1664
|
}
|
|
1642
1665
|
) })
|
|
1643
1666
|
}
|
|
1644
1667
|
);
|
|
1645
|
-
},
|
|
1668
|
+
}, Mr = ({ tabsNames: e, activeTab: t, setActiveTab: n, classes: o }) => /* @__PURE__ */ r.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: e && e.map((i, d) => /* @__PURE__ */ r.jsx(
|
|
1646
1669
|
"button",
|
|
1647
1670
|
{
|
|
1648
|
-
onClick: () =>
|
|
1671
|
+
onClick: () => n(d),
|
|
1649
1672
|
className: a(
|
|
1650
|
-
"
|
|
1673
|
+
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
1651
1674
|
{
|
|
1652
1675
|
"bg-icon-primary-default text-color-white": t === d
|
|
1653
1676
|
},
|
|
1654
|
-
|
|
1677
|
+
o == null ? void 0 : o.button
|
|
1655
1678
|
),
|
|
1656
1679
|
children: i
|
|
1657
1680
|
},
|
|
1658
1681
|
i
|
|
1659
|
-
)) }),
|
|
1660
|
-
const i = /* @__PURE__ */
|
|
1661
|
-
return /* @__PURE__ */
|
|
1662
|
-
},
|
|
1663
|
-
rows: e == null ? void 0 : e.map(({ row:
|
|
1664
|
-
row:
|
|
1682
|
+
)) }), Tr = (e) => e.variant === "HTML", Er = (e) => e.variant === "DOCUMENTS", Fr = (e) => e.variant === "TABLE", Or = ({ html: e, config: t, classes: n, accordionConfig: o }) => {
|
|
1683
|
+
const i = /* @__PURE__ */ r.jsx("div", { className: a(n == null ? void 0 : n.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
|
|
1684
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ r.jsx(nt, { label: t == null ? void 0 : t.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
|
|
1685
|
+
}, Sr = (e, t) => ({
|
|
1686
|
+
rows: e == null ? void 0 : e.map(({ row: n }) => ({
|
|
1687
|
+
row: n == null ? void 0 : n.map((o, i) => {
|
|
1665
1688
|
var d;
|
|
1666
1689
|
return {
|
|
1667
|
-
...
|
|
1690
|
+
...o,
|
|
1668
1691
|
heading: t && ((d = t[i]) == null ? void 0 : d.heading)
|
|
1669
1692
|
};
|
|
1670
1693
|
})
|
|
1671
1694
|
}))
|
|
1672
|
-
}),
|
|
1695
|
+
}), Br = E("flex flex-col", {
|
|
1673
1696
|
variants: {
|
|
1674
1697
|
columnsVariant: {
|
|
1675
1698
|
twoCols: "w-full max-w-[656px]",
|
|
1676
1699
|
threeCols: "w-full max-w-[768px]"
|
|
1677
1700
|
}
|
|
1678
1701
|
}
|
|
1679
|
-
}),
|
|
1702
|
+
}), Rr = E("desktop:grid mobile:hidden px-4 mb-4", {
|
|
1680
1703
|
variants: {
|
|
1681
1704
|
columnsVariant: {
|
|
1682
1705
|
twoCols: "grid-cols-2 gap-16",
|
|
1683
1706
|
threeCols: "grid-cols-3 gap-12"
|
|
1684
1707
|
}
|
|
1685
1708
|
}
|
|
1686
|
-
}),
|
|
1709
|
+
}), _r = ({ headings: e, columnsVariant: t, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: a(Rr({ columnsVariant: t }), n == null ? void 0 : n.row), children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ r.jsx("div", { className: a("text-color-secondary", n == null ? void 0 : n.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), Hr = E("desktop:grid mobile:hidden items-center", {
|
|
1687
1710
|
variants: {
|
|
1688
1711
|
columnsVariant: {
|
|
1689
1712
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1694,90 +1717,90 @@ const Qe = [
|
|
|
1694
1717
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1695
1718
|
}
|
|
1696
1719
|
}
|
|
1697
|
-
}),
|
|
1720
|
+
}), Dr = ({ row: e, tableVariant: t, columnsVariant: n, rowIndex: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: a(Hr({ columnsVariant: n, tableVariant: t }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ r.jsx(
|
|
1698
1721
|
"div",
|
|
1699
1722
|
{
|
|
1700
1723
|
className: a("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
|
|
1701
1724
|
children: d && d
|
|
1702
1725
|
},
|
|
1703
1726
|
l
|
|
1704
|
-
)) }),
|
|
1727
|
+
)) }), Pr = E("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1705
1728
|
variants: {
|
|
1706
1729
|
tableVariant: {
|
|
1707
1730
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1708
1731
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1709
1732
|
}
|
|
1710
1733
|
}
|
|
1711
|
-
}),
|
|
1712
|
-
l && /* @__PURE__ */
|
|
1713
|
-
/* @__PURE__ */
|
|
1734
|
+
}), Lr = ({ row: e, tableVariant: t, columnsVariant: n, headingsExist: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: a(Pr({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, u) => /* @__PURE__ */ r.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
|
|
1735
|
+
l && /* @__PURE__ */ r.jsx("div", { className: a("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
|
|
1736
|
+
/* @__PURE__ */ r.jsx(
|
|
1714
1737
|
"div",
|
|
1715
1738
|
{
|
|
1716
1739
|
className: a(
|
|
1717
1740
|
"mob-body-regular-l text-color-dark",
|
|
1718
1741
|
{
|
|
1719
|
-
"font-medium": u !== 0 &&
|
|
1742
|
+
"font-medium": u !== 0 && n === "twoCols" || n === "threeCols" || n === "twoCols" && o
|
|
1720
1743
|
},
|
|
1721
1744
|
i == null ? void 0 : i.cell
|
|
1722
1745
|
),
|
|
1723
1746
|
children: d
|
|
1724
1747
|
}
|
|
1725
1748
|
)
|
|
1726
|
-
] }, u)) }),
|
|
1749
|
+
] }, u)) }), zr = ({ tableVariant: e, rows: t, headings: n, columnsVariant: o, classes: i }) => {
|
|
1727
1750
|
var u;
|
|
1728
|
-
const d = ((u =
|
|
1729
|
-
return /* @__PURE__ */
|
|
1730
|
-
l && /* @__PURE__ */
|
|
1731
|
-
t == null ? void 0 : t.map((
|
|
1732
|
-
|
|
1751
|
+
const d = ((u = Sr(t, n)) == null ? void 0 : u.rows) ?? [], l = !!(n && n.length > 0);
|
|
1752
|
+
return /* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1753
|
+
l && /* @__PURE__ */ r.jsx(_r, { headings: n, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1754
|
+
t == null ? void 0 : t.map((m, p) => /* @__PURE__ */ r.jsx(
|
|
1755
|
+
Dr,
|
|
1733
1756
|
{
|
|
1734
|
-
rowIndex:
|
|
1757
|
+
rowIndex: p,
|
|
1735
1758
|
tableVariant: e,
|
|
1736
|
-
columnsVariant:
|
|
1759
|
+
columnsVariant: o,
|
|
1737
1760
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1738
|
-
...
|
|
1761
|
+
...m
|
|
1739
1762
|
},
|
|
1740
|
-
|
|
1763
|
+
p
|
|
1741
1764
|
)),
|
|
1742
|
-
d == null ? void 0 : d.map((
|
|
1743
|
-
|
|
1765
|
+
d == null ? void 0 : d.map((m, p) => /* @__PURE__ */ r.jsx(
|
|
1766
|
+
Lr,
|
|
1744
1767
|
{
|
|
1745
1768
|
headingsExist: l,
|
|
1746
1769
|
tableVariant: e,
|
|
1747
|
-
columnsVariant:
|
|
1770
|
+
columnsVariant: o,
|
|
1748
1771
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1749
|
-
...
|
|
1772
|
+
...m
|
|
1750
1773
|
},
|
|
1751
|
-
|
|
1774
|
+
p
|
|
1752
1775
|
))
|
|
1753
1776
|
] });
|
|
1754
|
-
},
|
|
1777
|
+
}, Qr = ({
|
|
1755
1778
|
tableVariant: e,
|
|
1756
1779
|
description: t,
|
|
1757
|
-
columnsVariant:
|
|
1758
|
-
config:
|
|
1780
|
+
columnsVariant: n,
|
|
1781
|
+
config: o,
|
|
1759
1782
|
rows: i,
|
|
1760
1783
|
title: d,
|
|
1761
1784
|
headings: l,
|
|
1762
1785
|
accordionConfig: u,
|
|
1763
|
-
classes:
|
|
1786
|
+
classes: m
|
|
1764
1787
|
}) => {
|
|
1765
|
-
const
|
|
1766
|
-
d && /* @__PURE__ */
|
|
1767
|
-
/* @__PURE__ */
|
|
1768
|
-
t && /* @__PURE__ */
|
|
1788
|
+
const p = /* @__PURE__ */ r.jsxs("div", { className: a(Br({ columnsVariant: n }), m == null ? void 0 : m.wrapper), children: [
|
|
1789
|
+
d && /* @__PURE__ */ r.jsx(H, { as: "h4", className: a("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: d }),
|
|
1790
|
+
/* @__PURE__ */ r.jsx(zr, { tableVariant: e, rows: i, headings: l, columnsVariant: n }),
|
|
1791
|
+
t && /* @__PURE__ */ r.jsx(
|
|
1769
1792
|
"div",
|
|
1770
1793
|
{
|
|
1771
|
-
className: a("mt-2 [&&]:desk-body-regular-m desktop:mt-2",
|
|
1794
|
+
className: a("mt-2 [&&]:desk-body-regular-m desktop:mt-2", m == null ? void 0 : m.description),
|
|
1772
1795
|
dangerouslySetInnerHTML: { __html: t ?? "" }
|
|
1773
1796
|
}
|
|
1774
1797
|
)
|
|
1775
1798
|
] });
|
|
1776
|
-
return /* @__PURE__ */
|
|
1777
|
-
},
|
|
1799
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ r.jsx(nt, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || p }) : p });
|
|
1800
|
+
}, Ar = {
|
|
1778
1801
|
documentFilled: "files/documentFilled",
|
|
1779
1802
|
documentOutline: "files/documentOutline"
|
|
1780
|
-
},
|
|
1803
|
+
}, Vr = E("size-8 transition-colors", {
|
|
1781
1804
|
variants: {
|
|
1782
1805
|
iconType: {
|
|
1783
1806
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1787,10 +1810,10 @@ const Qe = [
|
|
|
1787
1810
|
defaultVariants: {
|
|
1788
1811
|
iconType: "documentOutline"
|
|
1789
1812
|
}
|
|
1790
|
-
}),
|
|
1813
|
+
}), qr = ({ label: e, size: t, url: n, iconType: o, classes: i }) => /* @__PURE__ */ r.jsxs(
|
|
1791
1814
|
"a",
|
|
1792
1815
|
{
|
|
1793
|
-
href:
|
|
1816
|
+
href: n,
|
|
1794
1817
|
target: "_blank",
|
|
1795
1818
|
rel: "noreferrer",
|
|
1796
1819
|
tabIndex: 0,
|
|
@@ -1799,53 +1822,53 @@ const Qe = [
|
|
|
1799
1822
|
i == null ? void 0 : i.link
|
|
1800
1823
|
),
|
|
1801
1824
|
children: [
|
|
1802
|
-
/* @__PURE__ */
|
|
1803
|
-
/* @__PURE__ */
|
|
1804
|
-
/* @__PURE__ */
|
|
1805
|
-
/* @__PURE__ */
|
|
1825
|
+
/* @__PURE__ */ r.jsx(f, { name: Ar[o], className: a(Vr({ iconType: o }), i == null ? void 0 : i.icon) }),
|
|
1826
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1827
|
+
/* @__PURE__ */ r.jsx("p", { className: a("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: e }),
|
|
1828
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
1806
1829
|
Number(t),
|
|
1807
1830
|
" КБ"
|
|
1808
1831
|
] })
|
|
1809
1832
|
] })
|
|
1810
1833
|
]
|
|
1811
1834
|
}
|
|
1812
|
-
),
|
|
1813
|
-
const u = /* @__PURE__ */
|
|
1814
|
-
|
|
1815
|
-
/* @__PURE__ */
|
|
1816
|
-
i && /* @__PURE__ */
|
|
1835
|
+
), Ur = ({ docs: e, config: t, title: n, iconType: o, description: i, classes: d, accordionConfig: l }) => {
|
|
1836
|
+
const u = /* @__PURE__ */ r.jsxs("div", { className: a("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
|
|
1837
|
+
n && /* @__PURE__ */ r.jsx(H, { as: "h3", className: "mb-4", children: n }),
|
|
1838
|
+
/* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((m) => /* @__PURE__ */ r.jsx(qr, { iconType: o, ...m, classes: d == null ? void 0 : d.singleDocument }, m.label)) }),
|
|
1839
|
+
i && /* @__PURE__ */ r.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1817
1840
|
] });
|
|
1818
|
-
return /* @__PURE__ */
|
|
1819
|
-
},
|
|
1820
|
-
var
|
|
1841
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ r.jsx(nt, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
|
|
1842
|
+
}, Wr = ({ entity: e, classes: t, accordionsConfig: n }) => {
|
|
1843
|
+
var o, i, d;
|
|
1821
1844
|
switch (!0) {
|
|
1822
|
-
case
|
|
1823
|
-
return (
|
|
1824
|
-
var
|
|
1825
|
-
return /* @__PURE__ */
|
|
1845
|
+
case Tr(e):
|
|
1846
|
+
return (o = e.details) == null ? void 0 : o.map((l, u) => {
|
|
1847
|
+
var m;
|
|
1848
|
+
return /* @__PURE__ */ r.jsx(Or, { ...l, accordionConfig: n == null ? void 0 : n.htmlAccordion, classes: (m = t == null ? void 0 : t.entities) == null ? void 0 : m.html }, u);
|
|
1826
1849
|
});
|
|
1827
|
-
case
|
|
1850
|
+
case Er(e):
|
|
1828
1851
|
return (i = e.details) == null ? void 0 : i.map((l, u) => {
|
|
1829
|
-
var
|
|
1830
|
-
return /* @__PURE__ */
|
|
1831
|
-
|
|
1852
|
+
var m;
|
|
1853
|
+
return /* @__PURE__ */ r.jsx(
|
|
1854
|
+
Ur,
|
|
1832
1855
|
{
|
|
1833
|
-
accordionConfig:
|
|
1856
|
+
accordionConfig: n == null ? void 0 : n.documentAccordion,
|
|
1834
1857
|
...l,
|
|
1835
|
-
classes: (
|
|
1858
|
+
classes: (m = t == null ? void 0 : t.entities) == null ? void 0 : m.documents
|
|
1836
1859
|
},
|
|
1837
1860
|
u
|
|
1838
1861
|
);
|
|
1839
1862
|
});
|
|
1840
|
-
case
|
|
1863
|
+
case Fr(e):
|
|
1841
1864
|
return (d = e.details) == null ? void 0 : d.map((l, u) => {
|
|
1842
|
-
var
|
|
1843
|
-
return /* @__PURE__ */
|
|
1844
|
-
|
|
1865
|
+
var m;
|
|
1866
|
+
return /* @__PURE__ */ r.jsx(
|
|
1867
|
+
Qr,
|
|
1845
1868
|
{
|
|
1846
|
-
accordionConfig:
|
|
1869
|
+
accordionConfig: n == null ? void 0 : n.tableAccordion,
|
|
1847
1870
|
...l,
|
|
1848
|
-
classes: (
|
|
1871
|
+
classes: (m = t == null ? void 0 : t.entities) == null ? void 0 : m.table
|
|
1849
1872
|
},
|
|
1850
1873
|
u
|
|
1851
1874
|
);
|
|
@@ -1853,19 +1876,19 @@ const Qe = [
|
|
|
1853
1876
|
default:
|
|
1854
1877
|
return null;
|
|
1855
1878
|
}
|
|
1856
|
-
},
|
|
1857
|
-
var u,
|
|
1858
|
-
const [i, d] =
|
|
1859
|
-
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */
|
|
1860
|
-
/* @__PURE__ */
|
|
1861
|
-
/* @__PURE__ */
|
|
1862
|
-
/* @__PURE__ */
|
|
1879
|
+
}, $r = ({ entity: e, classes: t, accordionsConfig: n }) => /* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Wr({ entity: e, classes: t, accordionsConfig: n }) }), no = ({ headline: e, tabs: t, classes: n, accordionsConfig: o }) => {
|
|
1880
|
+
var u, m;
|
|
1881
|
+
const [i, d] = z(0), l = Ft(() => t == null ? void 0 : t.map((p) => p == null ? void 0 : p.tabName), [t]) ?? [];
|
|
1882
|
+
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: g.usefulInfo, "data-test-id": g.usefulInfo, className: a(n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(S, { className: a(n == null ? void 0 : n.container), children: [
|
|
1883
|
+
/* @__PURE__ */ r.jsx(H, { className: a(n == null ? void 0 : n.headline), as: "h2", children: e }),
|
|
1884
|
+
/* @__PURE__ */ r.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", n == null ? void 0 : n.tabsWrapper), children: /* @__PURE__ */ r.jsx(Mr, { tabsNames: l, activeTab: i, setActiveTab: d, classes: n == null ? void 0 : n.tabs }) }),
|
|
1885
|
+
/* @__PURE__ */ r.jsx("div", { className: a("mt-6 flex flex-col gap-6", n == null ? void 0 : n.contentWrapper), children: (m = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((p, x) => /* @__PURE__ */ r.jsx($r, { accordionsConfig: o, ...p, classes: n == null ? void 0 : n.entityClasses }, x)) })
|
|
1863
1886
|
] }) });
|
|
1864
|
-
},
|
|
1865
|
-
const i =
|
|
1866
|
-
return /* @__PURE__ */
|
|
1887
|
+
}, pt = ({ fields: e, control: t }) => e.map(({ type: n, args: o }) => {
|
|
1888
|
+
const i = Fe[n];
|
|
1889
|
+
return /* @__PURE__ */ ee(i, { ...o, key: o.name, control: t });
|
|
1867
1890
|
});
|
|
1868
|
-
class
|
|
1891
|
+
class Kr {
|
|
1869
1892
|
constructor(t) {
|
|
1870
1893
|
it(this, "TEXT_NODE", 3);
|
|
1871
1894
|
it(this, "ELEMENT_NODE", 1);
|
|
@@ -1877,37 +1900,37 @@ class Rr {
|
|
|
1877
1900
|
* @param elements Массив для сбора элементов
|
|
1878
1901
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1879
1902
|
*/
|
|
1880
|
-
traverse(t,
|
|
1903
|
+
traverse(t, n = "string", o) {
|
|
1881
1904
|
const { includeSolidText: i, recursive: d, element: l } = this.options || {};
|
|
1882
1905
|
switch (t.nodeType) {
|
|
1883
1906
|
// если узел - элемент
|
|
1884
1907
|
case this.ELEMENT_NODE:
|
|
1885
|
-
const u = t,
|
|
1886
|
-
if (
|
|
1908
|
+
const u = t, m = u.tagName.toLowerCase();
|
|
1909
|
+
if (m === "script") {
|
|
1887
1910
|
console.warn("Found script node. For better security this node will be skipped.");
|
|
1888
1911
|
break;
|
|
1889
1912
|
}
|
|
1890
|
-
if (l &&
|
|
1913
|
+
if (l && m !== l)
|
|
1891
1914
|
break;
|
|
1892
|
-
if (
|
|
1893
|
-
|
|
1915
|
+
if (n === "node")
|
|
1916
|
+
o.push(t);
|
|
1894
1917
|
else {
|
|
1895
|
-
const
|
|
1896
|
-
|
|
1918
|
+
const p = u.outerHTML.trim();
|
|
1919
|
+
o.push(p);
|
|
1897
1920
|
}
|
|
1898
1921
|
if (d)
|
|
1899
|
-
for (const
|
|
1900
|
-
this.traverse(
|
|
1922
|
+
for (const p of t.childNodes)
|
|
1923
|
+
this.traverse(p, n, o);
|
|
1901
1924
|
break;
|
|
1902
1925
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
1903
1926
|
case this.TEXT_NODE:
|
|
1904
1927
|
if (!i)
|
|
1905
1928
|
break;
|
|
1906
|
-
if (
|
|
1907
|
-
|
|
1929
|
+
if (n === "node")
|
|
1930
|
+
o.push(t);
|
|
1908
1931
|
else {
|
|
1909
|
-
const
|
|
1910
|
-
|
|
1932
|
+
const p = t.textContent;
|
|
1933
|
+
p && o.push(p);
|
|
1911
1934
|
}
|
|
1912
1935
|
break;
|
|
1913
1936
|
}
|
|
@@ -1918,13 +1941,13 @@ class Rr {
|
|
|
1918
1941
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1919
1942
|
* @returns Массив тегов или нод
|
|
1920
1943
|
*/
|
|
1921
|
-
async parse(t,
|
|
1922
|
-
const { includeBody:
|
|
1923
|
-
if (
|
|
1924
|
-
this.traverse(l.body,
|
|
1944
|
+
async parse(t, n = "string") {
|
|
1945
|
+
const { includeBody: o } = this.options || {}, i = [], d = [], l = await this.parseFromString(t), u = n === "string" ? i : d;
|
|
1946
|
+
if (o)
|
|
1947
|
+
this.traverse(l.body, n, u);
|
|
1925
1948
|
else
|
|
1926
|
-
for (const
|
|
1927
|
-
this.traverse(
|
|
1949
|
+
for (const m of l.body.childNodes)
|
|
1950
|
+
this.traverse(m, n, u);
|
|
1928
1951
|
return { stringNodes: i, nodes: d };
|
|
1929
1952
|
}
|
|
1930
1953
|
/**
|
|
@@ -1933,20 +1956,20 @@ class Rr {
|
|
|
1933
1956
|
* @returns Количество найденных тегов
|
|
1934
1957
|
*/
|
|
1935
1958
|
async countElements(t) {
|
|
1936
|
-
const { stringNodes:
|
|
1937
|
-
return
|
|
1959
|
+
const { stringNodes: n } = await this.parse(t, "string");
|
|
1960
|
+
return n.length;
|
|
1938
1961
|
}
|
|
1939
1962
|
}
|
|
1940
|
-
const
|
|
1941
|
-
class
|
|
1963
|
+
const Zr = typeof window < "u";
|
|
1964
|
+
class Xr extends Kr {
|
|
1942
1965
|
constructor(t) {
|
|
1943
1966
|
super(t);
|
|
1944
1967
|
}
|
|
1945
1968
|
async parseFromString(t) {
|
|
1946
|
-
return
|
|
1969
|
+
return Zr ? new DOMParser().parseFromString(t, "text/html") : Promise.reject();
|
|
1947
1970
|
}
|
|
1948
1971
|
}
|
|
1949
|
-
class
|
|
1972
|
+
class It {
|
|
1950
1973
|
/**
|
|
1951
1974
|
* Функция для парсинга ноды в react элемент
|
|
1952
1975
|
*/
|
|
@@ -1954,9 +1977,9 @@ class wt {
|
|
|
1954
1977
|
if (t.nodeType === this.TEXT_NODE)
|
|
1955
1978
|
return t.textContent ?? null;
|
|
1956
1979
|
if (t.nodeType === this.ELEMENT_NODE) {
|
|
1957
|
-
const
|
|
1958
|
-
for (const l of
|
|
1959
|
-
let u = l.name,
|
|
1980
|
+
const n = t, o = n.tagName.toLowerCase(), i = {};
|
|
1981
|
+
for (const l of n.attributes) {
|
|
1982
|
+
let u = l.name, m = l.value;
|
|
1960
1983
|
switch (l.name) {
|
|
1961
1984
|
case "class":
|
|
1962
1985
|
u = "className";
|
|
@@ -1967,80 +1990,61 @@ class wt {
|
|
|
1967
1990
|
case "checked":
|
|
1968
1991
|
case "disabled":
|
|
1969
1992
|
case "selected":
|
|
1970
|
-
|
|
1993
|
+
m = l.value !== "false", m = l.value !== "false", m = l.value !== "false";
|
|
1971
1994
|
break;
|
|
1972
1995
|
case "readonly":
|
|
1973
|
-
u = "readOnly",
|
|
1996
|
+
u = "readOnly", m = l.value !== "false";
|
|
1974
1997
|
break;
|
|
1975
1998
|
case "style":
|
|
1976
1999
|
u = "style";
|
|
1977
|
-
const
|
|
2000
|
+
const p = {};
|
|
1978
2001
|
l.value.split(";").forEach((x) => {
|
|
1979
|
-
const [
|
|
1980
|
-
if (
|
|
1981
|
-
const
|
|
1982
|
-
|
|
2002
|
+
const [c, b] = x.split(":");
|
|
2003
|
+
if (c && b) {
|
|
2004
|
+
const w = c.trim().replace(/-([a-z])/g, (v, I) => I.toUpperCase());
|
|
2005
|
+
p[w] = b.trim();
|
|
1983
2006
|
}
|
|
1984
|
-
}),
|
|
2007
|
+
}), m = p;
|
|
1985
2008
|
break;
|
|
1986
2009
|
}
|
|
1987
|
-
i[u] =
|
|
2010
|
+
i[u] = m;
|
|
1988
2011
|
}
|
|
1989
2012
|
i.key = Math.random().toString(36).substring(2, 9);
|
|
1990
2013
|
const d = [];
|
|
1991
|
-
for (const l of
|
|
2014
|
+
for (const l of n.childNodes) {
|
|
1992
2015
|
const u = this.parseNode(l);
|
|
1993
2016
|
u && d.push(u);
|
|
1994
2017
|
}
|
|
1995
|
-
return
|
|
2018
|
+
return ee(o, i, ...d);
|
|
1996
2019
|
}
|
|
1997
2020
|
return null;
|
|
1998
2021
|
}
|
|
1999
2022
|
/**
|
|
2000
2023
|
* функция для преобразования html строки в react элементы
|
|
2001
2024
|
*/
|
|
2002
|
-
static async toReactNodes(t,
|
|
2003
|
-
const
|
|
2025
|
+
static async toReactNodes(t, n) {
|
|
2026
|
+
const o = new Xr(n), { nodes: i } = await o.parse(t, "node");
|
|
2004
2027
|
return i.map((d) => this.parseNode(d));
|
|
2005
2028
|
}
|
|
2006
2029
|
}
|
|
2007
|
-
it(
|
|
2008
|
-
const
|
|
2009
|
-
const [t,
|
|
2010
|
-
return
|
|
2030
|
+
it(It, "TEXT_NODE", 3), it(It, "ELEMENT_NODE", 1);
|
|
2031
|
+
const Jr = ({ promises: e }) => {
|
|
2032
|
+
const [t, n] = z([]);
|
|
2033
|
+
return re(() => {
|
|
2011
2034
|
(async () => {
|
|
2012
|
-
|
|
2035
|
+
n(await e);
|
|
2013
2036
|
})();
|
|
2014
|
-
}, [e]), /* @__PURE__ */
|
|
2015
|
-
},
|
|
2016
|
-
const i =
|
|
2037
|
+
}, [e]), /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
2038
|
+
}, gt = ({ html: e, options: t, as: n, ...o }) => {
|
|
2039
|
+
const i = n ?? _e, d = n ? o : {}, l = It.toReactNodes(e, t);
|
|
2017
2040
|
return (
|
|
2018
2041
|
// @ts-expect-error disable warning
|
|
2019
|
-
/* @__PURE__ */
|
|
2042
|
+
/* @__PURE__ */ r.jsx(i, { ...d, children: /* @__PURE__ */ r.jsx(Jr, { promises: l }) })
|
|
2020
2043
|
);
|
|
2021
|
-
},
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
if (!k.isFunction(n))
|
|
2026
|
-
throw new Error(`Cannot generate ${String(t)} because is not a function`);
|
|
2027
|
-
return n(r);
|
|
2028
|
-
}, Lr = (e, t) => oe(te.base, e, t), Qr = (e, t) => oe(te.dadata, e, t), zr = (e) => {
|
|
2029
|
-
const r = e.map((n) => ({ name: n.args.name, validation: n.args.validation })).reduce((n, i) => {
|
|
2030
|
-
const d = Dr.includes(i.validation.type) ? Qr(
|
|
2031
|
-
i.validation.type,
|
|
2032
|
-
i.validation.args
|
|
2033
|
-
) : Lr(
|
|
2034
|
-
i.validation.type,
|
|
2035
|
-
i.validation.args
|
|
2036
|
-
);
|
|
2037
|
-
return n[i.name] = d, n;
|
|
2038
|
-
}, {});
|
|
2039
|
-
return Se(r);
|
|
2040
|
-
}, qr = (e, t) => e.enabled ? t.map((r) => ({
|
|
2041
|
-
name: r.args.name,
|
|
2042
|
-
...r.args.progress
|
|
2043
|
-
})) : null, Ar = new Le(), Ur = ({ children: e }) => /* @__PURE__ */ o.jsx(we, { client: Ar, children: e }), Vr = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(ft, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
|
|
2044
|
+
}, Yr = (e, t) => e.enabled ? t.map((n) => ({
|
|
2045
|
+
name: n.args.name,
|
|
2046
|
+
...n.args.progress
|
|
2047
|
+
})) : null, Gr = new Je(), tn = ({ children: e }) => /* @__PURE__ */ r.jsx(Oe, { client: Gr, children: e }), en = (e, t, n, o) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ r.jsx(gt, { html: e.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ r.jsxs(
|
|
2044
2048
|
"label",
|
|
2045
2049
|
{
|
|
2046
2050
|
className: a(
|
|
@@ -2049,39 +2053,39 @@ const Pr = ({ promises: e }) => {
|
|
|
2049
2053
|
"flex items-center justify-items-start gap-x-3"
|
|
2050
2054
|
),
|
|
2051
2055
|
children: [
|
|
2052
|
-
/* @__PURE__ */
|
|
2053
|
-
/* @__PURE__ */
|
|
2056
|
+
/* @__PURE__ */ r.jsx(Gt.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: t, onCheckedChange: n }),
|
|
2057
|
+
/* @__PURE__ */ r.jsx(gt, { html: e.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2054
2058
|
]
|
|
2055
2059
|
}
|
|
2056
|
-
),
|
|
2060
|
+
), oo = ({
|
|
2057
2061
|
fields: e,
|
|
2058
2062
|
title: t,
|
|
2059
|
-
progress:
|
|
2060
|
-
approvement:
|
|
2063
|
+
progress: n,
|
|
2064
|
+
approvement: o,
|
|
2061
2065
|
chips: i,
|
|
2062
2066
|
submitProps: d,
|
|
2063
2067
|
classes: l
|
|
2064
2068
|
}) => {
|
|
2065
|
-
var K,
|
|
2066
|
-
const { submitCallback: u, ...
|
|
2067
|
-
schema:
|
|
2068
|
-
defaultValues:
|
|
2069
|
+
var K, Q;
|
|
2070
|
+
const { submitCallback: u, ...m } = d || {}, [p, x] = z(!1), c = me(e), { control: b, handleSubmit: w } = ie({
|
|
2071
|
+
schema: c,
|
|
2072
|
+
defaultValues: ae.getZodDefaults(c),
|
|
2069
2073
|
mode: "onBlur"
|
|
2070
|
-
}),
|
|
2071
|
-
u && u({ ...
|
|
2074
|
+
}), v = Yr(n, e), I = qe({ control: b, fields: v || [], schema: c }), D = (N) => {
|
|
2075
|
+
u && u({ ...N, agree: p }), console.warn(N);
|
|
2072
2076
|
};
|
|
2073
|
-
return /* @__PURE__ */
|
|
2077
|
+
return /* @__PURE__ */ r.jsx(tn, { children: /* @__PURE__ */ r.jsxs(
|
|
2074
2078
|
"div",
|
|
2075
2079
|
{
|
|
2076
|
-
id:
|
|
2077
|
-
"data-test-id":
|
|
2080
|
+
id: g.form,
|
|
2081
|
+
"data-test-id": g.form,
|
|
2078
2082
|
className: a(
|
|
2079
2083
|
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2080
2084
|
"relative flex flex-col gap-6 rounded-sm border py-8",
|
|
2081
2085
|
l == null ? void 0 : l.root
|
|
2082
2086
|
),
|
|
2083
2087
|
children: [
|
|
2084
|
-
i.enabled && /* @__PURE__ */
|
|
2088
|
+
i.enabled && /* @__PURE__ */ r.jsxs(
|
|
2085
2089
|
"div",
|
|
2086
2090
|
{
|
|
2087
2091
|
className: a(
|
|
@@ -2091,41 +2095,41 @@ const Pr = ({ promises: e }) => {
|
|
|
2091
2095
|
(K = l == null ? void 0 : l.chips) == null ? void 0 : K.root
|
|
2092
2096
|
),
|
|
2093
2097
|
children: [
|
|
2094
|
-
i.image && /* @__PURE__ */
|
|
2098
|
+
i.image && /* @__PURE__ */ r.jsx(f, { name: i.image, className: a("size-4", (Q = l == null ? void 0 : l.chips) == null ? void 0 : Q.icon) }),
|
|
2095
2099
|
i.content
|
|
2096
2100
|
]
|
|
2097
2101
|
}
|
|
2098
2102
|
),
|
|
2099
|
-
/* @__PURE__ */
|
|
2100
|
-
/* @__PURE__ */
|
|
2103
|
+
/* @__PURE__ */ r.jsx(H, { as: "h3", className: l == null ? void 0 : l.title, children: t }),
|
|
2104
|
+
/* @__PURE__ */ r.jsxs(
|
|
2101
2105
|
"form",
|
|
2102
2106
|
{
|
|
2103
|
-
onSubmit:
|
|
2107
|
+
onSubmit: w(D),
|
|
2104
2108
|
className: a("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
|
|
2105
2109
|
children: [
|
|
2106
|
-
|
|
2107
|
-
|
|
2110
|
+
n.enabled && /* @__PURE__ */ r.jsx(
|
|
2111
|
+
Se,
|
|
2108
2112
|
{
|
|
2109
|
-
progress:
|
|
2110
|
-
topContent: /* @__PURE__ */
|
|
2111
|
-
bottomContent: /* @__PURE__ */
|
|
2112
|
-
maxPercent:
|
|
2113
|
+
progress: I,
|
|
2114
|
+
topContent: /* @__PURE__ */ r.jsx(gt, { html: n.title }),
|
|
2115
|
+
bottomContent: /* @__PURE__ */ r.jsx(gt, { html: n.subtitle }),
|
|
2116
|
+
maxPercent: n.maxPercent,
|
|
2113
2117
|
classes: l == null ? void 0 : l.progressBar
|
|
2114
2118
|
}
|
|
2115
2119
|
),
|
|
2116
|
-
/* @__PURE__ */
|
|
2117
|
-
/* @__PURE__ */
|
|
2118
|
-
|
|
2119
|
-
/* @__PURE__ */
|
|
2120
|
-
|
|
2120
|
+
/* @__PURE__ */ r.jsx(pt, { control: b, fields: e }),
|
|
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
|
+
en(o, p, x, l == null ? void 0 : l.approvement),
|
|
2123
|
+
/* @__PURE__ */ r.jsx(
|
|
2124
|
+
jt,
|
|
2121
2125
|
{
|
|
2122
|
-
...
|
|
2126
|
+
...m,
|
|
2123
2127
|
type: "submit",
|
|
2124
|
-
disabled:
|
|
2128
|
+
disabled: o.type === "checkbox" ? !p : !1,
|
|
2125
2129
|
className: a(
|
|
2126
2130
|
"w-full whitespace-nowrap",
|
|
2127
2131
|
{
|
|
2128
|
-
"w-full desktop:w-[216px]": !!
|
|
2132
|
+
"w-full desktop:w-[216px]": !!o
|
|
2129
2133
|
},
|
|
2130
2134
|
l == null ? void 0 : l.submit
|
|
2131
2135
|
),
|
|
@@ -2142,13 +2146,13 @@ const Pr = ({ promises: e }) => {
|
|
|
2142
2146
|
}, dt = () => ({
|
|
2143
2147
|
approve: {
|
|
2144
2148
|
icon: {
|
|
2145
|
-
element: /* @__PURE__ */
|
|
2149
|
+
element: /* @__PURE__ */ r.jsx(f, { name: "status/iconMark" }),
|
|
2146
2150
|
bg: "bg-color-positive-light"
|
|
2147
2151
|
},
|
|
2148
2152
|
title: "Ваша заявка отправлена",
|
|
2149
|
-
description: /* @__PURE__ */
|
|
2153
|
+
description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2150
2154
|
"В ближайшее время с Вами свяжутся ",
|
|
2151
|
-
/* @__PURE__ */
|
|
2155
|
+
/* @__PURE__ */ r.jsx("br", {}),
|
|
2152
2156
|
" специалисты нашего Банка"
|
|
2153
2157
|
] }),
|
|
2154
2158
|
button: {
|
|
@@ -2157,13 +2161,13 @@ const Pr = ({ promises: e }) => {
|
|
|
2157
2161
|
},
|
|
2158
2162
|
repeated: {
|
|
2159
2163
|
icon: {
|
|
2160
|
-
element: /* @__PURE__ */
|
|
2164
|
+
element: /* @__PURE__ */ r.jsx(f, { name: "status/iconUser" }),
|
|
2161
2165
|
bg: "bg-color-positive-light"
|
|
2162
2166
|
},
|
|
2163
2167
|
title: "Мы вас узнали",
|
|
2164
|
-
description: /* @__PURE__ */
|
|
2168
|
+
description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2165
2169
|
"Решение по прошлой заявке ещё активно. ",
|
|
2166
|
-
/* @__PURE__ */
|
|
2170
|
+
/* @__PURE__ */ r.jsx("br", {}),
|
|
2167
2171
|
"Возвращайтесь к нам позже"
|
|
2168
2172
|
] }),
|
|
2169
2173
|
button: {
|
|
@@ -2172,13 +2176,13 @@ const Pr = ({ promises: e }) => {
|
|
|
2172
2176
|
},
|
|
2173
2177
|
error: {
|
|
2174
2178
|
icon: {
|
|
2175
|
-
element: /* @__PURE__ */
|
|
2179
|
+
element: /* @__PURE__ */ r.jsx(f, { name: "status/iconRetry" }),
|
|
2176
2180
|
bg: "bg-color-warning-light"
|
|
2177
2181
|
},
|
|
2178
2182
|
title: "Что-то пошло не так",
|
|
2179
|
-
description: /* @__PURE__ */
|
|
2183
|
+
description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2180
2184
|
"Обновите страницу или попробуйте ",
|
|
2181
|
-
/* @__PURE__ */
|
|
2185
|
+
/* @__PURE__ */ r.jsx("br", {}),
|
|
2182
2186
|
" снова через 5 минут"
|
|
2183
2187
|
] }),
|
|
2184
2188
|
button: {
|
|
@@ -2187,21 +2191,21 @@ const Pr = ({ promises: e }) => {
|
|
|
2187
2191
|
},
|
|
2188
2192
|
reject: {
|
|
2189
2193
|
icon: {
|
|
2190
|
-
element: /* @__PURE__ */
|
|
2194
|
+
element: /* @__PURE__ */ r.jsx(f, { name: "status/badSmile" }),
|
|
2191
2195
|
bg: "bg-color-negative-light"
|
|
2192
2196
|
},
|
|
2193
2197
|
title: "Нам очень жаль",
|
|
2194
|
-
description: /* @__PURE__ */
|
|
2198
|
+
description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2195
2199
|
"К сожалению, сейчас мы не можем ",
|
|
2196
|
-
/* @__PURE__ */
|
|
2200
|
+
/* @__PURE__ */ r.jsx("br", {}),
|
|
2197
2201
|
" принять вашу заявку"
|
|
2198
2202
|
] }),
|
|
2199
2203
|
button: {
|
|
2200
2204
|
text: "Вернуться на главную"
|
|
2201
2205
|
}
|
|
2202
2206
|
}
|
|
2203
|
-
}),
|
|
2204
|
-
/* @__PURE__ */
|
|
2207
|
+
}), io = ({ status: e, navigationFn: t }) => /* @__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
|
+
/* @__PURE__ */ r.jsx(
|
|
2205
2209
|
"span",
|
|
2206
2210
|
{
|
|
2207
2211
|
className: a(
|
|
@@ -2211,85 +2215,85 @@ const Pr = ({ promises: e }) => {
|
|
|
2211
2215
|
children: dt()[e].icon.element
|
|
2212
2216
|
}
|
|
2213
2217
|
),
|
|
2214
|
-
/* @__PURE__ */
|
|
2215
|
-
/* @__PURE__ */
|
|
2216
|
-
/* @__PURE__ */
|
|
2218
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
|
|
2219
|
+
/* @__PURE__ */ r.jsx(H, { as: "h2", children: dt()[e].title }),
|
|
2220
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: dt()[e].description })
|
|
2217
2221
|
] }),
|
|
2218
|
-
/* @__PURE__ */
|
|
2219
|
-
] }) }) }),
|
|
2220
|
-
const [d, l] =
|
|
2221
|
-
return
|
|
2222
|
-
if (!
|
|
2222
|
+
/* @__PURE__ */ r.jsx(jt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: dt()[e].button.text })
|
|
2223
|
+
] }) }) }), xe = ({ breadcrumb: e, className: t, ...n }) => /* @__PURE__ */ r.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...n, children: e.label }), rn = ({ startsWith: e, endsWith: t, matcher: n, filter: o, rootEnabled: i = !0 }) => {
|
|
2224
|
+
const [d, l] = z([]);
|
|
2225
|
+
return re(() => {
|
|
2226
|
+
if (!oe)
|
|
2223
2227
|
return;
|
|
2224
|
-
let u = window.location.pathname.split("/").filter((x) => !
|
|
2225
|
-
|
|
2226
|
-
let
|
|
2228
|
+
let u = window.location.pathname.split("/").filter((x) => !s.isStringEmpty(x));
|
|
2229
|
+
s.isUndefined(e) || (s.isString(e) ? u = u.slice(u.findIndex((x) => x === e)) : u = u.slice(e)), s.isUndefined(t) || (s.isString(t) ? u = u.slice(0, u.findIndex((x) => x === t) + 1) : u = u.slice(0, t + 1));
|
|
2230
|
+
let m = [], p = "";
|
|
2227
2231
|
if (i) {
|
|
2228
2232
|
const x = {
|
|
2229
2233
|
index: 0,
|
|
2230
|
-
id:
|
|
2234
|
+
id: Lt(),
|
|
2231
2235
|
path: "/",
|
|
2232
2236
|
label: "home"
|
|
2233
2237
|
};
|
|
2234
|
-
|
|
2238
|
+
m.push(x);
|
|
2235
2239
|
}
|
|
2236
|
-
u.forEach((x,
|
|
2237
|
-
|
|
2240
|
+
u.forEach((x, c) => {
|
|
2241
|
+
p += `/${x}`;
|
|
2238
2242
|
const b = {
|
|
2239
2243
|
// while root enabled we need to increment index
|
|
2240
2244
|
// cuz we have root breadcrumb
|
|
2241
|
-
index: i ?
|
|
2242
|
-
id:
|
|
2243
|
-
path:
|
|
2245
|
+
index: i ? c + 1 : c,
|
|
2246
|
+
id: Lt(),
|
|
2247
|
+
path: p,
|
|
2244
2248
|
label: x
|
|
2245
2249
|
};
|
|
2246
|
-
|
|
2247
|
-
}),
|
|
2250
|
+
m.push(b);
|
|
2251
|
+
}), n && (m = m.map((x) => ({
|
|
2248
2252
|
...x,
|
|
2249
|
-
...
|
|
2250
|
-
}))), l(
|
|
2251
|
-
}, [t,
|
|
2252
|
-
},
|
|
2253
|
-
const l = d ===
|
|
2254
|
-
return /* @__PURE__ */
|
|
2255
|
-
/* @__PURE__ */
|
|
2256
|
-
|
|
2253
|
+
...n(x)
|
|
2254
|
+
}))), l(o ? m.filter(o) : m);
|
|
2255
|
+
}, [t, o, n, i, e]), d;
|
|
2256
|
+
}, bt = (e, t, n, o) => e.map((i, d) => {
|
|
2257
|
+
const l = d === o;
|
|
2258
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2259
|
+
/* @__PURE__ */ r.jsx(
|
|
2260
|
+
xe,
|
|
2257
2261
|
{
|
|
2258
2262
|
breadcrumb: i,
|
|
2259
|
-
className: a(
|
|
2263
|
+
className: a(n, {
|
|
2260
2264
|
"pointer-events-none text-color-primary-disabled": l
|
|
2261
2265
|
})
|
|
2262
2266
|
}
|
|
2263
2267
|
),
|
|
2264
2268
|
d !== e.length - 1 && t
|
|
2265
2269
|
] }, i.id);
|
|
2266
|
-
}),
|
|
2267
|
-
const [i, d] =
|
|
2268
|
-
|
|
2269
|
-
const u =
|
|
2270
|
-
let b = [],
|
|
2271
|
-
return t && (b = u.slice(0, t),
|
|
2272
|
-
}, [u, t]),
|
|
2273
|
-
return /* @__PURE__ */
|
|
2270
|
+
}), nn = ({ separator: e, ellipsis: t, classes: n, ...o }) => {
|
|
2271
|
+
const [i, d] = z(!1), l = Ot(null);
|
|
2272
|
+
ze(l, () => d(!1));
|
|
2273
|
+
const u = rn(o), { first: m, middle: p, last: x } = Ft(() => {
|
|
2274
|
+
let b = [], w = [], v = [];
|
|
2275
|
+
return t && (b = u.slice(0, t), w = u.slice(t, u.length - t), v = u.slice(u.length - t)), { first: b, middle: w, last: v };
|
|
2276
|
+
}, [u, t]), c = e ?? /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: a("size-4", n == null ? void 0 : n.separator) });
|
|
2277
|
+
return /* @__PURE__ */ r.jsx(
|
|
2274
2278
|
"div",
|
|
2275
2279
|
{
|
|
2276
2280
|
className: a(
|
|
2277
2281
|
"flex max-w-[840px] flex-wrap items-center",
|
|
2278
2282
|
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
2279
|
-
|
|
2283
|
+
n == null ? void 0 : n.root
|
|
2280
2284
|
),
|
|
2281
2285
|
children: t ? (
|
|
2282
2286
|
// if ellipsis provided, render hidden breadcrumbs
|
|
2283
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ r.jsx(r.Fragment, { children: u.length > t * 2 + 1 ? (
|
|
2284
2288
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2285
2289
|
// render hidden breadcrumbs
|
|
2286
|
-
/* @__PURE__ */
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
/* @__PURE__ */
|
|
2291
|
-
/* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */
|
|
2290
|
+
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2291
|
+
bt(m, c, n == null ? void 0 : n.breadcrumb),
|
|
2292
|
+
c,
|
|
2293
|
+
p.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2294
|
+
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
2295
|
+
/* @__PURE__ */ r.jsx("button", { onClick: () => d(!0), children: "..." }),
|
|
2296
|
+
/* @__PURE__ */ r.jsx(
|
|
2293
2297
|
"ul",
|
|
2294
2298
|
{
|
|
2295
2299
|
ref: l,
|
|
@@ -2301,38 +2305,38 @@ const Pr = ({ promises: e }) => {
|
|
|
2301
2305
|
"visible opacity-100": i
|
|
2302
2306
|
}
|
|
2303
2307
|
),
|
|
2304
|
-
children:
|
|
2305
|
-
|
|
2308
|
+
children: p.map((b) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
2309
|
+
xe,
|
|
2306
2310
|
{
|
|
2307
2311
|
breadcrumb: b,
|
|
2308
2312
|
className: a(
|
|
2309
2313
|
"desk-body-regular-l inline-block py-3",
|
|
2310
2314
|
"w-full rounded-sm bg-color-white px-2",
|
|
2311
2315
|
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
2312
|
-
|
|
2316
|
+
n == null ? void 0 : n.breadcrumb
|
|
2313
2317
|
)
|
|
2314
2318
|
}
|
|
2315
2319
|
) }, b.id))
|
|
2316
2320
|
}
|
|
2317
2321
|
)
|
|
2318
2322
|
] }),
|
|
2319
|
-
|
|
2323
|
+
c
|
|
2320
2324
|
] }),
|
|
2321
|
-
|
|
2325
|
+
bt(x, c, n == null ? void 0 : n.breadcrumb, x.length - 1)
|
|
2322
2326
|
] })
|
|
2323
2327
|
) : (
|
|
2324
2328
|
// otherwise render all breadcrumbs
|
|
2325
|
-
|
|
2329
|
+
bt(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
|
|
2326
2330
|
) })
|
|
2327
2331
|
) : (
|
|
2328
2332
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2329
|
-
|
|
2333
|
+
bt(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
|
|
2330
2334
|
)
|
|
2331
2335
|
}
|
|
2332
2336
|
);
|
|
2333
2337
|
};
|
|
2334
2338
|
var lt = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(lt || {});
|
|
2335
|
-
const
|
|
2339
|
+
const on = (e, t) => {
|
|
2336
2340
|
switch (t.type) {
|
|
2337
2341
|
case lt.ROOT:
|
|
2338
2342
|
return {
|
|
@@ -2347,20 +2351,20 @@ const Kr = (e, t) => {
|
|
|
2347
2351
|
default:
|
|
2348
2352
|
return e;
|
|
2349
2353
|
}
|
|
2350
|
-
},
|
|
2351
|
-
const [t,
|
|
2352
|
-
return [t,
|
|
2353
|
-
},
|
|
2354
|
+
}, dn = (e) => {
|
|
2355
|
+
const [t, n] = He(on, e);
|
|
2356
|
+
return [t, n];
|
|
2357
|
+
}, an = (e) => ({
|
|
2354
2358
|
type: lt.CURRENT,
|
|
2355
2359
|
payload: e
|
|
2356
|
-
}),
|
|
2360
|
+
}), ln = (e) => ({
|
|
2357
2361
|
type: lt.ROOT,
|
|
2358
2362
|
payload: e
|
|
2359
|
-
}),
|
|
2360
|
-
var
|
|
2361
|
-
return
|
|
2362
|
-
/* @__PURE__ */
|
|
2363
|
-
|
|
2363
|
+
}), un = ({ categories: e, ...t }) => {
|
|
2364
|
+
var n, o;
|
|
2365
|
+
return le(
|
|
2366
|
+
/* @__PURE__ */ r.jsx(
|
|
2367
|
+
Et.div,
|
|
2364
2368
|
{
|
|
2365
2369
|
...t,
|
|
2366
2370
|
layout: !0,
|
|
@@ -2368,24 +2372,24 @@ const Kr = (e, t) => {
|
|
|
2368
2372
|
animate: { opacity: 1 },
|
|
2369
2373
|
transition: { duration: 0.2 },
|
|
2370
2374
|
className: "absolute bg-color-white",
|
|
2371
|
-
children: /* @__PURE__ */
|
|
2375
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: e.map((i) => {
|
|
2372
2376
|
var l;
|
|
2373
2377
|
const d = i.link ? "a" : "p";
|
|
2374
|
-
return /* @__PURE__ */
|
|
2375
|
-
i.title && /* @__PURE__ */
|
|
2378
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
2379
|
+
i.title && /* @__PURE__ */ r.jsxs(
|
|
2376
2380
|
d,
|
|
2377
2381
|
{
|
|
2378
2382
|
href: ((l = i.link) == null ? void 0 : l.href) ?? void 0,
|
|
2379
2383
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
2380
2384
|
children: [
|
|
2381
2385
|
i.title,
|
|
2382
|
-
/* @__PURE__ */
|
|
2386
|
+
/* @__PURE__ */ r.jsx(f, { name: "arrows/arrowLink", className: "size-6" })
|
|
2383
2387
|
]
|
|
2384
2388
|
}
|
|
2385
2389
|
),
|
|
2386
|
-
/* @__PURE__ */
|
|
2387
|
-
var
|
|
2388
|
-
return /* @__PURE__ */
|
|
2390
|
+
/* @__PURE__ */ r.jsx("ul", { className: "w-[328px]", children: i.children.map((u) => {
|
|
2391
|
+
var m;
|
|
2392
|
+
return /* @__PURE__ */ r.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ r.jsx("a", { href: (m = u.link) == null ? void 0 : m.href, className: "w-full text-16", children: u.title }) }, u.title);
|
|
2389
2393
|
}) })
|
|
2390
2394
|
] }, i.title);
|
|
2391
2395
|
}) })
|
|
@@ -2394,15 +2398,15 @@ const Kr = (e, t) => {
|
|
|
2394
2398
|
/**
|
|
2395
2399
|
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2396
2400
|
*/
|
|
2397
|
-
((
|
|
2401
|
+
((o = (n = document.body.querySelector("#modal-preview")) == null ? void 0 : n.contentDocument) == null ? void 0 : o.body) ?? document.body
|
|
2398
2402
|
);
|
|
2399
|
-
},
|
|
2400
|
-
var
|
|
2401
|
-
const i =
|
|
2402
|
-
return /* @__PURE__ */
|
|
2403
|
-
|
|
2403
|
+
}, mn = De(({ category: e, active: t, onActiveTabChange: n }, o) => {
|
|
2404
|
+
var m, p;
|
|
2405
|
+
const i = o && "current" in o ? o : null, d = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), l = t && !s.isArrayEmpty(e.children), u = s.isArrayEmpty(e.children) ? "a" : "span";
|
|
2406
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2407
|
+
Et.div,
|
|
2404
2408
|
{
|
|
2405
|
-
ref:
|
|
2409
|
+
ref: o,
|
|
2406
2410
|
className: a(
|
|
2407
2411
|
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
2408
2412
|
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
@@ -2412,13 +2416,13 @@ const Kr = (e, t) => {
|
|
|
2412
2416
|
"after:w-full": l
|
|
2413
2417
|
}
|
|
2414
2418
|
),
|
|
2415
|
-
onMouseEnter: () =>
|
|
2416
|
-
onMouseLeave: () =>
|
|
2417
|
-
onFocus: () =>
|
|
2419
|
+
onMouseEnter: () => n(e.title),
|
|
2420
|
+
onMouseLeave: () => n(null),
|
|
2421
|
+
onFocus: () => n(e.title),
|
|
2418
2422
|
children: [
|
|
2419
|
-
/* @__PURE__ */
|
|
2420
|
-
l && /* @__PURE__ */
|
|
2421
|
-
|
|
2423
|
+
/* @__PURE__ */ r.jsx(u, { href: u === "a" ? (p = e.link) == null ? void 0 : p.href : void 0, className: "desk-body-regular-m outline-none", children: e.title }),
|
|
2424
|
+
l && /* @__PURE__ */ r.jsx(
|
|
2425
|
+
un,
|
|
2422
2426
|
{
|
|
2423
2427
|
categories: e.children,
|
|
2424
2428
|
style: {
|
|
@@ -2431,51 +2435,51 @@ const Kr = (e, t) => {
|
|
|
2431
2435
|
]
|
|
2432
2436
|
}
|
|
2433
2437
|
);
|
|
2434
|
-
}),
|
|
2435
|
-
const [t,
|
|
2436
|
-
|
|
2437
|
-
}, []), i =
|
|
2438
|
-
return /* @__PURE__ */
|
|
2438
|
+
}), pn = ne(mn), hn = ({ categories: e }) => {
|
|
2439
|
+
const [t, n] = z(null), o = te((d) => {
|
|
2440
|
+
n(d);
|
|
2441
|
+
}, []), i = Ot(null);
|
|
2442
|
+
return /* @__PURE__ */ r.jsx(Be, { mode: "sync", children: /* @__PURE__ */ r.jsxs(
|
|
2439
2443
|
"div",
|
|
2440
2444
|
{
|
|
2441
2445
|
ref: i,
|
|
2442
2446
|
id: "tabs",
|
|
2443
2447
|
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2444
2448
|
children: [
|
|
2445
|
-
e.map((d) => /* @__PURE__ */
|
|
2446
|
-
|
|
2449
|
+
e.map((d) => /* @__PURE__ */ r.jsx(
|
|
2450
|
+
pn,
|
|
2447
2451
|
{
|
|
2448
2452
|
ref: i,
|
|
2449
2453
|
category: d,
|
|
2450
2454
|
active: t === d.title,
|
|
2451
|
-
onActiveTabChange:
|
|
2455
|
+
onActiveTabChange: o
|
|
2452
2456
|
},
|
|
2453
2457
|
d.title
|
|
2454
2458
|
)),
|
|
2455
|
-
/* @__PURE__ */
|
|
2459
|
+
/* @__PURE__ */ r.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
2456
2460
|
]
|
|
2457
2461
|
}
|
|
2458
2462
|
) });
|
|
2459
|
-
},
|
|
2463
|
+
}, xn = ne(hn), cn = ({
|
|
2460
2464
|
category: e,
|
|
2461
2465
|
selectedCategory: t,
|
|
2462
|
-
onCurrentCategoryChange:
|
|
2463
|
-
onRootCategoryChange:
|
|
2466
|
+
onCurrentCategoryChange: n,
|
|
2467
|
+
onRootCategoryChange: o,
|
|
2464
2468
|
active: i,
|
|
2465
2469
|
...d
|
|
2466
|
-
}) => /* @__PURE__ */
|
|
2470
|
+
}) => /* @__PURE__ */ r.jsxs(
|
|
2467
2471
|
"div",
|
|
2468
2472
|
{
|
|
2469
2473
|
...d,
|
|
2470
2474
|
onClick: () => {
|
|
2471
|
-
|
|
2475
|
+
n(e.children[0]), o(e);
|
|
2472
2476
|
},
|
|
2473
2477
|
className: a("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2474
2478
|
"text-color-dark": i
|
|
2475
2479
|
}),
|
|
2476
2480
|
children: [
|
|
2477
|
-
/* @__PURE__ */
|
|
2478
|
-
e.children.length > 1 && /* @__PURE__ */
|
|
2481
|
+
/* @__PURE__ */ r.jsx("span", { className: "desk-body-regular-m", children: e.title }),
|
|
2482
|
+
e.children.length > 1 && /* @__PURE__ */ r.jsx(
|
|
2479
2483
|
"div",
|
|
2480
2484
|
{
|
|
2481
2485
|
className: a(
|
|
@@ -2483,11 +2487,11 @@ const Kr = (e, t) => {
|
|
|
2483
2487
|
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
2484
2488
|
"rounded-sm p-1"
|
|
2485
2489
|
),
|
|
2486
|
-
children: e.children.map((l) => /* @__PURE__ */
|
|
2490
|
+
children: e.children.map((l) => /* @__PURE__ */ r.jsx(
|
|
2487
2491
|
"span",
|
|
2488
2492
|
{
|
|
2489
2493
|
onClick: (u) => {
|
|
2490
|
-
u.stopPropagation(), u.nativeEvent.stopPropagation(),
|
|
2494
|
+
u.stopPropagation(), u.nativeEvent.stopPropagation(), o(e), n(l);
|
|
2491
2495
|
},
|
|
2492
2496
|
className: a(
|
|
2493
2497
|
"desk-body-regular-l rounded-sm px-3 py-3.5 text-color-dark duration-100 hover:bg-color-primary-tr-hover hover:text-color-dark",
|
|
@@ -2503,55 +2507,55 @@ const Kr = (e, t) => {
|
|
|
2503
2507
|
)
|
|
2504
2508
|
]
|
|
2505
2509
|
}
|
|
2506
|
-
),
|
|
2507
|
-
const [
|
|
2508
|
-
return /* @__PURE__ */
|
|
2509
|
-
/* @__PURE__ */
|
|
2510
|
-
/* @__PURE__ */
|
|
2510
|
+
), fn = ({ categories: e, helpers: t, phone: n }) => {
|
|
2511
|
+
const [o, i] = dn({ root: e[0].children[0], current: e[0].children[0] });
|
|
2512
|
+
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2513
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2514
|
+
/* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2511
2515
|
e.map((d) => {
|
|
2512
|
-
const l =
|
|
2513
|
-
return /* @__PURE__ */
|
|
2514
|
-
|
|
2516
|
+
const l = o.root.title === d.title;
|
|
2517
|
+
return /* @__PURE__ */ r.jsx(
|
|
2518
|
+
cn,
|
|
2515
2519
|
{
|
|
2516
2520
|
category: d,
|
|
2517
|
-
selectedCategory:
|
|
2518
|
-
onCurrentCategoryChange: (u) => i(
|
|
2519
|
-
onRootCategoryChange: (u) => i(
|
|
2521
|
+
selectedCategory: o.current,
|
|
2522
|
+
onCurrentCategoryChange: (u) => i(an(u)),
|
|
2523
|
+
onRootCategoryChange: (u) => i(ln(u)),
|
|
2520
2524
|
active: l
|
|
2521
2525
|
},
|
|
2522
2526
|
d.title
|
|
2523
2527
|
);
|
|
2524
2528
|
}),
|
|
2525
|
-
/* @__PURE__ */
|
|
2526
|
-
t.map((d) => /* @__PURE__ */
|
|
2529
|
+
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2530
|
+
t.map((d) => /* @__PURE__ */ r.jsxs(
|
|
2527
2531
|
"a",
|
|
2528
2532
|
{
|
|
2529
2533
|
href: d.link.href,
|
|
2530
2534
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2531
2535
|
children: [
|
|
2532
|
-
d.link.icon && /* @__PURE__ */
|
|
2536
|
+
d.link.icon && /* @__PURE__ */ r.jsx(f, { name: d.link.icon, className: "size-4" }),
|
|
2533
2537
|
d.title
|
|
2534
2538
|
]
|
|
2535
2539
|
},
|
|
2536
2540
|
d.title
|
|
2537
2541
|
)),
|
|
2538
|
-
/* @__PURE__ */
|
|
2539
|
-
/* @__PURE__ */
|
|
2542
|
+
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2543
|
+
/* @__PURE__ */ r.jsx(
|
|
2540
2544
|
"a",
|
|
2541
2545
|
{
|
|
2542
|
-
href: `tel:${
|
|
2546
|
+
href: `tel:${n}`,
|
|
2543
2547
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2544
|
-
children:
|
|
2548
|
+
children: st(n, "x xxx xxx xx xx")
|
|
2545
2549
|
}
|
|
2546
2550
|
)
|
|
2547
2551
|
] }),
|
|
2548
|
-
/* @__PURE__ */
|
|
2552
|
+
/* @__PURE__ */ r.jsx(xn, { categories: o.current.children })
|
|
2549
2553
|
] });
|
|
2550
|
-
},
|
|
2551
|
-
|
|
2554
|
+
}, bn = ({ category: e }) => /* @__PURE__ */ r.jsx(
|
|
2555
|
+
nt,
|
|
2552
2556
|
{
|
|
2553
2557
|
label: e.title ?? "",
|
|
2554
|
-
icon: /* @__PURE__ */
|
|
2558
|
+
icon: /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
2555
2559
|
classes: {
|
|
2556
2560
|
root: "w-full",
|
|
2557
2561
|
header: {
|
|
@@ -2565,43 +2569,43 @@ const Kr = (e, t) => {
|
|
|
2565
2569
|
"after:h-[1px] after:bg-color-blue-grey-200"
|
|
2566
2570
|
)
|
|
2567
2571
|
},
|
|
2568
|
-
children: /* @__PURE__ */
|
|
2572
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: e.children.map((t) => {
|
|
2569
2573
|
var i;
|
|
2570
|
-
const
|
|
2571
|
-
return /* @__PURE__ */
|
|
2572
|
-
/* @__PURE__ */
|
|
2573
|
-
|
|
2574
|
+
const n = !!t.link, o = n ? "a" : "p";
|
|
2575
|
+
return /* @__PURE__ */ r.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2576
|
+
/* @__PURE__ */ r.jsxs(
|
|
2577
|
+
o,
|
|
2574
2578
|
{
|
|
2575
|
-
href:
|
|
2579
|
+
href: n ? (i = t.link) == null ? void 0 : i.href : void 0,
|
|
2576
2580
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2577
2581
|
children: [
|
|
2578
2582
|
t.title,
|
|
2579
|
-
/* @__PURE__ */
|
|
2583
|
+
/* @__PURE__ */ r.jsx(f, { name: "arrows/arrowLink" })
|
|
2580
2584
|
]
|
|
2581
2585
|
}
|
|
2582
2586
|
),
|
|
2583
2587
|
t.children.map((d) => {
|
|
2584
2588
|
var l;
|
|
2585
|
-
return /* @__PURE__ */
|
|
2589
|
+
return /* @__PURE__ */ r.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ r.jsx("a", { href: (l = d.link) == null ? void 0 : l.href, className: "w-full", children: d.title }) }, d.title);
|
|
2586
2590
|
})
|
|
2587
2591
|
] }, t.title);
|
|
2588
2592
|
}) })
|
|
2589
2593
|
},
|
|
2590
2594
|
e.title
|
|
2591
|
-
),
|
|
2595
|
+
), gn = (e) => e.map((t) => ({
|
|
2592
2596
|
value: t.title ?? "",
|
|
2593
2597
|
label: t.title ?? ""
|
|
2594
|
-
})),
|
|
2595
|
-
const i =
|
|
2596
|
-
|
|
2597
|
-
},
|
|
2598
|
-
var
|
|
2599
|
-
return
|
|
2598
|
+
})), jn = ({ categories: e, helpers: t, phone: n, ...o }) => {
|
|
2599
|
+
const i = gn(e), [d, l] = z(i[0]), u = (p) => {
|
|
2600
|
+
s.isUndefined(p) || s.isArray(p) || l(p);
|
|
2601
|
+
}, m = Ft(() => {
|
|
2602
|
+
var p;
|
|
2603
|
+
return s.isUndefined(d) || s.isArray(d) ? [] : ((p = e.find((x) => x.title === d.value)) == null ? void 0 : p.children) ?? [];
|
|
2600
2604
|
}, [d, e]);
|
|
2601
|
-
return /* @__PURE__ */
|
|
2602
|
-
|
|
2605
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2606
|
+
Et.div,
|
|
2603
2607
|
{
|
|
2604
|
-
...
|
|
2608
|
+
...o,
|
|
2605
2609
|
className: a(
|
|
2606
2610
|
"absolute w-full max-w-[calc(636px-32px)]",
|
|
2607
2611
|
"absolute left-1/2 top-full bg-color-white p-4",
|
|
@@ -2611,85 +2615,253 @@ const Kr = (e, t) => {
|
|
|
2611
2615
|
initial: { opacity: 0 },
|
|
2612
2616
|
animate: { opacity: 1 },
|
|
2613
2617
|
children: [
|
|
2614
|
-
/* @__PURE__ */
|
|
2615
|
-
/* @__PURE__ */
|
|
2618
|
+
/* @__PURE__ */ r.jsx(Gt.SelectBase, { label: "Категория", options: i, value: d, onChange: u }),
|
|
2619
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((p) => {
|
|
2616
2620
|
var x;
|
|
2617
|
-
return
|
|
2621
|
+
return s.isArrayEmpty(p.children) ? /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsx("a", { href: (x = p.link) == null ? void 0 : x.href, className: "desk-body-regular-m inline-block w-full", children: p.title }) }, p.title) : /* @__PURE__ */ r.jsx(bn, { category: p }, p.title);
|
|
2618
2622
|
}) }),
|
|
2619
|
-
/* @__PURE__ */
|
|
2620
|
-
/* @__PURE__ */
|
|
2621
|
-
t.map((
|
|
2622
|
-
var x,
|
|
2623
|
-
return /* @__PURE__ */
|
|
2624
|
-
((
|
|
2625
|
-
|
|
2626
|
-
] }) },
|
|
2623
|
+
/* @__PURE__ */ r.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2624
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2625
|
+
t.map((p) => {
|
|
2626
|
+
var x, c;
|
|
2627
|
+
return /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: (x = p.link) == null ? void 0 : x.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2628
|
+
((c = p.link) == null ? void 0 : c.icon) && /* @__PURE__ */ r.jsx(f, { name: p.link.icon, className: "size-4" }),
|
|
2629
|
+
p.title
|
|
2630
|
+
] }) }, p.title);
|
|
2627
2631
|
}),
|
|
2628
|
-
/* @__PURE__ */
|
|
2629
|
-
/* @__PURE__ */
|
|
2630
|
-
|
|
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
|
+
/* @__PURE__ */ r.jsx(f, { name: "communication/phone", className: "size-4" }),
|
|
2634
|
+
st(n)
|
|
2631
2635
|
] }) })
|
|
2632
2636
|
] })
|
|
2633
2637
|
]
|
|
2634
2638
|
}
|
|
2635
2639
|
);
|
|
2636
|
-
},
|
|
2637
|
-
var
|
|
2638
|
-
const
|
|
2639
|
-
return /* @__PURE__ */
|
|
2640
|
-
/* @__PURE__ */
|
|
2641
|
-
/* @__PURE__ */
|
|
2642
|
-
d &&
|
|
2643
|
-
/* @__PURE__ */
|
|
2644
|
-
|
|
2640
|
+
}, yn = ({ categories: e, helpers: t, phone: n }) => {
|
|
2641
|
+
var m, p, x;
|
|
2642
|
+
const o = Ot(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [d, l] = z(!1), u = () => l(!d);
|
|
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
|
+
/* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2645
|
+
/* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(f, { name: d ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2646
|
+
d && le(
|
|
2647
|
+
/* @__PURE__ */ r.jsx(
|
|
2648
|
+
jn,
|
|
2645
2649
|
{
|
|
2646
2650
|
categories: e,
|
|
2647
2651
|
helpers: t,
|
|
2648
|
-
phone:
|
|
2652
|
+
phone: n,
|
|
2649
2653
|
style: { top: i ? i.top + i.height : 0 }
|
|
2650
2654
|
}
|
|
2651
2655
|
),
|
|
2652
2656
|
/**
|
|
2653
2657
|
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2654
2658
|
*/
|
|
2655
|
-
((x = (
|
|
2659
|
+
((x = (p = document.body.querySelector("#modal-preview")) == null ? void 0 : p.contentDocument) == null ? void 0 : x.body) ?? document.body
|
|
2656
2660
|
)
|
|
2657
2661
|
] });
|
|
2658
|
-
},
|
|
2659
|
-
const { isMobile:
|
|
2660
|
-
return /* @__PURE__ */
|
|
2661
|
-
|
|
2662
|
-
/* @__PURE__ */
|
|
2663
|
-
|
|
2662
|
+
}, ao = ({ categories: e, helpers: t, phone: n }) => {
|
|
2663
|
+
const { isMobile: o } = Y();
|
|
2664
|
+
return /* @__PURE__ */ r.jsxs("div", { id: g.seoHeader, "data-test-id": g.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2665
|
+
o ? /* @__PURE__ */ r.jsx(yn, { categories: e.map((i) => i.children).flat(), helpers: t, phone: n }) : /* @__PURE__ */ r.jsx(fn, { categories: e, helpers: t, phone: n }),
|
|
2666
|
+
/* @__PURE__ */ r.jsx(
|
|
2667
|
+
nn,
|
|
2664
2668
|
{
|
|
2665
|
-
ellipsis:
|
|
2666
|
-
matcher: (i) => ({ label:
|
|
2669
|
+
ellipsis: o ? 1 : void 0,
|
|
2670
|
+
matcher: (i) => ({ label: Le(i.label).split("-").join(" ") })
|
|
2667
2671
|
}
|
|
2668
2672
|
)
|
|
2669
2673
|
] });
|
|
2674
|
+
}, ce = (e) => typeof e != "string" && "formula" in e, fe = (e, t) => {
|
|
2675
|
+
let n = t;
|
|
2676
|
+
const o = {
|
|
2677
|
+
style: e
|
|
2678
|
+
};
|
|
2679
|
+
switch (e) {
|
|
2680
|
+
case "currency":
|
|
2681
|
+
o.currency = "RUB", o.minimumFractionDigits = 0, o.maximumFractionDigits = 0;
|
|
2682
|
+
break;
|
|
2683
|
+
case "percent":
|
|
2684
|
+
o.minimumFractionDigits = 0, o.maximumFractionDigits = 1, n = n / 100;
|
|
2685
|
+
break;
|
|
2686
|
+
}
|
|
2687
|
+
return new Intl.NumberFormat("ru-RU", o).format(n);
|
|
2688
|
+
}, sn = (e) => Object.values(e).reduce((n, o) => n.merge(me(o.fields)), Ve.object({})), kn = (e, t) => {
|
|
2689
|
+
const o = (e.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in t));
|
|
2690
|
+
if (o.length > 0)
|
|
2691
|
+
throw new Error(`Отсутствуют переменные для калькулятора: ${o.join(", ")}`);
|
|
2692
|
+
return e;
|
|
2693
|
+
}, be = (e, t) => {
|
|
2694
|
+
const n = Object.keys(t), o = Object.values(t), i = kn(e, t), l = new Function(...n, `return ${i};`)(...o);
|
|
2695
|
+
return Number.isNaN(l) ? "0" : l.toString();
|
|
2696
|
+
}, wn = (e, t) => e.map((n) => ({
|
|
2697
|
+
...n,
|
|
2698
|
+
value: ce(n.value) ? be(n.value.formula, t) : n.value
|
|
2699
|
+
})), vn = ({ subtitle: e, title: t }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: (t || e) && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2700
|
+
t && /* @__PURE__ */ r.jsx(H, { as: "h3", children: t }),
|
|
2701
|
+
e && /* @__PURE__ */ r.jsx("div", { className: "desk-body-regular-l text-color-dark", children: e })
|
|
2702
|
+
] }) }), Nn = ({ topDescription: e, rootValue: t, suffix: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2703
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: e }),
|
|
2704
|
+
/* @__PURE__ */ r.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ r.jsx("span", { children: fe(n, Number(t)) }) })
|
|
2705
|
+
] }), Cn = ({ hint: e, value: t, label: n, suffix: o, color: i = "dark", accent: d = !1 }) => /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2706
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2707
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: n }),
|
|
2708
|
+
e && /* @__PURE__ */ r.jsx(
|
|
2709
|
+
Mt,
|
|
2710
|
+
{
|
|
2711
|
+
withCloseBtn: !1,
|
|
2712
|
+
triggerElement: /* @__PURE__ */ r.jsx(f, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
2713
|
+
children: /* @__PURE__ */ r.jsx("p", { children: e })
|
|
2714
|
+
}
|
|
2715
|
+
)
|
|
2716
|
+
] }),
|
|
2717
|
+
/* @__PURE__ */ r.jsx(
|
|
2718
|
+
"span",
|
|
2719
|
+
{
|
|
2720
|
+
className: a("desk-body-regular-l text-color-dark", {
|
|
2721
|
+
"[&&]:desk-title-bold-s": d,
|
|
2722
|
+
"text-color-primary-default": i === "blue"
|
|
2723
|
+
}),
|
|
2724
|
+
children: fe(o, Number(t))
|
|
2725
|
+
}
|
|
2726
|
+
)
|
|
2727
|
+
] }), In = ({ infoList: e }) => {
|
|
2728
|
+
const { watch: t } = mt(), n = t(), o = wn(e, n);
|
|
2729
|
+
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(Cn, { ...i }, i.label)) });
|
|
2730
|
+
}, Mn = ({ iconName: e, text: t, hint: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2731
|
+
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2732
|
+
/* @__PURE__ */ r.jsx(f, { name: e, className: "size-6 text-icon-blue-grey-800" }),
|
|
2733
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: t })
|
|
2734
|
+
] }),
|
|
2735
|
+
n && /* @__PURE__ */ r.jsx(Mt, { 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 }) })
|
|
2736
|
+
] }), Tn = ({ assistHint: e, buttonProps: t, bottomDescription: n }) => /* @__PURE__ */ r.jsxs("div", { children: [
|
|
2737
|
+
e && /* @__PURE__ */ r.jsx(Mn, { ...e }),
|
|
2738
|
+
t && /* @__PURE__ */ r.jsx(jt, { className: "w-full", ...t, children: t.children }),
|
|
2739
|
+
n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: n })
|
|
2740
|
+
] }), En = ({
|
|
2741
|
+
topDescription: e,
|
|
2742
|
+
bottomDescription: t,
|
|
2743
|
+
rootValue: n,
|
|
2744
|
+
title: o,
|
|
2745
|
+
subtitle: i,
|
|
2746
|
+
buttonProps: d,
|
|
2747
|
+
infoList: l,
|
|
2748
|
+
suffix: u,
|
|
2749
|
+
assistHint: m
|
|
2750
|
+
}) => /* @__PURE__ */ r.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
|
|
2751
|
+
/* @__PURE__ */ r.jsx(Nn, { suffix: u, rootValue: n, topDescription: e }),
|
|
2752
|
+
/* @__PURE__ */ r.jsx(vn, { title: o, subtitle: i }),
|
|
2753
|
+
/* @__PURE__ */ r.jsx(In, { infoList: l }),
|
|
2754
|
+
/* @__PURE__ */ r.jsx(Tn, { assistHint: m, buttonProps: d, bottomDescription: t })
|
|
2755
|
+
] }), Fn = (e) => {
|
|
2756
|
+
switch (e) {
|
|
2757
|
+
case "content1":
|
|
2758
|
+
return /* @__PURE__ */ r.jsx("div", { children: "content 1" });
|
|
2759
|
+
case "content2":
|
|
2760
|
+
return /* @__PURE__ */ r.jsx("div", { children: "content 2" });
|
|
2761
|
+
}
|
|
2762
|
+
}, On = ({ triggerText: e, modalTitle: t, description: n, contentVariant: o }) => {
|
|
2763
|
+
const [i, d] = Ue(!1);
|
|
2764
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
2765
|
+
n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: n }),
|
|
2766
|
+
/* @__PURE__ */ r.jsx(
|
|
2767
|
+
"button",
|
|
2768
|
+
{
|
|
2769
|
+
onClick: () => d(!0),
|
|
2770
|
+
className: "desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
|
|
2771
|
+
children: e
|
|
2772
|
+
}
|
|
2773
|
+
),
|
|
2774
|
+
/* @__PURE__ */ r.jsx(Re, { title: t, isModalOpen: i, closeModal: () => d(!1), children: Fn(o) })
|
|
2775
|
+
] });
|
|
2776
|
+
}, Nt = ({ fields: e }) => {
|
|
2777
|
+
const { control: t } = mt();
|
|
2778
|
+
return /* @__PURE__ */ r.jsx("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-4", children: /* @__PURE__ */ r.jsx(pt, { control: t, fields: e }) });
|
|
2779
|
+
}, Sn = ({ fields: e }) => {
|
|
2780
|
+
const { control: t } = mt();
|
|
2781
|
+
return /* @__PURE__ */ r.jsx(pt, { control: t, fields: e });
|
|
2782
|
+
}, Bn = ({ fields: e }) => {
|
|
2783
|
+
const { control: t } = mt();
|
|
2784
|
+
return /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(pt, { control: t, fields: e }) });
|
|
2785
|
+
}, Rn = ({ fields: e }) => {
|
|
2786
|
+
const { control: t } = mt();
|
|
2787
|
+
return /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(pt, { control: t, fields: e }) });
|
|
2788
|
+
}, _n = ({ modalConfig: e, fieldsGroup: t }) => /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2789
|
+
e && /* @__PURE__ */ r.jsx(On, { ...e }),
|
|
2790
|
+
/* @__PURE__ */ r.jsx(Sn, { ...t == null ? void 0 : t.slidersGroupConfig }),
|
|
2791
|
+
(t == null ? void 0 : t.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(Nt, { ...t == null ? void 0 : t.radioGroupTabConfig }),
|
|
2792
|
+
(t == null ? void 0 : t.checkboxGroupConfig) && /* @__PURE__ */ r.jsx(Bn, { ...t == null ? void 0 : t.checkboxGroupConfig }),
|
|
2793
|
+
(t == null ? void 0 : t.radioGroupConfig) && /* @__PURE__ */ r.jsx(Nt, { ...t == null ? void 0 : t.radioGroupConfig }),
|
|
2794
|
+
(t == null ? void 0 : t.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(Nt, { ...t == null ? void 0 : t.radioGroupCardConfig }),
|
|
2795
|
+
(t == null ? void 0 : t.switchGroupConfig) && /* @__PURE__ */ r.jsx(Rn, { ...t == null ? void 0 : t.switchGroupConfig })
|
|
2796
|
+
] }), Hn = ({ calculatorTabs: e, activeCalculator: t, setActiveCalculator: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: e == null ? void 0 : e.map(({ value: o, label: i }) => /* @__PURE__ */ r.jsx(
|
|
2797
|
+
"button",
|
|
2798
|
+
{
|
|
2799
|
+
onClick: () => n(o),
|
|
2800
|
+
className: a(
|
|
2801
|
+
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent desktop:desk-body-regular-l focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
2802
|
+
{ "bg-icon-primary-default text-color-white": t === o }
|
|
2803
|
+
),
|
|
2804
|
+
children: i
|
|
2805
|
+
},
|
|
2806
|
+
o
|
|
2807
|
+
)) }), Dn = ({ calculatedInfoConfig: e, rootCalculatorConfig: t }) => {
|
|
2808
|
+
const n = sn(t.fieldsGroup), o = ie({
|
|
2809
|
+
schema: n,
|
|
2810
|
+
mode: "onBlur",
|
|
2811
|
+
defaultValues: ae.getZodDefaults(n)
|
|
2812
|
+
}), i = o.watch(), { rootValue: d } = e, l = ce(d) ? be(d.formula, i) : d, u = { ...e, rootValue: l };
|
|
2813
|
+
return /* @__PURE__ */ r.jsx(Qe, { ...o, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2814
|
+
/* @__PURE__ */ r.jsx(_n, { ...t }),
|
|
2815
|
+
/* @__PURE__ */ r.jsx(En, { ...u })
|
|
2816
|
+
] }) });
|
|
2817
|
+
}, lo = ({ calculators: e, calculatorTabs: t, headline: n }) => {
|
|
2818
|
+
var u;
|
|
2819
|
+
const o = t && t.length > 1 && e.length > 1, [i, d] = z(o ? (u = t[0]) == null ? void 0 : u.value : ""), l = o ? e[t.findIndex((m) => m.value === i)] : e[0];
|
|
2820
|
+
return /* @__PURE__ */ r.jsx("section", { id: g.calculator, children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2821
|
+
/* @__PURE__ */ r.jsx(H, { className: "mb-12", as: "h2", children: n }),
|
|
2822
|
+
o && /* @__PURE__ */ r.jsx(
|
|
2823
|
+
Hn,
|
|
2824
|
+
{
|
|
2825
|
+
calculatorTabs: t,
|
|
2826
|
+
activeCalculator: i,
|
|
2827
|
+
setActiveCalculator: d
|
|
2828
|
+
}
|
|
2829
|
+
),
|
|
2830
|
+
l && /* @__PURE__ */ r.jsx(
|
|
2831
|
+
Dn,
|
|
2832
|
+
{
|
|
2833
|
+
calculatedInfoConfig: l.calculatedInfoConfig,
|
|
2834
|
+
rootCalculatorConfig: l.rootCalculatorConfig
|
|
2835
|
+
},
|
|
2836
|
+
i
|
|
2837
|
+
)
|
|
2838
|
+
] }) }) });
|
|
2670
2839
|
};
|
|
2671
2840
|
export {
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2841
|
+
Ct as Advantages,
|
|
2842
|
+
eo as AuthProvider,
|
|
2843
|
+
Jn as Banner,
|
|
2844
|
+
At as BannerWithSeparateImg,
|
|
2845
|
+
Zn as Benefit,
|
|
2846
|
+
nn as Breadcrumbs,
|
|
2678
2847
|
J as ButtonWithHandlers,
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2848
|
+
Dn as Calculator,
|
|
2849
|
+
lo as CalculatorRoot,
|
|
2850
|
+
oo as DynamicForm,
|
|
2851
|
+
io as FallbacksView,
|
|
2852
|
+
pt as FieldMapper,
|
|
2853
|
+
Yn as Footer,
|
|
2854
|
+
Xr as HTMLParser,
|
|
2855
|
+
gt as HTMLRenderer,
|
|
2856
|
+
Xn as Header,
|
|
2857
|
+
ro as InterLinking,
|
|
2858
|
+
to as LongBanner,
|
|
2859
|
+
ao as SeoHeader,
|
|
2860
|
+
Gn as Stepper,
|
|
2861
|
+
no as UsefulInfo,
|
|
2862
|
+
Ye as WIDGET_LIST,
|
|
2863
|
+
me as getDynamicSchema,
|
|
2864
|
+
Gr as queryClient,
|
|
2865
|
+
g as widgetIds
|
|
2694
2866
|
};
|
|
2695
2867
|
//# sourceMappingURL=widget.js.map
|