stone-kit 0.0.1038 → 0.0.1048
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/Option-DmDx_xOt.js +99 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -1
- package/dist/components/CommercialLotCard/CommercialLotCard.js +64 -55
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.d.ts +7 -0
- package/dist/components/CommercialLotCard/components/PaymentLink/PaymentLink.js +21 -0
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +2 -1
- package/dist/components/CommercialLotCard/components/Price/Price.js +21 -33
- package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +2 -1
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +8 -7
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
- package/dist/components/FavoriteIcon/FavoriteIcon.d.ts +7 -0
- package/dist/components/FavoriteIcon/FavoriteIcon.js +66 -0
- package/dist/components/FavoriteIcon/Heart.d.ts +3 -0
- package/dist/components/FavoriteIcon/Heart.js +24 -0
- package/dist/components/FavoriteIcon/HeartFilled.d.ts +5 -0
- package/dist/components/FavoriteIcon/HeartFilled.js +27 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/LotCard/hooks/useLotCard.js +1 -1
- package/dist/components/LotCard/ui/LotCard.js +33 -45
- package/dist/components/Select/model/selectMode.d.ts +4 -2
- package/dist/components/Select/model/selectMode.js +53 -30
- package/dist/components/Select/ui/Category.js +43 -40
- package/dist/components/Select/ui/Option.js +1 -1
- package/dist/components/Select/ui/Select.js +98 -96
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +2 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +97 -91
- package/dist/pages/LotsPage/LotsPage.js +22 -16
- package/dist/stone-kit.css +1 -1
- package/dist/useLotCard-D-gK4J_o.js +186 -0
- package/package.json +1 -1
- package/dist/Option-DI87iJMM.js +0 -98
- package/dist/useLotCard-DPqIlj09.js +0 -187
|
@@ -1,149 +1,151 @@
|
|
|
1
|
-
import { jsxs as d, jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { c as
|
|
4
|
-
import { s as e, O as
|
|
5
|
-
import { Category as
|
|
1
|
+
import { jsxs as d, jsx as t, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import { useState as M, useRef as T, useEffect as k } from "react";
|
|
3
|
+
import { c as re } from "../../../index-YnD2EP-S.js";
|
|
4
|
+
import { s as e, O as q } from "../../../Option-DmDx_xOt.js";
|
|
5
|
+
import { Category as te } from "./Category.js";
|
|
6
6
|
import { handleClickModeOption as ne, handleClickModeCategory as le } from "../model/selectMode.js";
|
|
7
7
|
import { NewIcon as y } from "../../NewIcon/ui/NewIcon.js";
|
|
8
|
-
const
|
|
9
|
-
options:
|
|
10
|
-
customPlaceholder:
|
|
11
|
-
placeholder:
|
|
8
|
+
const c = re.bind(e), pe = ({
|
|
9
|
+
options: n,
|
|
10
|
+
customPlaceholder: S,
|
|
11
|
+
placeholder: D = "Выберите опции",
|
|
12
12
|
error: G,
|
|
13
|
-
disabled:
|
|
14
|
-
disabledOptions:
|
|
13
|
+
disabled: $,
|
|
14
|
+
disabledOptions: p = [],
|
|
15
15
|
additionalClass: H = "",
|
|
16
16
|
additionalClassOption: J,
|
|
17
17
|
additionalClassBtn: K,
|
|
18
18
|
onChange: Q,
|
|
19
|
-
onBlur:
|
|
20
|
-
selectedValues:
|
|
21
|
-
isBtn:
|
|
19
|
+
onBlur: A,
|
|
20
|
+
selectedValues: s = [],
|
|
21
|
+
isBtn: C = !1,
|
|
22
22
|
btnName: N,
|
|
23
23
|
clickableOptions: f,
|
|
24
24
|
isListRight: U = !1,
|
|
25
|
-
sizeIcon:
|
|
26
|
-
mode:
|
|
25
|
+
sizeIcon: m,
|
|
26
|
+
mode: o = "options",
|
|
27
27
|
onClickItem: x,
|
|
28
28
|
onCLickSelect: w,
|
|
29
29
|
size_s: E = "large",
|
|
30
|
-
size_m:
|
|
31
|
-
size_l:
|
|
30
|
+
size_m: W,
|
|
31
|
+
size_l: R,
|
|
32
32
|
betweenSize: X = "small",
|
|
33
33
|
isDisabledNotClickable: u,
|
|
34
34
|
isLast: Y,
|
|
35
35
|
isPositionLeftCheckbox: z,
|
|
36
36
|
selectAll: L,
|
|
37
37
|
scrollVersion: Z = "compact",
|
|
38
|
-
isLoading:
|
|
39
|
-
selectPaddingBottom:
|
|
38
|
+
isLoading: I = !1,
|
|
39
|
+
selectPaddingBottom: h
|
|
40
40
|
}) => {
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
const [
|
|
44
|
-
x && x(
|
|
45
|
-
const
|
|
46
|
-
option:
|
|
47
|
-
selectedOptions:
|
|
48
|
-
disabledOptions:
|
|
41
|
+
const P = { value: "selectAll", label: L?.label ?? "Выбрать все" }, b = () => L?.enabled && n && n.length > 0 ? [P, .../* @__PURE__ */ new Set([...n])] : [.../* @__PURE__ */ new Set([...n])];
|
|
42
|
+
n = Array.isArray(n) ? b() : [];
|
|
43
|
+
const [a, _] = M(s), [i, g] = M(!1), v = T(null), V = a.filter((r) => r.value !== "selectAll").length, O = (r) => {
|
|
44
|
+
x && x(r);
|
|
45
|
+
const l = {
|
|
46
|
+
option: r,
|
|
47
|
+
selectedOptions: a,
|
|
48
|
+
disabledOptions: p,
|
|
49
49
|
setSelectedOptions: _,
|
|
50
50
|
onChange: Q,
|
|
51
|
-
mode:
|
|
52
|
-
optionsParentArr:
|
|
51
|
+
mode: o,
|
|
52
|
+
optionsParentArr: n,
|
|
53
|
+
clickableOptions: f,
|
|
54
|
+
isDisabledNotClickable: u
|
|
53
55
|
};
|
|
54
|
-
Array.isArray(
|
|
56
|
+
Array.isArray(r) ? le(l) : ne(l);
|
|
55
57
|
}, ee = () => {
|
|
56
|
-
|
|
57
|
-
}, j = (
|
|
58
|
-
const
|
|
59
|
-
if (v.current && !v.current.contains(
|
|
60
|
-
if (
|
|
58
|
+
A && A(a);
|
|
59
|
+
}, j = (r) => {
|
|
60
|
+
const l = r.target;
|
|
61
|
+
if (v.current && !v.current.contains(r.target)) {
|
|
62
|
+
if (l.closest("svg"))
|
|
61
63
|
return;
|
|
62
|
-
|
|
64
|
+
g(!1);
|
|
63
65
|
}
|
|
64
66
|
};
|
|
65
|
-
|
|
67
|
+
k(() => (document.addEventListener("click", j), () => {
|
|
66
68
|
document.removeEventListener("click", j);
|
|
67
69
|
}), [i]);
|
|
68
|
-
const
|
|
69
|
-
return
|
|
70
|
-
|
|
71
|
-
}, [
|
|
70
|
+
const B = T(s);
|
|
71
|
+
return k(() => {
|
|
72
|
+
s.length !== B.current.length && (_(s), B.current = s);
|
|
73
|
+
}, [s]), /* @__PURE__ */ d(
|
|
72
74
|
"div",
|
|
73
75
|
{
|
|
74
76
|
ref: v,
|
|
75
|
-
className:
|
|
76
|
-
style:
|
|
77
|
-
paddingBottom: `${
|
|
78
|
-
marginBottom: `-${
|
|
77
|
+
className: c(e.multiSelectWrapper, { [e.multiSelectWrapperError]: G }, H),
|
|
78
|
+
style: h !== void 0 && i ? {
|
|
79
|
+
paddingBottom: `${h}px`,
|
|
80
|
+
marginBottom: `-${h}px`
|
|
79
81
|
} : void 0,
|
|
80
82
|
tabIndex: 0,
|
|
81
83
|
onBlur: ee,
|
|
82
84
|
children: [
|
|
83
|
-
/* @__PURE__ */ d("div", { className:
|
|
84
|
-
!
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ d("div", { className: c(e.inputWrapper), children: [
|
|
86
|
+
!C && /* @__PURE__ */ d(F, { children: [
|
|
87
|
+
/* @__PURE__ */ t(
|
|
86
88
|
"div",
|
|
87
89
|
{
|
|
88
|
-
className:
|
|
90
|
+
className: c(
|
|
89
91
|
e.selectedOptions,
|
|
90
92
|
e[`${E}-size`],
|
|
91
|
-
e[`${
|
|
92
|
-
e[`${
|
|
93
|
-
{ [e.selectedOptionsNotEmpty]:
|
|
94
|
-
{ [e.selectOptionsDisabled]:
|
|
93
|
+
e[`${W}-size_m`],
|
|
94
|
+
e[`${R}-size)_l`],
|
|
95
|
+
{ [e.selectedOptionsNotEmpty]: a.length > 0 },
|
|
96
|
+
{ [e.selectOptionsDisabled]: $ }
|
|
95
97
|
),
|
|
96
|
-
onClick: () =>
|
|
97
|
-
children: /* @__PURE__ */
|
|
98
|
+
onClick: () => g(!i),
|
|
99
|
+
children: /* @__PURE__ */ t("div", { className: e.selectedText, children: S || (a.length === 0 ? D : "Выбрано " + V) })
|
|
98
100
|
}
|
|
99
101
|
),
|
|
100
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ t(
|
|
101
103
|
y,
|
|
102
104
|
{
|
|
103
105
|
name: "arrowShort",
|
|
104
106
|
deg: i ? "180" : "0",
|
|
105
|
-
size:
|
|
107
|
+
size: m ?? "24",
|
|
106
108
|
additionalClass: e.icon
|
|
107
109
|
}
|
|
108
110
|
)
|
|
109
111
|
] }),
|
|
110
|
-
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
+
C && /* @__PURE__ */ d(F, { children: [
|
|
113
|
+
/* @__PURE__ */ t(
|
|
112
114
|
"button",
|
|
113
115
|
{
|
|
114
|
-
className:
|
|
116
|
+
className: c(
|
|
115
117
|
e.selectedOptions,
|
|
116
118
|
e[`${E}-size`],
|
|
117
|
-
e[`${
|
|
118
|
-
e[`${
|
|
119
|
+
e[`${W}-size_m`],
|
|
120
|
+
e[`${R}-size_l`],
|
|
119
121
|
e.selectedOptionsBtn,
|
|
120
|
-
{ [e.selectOptionsDisabled]:
|
|
122
|
+
{ [e.selectOptionsDisabled]: $ },
|
|
121
123
|
K
|
|
122
124
|
),
|
|
123
125
|
onClick: () => {
|
|
124
|
-
w && w(),
|
|
126
|
+
w && w(), g(!i);
|
|
125
127
|
},
|
|
126
128
|
children: N
|
|
127
129
|
}
|
|
128
130
|
),
|
|
129
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ t(
|
|
130
132
|
y,
|
|
131
133
|
{
|
|
132
134
|
name: "filter",
|
|
133
135
|
deg: i ? "180" : "0",
|
|
134
|
-
size:
|
|
135
|
-
additionalClass:
|
|
136
|
+
size: m ?? "24",
|
|
137
|
+
additionalClass: c(e.icon, { [e.iconBtn]: !N })
|
|
136
138
|
}
|
|
137
139
|
)
|
|
138
140
|
] })
|
|
139
141
|
] }),
|
|
140
|
-
i && /* @__PURE__ */
|
|
142
|
+
i && /* @__PURE__ */ t("div", { className: c(
|
|
141
143
|
e.optionsOuterContainer,
|
|
142
144
|
e[`betweenSize_${X}`],
|
|
143
145
|
{ [e.listRight]: U },
|
|
144
146
|
{ [e.lastList]: Y },
|
|
145
147
|
J
|
|
146
|
-
), children:
|
|
148
|
+
), children: I ? /* @__PURE__ */ t("div", { className: e.loaderWrapper, children: /* @__PURE__ */ t(
|
|
147
149
|
y,
|
|
148
150
|
{
|
|
149
151
|
name: "loader",
|
|
@@ -151,52 +153,52 @@ const o = te.bind(e), me = ({
|
|
|
151
153
|
color: "currentColor",
|
|
152
154
|
additionalClass: e.loader
|
|
153
155
|
}
|
|
154
|
-
) }) : /* @__PURE__ */ d(
|
|
156
|
+
) }) : !n || n.length === 0 ? /* @__PURE__ */ t("div", { className: e.emptyStateWrapper, children: "Список пуст" }) : /* @__PURE__ */ d(
|
|
155
157
|
"div",
|
|
156
158
|
{
|
|
157
|
-
className:
|
|
159
|
+
className: c(e.optionsList, e[`scroll_${Z}`]),
|
|
158
160
|
children: [
|
|
159
|
-
(
|
|
160
|
-
|
|
161
|
+
(o === "options" || o === "single") && n?.map((r, l) => /* @__PURE__ */ t(
|
|
162
|
+
q,
|
|
161
163
|
{
|
|
162
|
-
disabledOptions:
|
|
164
|
+
disabledOptions: p,
|
|
163
165
|
clickableOptions: f,
|
|
164
|
-
selectedOptions:
|
|
165
|
-
sizeIcon:
|
|
166
|
-
option:
|
|
166
|
+
selectedOptions: a,
|
|
167
|
+
sizeIcon: m,
|
|
168
|
+
option: r,
|
|
167
169
|
isPositionLeftCheckbox: z,
|
|
168
170
|
handleOptionClick: O,
|
|
169
171
|
isDisabledNotClickable: u
|
|
170
172
|
},
|
|
171
|
-
|
|
173
|
+
l
|
|
172
174
|
)),
|
|
173
|
-
(
|
|
174
|
-
|
|
175
|
+
(o === "category" || o === "double") && n?.map((r, l) => "options" in r ? /* @__PURE__ */ t(
|
|
176
|
+
te,
|
|
175
177
|
{
|
|
176
|
-
disabledOptions:
|
|
178
|
+
disabledOptions: p,
|
|
177
179
|
clickableOptions: f,
|
|
178
|
-
selectedOptions:
|
|
179
|
-
sizeIcon:
|
|
180
|
-
category:
|
|
181
|
-
mode:
|
|
182
|
-
selectedValues:
|
|
180
|
+
selectedOptions: a,
|
|
181
|
+
sizeIcon: m,
|
|
182
|
+
category: r,
|
|
183
|
+
mode: o,
|
|
184
|
+
selectedValues: s,
|
|
183
185
|
handleOptionClick: O,
|
|
184
186
|
isDisabledNotClickable: u
|
|
185
187
|
},
|
|
186
|
-
|
|
187
|
-
) :
|
|
188
|
-
|
|
188
|
+
l
|
|
189
|
+
) : r.value === "selectAll" ? /* @__PURE__ */ t(
|
|
190
|
+
q,
|
|
189
191
|
{
|
|
190
|
-
disabledOptions:
|
|
192
|
+
disabledOptions: p,
|
|
191
193
|
clickableOptions: f,
|
|
192
|
-
selectedOptions:
|
|
194
|
+
selectedOptions: a,
|
|
193
195
|
isPositionLeftCheckbox: z,
|
|
194
|
-
sizeIcon:
|
|
195
|
-
option:
|
|
196
|
+
sizeIcon: m,
|
|
197
|
+
option: r,
|
|
196
198
|
handleOptionClick: O,
|
|
197
199
|
isDisabledNotClickable: u
|
|
198
200
|
},
|
|
199
|
-
|
|
201
|
+
l
|
|
200
202
|
) : null)
|
|
201
203
|
]
|
|
202
204
|
}
|
|
@@ -206,5 +208,5 @@ const o = te.bind(e), me = ({
|
|
|
206
208
|
);
|
|
207
209
|
};
|
|
208
210
|
export {
|
|
209
|
-
|
|
211
|
+
pe as Select
|
|
210
212
|
};
|
|
@@ -8,6 +8,8 @@ interface ISummarySelectProps extends MultiSelectProps {
|
|
|
8
8
|
clearPosition?: 'top' | 'bottom';
|
|
9
9
|
chipVariant?: 'default' | 'secondary';
|
|
10
10
|
chipAdditionalClass?: string;
|
|
11
|
+
summaryCategoryClass?: string;
|
|
12
|
+
selectBetweenSize?: 'small' | 'medium';
|
|
11
13
|
}
|
|
12
14
|
export declare const SummarySelect: React.FC<ISummarySelectProps>;
|
|
13
15
|
export {};
|
|
@@ -1,93 +1,99 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Select as
|
|
4
|
-
import { NewIcon as
|
|
5
|
-
const
|
|
6
|
-
root:
|
|
7
|
-
nameWrapper:
|
|
8
|
-
size_large:
|
|
9
|
-
clearBtnWrapper:
|
|
10
|
-
clearBtn:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsxs as r, jsx as t, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { c as n } from "../../../index-YnD2EP-S.js";
|
|
3
|
+
import { Select as x } from "../../Select/ui/Select.js";
|
|
4
|
+
import { NewIcon as p } from "../../NewIcon/ui/NewIcon.js";
|
|
5
|
+
const A = "_root_99sc2_1", $ = "_nameWrapper_99sc2_8", j = "_size_large_99sc2_18", U = "_clearBtnWrapper_99sc2_25", F = "_clearBtn_99sc2_25", I = "_summaryList_99sc2_54", q = "_summaryOption_99sc2_66", E = "_summaryOptionSecondary_99sc2_88", G = "_categoryOption_99sc2_93", H = "_categoryOptionSecondary_99sc2_102", J = "_summaryCategory_99sc2_106", K = "_headerCategory_99sc2_116", M = "_categoryTitle_99sc2_122", Q = "_categoryTitleSecondary_99sc2_130", R = "_categoryOptions_99sc2_134", e = {
|
|
6
|
+
root: A,
|
|
7
|
+
nameWrapper: $,
|
|
8
|
+
size_large: j,
|
|
9
|
+
clearBtnWrapper: U,
|
|
10
|
+
clearBtn: F,
|
|
11
|
+
"clearBtn-size_medium": "_clearBtn-size_medium_99sc2_40",
|
|
12
|
+
summaryList: I,
|
|
13
|
+
"summaryList-size_small": "_summaryList-size_small_99sc2_59",
|
|
14
|
+
"summaryList-size_medium": "_summaryList-size_medium_99sc2_62",
|
|
15
|
+
summaryOption: q,
|
|
16
|
+
summaryOptionSecondary: E,
|
|
17
|
+
categoryOption: G,
|
|
18
|
+
categoryOptionSecondary: H,
|
|
19
|
+
summaryCategory: J,
|
|
20
|
+
headerCategory: K,
|
|
21
|
+
categoryTitle: M,
|
|
22
|
+
categoryTitleSecondary: Q,
|
|
23
|
+
categoryOptions: R
|
|
24
|
+
}, D = ({
|
|
25
|
+
label: h = "",
|
|
26
|
+
isShowReset: y,
|
|
24
27
|
isShowCategoryDelete: v = !1,
|
|
25
|
-
labelSize:
|
|
26
|
-
isLoading:
|
|
27
|
-
clearPosition:
|
|
28
|
-
chipVariant:
|
|
28
|
+
labelSize: z = "medium",
|
|
29
|
+
isLoading: B = !1,
|
|
30
|
+
clearPosition: _ = "top",
|
|
31
|
+
chipVariant: m = "default",
|
|
29
32
|
chipAdditionalClass: O = "",
|
|
30
|
-
selectPaddingBottom:
|
|
31
|
-
|
|
33
|
+
selectPaddingBottom: L,
|
|
34
|
+
selectBetweenSize: C = "small",
|
|
35
|
+
summaryCategoryClass: W = "",
|
|
36
|
+
...c
|
|
32
37
|
}) => {
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
)
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
const f = y && _ === "bottom", d = (a) => {
|
|
39
|
+
c.onChange && c.onChange(a);
|
|
40
|
+
}, S = (a) => {
|
|
41
|
+
a.filter((s) => s.value !== "selectAll").length === 0 ? d([]) : d(a);
|
|
42
|
+
}, N = (a) => {
|
|
43
|
+
const l = c.selectedValues?.filter((s) => s.value !== a) || [];
|
|
44
|
+
S(l);
|
|
45
|
+
}, u = () => {
|
|
46
|
+
d([]);
|
|
47
|
+
}, T = (a) => {
|
|
48
|
+
const l = c.selectedValues?.filter((s) => s.value !== a.value).filter(
|
|
49
|
+
(s) => !a.options.some((i) => i.value === s.value)
|
|
50
|
+
) ?? [];
|
|
51
|
+
S(l);
|
|
52
|
+
}, o = c.selectedValues?.filter((a) => a.value !== "selectAll"), k = o?.filter((a) => "options" in a);
|
|
53
|
+
return /* @__PURE__ */ r("div", { className: e.root, children: [
|
|
54
|
+
(y && _ === "top" || h) && /* @__PURE__ */ r("div", { className: n(e.nameWrapper, e[`size_${z}`]), children: [
|
|
55
|
+
/* @__PURE__ */ t("div", { children: h }),
|
|
56
|
+
y && _ === "top" && /* @__PURE__ */ t(
|
|
51
57
|
"div",
|
|
52
58
|
{
|
|
53
59
|
className: e.clearBtn,
|
|
54
|
-
onClick:
|
|
60
|
+
onClick: u,
|
|
55
61
|
children: "Очистить"
|
|
56
62
|
}
|
|
57
63
|
)
|
|
58
64
|
] }),
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
|
|
65
|
+
/* @__PURE__ */ t(
|
|
66
|
+
x,
|
|
61
67
|
{
|
|
62
|
-
...
|
|
63
|
-
isLoading:
|
|
64
|
-
selectPaddingBottom:
|
|
65
|
-
onChange:
|
|
68
|
+
...c,
|
|
69
|
+
isLoading: B,
|
|
70
|
+
selectPaddingBottom: L,
|
|
71
|
+
onChange: d
|
|
66
72
|
}
|
|
67
73
|
),
|
|
68
|
-
!v &&
|
|
69
|
-
|
|
74
|
+
!v && c.mode === "options" && o && o.length > 0 && /* @__PURE__ */ r("div", { className: n(e.summaryList, e[`summaryList-size_${C}`]), children: [
|
|
75
|
+
f && /* @__PURE__ */ t("div", { className: e.clearBtnWrapper, children: /* @__PURE__ */ t(
|
|
70
76
|
"div",
|
|
71
77
|
{
|
|
72
78
|
className: e.clearBtn,
|
|
73
|
-
onClick:
|
|
79
|
+
onClick: u,
|
|
74
80
|
children: "Очистить"
|
|
75
81
|
}
|
|
76
82
|
) }),
|
|
77
|
-
|
|
83
|
+
o.map((a) => /* @__PURE__ */ r(
|
|
78
84
|
"div",
|
|
79
85
|
{
|
|
80
|
-
onClick: () =>
|
|
81
|
-
className:
|
|
82
|
-
[e.summaryOptionSecondary]:
|
|
86
|
+
onClick: () => N(a.value.toString()),
|
|
87
|
+
className: n(e.summaryOption, {
|
|
88
|
+
[e.summaryOptionSecondary]: m === "secondary"
|
|
83
89
|
}, O),
|
|
84
90
|
children: [
|
|
85
91
|
a.label,
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
|
|
92
|
+
/* @__PURE__ */ t(
|
|
93
|
+
p,
|
|
88
94
|
{
|
|
89
95
|
name: "close",
|
|
90
|
-
size:
|
|
96
|
+
size: m === "secondary" ? "20" : "16"
|
|
91
97
|
}
|
|
92
98
|
)
|
|
93
99
|
]
|
|
@@ -95,33 +101,33 @@ const k = "_root_a207n_1", L = "_nameWrapper_a207n_8", V = "_size_large_a207n_18
|
|
|
95
101
|
a.value
|
|
96
102
|
))
|
|
97
103
|
] }),
|
|
98
|
-
!v &&
|
|
99
|
-
|
|
104
|
+
!v && c.mode === "double" && /* @__PURE__ */ r(b, { children: [
|
|
105
|
+
f && o && o.length > 0 && /* @__PURE__ */ t(
|
|
100
106
|
"div",
|
|
101
107
|
{
|
|
102
|
-
className: e.clearBtn,
|
|
103
|
-
onClick:
|
|
108
|
+
className: n(e.clearBtn, e[`clearBtn-size_${C}`]),
|
|
109
|
+
onClick: u,
|
|
104
110
|
children: "Очистить"
|
|
105
111
|
}
|
|
106
112
|
),
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
return /* @__PURE__ */
|
|
113
|
+
k?.map((a, l) => {
|
|
114
|
+
const s = a;
|
|
115
|
+
return /* @__PURE__ */ r(
|
|
110
116
|
"div",
|
|
111
117
|
{
|
|
112
|
-
className: e.summaryCategory,
|
|
118
|
+
className: n(e.summaryCategory, W),
|
|
113
119
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
[e.categoryTitleSecondary]:
|
|
117
|
-
}), children:
|
|
118
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ r("div", { className: e.headerCategory, children: [
|
|
121
|
+
/* @__PURE__ */ t("div", { className: n(e.categoryTitle, {
|
|
122
|
+
[e.categoryTitleSecondary]: m === "secondary"
|
|
123
|
+
}), children: s.label }),
|
|
124
|
+
/* @__PURE__ */ t(
|
|
119
125
|
"div",
|
|
120
126
|
{
|
|
121
|
-
onClick: () =>
|
|
127
|
+
onClick: () => T(a),
|
|
122
128
|
className: e.clearBtn,
|
|
123
|
-
children: /* @__PURE__ */
|
|
124
|
-
|
|
129
|
+
children: /* @__PURE__ */ t(
|
|
130
|
+
p,
|
|
125
131
|
{
|
|
126
132
|
name: "close",
|
|
127
133
|
size: "16"
|
|
@@ -130,37 +136,37 @@ const k = "_root_a207n_1", L = "_nameWrapper_a207n_8", V = "_size_large_a207n_18
|
|
|
130
136
|
}
|
|
131
137
|
)
|
|
132
138
|
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ t("div", { className: e.categoryOptions, children: s.options.filter((i) => o?.some((g) => i.value === g.value)).map((i, g) => /* @__PURE__ */ r(
|
|
134
140
|
"div",
|
|
135
141
|
{
|
|
136
|
-
onClick: () =>
|
|
137
|
-
className:
|
|
142
|
+
onClick: () => N(i.value.toString()),
|
|
143
|
+
className: n(
|
|
138
144
|
e.summaryOption,
|
|
139
145
|
e.categoryOption,
|
|
140
|
-
{ [e.categoryOptionSecondary]:
|
|
146
|
+
{ [e.categoryOptionSecondary]: m === "secondary" },
|
|
141
147
|
O
|
|
142
148
|
),
|
|
143
149
|
children: [
|
|
144
|
-
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
|
|
150
|
+
i.label,
|
|
151
|
+
/* @__PURE__ */ t(
|
|
152
|
+
p,
|
|
147
153
|
{
|
|
148
154
|
name: "close",
|
|
149
|
-
size:
|
|
155
|
+
size: m === "secondary" ? "20" : "16"
|
|
150
156
|
}
|
|
151
157
|
)
|
|
152
158
|
]
|
|
153
159
|
},
|
|
154
|
-
|
|
160
|
+
g
|
|
155
161
|
)) })
|
|
156
162
|
]
|
|
157
163
|
},
|
|
158
|
-
|
|
164
|
+
l
|
|
159
165
|
);
|
|
160
166
|
})
|
|
161
167
|
] })
|
|
162
168
|
] });
|
|
163
169
|
};
|
|
164
170
|
export {
|
|
165
|
-
|
|
171
|
+
D as SummarySelect
|
|
166
172
|
};
|