stone-kit 0.0.669 → 0.0.671
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/FilterWithSave-O6fbdTWj.js +591 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +1 -1
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +1 -1
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +1 -1
- package/dist/components/TabSwitcher/index.js +1 -1
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +1 -1
- package/dist/components/ZoomControls/ui/ZoomControls.js +1 -1
- package/dist/main.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/FilterWithSave-BdP32juW.js +0 -591
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
import { jsxs as g, jsx as t, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import { NewIcon as L } from "./components/NewIcon/ui/NewIcon.js";
|
|
3
|
+
import { M as T } from "./Modal-BZv6nlLe.js";
|
|
4
|
+
import { forwardRef as Q, useState as q, useRef as J, useEffect as E } from "react";
|
|
5
|
+
import { Text as H } from "./components/Text/ui/Text.js";
|
|
6
|
+
import { c as V, g as U } from "./index-rKuIKazb.js";
|
|
7
|
+
import { Button as $ } from "./components/Button/ui/Button.js";
|
|
8
|
+
import "./components/mobileButton/ui/MobileButton.js";
|
|
9
|
+
import "./components/DestinationTab/ui/DestinationTab.js";
|
|
10
|
+
import "./components/RoundButton/ui/RoundButton.js";
|
|
11
|
+
import "./components/Tag/ui/Tag.js";
|
|
12
|
+
import "./components/Switcher/ui/Switcher.js";
|
|
13
|
+
import "./components/Flex/ui/Flex.js";
|
|
14
|
+
import "./components/Input/ui/Input.js";
|
|
15
|
+
import "./components/GroupedInput/ui/GroupedInputs.js";
|
|
16
|
+
import "./components/MetroTag/ui/MetroTag.js";
|
|
17
|
+
import "./components/LotCard/ui/LotCard.js";
|
|
18
|
+
import "./components/Select/ui/Select.js";
|
|
19
|
+
import { useClientWidth as j } from "./shared/useClientWidth.js";
|
|
20
|
+
import { s as p, u as X } from "./useSortSelect-CjZXLFOG.js";
|
|
21
|
+
import "./components/SliderNavigation/ui/SliderNavigation.js";
|
|
22
|
+
import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
23
|
+
import "./components/TabSelect/ui/TabSelect.js";
|
|
24
|
+
import "./components/FormModal/ui/ModalForm.js";
|
|
25
|
+
import { O as P } from "./Option-C4HGcCtY.js";
|
|
26
|
+
const Y = "_root_lgek7_1", Z = "_text_lgek7_18", ee = "_textMini_lgek7_26", te = "_rootCol_lgek7_32", ie = "_item_lgek7_38", se = "_whiteRow_lgek7_57", le = "_firstItem_lgek7_68", re = "_lastItem_lgek7_72", ae = "_apart_lgek7_103", ne = "_isLong_lgek7_103", oe = "_autoWidth_lgek7_128", ce = "_mini_lgek7_132", de = "_isDisabled_lgek7_140", me = "_grayRow_lgek7_164", o = {
|
|
27
|
+
root: Y,
|
|
28
|
+
text: Z,
|
|
29
|
+
textMini: ee,
|
|
30
|
+
rootCol: te,
|
|
31
|
+
item: ie,
|
|
32
|
+
whiteRow: se,
|
|
33
|
+
firstItem: le,
|
|
34
|
+
lastItem: re,
|
|
35
|
+
apart: ae,
|
|
36
|
+
isLong: ne,
|
|
37
|
+
autoWidth: oe,
|
|
38
|
+
mini: ce,
|
|
39
|
+
isDisabled: de,
|
|
40
|
+
grayRow: me,
|
|
41
|
+
"small-size": "_small-size_lgek7_192",
|
|
42
|
+
"medium-size": "_medium-size_lgek7_197",
|
|
43
|
+
"large-size": "_large-size_lgek7_202",
|
|
44
|
+
"text-small-size": "_text-small-size_lgek7_207",
|
|
45
|
+
"text-medium-size": "_text-medium-size_lgek7_212",
|
|
46
|
+
"text-large-size": "_text-large-size_lgek7_217",
|
|
47
|
+
"small-size_m": "_small-size_m_lgek7_223",
|
|
48
|
+
"medium-size_m": "_medium-size_m_lgek7_227",
|
|
49
|
+
"large-size_m": "_large-size_m_lgek7_231",
|
|
50
|
+
"text-small-size_m": "_text-small-size_m_lgek7_235",
|
|
51
|
+
"text-medium-size_m": "_text-medium-size_m_lgek7_239",
|
|
52
|
+
"text-large-size_m": "_text-large-size_m_lgek7_243",
|
|
53
|
+
"small-size_l": "_small-size_l_lgek7_258",
|
|
54
|
+
"medium-size_l": "_medium-size_l_lgek7_262",
|
|
55
|
+
"large-size_l": "_large-size_l_lgek7_266",
|
|
56
|
+
"text-small-size_l": "_text-small-size_l_lgek7_270",
|
|
57
|
+
"text-medium-size_l": "_text-medium-size_l_lgek7_274",
|
|
58
|
+
"text-large-size_l": "_text-large-size_l_lgek7_278"
|
|
59
|
+
}, R = V.bind(o), _e = ({
|
|
60
|
+
children: n,
|
|
61
|
+
variant: a = "whiteRow",
|
|
62
|
+
isApart: s = !1,
|
|
63
|
+
addClassName: C = "",
|
|
64
|
+
col: d = !1
|
|
65
|
+
}) => /* @__PURE__ */ t("div", { className: R(o.root, o[a], C, { [o.rootCol]: d, [o.apart]: s }), children: n }), G = Q((n, a) => {
|
|
66
|
+
const { isTablet: s, isDesktop: C } = j(), {
|
|
67
|
+
index: d,
|
|
68
|
+
children: e,
|
|
69
|
+
addItemClassName: r,
|
|
70
|
+
addTextClass: m,
|
|
71
|
+
size_s: v = "large",
|
|
72
|
+
size_m: w,
|
|
73
|
+
size_l: S,
|
|
74
|
+
disabled: u = !1,
|
|
75
|
+
itemsLength: N = 0,
|
|
76
|
+
isLongOn: W = !0,
|
|
77
|
+
width: y,
|
|
78
|
+
width_m: _,
|
|
79
|
+
width_l: h,
|
|
80
|
+
mini: k = !1,
|
|
81
|
+
...z
|
|
82
|
+
} = n, B = (e != null && e.toString().length ? (e == null ? void 0 : e.toString().length) > 2 : !1) && W, O = (x, l) => x && _ ? _ : l && h ? h : y, b = !y && !_ && !h && B;
|
|
83
|
+
return /* @__PURE__ */ g("label", { className: R({ [o.isLong]: B }), children: [
|
|
84
|
+
/* @__PURE__ */ t(
|
|
85
|
+
"input",
|
|
86
|
+
{
|
|
87
|
+
ref: a,
|
|
88
|
+
type: "checkbox",
|
|
89
|
+
...z,
|
|
90
|
+
disabled: u
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ t(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
style: { width: O(s, C) },
|
|
97
|
+
className: R(
|
|
98
|
+
R(
|
|
99
|
+
o.item,
|
|
100
|
+
{ [o.firstItem]: d === 0 },
|
|
101
|
+
{ [o.lastItem]: d === N - 1 },
|
|
102
|
+
{ [o.isDisabled]: u },
|
|
103
|
+
{ [o.autoWidth]: b },
|
|
104
|
+
o[`${v}-size`],
|
|
105
|
+
o[`${w}-size_m`],
|
|
106
|
+
o[`${S}-size_l`],
|
|
107
|
+
{ [o.mini]: k }
|
|
108
|
+
),
|
|
109
|
+
r
|
|
110
|
+
),
|
|
111
|
+
children: /* @__PURE__ */ t(
|
|
112
|
+
H,
|
|
113
|
+
{
|
|
114
|
+
className: R(
|
|
115
|
+
o.text,
|
|
116
|
+
o[`text-${v}-size`],
|
|
117
|
+
o[`text-${w}-size_m`],
|
|
118
|
+
o[`text-${S}-size_l`],
|
|
119
|
+
{ [o.textMini]: k },
|
|
120
|
+
m
|
|
121
|
+
),
|
|
122
|
+
children: e
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] });
|
|
128
|
+
});
|
|
129
|
+
G.displayName = "TabSwitcherItem";
|
|
130
|
+
const A = Object.assign(_e, { Item: G }), D = V.bind(p), pe = ({
|
|
131
|
+
options: n,
|
|
132
|
+
selectedOption: a,
|
|
133
|
+
placeholder: s = "",
|
|
134
|
+
error: C,
|
|
135
|
+
disabled: d,
|
|
136
|
+
additionalClass: e = "",
|
|
137
|
+
onChange: r,
|
|
138
|
+
onBlur: m,
|
|
139
|
+
mini: v,
|
|
140
|
+
openOnTop: w = !1,
|
|
141
|
+
onClickItem: S,
|
|
142
|
+
onCLickSelect: u
|
|
143
|
+
}) => {
|
|
144
|
+
const [N, W] = q(!1), y = J(null), { isMobile: _ } = j(), { handleBlur: h, getInputValue: k, getOption: z, handleDocumentClick: B } = X(
|
|
145
|
+
{
|
|
146
|
+
selectedOption: a,
|
|
147
|
+
onClickOption: S,
|
|
148
|
+
setSelectedOption: r,
|
|
149
|
+
setIsOpen: W,
|
|
150
|
+
containerRef: y,
|
|
151
|
+
isOpen: N,
|
|
152
|
+
isMobile: _,
|
|
153
|
+
placeholder: s,
|
|
154
|
+
onChange: r,
|
|
155
|
+
onBlur: m
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
return E(() => (document.addEventListener("click", B), () => {
|
|
159
|
+
document.removeEventListener("click", B);
|
|
160
|
+
}), []), /* @__PURE__ */ g(
|
|
161
|
+
"div",
|
|
162
|
+
{
|
|
163
|
+
ref: y,
|
|
164
|
+
className: D(
|
|
165
|
+
p.sortSelectWrapper,
|
|
166
|
+
{ [p.sortSelectWrapperError]: C },
|
|
167
|
+
{ [p.sortSelectWrapperTop]: w },
|
|
168
|
+
e
|
|
169
|
+
),
|
|
170
|
+
tabIndex: 0,
|
|
171
|
+
onBlur: h,
|
|
172
|
+
onClick: () => {
|
|
173
|
+
u && u();
|
|
174
|
+
},
|
|
175
|
+
children: [
|
|
176
|
+
/* @__PURE__ */ g("div", { className: D(p.inputWrapper), children: [
|
|
177
|
+
/* @__PURE__ */ t(
|
|
178
|
+
"input",
|
|
179
|
+
{
|
|
180
|
+
type: "text",
|
|
181
|
+
readOnly: !0,
|
|
182
|
+
value: k(),
|
|
183
|
+
className: D(
|
|
184
|
+
p.selectedOptions,
|
|
185
|
+
{ [p.selectOptionsDisabled]: d },
|
|
186
|
+
{ [p.selectionOptionMini]: v }
|
|
187
|
+
),
|
|
188
|
+
onClick: () => W(!N)
|
|
189
|
+
}
|
|
190
|
+
),
|
|
191
|
+
/* @__PURE__ */ t(
|
|
192
|
+
L,
|
|
193
|
+
{
|
|
194
|
+
name: "twoArrows",
|
|
195
|
+
size: "24",
|
|
196
|
+
additionalClass: p.icon
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
] }),
|
|
200
|
+
N && _ && /* @__PURE__ */ g(
|
|
201
|
+
T,
|
|
202
|
+
{
|
|
203
|
+
isOpen: N,
|
|
204
|
+
emitIsOpen: W,
|
|
205
|
+
additionalClassModalBody: p.modalAddBody,
|
|
206
|
+
additionalClass: p.selectModal,
|
|
207
|
+
createPortalObj: { domNode: document.querySelector("body") },
|
|
208
|
+
isTransparentBack: !0,
|
|
209
|
+
children: [
|
|
210
|
+
/* @__PURE__ */ g("div", { className: p.mobileSortHeader, children: [
|
|
211
|
+
/* @__PURE__ */ t(H, { children: "Сортировка" }),
|
|
212
|
+
/* @__PURE__ */ t("div", { onClick: () => W(!1), children: /* @__PURE__ */ t(
|
|
213
|
+
L,
|
|
214
|
+
{
|
|
215
|
+
name: "close",
|
|
216
|
+
size: "20"
|
|
217
|
+
}
|
|
218
|
+
) })
|
|
219
|
+
] }),
|
|
220
|
+
/* @__PURE__ */ t("div", { className: p.mobileOptionList, children: n == null ? void 0 : n.map((O) => z(O)) })
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
),
|
|
224
|
+
N && !_ && /* @__PURE__ */ t("div", { className: D(p.optionsList, { [p.optionListOnTop]: w }), children: n == null ? void 0 : n.map((O) => z(O)) })
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
};
|
|
229
|
+
pe.displayName = "SortSelect";
|
|
230
|
+
const ue = "_root_124q2_1", he = "_filterWithSaveModal_124q2_15", fe = "_modalAddBody_124q2_20", ge = "_closeBtn_124q2_29", ve = "_btnName_124q2_35", ke = "_modalTitle_124q2_39", ze = "_tabSWitcherWrapper_124q2_48", xe = "_switcherTitle_124q2_56", Ne = "_switcherScroll_124q2_63", We = "_tabs_124q2_72", Ce = "_selectWrapper_124q2_77", we = "_filterOption_124q2_81", Se = "_btnWrapper_124q2_88", ye = "_resetBtn_124q2_94", Be = "_saveBtn_124q2_95", Oe = "_desktopWrapper_124q2_99", Ie = "_desktopWrapperOpen_124q2_122", i = {
|
|
231
|
+
root: ue,
|
|
232
|
+
filterWithSaveModal: he,
|
|
233
|
+
modalAddBody: fe,
|
|
234
|
+
closeBtn: ge,
|
|
235
|
+
btnName: ve,
|
|
236
|
+
modalTitle: ke,
|
|
237
|
+
tabSWitcherWrapper: ze,
|
|
238
|
+
switcherTitle: xe,
|
|
239
|
+
switcherScroll: Ne,
|
|
240
|
+
tabs: We,
|
|
241
|
+
selectWrapper: Ce,
|
|
242
|
+
filterOption: we,
|
|
243
|
+
btnWrapper: Se,
|
|
244
|
+
resetBtn: ye,
|
|
245
|
+
saveBtn: Be,
|
|
246
|
+
desktopWrapper: Oe,
|
|
247
|
+
desktopWrapperOpen: Ie
|
|
248
|
+
};
|
|
249
|
+
var K = { exports: {} };
|
|
250
|
+
/*!
|
|
251
|
+
Copyright (c) 2018 Jed Watson.
|
|
252
|
+
Licensed under the MIT License (MIT), see
|
|
253
|
+
http://jedwatson.github.io/classnames
|
|
254
|
+
*/
|
|
255
|
+
(function(n) {
|
|
256
|
+
(function() {
|
|
257
|
+
var a = {}.hasOwnProperty;
|
|
258
|
+
function s() {
|
|
259
|
+
for (var e = "", r = 0; r < arguments.length; r++) {
|
|
260
|
+
var m = arguments[r];
|
|
261
|
+
m && (e = d(e, C.call(this, m)));
|
|
262
|
+
}
|
|
263
|
+
return e;
|
|
264
|
+
}
|
|
265
|
+
function C(e) {
|
|
266
|
+
if (typeof e == "string" || typeof e == "number")
|
|
267
|
+
return this && this[e] || e;
|
|
268
|
+
if (typeof e != "object")
|
|
269
|
+
return "";
|
|
270
|
+
if (Array.isArray(e))
|
|
271
|
+
return s.apply(this, e);
|
|
272
|
+
if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
|
|
273
|
+
return e.toString();
|
|
274
|
+
var r = "";
|
|
275
|
+
for (var m in e)
|
|
276
|
+
a.call(e, m) && e[m] && (r = d(r, this && this[m] || m));
|
|
277
|
+
return r;
|
|
278
|
+
}
|
|
279
|
+
function d(e, r) {
|
|
280
|
+
return r ? e ? e + " " + r : e + r : e;
|
|
281
|
+
}
|
|
282
|
+
n.exports ? (s.default = s, n.exports = s) : window.classNames = s;
|
|
283
|
+
})();
|
|
284
|
+
})(K);
|
|
285
|
+
var Me = K.exports;
|
|
286
|
+
const be = /* @__PURE__ */ U(Me), qe = ({
|
|
287
|
+
selectedTabs: n = [],
|
|
288
|
+
selectedValues: a = [],
|
|
289
|
+
onClickItem: s,
|
|
290
|
+
disabledOptions: C = [],
|
|
291
|
+
tabs: d = [],
|
|
292
|
+
onChange: e,
|
|
293
|
+
setSelectedTabs: r
|
|
294
|
+
}) => {
|
|
295
|
+
const { isMobile: m } = j(), [v, w] = q(!1), S = J(null), [u, N] = q(n), [W] = q(a), [y, _] = q(u), [h, k] = q(W), z = (l) => {
|
|
296
|
+
if (s && s(l), C.some((f) => f.value === l.value))
|
|
297
|
+
return;
|
|
298
|
+
const c = h.some((f) => f.value === l.value) ? h.filter((f) => f.value !== l.value) : [...h, l];
|
|
299
|
+
k(c);
|
|
300
|
+
}, B = () => {
|
|
301
|
+
N(d), _(d), k([]), e && (e([]), r == null || r(d));
|
|
302
|
+
}, O = () => {
|
|
303
|
+
k(a), _(n);
|
|
304
|
+
}, b = () => {
|
|
305
|
+
O(), w(!1);
|
|
306
|
+
}, x = (l) => {
|
|
307
|
+
l.stopPropagation(), e && (r == null || r(y), e(h)), w(!1);
|
|
308
|
+
};
|
|
309
|
+
return E(() => {
|
|
310
|
+
v || _((l) => JSON.stringify(l) !== JSON.stringify(n) ? n : l);
|
|
311
|
+
}, [v, n]), E(() => {
|
|
312
|
+
const l = (c) => {
|
|
313
|
+
if (!S.current)
|
|
314
|
+
return;
|
|
315
|
+
const f = c.target;
|
|
316
|
+
S.current.contains(f) || f.closest("svg") || b();
|
|
317
|
+
};
|
|
318
|
+
return v ? document.addEventListener("click", l) : document.removeEventListener("click", l), () => {
|
|
319
|
+
document.removeEventListener("click", l);
|
|
320
|
+
};
|
|
321
|
+
}, [v]), {
|
|
322
|
+
isMobile: m,
|
|
323
|
+
handleClearClick: B,
|
|
324
|
+
handleCloseModal: b,
|
|
325
|
+
handleOptionClick: z,
|
|
326
|
+
handleSaveClick: x,
|
|
327
|
+
localSelectedTabs: y,
|
|
328
|
+
selectedOptions: h,
|
|
329
|
+
setSelectedOptions: k,
|
|
330
|
+
isModalOpen: v,
|
|
331
|
+
setIsModalOpen: w,
|
|
332
|
+
setLocalSelectedTabs: _,
|
|
333
|
+
containerRef: S
|
|
334
|
+
};
|
|
335
|
+
}, Re = be.bind(i), at = ({
|
|
336
|
+
disabledOptions: n,
|
|
337
|
+
tabs: a = [],
|
|
338
|
+
selectOptions: s = [],
|
|
339
|
+
onChange: C,
|
|
340
|
+
selectedValues: d,
|
|
341
|
+
setSelectedTabs: e,
|
|
342
|
+
selectedTabs: r,
|
|
343
|
+
onClickItem: m,
|
|
344
|
+
onCLickSelect: v,
|
|
345
|
+
btnName: w = "Фильтр"
|
|
346
|
+
}) => {
|
|
347
|
+
const {
|
|
348
|
+
handleCloseModal: S,
|
|
349
|
+
localSelectedTabs: u,
|
|
350
|
+
selectedOptions: N,
|
|
351
|
+
isMobile: W,
|
|
352
|
+
handleOptionClick: y,
|
|
353
|
+
handleClearClick: _,
|
|
354
|
+
handleSaveClick: h,
|
|
355
|
+
isModalOpen: k,
|
|
356
|
+
setLocalSelectedTabs: z,
|
|
357
|
+
setIsModalOpen: B,
|
|
358
|
+
containerRef: O
|
|
359
|
+
} = qe({
|
|
360
|
+
selectedTabs: r,
|
|
361
|
+
onClickItem: m,
|
|
362
|
+
setSelectedTabs: e,
|
|
363
|
+
tabs: a,
|
|
364
|
+
onChange: C,
|
|
365
|
+
disabledOptions: n,
|
|
366
|
+
selectedValues: d
|
|
367
|
+
}), b = () => /* @__PURE__ */ g(F, { children: [
|
|
368
|
+
/* @__PURE__ */ t(
|
|
369
|
+
"div",
|
|
370
|
+
{
|
|
371
|
+
className: i.closeBtn,
|
|
372
|
+
onClick: () => {
|
|
373
|
+
S();
|
|
374
|
+
},
|
|
375
|
+
children: /* @__PURE__ */ t(
|
|
376
|
+
L,
|
|
377
|
+
{
|
|
378
|
+
name: "close",
|
|
379
|
+
size: "24"
|
|
380
|
+
}
|
|
381
|
+
)
|
|
382
|
+
}
|
|
383
|
+
),
|
|
384
|
+
/* @__PURE__ */ t("div", { className: i.modalTitle, children: "Фильтры" }),
|
|
385
|
+
/* @__PURE__ */ g("div", { className: i.tabSWitcherWrapper, children: [
|
|
386
|
+
/* @__PURE__ */ t("div", { className: i.switcherTitle, children: "Готовность" }),
|
|
387
|
+
/* @__PURE__ */ t("div", { className: i.switcherScroll, children: /* @__PURE__ */ t(
|
|
388
|
+
A,
|
|
389
|
+
{
|
|
390
|
+
variant: "grayRow",
|
|
391
|
+
addClassName: i.tabs,
|
|
392
|
+
isApart: !0,
|
|
393
|
+
children: a == null ? void 0 : a.map((x, l) => {
|
|
394
|
+
var f;
|
|
395
|
+
const c = x.value;
|
|
396
|
+
return /* @__PURE__ */ t(
|
|
397
|
+
A.Item,
|
|
398
|
+
{
|
|
399
|
+
itemsLength: a == null ? void 0 : a.length,
|
|
400
|
+
mini: !0,
|
|
401
|
+
size_s: "small",
|
|
402
|
+
value: c,
|
|
403
|
+
onClick: () => {
|
|
404
|
+
},
|
|
405
|
+
checked: ((f = u == null ? void 0 : u.find((M) => M.value === c)) == null ? void 0 : f.state) ?? !1,
|
|
406
|
+
onChange: () => {
|
|
407
|
+
z == null || z(
|
|
408
|
+
(M) => M.map((I) => I.value === c ? { ...I, state: !I.state } : I)
|
|
409
|
+
);
|
|
410
|
+
},
|
|
411
|
+
index: l,
|
|
412
|
+
children: c
|
|
413
|
+
},
|
|
414
|
+
l
|
|
415
|
+
);
|
|
416
|
+
})
|
|
417
|
+
}
|
|
418
|
+
) })
|
|
419
|
+
] }),
|
|
420
|
+
/* @__PURE__ */ t("div", { className: i.selectWrapper, children: s == null ? void 0 : s.map((x, l) => /* @__PURE__ */ t(
|
|
421
|
+
P,
|
|
422
|
+
{
|
|
423
|
+
sizeIcon: "24",
|
|
424
|
+
addClassName: i.filterOption,
|
|
425
|
+
disabledOptions: [],
|
|
426
|
+
clickableOptions: s == null ? void 0 : s.map((c) => c.value.toString()),
|
|
427
|
+
selectedOptions: N,
|
|
428
|
+
option: x,
|
|
429
|
+
handleOptionClick: y
|
|
430
|
+
},
|
|
431
|
+
l
|
|
432
|
+
)) }),
|
|
433
|
+
/* @__PURE__ */ g("div", { className: i.btnWrapper, children: [
|
|
434
|
+
/* @__PURE__ */ t(
|
|
435
|
+
$,
|
|
436
|
+
{
|
|
437
|
+
as: "button",
|
|
438
|
+
variant: "gray",
|
|
439
|
+
additionalClass: i.resetBtn,
|
|
440
|
+
onClick: _,
|
|
441
|
+
children: "Сбросить"
|
|
442
|
+
}
|
|
443
|
+
),
|
|
444
|
+
/* @__PURE__ */ t(
|
|
445
|
+
$,
|
|
446
|
+
{
|
|
447
|
+
as: "button",
|
|
448
|
+
additionalClass: i.saveBtn,
|
|
449
|
+
onClick: h,
|
|
450
|
+
children: "Сохранить"
|
|
451
|
+
}
|
|
452
|
+
)
|
|
453
|
+
] })
|
|
454
|
+
] });
|
|
455
|
+
return /* @__PURE__ */ g(F, { children: [
|
|
456
|
+
/* @__PURE__ */ g("div", { style: { position: "relative" }, children: [
|
|
457
|
+
/* @__PURE__ */ g(
|
|
458
|
+
"div",
|
|
459
|
+
{
|
|
460
|
+
className: i.root,
|
|
461
|
+
onClick: () => {
|
|
462
|
+
v && v(), W ? B((x) => !x) : k || B(!0);
|
|
463
|
+
},
|
|
464
|
+
children: [
|
|
465
|
+
/* @__PURE__ */ t("div", { className: i.btnName, children: w }),
|
|
466
|
+
/* @__PURE__ */ t(
|
|
467
|
+
L,
|
|
468
|
+
{
|
|
469
|
+
name: "filter",
|
|
470
|
+
size: "16"
|
|
471
|
+
}
|
|
472
|
+
)
|
|
473
|
+
]
|
|
474
|
+
}
|
|
475
|
+
),
|
|
476
|
+
!W && /* @__PURE__ */ g(
|
|
477
|
+
"div",
|
|
478
|
+
{
|
|
479
|
+
ref: O,
|
|
480
|
+
className: Re(i.desktopWrapper, { [i.desktopWrapperOpen]: k }),
|
|
481
|
+
children: [
|
|
482
|
+
/* @__PURE__ */ t(
|
|
483
|
+
"div",
|
|
484
|
+
{
|
|
485
|
+
className: i.closeBtn,
|
|
486
|
+
onClick: () => {
|
|
487
|
+
S();
|
|
488
|
+
},
|
|
489
|
+
children: /* @__PURE__ */ t(
|
|
490
|
+
L,
|
|
491
|
+
{
|
|
492
|
+
name: "close",
|
|
493
|
+
size: "24"
|
|
494
|
+
}
|
|
495
|
+
)
|
|
496
|
+
}
|
|
497
|
+
),
|
|
498
|
+
/* @__PURE__ */ t("div", { className: i.modalTitle, children: "Фильтры" }),
|
|
499
|
+
/* @__PURE__ */ g("div", { className: i.tabSWitcherWrapper, children: [
|
|
500
|
+
/* @__PURE__ */ t("div", { className: i.switcherTitle, children: "Готовность" }),
|
|
501
|
+
/* @__PURE__ */ t("div", { className: i.switcherScroll, children: /* @__PURE__ */ t(
|
|
502
|
+
A,
|
|
503
|
+
{
|
|
504
|
+
variant: "grayRow",
|
|
505
|
+
addClassName: i.tabs,
|
|
506
|
+
isApart: !0,
|
|
507
|
+
children: a == null ? void 0 : a.map((x, l) => {
|
|
508
|
+
var f;
|
|
509
|
+
const c = x.value;
|
|
510
|
+
return /* @__PURE__ */ t(
|
|
511
|
+
A.Item,
|
|
512
|
+
{
|
|
513
|
+
itemsLength: a == null ? void 0 : a.length,
|
|
514
|
+
size_s: "small",
|
|
515
|
+
mini: !0,
|
|
516
|
+
value: c,
|
|
517
|
+
onClick: () => {
|
|
518
|
+
},
|
|
519
|
+
checked: ((f = u == null ? void 0 : u.find((M) => M.value === c)) == null ? void 0 : f.state) ?? !1,
|
|
520
|
+
onChange: () => {
|
|
521
|
+
z == null || z(
|
|
522
|
+
(M) => M.map((I) => I.value === c ? { ...I, state: !I.state } : I)
|
|
523
|
+
);
|
|
524
|
+
},
|
|
525
|
+
index: l,
|
|
526
|
+
addItemClassName: i.tabSwitcher,
|
|
527
|
+
children: c
|
|
528
|
+
},
|
|
529
|
+
l
|
|
530
|
+
);
|
|
531
|
+
})
|
|
532
|
+
}
|
|
533
|
+
) })
|
|
534
|
+
] }),
|
|
535
|
+
/* @__PURE__ */ t("div", { className: i.selectWrapper, children: s == null ? void 0 : s.map((x, l) => /* @__PURE__ */ t(
|
|
536
|
+
P,
|
|
537
|
+
{
|
|
538
|
+
sizeIcon: "24",
|
|
539
|
+
addClassName: i.filterOption,
|
|
540
|
+
disabledOptions: [],
|
|
541
|
+
clickableOptions: s == null ? void 0 : s.map((c) => c.value.toString()),
|
|
542
|
+
selectedOptions: N,
|
|
543
|
+
option: x,
|
|
544
|
+
handleOptionClick: y
|
|
545
|
+
},
|
|
546
|
+
l
|
|
547
|
+
)) }),
|
|
548
|
+
/* @__PURE__ */ g("div", { className: i.btnWrapper, children: [
|
|
549
|
+
/* @__PURE__ */ t(
|
|
550
|
+
$,
|
|
551
|
+
{
|
|
552
|
+
as: "button",
|
|
553
|
+
variant: "gray",
|
|
554
|
+
additionalClass: i.resetBtn,
|
|
555
|
+
onClick: _,
|
|
556
|
+
children: "Сбросить"
|
|
557
|
+
}
|
|
558
|
+
),
|
|
559
|
+
/* @__PURE__ */ t(
|
|
560
|
+
$,
|
|
561
|
+
{
|
|
562
|
+
as: "button",
|
|
563
|
+
additionalClass: i.saveBtn,
|
|
564
|
+
onClick: h,
|
|
565
|
+
children: "Сохранить"
|
|
566
|
+
}
|
|
567
|
+
)
|
|
568
|
+
] })
|
|
569
|
+
]
|
|
570
|
+
}
|
|
571
|
+
)
|
|
572
|
+
] }),
|
|
573
|
+
W && /* @__PURE__ */ t(
|
|
574
|
+
T,
|
|
575
|
+
{
|
|
576
|
+
isOpen: k,
|
|
577
|
+
emitIsOpen: B,
|
|
578
|
+
isTransparentBack: !0,
|
|
579
|
+
additionalClassModalBody: i.modalAddBody,
|
|
580
|
+
additionalClass: i.filterWithSaveModal,
|
|
581
|
+
children: /* @__PURE__ */ t(b, {})
|
|
582
|
+
}
|
|
583
|
+
)
|
|
584
|
+
] });
|
|
585
|
+
};
|
|
586
|
+
export {
|
|
587
|
+
at as F,
|
|
588
|
+
A as S,
|
|
589
|
+
pe as a,
|
|
590
|
+
qe as u
|
|
591
|
+
};
|
|
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../Input/ui/Input.js";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "../../../Modal-BZv6nlLe.js";
|
|
14
|
-
import { u as q } from "../../../FilterWithSave-
|
|
14
|
+
import { u as q } from "../../../FilterWithSave-O6fbdTWj.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../NewIcon/ui/NewIcon.js";
|
|
3
|
-
import { F as a } from "../../../FilterWithSave-
|
|
3
|
+
import { F as a } from "../../../FilterWithSave-O6fbdTWj.js";
|
|
4
4
|
import "../../../Modal-BZv6nlLe.js";
|
|
5
5
|
import "../../../Option-C4HGcCtY.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
@@ -13,7 +13,7 @@ import "../../Text/ui/Text.js";
|
|
|
13
13
|
import "../../Flex/ui/Flex.js";
|
|
14
14
|
import "../../Input/ui/Input.js";
|
|
15
15
|
import "../../../Modal-BZv6nlLe.js";
|
|
16
|
-
import { a as z } from "../../../FilterWithSave-
|
|
16
|
+
import { a as z } from "../../../FilterWithSave-O6fbdTWj.js";
|
|
17
17
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
18
18
|
import "../../MetroTag/ui/MetroTag.js";
|
|
19
19
|
import "../../LotCard/ui/LotCard.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { S as v } from "../../../FilterWithSave-
|
|
3
|
+
import { S as v } from "../../../FilterWithSave-O6fbdTWj.js";
|
|
4
4
|
import "../../Text/ui/Text.js";
|
|
5
5
|
import "../../../index-rKuIKazb.js";
|
|
6
6
|
import "../../Button/ui/Button.js";
|
|
@@ -11,7 +11,7 @@ import "../../Flex/ui/Flex.js";
|
|
|
11
11
|
import "../../Input/ui/Input.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "../../../Modal-BZv6nlLe.js";
|
|
14
|
-
import "../../../FilterWithSave-
|
|
14
|
+
import "../../../FilterWithSave-O6fbdTWj.js";
|
|
15
15
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
16
16
|
import "../../../index-rKuIKazb.js";
|
|
17
17
|
import "../../MetroTag/ui/MetroTag.js";
|
package/dist/main.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Flex as T } from "./components/Flex/ui/Flex.js";
|
|
|
10
10
|
import { Input as F } from "./components/Input/ui/Input.js";
|
|
11
11
|
import { M as g } from "./Modal-BZv6nlLe.js";
|
|
12
12
|
import { FieldInput as I } from "./components/FieldInput/ui/FieldInput.js";
|
|
13
|
-
import { F as B, a as L, S as k } from "./FilterWithSave-
|
|
13
|
+
import { F as B, a as L, S as k } from "./FilterWithSave-O6fbdTWj.js";
|
|
14
14
|
import { GroupedInputs as N } from "./components/GroupedInput/ui/GroupedInputs.js";
|
|
15
15
|
import { Logo as j } from "./components/Logo/ui/Logo.js";
|
|
16
16
|
import { MetroTag as D } from "./components/MetroTag/ui/MetroTag.js";
|