stone-kit 0.0.1037 → 0.0.1045

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