stone-kit 0.0.668 → 0.0.670
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-BdP32juW.js → FilterWithSave-CfEBghv2.js} +202 -202
- 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/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as g, jsx as t, Fragment as P } from "react/jsx-runtime";
|
|
2
2
|
import { NewIcon as $ } from "./components/NewIcon/ui/NewIcon.js";
|
|
3
3
|
import { M as J } from "./Modal-BZv6nlLe.js";
|
|
4
4
|
import { forwardRef as Q, useState as R, useRef as q, useEffect as j } from "react";
|
|
@@ -17,7 +17,7 @@ import "./components/MetroTag/ui/MetroTag.js";
|
|
|
17
17
|
import "./components/LotCard/ui/LotCard.js";
|
|
18
18
|
import "./components/Select/ui/Select.js";
|
|
19
19
|
import { useClientWidth as F } from "./shared/useClientWidth.js";
|
|
20
|
-
import { s as
|
|
20
|
+
import { s as p, u as X } from "./useSortSelect-CjZXLFOG.js";
|
|
21
21
|
import "./components/SliderNavigation/ui/SliderNavigation.js";
|
|
22
22
|
import "./components/LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
23
23
|
import "./components/TabSelect/ui/TabSelect.js";
|
|
@@ -57,67 +57,67 @@ const Y = "_root_lgek7_1", Z = "_text_lgek7_18", ee = "_textMini_lgek7_26", te =
|
|
|
57
57
|
"text-medium-size_l": "_text-medium-size_l_lgek7_274",
|
|
58
58
|
"text-large-size_l": "_text-large-size_l_lgek7_278"
|
|
59
59
|
}, L = V.bind(o), _e = ({
|
|
60
|
-
children:
|
|
61
|
-
variant:
|
|
62
|
-
isApart:
|
|
60
|
+
children: n,
|
|
61
|
+
variant: a = "whiteRow",
|
|
62
|
+
isApart: s = !1,
|
|
63
63
|
addClassName: W = "",
|
|
64
|
-
col:
|
|
65
|
-
}) => /* @__PURE__ */ t("div", { className: L(o.root, o[
|
|
66
|
-
const { isTablet:
|
|
67
|
-
index:
|
|
64
|
+
col: d = !1
|
|
65
|
+
}) => /* @__PURE__ */ t("div", { className: L(o.root, o[a], W, { [o.rootCol]: d, [o.apart]: s }), children: n }), G = Q((n, a) => {
|
|
66
|
+
const { isTablet: s, isDesktop: W } = F(), {
|
|
67
|
+
index: d,
|
|
68
68
|
children: e,
|
|
69
|
-
addItemClassName:
|
|
70
|
-
addTextClass:
|
|
71
|
-
size_s:
|
|
69
|
+
addItemClassName: r,
|
|
70
|
+
addTextClass: m,
|
|
71
|
+
size_s: v = "large",
|
|
72
72
|
size_m: C,
|
|
73
|
-
size_l:
|
|
74
|
-
disabled:
|
|
73
|
+
size_l: S,
|
|
74
|
+
disabled: u = !1,
|
|
75
75
|
itemsLength: z = 0,
|
|
76
76
|
isLongOn: N = !0,
|
|
77
|
-
width:
|
|
78
|
-
width_m:
|
|
79
|
-
width_l:
|
|
80
|
-
mini:
|
|
81
|
-
...
|
|
82
|
-
} =
|
|
83
|
-
return /* @__PURE__ */
|
|
77
|
+
width: y,
|
|
78
|
+
width_m: _,
|
|
79
|
+
width_l: h,
|
|
80
|
+
mini: k = !1,
|
|
81
|
+
...x
|
|
82
|
+
} = n, B = (e != null && e.toString().length ? (e == null ? void 0 : e.toString().length) > 2 : !1) && N, O = (w, l) => w && _ ? _ : l && h ? h : y, b = !y && !_ && !h && B;
|
|
83
|
+
return /* @__PURE__ */ g("label", { className: L({ [o.isLong]: B }), children: [
|
|
84
84
|
/* @__PURE__ */ t(
|
|
85
85
|
"input",
|
|
86
86
|
{
|
|
87
|
-
ref:
|
|
87
|
+
ref: a,
|
|
88
88
|
type: "checkbox",
|
|
89
|
-
...
|
|
90
|
-
disabled:
|
|
89
|
+
...x,
|
|
90
|
+
disabled: u
|
|
91
91
|
}
|
|
92
92
|
),
|
|
93
93
|
/* @__PURE__ */ t(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
96
|
-
style: { width:
|
|
96
|
+
style: { width: O(s, W) },
|
|
97
97
|
className: L(
|
|
98
98
|
L(
|
|
99
99
|
o.item,
|
|
100
|
-
{ [o.firstItem]:
|
|
101
|
-
{ [o.lastItem]:
|
|
102
|
-
{ [o.isDisabled]:
|
|
100
|
+
{ [o.firstItem]: d === 0 },
|
|
101
|
+
{ [o.lastItem]: d === z - 1 },
|
|
102
|
+
{ [o.isDisabled]: u },
|
|
103
103
|
{ [o.autoWidth]: b },
|
|
104
|
-
o[`${
|
|
104
|
+
o[`${v}-size`],
|
|
105
105
|
o[`${C}-size_m`],
|
|
106
|
-
o[`${
|
|
107
|
-
{ [o.mini]:
|
|
106
|
+
o[`${S}-size_l`],
|
|
107
|
+
{ [o.mini]: k }
|
|
108
108
|
),
|
|
109
|
-
|
|
109
|
+
r
|
|
110
110
|
),
|
|
111
111
|
children: /* @__PURE__ */ t(
|
|
112
112
|
H,
|
|
113
113
|
{
|
|
114
114
|
className: L(
|
|
115
115
|
o.text,
|
|
116
|
-
o[`text-${
|
|
116
|
+
o[`text-${v}-size`],
|
|
117
117
|
o[`text-${C}-size_m`],
|
|
118
|
-
o[`text-${
|
|
119
|
-
{ [o.textMini]:
|
|
120
|
-
|
|
118
|
+
o[`text-${S}-size_l`],
|
|
119
|
+
{ [o.textMini]: k },
|
|
120
|
+
m
|
|
121
121
|
),
|
|
122
122
|
children: e
|
|
123
123
|
}
|
|
@@ -127,63 +127,63 @@ const Y = "_root_lgek7_1", Z = "_text_lgek7_18", ee = "_textMini_lgek7_26", te =
|
|
|
127
127
|
] });
|
|
128
128
|
});
|
|
129
129
|
G.displayName = "TabSwitcherItem";
|
|
130
|
-
const D = Object.assign(_e, { Item: G }), E = V.bind(
|
|
131
|
-
options:
|
|
132
|
-
selectedOption:
|
|
133
|
-
placeholder:
|
|
130
|
+
const D = Object.assign(_e, { Item: G }), E = V.bind(p), pe = ({
|
|
131
|
+
options: n,
|
|
132
|
+
selectedOption: a,
|
|
133
|
+
placeholder: s = "",
|
|
134
134
|
error: W,
|
|
135
|
-
disabled:
|
|
135
|
+
disabled: d,
|
|
136
136
|
additionalClass: e = "",
|
|
137
|
-
onChange:
|
|
138
|
-
onBlur:
|
|
139
|
-
mini:
|
|
137
|
+
onChange: r,
|
|
138
|
+
onBlur: m,
|
|
139
|
+
mini: v,
|
|
140
140
|
openOnTop: C = !1,
|
|
141
|
-
onClickItem:
|
|
142
|
-
onCLickSelect:
|
|
141
|
+
onClickItem: S,
|
|
142
|
+
onCLickSelect: u
|
|
143
143
|
}) => {
|
|
144
|
-
const [z, N] = R(!1),
|
|
144
|
+
const [z, N] = R(!1), y = q(null), { isMobile: _ } = F(), { handleBlur: h, getInputValue: k, getOption: x, handleDocumentClick: B } = X(
|
|
145
145
|
{
|
|
146
|
-
selectedOption:
|
|
147
|
-
onClickOption:
|
|
148
|
-
setSelectedOption:
|
|
146
|
+
selectedOption: a,
|
|
147
|
+
onClickOption: S,
|
|
148
|
+
setSelectedOption: r,
|
|
149
149
|
setIsOpen: N,
|
|
150
|
-
containerRef:
|
|
150
|
+
containerRef: y,
|
|
151
151
|
isOpen: z,
|
|
152
|
-
isMobile:
|
|
153
|
-
placeholder:
|
|
154
|
-
onChange:
|
|
155
|
-
onBlur:
|
|
152
|
+
isMobile: _,
|
|
153
|
+
placeholder: s,
|
|
154
|
+
onChange: r,
|
|
155
|
+
onBlur: m
|
|
156
156
|
}
|
|
157
157
|
);
|
|
158
|
-
return j(() => (document.addEventListener("click",
|
|
159
|
-
document.removeEventListener("click",
|
|
160
|
-
}), []), /* @__PURE__ */
|
|
158
|
+
return j(() => (document.addEventListener("click", B), () => {
|
|
159
|
+
document.removeEventListener("click", B);
|
|
160
|
+
}), []), /* @__PURE__ */ g(
|
|
161
161
|
"div",
|
|
162
162
|
{
|
|
163
|
-
ref:
|
|
163
|
+
ref: y,
|
|
164
164
|
className: E(
|
|
165
|
-
|
|
166
|
-
{ [
|
|
167
|
-
{ [
|
|
165
|
+
p.sortSelectWrapper,
|
|
166
|
+
{ [p.sortSelectWrapperError]: W },
|
|
167
|
+
{ [p.sortSelectWrapperTop]: C },
|
|
168
168
|
e
|
|
169
169
|
),
|
|
170
170
|
tabIndex: 0,
|
|
171
|
-
onBlur:
|
|
171
|
+
onBlur: h,
|
|
172
172
|
onClick: () => {
|
|
173
|
-
|
|
173
|
+
u && u();
|
|
174
174
|
},
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ g("div", { className: E(p.inputWrapper), children: [
|
|
177
177
|
/* @__PURE__ */ t(
|
|
178
178
|
"input",
|
|
179
179
|
{
|
|
180
180
|
type: "text",
|
|
181
181
|
readOnly: !0,
|
|
182
|
-
value:
|
|
182
|
+
value: k(),
|
|
183
183
|
className: E(
|
|
184
|
-
|
|
185
|
-
{ [
|
|
186
|
-
{ [
|
|
184
|
+
p.selectedOptions,
|
|
185
|
+
{ [p.selectOptionsDisabled]: d },
|
|
186
|
+
{ [p.selectionOptionMini]: v }
|
|
187
187
|
),
|
|
188
188
|
onClick: () => N(!z)
|
|
189
189
|
}
|
|
@@ -193,21 +193,21 @@ const D = Object.assign(_e, { Item: G }), E = V.bind(_), pe = ({
|
|
|
193
193
|
{
|
|
194
194
|
name: "twoArrows",
|
|
195
195
|
size: "24",
|
|
196
|
-
additionalClass:
|
|
196
|
+
additionalClass: p.icon
|
|
197
197
|
}
|
|
198
198
|
)
|
|
199
199
|
] }),
|
|
200
|
-
z &&
|
|
200
|
+
z && _ && /* @__PURE__ */ g(
|
|
201
201
|
J,
|
|
202
202
|
{
|
|
203
203
|
isOpen: z,
|
|
204
204
|
emitIsOpen: N,
|
|
205
|
-
additionalClassModalBody:
|
|
206
|
-
additionalClass:
|
|
205
|
+
additionalClassModalBody: p.modalAddBody,
|
|
206
|
+
additionalClass: p.selectModal,
|
|
207
207
|
createPortalObj: { domNode: document.querySelector("body") },
|
|
208
208
|
isTransparentBack: !0,
|
|
209
209
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ g("div", { className: p.mobileSortHeader, children: [
|
|
211
211
|
/* @__PURE__ */ t(H, { children: "Сортировка" }),
|
|
212
212
|
/* @__PURE__ */ t("div", { onClick: () => N(!1), children: /* @__PURE__ */ t(
|
|
213
213
|
$,
|
|
@@ -217,17 +217,17 @@ const D = Object.assign(_e, { Item: G }), E = V.bind(_), pe = ({
|
|
|
217
217
|
}
|
|
218
218
|
) })
|
|
219
219
|
] }),
|
|
220
|
-
/* @__PURE__ */ t("div", { className:
|
|
220
|
+
/* @__PURE__ */ t("div", { className: p.mobileOptionList, children: n == null ? void 0 : n.map((O) => x(O)) })
|
|
221
221
|
]
|
|
222
222
|
}
|
|
223
223
|
),
|
|
224
|
-
z && !
|
|
224
|
+
z && !_ && /* @__PURE__ */ t("div", { className: E(p.optionsList, { [p.optionListOnTop]: C }), children: n == null ? void 0 : n.map((O) => x(O)) })
|
|
225
225
|
]
|
|
226
226
|
}
|
|
227
227
|
);
|
|
228
228
|
};
|
|
229
229
|
pe.displayName = "SortSelect";
|
|
230
|
-
const ue = "_root_xwd22_1", he = "_filterWithSaveModal_xwd22_15", fe = "_modalAddBody_xwd22_20", ge = "_closeBtn_xwd22_29", ve = "_btnName_xwd22_35", ke = "_modalTitle_xwd22_39", xe = "_tabSWitcherWrapper_xwd22_48", we = "_switcherTitle_xwd22_56", ze = "_switcherScroll_xwd22_63", Ne = "_tabs_xwd22_72", We = "_selectWrapper_xwd22_77", Ce = "_filterOption_xwd22_81",
|
|
230
|
+
const ue = "_root_xwd22_1", he = "_filterWithSaveModal_xwd22_15", fe = "_modalAddBody_xwd22_20", ge = "_closeBtn_xwd22_29", ve = "_btnName_xwd22_35", ke = "_modalTitle_xwd22_39", xe = "_tabSWitcherWrapper_xwd22_48", we = "_switcherTitle_xwd22_56", ze = "_switcherScroll_xwd22_63", Ne = "_tabs_xwd22_72", We = "_selectWrapper_xwd22_77", Ce = "_filterOption_xwd22_81", Se = "_btnWrapper_xwd22_88", ye = "_resetBtn_xwd22_94", Be = "_saveBtn_xwd22_95", Oe = "_desktopWrapper_xwd22_99", Ie = "_desktopWrapperOpen_xwd22_122", i = {
|
|
231
231
|
root: ue,
|
|
232
232
|
filterWithSaveModal: he,
|
|
233
233
|
modalAddBody: fe,
|
|
@@ -240,10 +240,10 @@ const ue = "_root_xwd22_1", he = "_filterWithSaveModal_xwd22_15", fe = "_modalAd
|
|
|
240
240
|
tabs: Ne,
|
|
241
241
|
selectWrapper: We,
|
|
242
242
|
filterOption: Ce,
|
|
243
|
-
btnWrapper:
|
|
244
|
-
resetBtn:
|
|
245
|
-
saveBtn:
|
|
246
|
-
desktopWrapper:
|
|
243
|
+
btnWrapper: Se,
|
|
244
|
+
resetBtn: ye,
|
|
245
|
+
saveBtn: Be,
|
|
246
|
+
desktopWrapper: Oe,
|
|
247
247
|
desktopWrapperOpen: Ie
|
|
248
248
|
};
|
|
249
249
|
var K = { exports: {} };
|
|
@@ -252,13 +252,13 @@ var K = { exports: {} };
|
|
|
252
252
|
Licensed under the MIT License (MIT), see
|
|
253
253
|
http://jedwatson.github.io/classnames
|
|
254
254
|
*/
|
|
255
|
-
(function(
|
|
255
|
+
(function(n) {
|
|
256
256
|
(function() {
|
|
257
|
-
var
|
|
258
|
-
function
|
|
259
|
-
for (var e = "",
|
|
260
|
-
var
|
|
261
|
-
|
|
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, W.call(this, m)));
|
|
262
262
|
}
|
|
263
263
|
return e;
|
|
264
264
|
}
|
|
@@ -268,109 +268,109 @@ var K = { exports: {} };
|
|
|
268
268
|
if (typeof e != "object")
|
|
269
269
|
return "";
|
|
270
270
|
if (Array.isArray(e))
|
|
271
|
-
return
|
|
271
|
+
return s.apply(this, e);
|
|
272
272
|
if (e.toString !== Object.prototype.toString && !e.toString.toString().includes("[native code]"))
|
|
273
273
|
return e.toString();
|
|
274
|
-
var
|
|
275
|
-
for (var
|
|
276
|
-
|
|
277
|
-
return
|
|
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
278
|
}
|
|
279
|
-
function
|
|
280
|
-
return
|
|
279
|
+
function d(e, r) {
|
|
280
|
+
return r ? e ? e + " " + r : e + r : e;
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
n.exports ? (s.default = s, n.exports = s) : window.classNames = s;
|
|
283
283
|
})();
|
|
284
284
|
})(K);
|
|
285
285
|
var Me = K.exports;
|
|
286
286
|
const be = /* @__PURE__ */ U(Me), Re = ({
|
|
287
|
-
selectedTabs:
|
|
288
|
-
selectedValues:
|
|
289
|
-
onClickItem:
|
|
287
|
+
selectedTabs: n = [],
|
|
288
|
+
selectedValues: a = [],
|
|
289
|
+
onClickItem: s,
|
|
290
290
|
disabledOptions: W = [],
|
|
291
|
-
tabs:
|
|
291
|
+
tabs: d = [],
|
|
292
292
|
onChange: e,
|
|
293
|
-
setSelectedTabs:
|
|
293
|
+
setSelectedTabs: r
|
|
294
294
|
}) => {
|
|
295
|
-
const { isMobile:
|
|
296
|
-
if (
|
|
295
|
+
const { isMobile: m } = F(), [v, C] = R(!1), S = q(null), [u, z] = R(n), [N] = R(a), [y, _] = R(u), [h, k] = R(N), x = (l) => {
|
|
296
|
+
if (s && s(l), W.some((f) => f.value === l.value))
|
|
297
297
|
return;
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
}, y = () => {
|
|
301
|
-
z(c), m(c), v([]), e && (e([]), l == null || l(c));
|
|
298
|
+
const c = h.some((f) => f.value === l.value) ? h.filter((f) => f.value !== l.value) : [...h, l];
|
|
299
|
+
k(c);
|
|
302
300
|
}, B = () => {
|
|
303
|
-
|
|
301
|
+
z(d), _(d), k([]), e && (e([]), r == null || r(d));
|
|
302
|
+
}, O = () => {
|
|
303
|
+
k(a), _(n);
|
|
304
304
|
}, b = () => {
|
|
305
|
-
|
|
306
|
-
},
|
|
307
|
-
|
|
305
|
+
O(), C(!1);
|
|
306
|
+
}, w = (l) => {
|
|
307
|
+
l.stopPropagation(), e && (r == null || r(y), e(h)), C(!1);
|
|
308
308
|
};
|
|
309
309
|
return j(() => {
|
|
310
|
-
|
|
311
|
-
}, [
|
|
312
|
-
const
|
|
313
|
-
if (!
|
|
310
|
+
v || _((l) => JSON.stringify(l) !== JSON.stringify(n) ? n : l);
|
|
311
|
+
}, [v, n]), j(() => {
|
|
312
|
+
const l = (c) => {
|
|
313
|
+
if (!S.current)
|
|
314
314
|
return;
|
|
315
|
-
const
|
|
316
|
-
|
|
315
|
+
const f = c.target;
|
|
316
|
+
S.current.contains(f) || f.closest("svg") || b();
|
|
317
317
|
};
|
|
318
|
-
return
|
|
319
|
-
document.removeEventListener("click",
|
|
318
|
+
return v ? document.addEventListener("click", l) : document.removeEventListener("click", l), () => {
|
|
319
|
+
document.removeEventListener("click", l);
|
|
320
320
|
};
|
|
321
|
-
}, [
|
|
322
|
-
isMobile:
|
|
323
|
-
handleClearClick:
|
|
321
|
+
}, [v]), {
|
|
322
|
+
isMobile: m,
|
|
323
|
+
handleClearClick: B,
|
|
324
324
|
handleCloseModal: b,
|
|
325
|
-
handleOptionClick:
|
|
326
|
-
handleSaveClick:
|
|
327
|
-
localSelectedTabs:
|
|
328
|
-
selectedOptions:
|
|
329
|
-
setSelectedOptions:
|
|
330
|
-
isModalOpen:
|
|
325
|
+
handleOptionClick: x,
|
|
326
|
+
handleSaveClick: w,
|
|
327
|
+
localSelectedTabs: y,
|
|
328
|
+
selectedOptions: h,
|
|
329
|
+
setSelectedOptions: k,
|
|
330
|
+
isModalOpen: v,
|
|
331
331
|
setIsModalOpen: C,
|
|
332
|
-
setLocalSelectedTabs:
|
|
333
|
-
containerRef:
|
|
332
|
+
setLocalSelectedTabs: _,
|
|
333
|
+
containerRef: S
|
|
334
334
|
};
|
|
335
335
|
}, Le = be.bind(i), at = ({
|
|
336
|
-
disabledOptions:
|
|
337
|
-
tabs:
|
|
338
|
-
selectOptions:
|
|
336
|
+
disabledOptions: n,
|
|
337
|
+
tabs: a = [],
|
|
338
|
+
selectOptions: s = [],
|
|
339
339
|
onChange: W,
|
|
340
|
-
selectedValues:
|
|
340
|
+
selectedValues: d,
|
|
341
341
|
setSelectedTabs: e,
|
|
342
|
-
selectedTabs:
|
|
343
|
-
onClickItem:
|
|
344
|
-
onCLickSelect:
|
|
342
|
+
selectedTabs: r,
|
|
343
|
+
onClickItem: m,
|
|
344
|
+
onCLickSelect: v,
|
|
345
345
|
btnName: C = "Фильтр"
|
|
346
346
|
}) => {
|
|
347
347
|
const {
|
|
348
|
-
handleCloseModal:
|
|
349
|
-
localSelectedTabs:
|
|
348
|
+
handleCloseModal: S,
|
|
349
|
+
localSelectedTabs: u,
|
|
350
350
|
selectedOptions: z,
|
|
351
351
|
isMobile: N,
|
|
352
|
-
handleOptionClick:
|
|
353
|
-
handleClearClick:
|
|
354
|
-
handleSaveClick:
|
|
355
|
-
isModalOpen:
|
|
356
|
-
setLocalSelectedTabs:
|
|
357
|
-
setIsModalOpen:
|
|
358
|
-
containerRef:
|
|
352
|
+
handleOptionClick: y,
|
|
353
|
+
handleClearClick: _,
|
|
354
|
+
handleSaveClick: h,
|
|
355
|
+
isModalOpen: k,
|
|
356
|
+
setLocalSelectedTabs: x,
|
|
357
|
+
setIsModalOpen: B,
|
|
358
|
+
containerRef: O
|
|
359
359
|
} = Re({
|
|
360
|
-
selectedTabs:
|
|
361
|
-
onClickItem:
|
|
360
|
+
selectedTabs: r,
|
|
361
|
+
onClickItem: m,
|
|
362
362
|
setSelectedTabs: e,
|
|
363
|
-
tabs:
|
|
363
|
+
tabs: a,
|
|
364
364
|
onChange: W,
|
|
365
|
-
disabledOptions:
|
|
366
|
-
selectedValues:
|
|
367
|
-
}), b = () => /* @__PURE__ */
|
|
365
|
+
disabledOptions: n,
|
|
366
|
+
selectedValues: d
|
|
367
|
+
}), b = () => /* @__PURE__ */ g(P, { children: [
|
|
368
368
|
/* @__PURE__ */ t(
|
|
369
369
|
"div",
|
|
370
370
|
{
|
|
371
371
|
className: i.closeBtn,
|
|
372
372
|
onClick: () => {
|
|
373
|
-
|
|
373
|
+
S();
|
|
374
374
|
},
|
|
375
375
|
children: /* @__PURE__ */ t(
|
|
376
376
|
$,
|
|
@@ -382,7 +382,7 @@ const be = /* @__PURE__ */ U(Me), Re = ({
|
|
|
382
382
|
}
|
|
383
383
|
),
|
|
384
384
|
/* @__PURE__ */ t("div", { className: i.modalTitle, children: "Фильтры" }),
|
|
385
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ g("div", { className: i.tabSWitcherWrapper, children: [
|
|
386
386
|
/* @__PURE__ */ t("div", { className: i.switcherTitle, children: "Готовность" }),
|
|
387
387
|
/* @__PURE__ */ t("div", { className: i.switcherScroll, children: /* @__PURE__ */ t(
|
|
388
388
|
D,
|
|
@@ -390,54 +390,54 @@ const be = /* @__PURE__ */ U(Me), Re = ({
|
|
|
390
390
|
variant: "grayRow",
|
|
391
391
|
addClassName: i.tabs,
|
|
392
392
|
isApart: !0,
|
|
393
|
-
children:
|
|
394
|
-
var
|
|
395
|
-
const
|
|
393
|
+
children: a == null ? void 0 : a.map((w, l) => {
|
|
394
|
+
var f;
|
|
395
|
+
const c = w.value;
|
|
396
396
|
return /* @__PURE__ */ t(
|
|
397
397
|
D.Item,
|
|
398
398
|
{
|
|
399
|
-
itemsLength:
|
|
399
|
+
itemsLength: a == null ? void 0 : a.length,
|
|
400
400
|
mini: !0,
|
|
401
401
|
size_s: "small",
|
|
402
|
-
value:
|
|
402
|
+
value: c,
|
|
403
403
|
onClick: () => {
|
|
404
404
|
},
|
|
405
|
-
checked: ((
|
|
405
|
+
checked: ((f = u == null ? void 0 : u.find((M) => M.value === c)) == null ? void 0 : f.state) ?? !1,
|
|
406
406
|
onChange: () => {
|
|
407
|
-
|
|
408
|
-
(M) => M.map((I) => I.value ===
|
|
407
|
+
x == null || x(
|
|
408
|
+
(M) => M.map((I) => I.value === c ? { ...I, state: !I.state } : I)
|
|
409
409
|
);
|
|
410
410
|
},
|
|
411
|
-
index:
|
|
412
|
-
children:
|
|
411
|
+
index: l,
|
|
412
|
+
children: c
|
|
413
413
|
},
|
|
414
|
-
|
|
414
|
+
l
|
|
415
415
|
);
|
|
416
416
|
})
|
|
417
417
|
}
|
|
418
418
|
) })
|
|
419
419
|
] }),
|
|
420
|
-
/* @__PURE__ */ t("div", { className: i.selectWrapper, children:
|
|
420
|
+
/* @__PURE__ */ t("div", { className: i.selectWrapper, children: s == null ? void 0 : s.map((w, l) => /* @__PURE__ */ t(
|
|
421
421
|
T,
|
|
422
422
|
{
|
|
423
423
|
sizeIcon: "24",
|
|
424
424
|
addClassName: i.filterOption,
|
|
425
425
|
disabledOptions: [],
|
|
426
|
-
clickableOptions:
|
|
426
|
+
clickableOptions: s == null ? void 0 : s.map((c) => c.value.toString()),
|
|
427
427
|
selectedOptions: z,
|
|
428
|
-
option:
|
|
429
|
-
handleOptionClick:
|
|
428
|
+
option: w,
|
|
429
|
+
handleOptionClick: y
|
|
430
430
|
},
|
|
431
|
-
|
|
431
|
+
l
|
|
432
432
|
)) }),
|
|
433
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ g("div", { className: i.btnWrapper, children: [
|
|
434
434
|
/* @__PURE__ */ t(
|
|
435
435
|
A,
|
|
436
436
|
{
|
|
437
437
|
as: "button",
|
|
438
438
|
variant: "gray",
|
|
439
439
|
additionalClass: i.resetBtn,
|
|
440
|
-
onClick:
|
|
440
|
+
onClick: _,
|
|
441
441
|
children: "Сбросить"
|
|
442
442
|
}
|
|
443
443
|
),
|
|
@@ -446,20 +446,20 @@ const be = /* @__PURE__ */ U(Me), Re = ({
|
|
|
446
446
|
{
|
|
447
447
|
as: "button",
|
|
448
448
|
additionalClass: i.saveBtn,
|
|
449
|
-
onClick:
|
|
449
|
+
onClick: h,
|
|
450
450
|
children: "Сохранить"
|
|
451
451
|
}
|
|
452
452
|
)
|
|
453
453
|
] })
|
|
454
454
|
] });
|
|
455
|
-
return /* @__PURE__ */
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
-
/* @__PURE__ */
|
|
455
|
+
return /* @__PURE__ */ g(P, { children: [
|
|
456
|
+
/* @__PURE__ */ g("div", { style: { position: "relative" }, children: [
|
|
457
|
+
/* @__PURE__ */ g(
|
|
458
458
|
"div",
|
|
459
459
|
{
|
|
460
460
|
className: i.root,
|
|
461
461
|
onClick: () => {
|
|
462
|
-
|
|
462
|
+
v && v(), N ? B((w) => !w) : k || B(!0);
|
|
463
463
|
},
|
|
464
464
|
children: [
|
|
465
465
|
/* @__PURE__ */ t("div", { className: i.btnName, children: C }),
|
|
@@ -473,18 +473,18 @@ const be = /* @__PURE__ */ U(Me), Re = ({
|
|
|
473
473
|
]
|
|
474
474
|
}
|
|
475
475
|
),
|
|
476
|
-
!N && /* @__PURE__ */
|
|
476
|
+
!N && /* @__PURE__ */ g(
|
|
477
477
|
"div",
|
|
478
478
|
{
|
|
479
|
-
ref:
|
|
480
|
-
className: Le(i.desktopWrapper, { [i.desktopWrapperOpen]:
|
|
479
|
+
ref: O,
|
|
480
|
+
className: Le(i.desktopWrapper, { [i.desktopWrapperOpen]: k }),
|
|
481
481
|
children: [
|
|
482
482
|
/* @__PURE__ */ t(
|
|
483
483
|
"div",
|
|
484
484
|
{
|
|
485
485
|
className: i.closeBtn,
|
|
486
486
|
onClick: () => {
|
|
487
|
-
|
|
487
|
+
S();
|
|
488
488
|
},
|
|
489
489
|
children: /* @__PURE__ */ t(
|
|
490
490
|
$,
|
|
@@ -496,7 +496,7 @@ const be = /* @__PURE__ */ U(Me), Re = ({
|
|
|
496
496
|
}
|
|
497
497
|
),
|
|
498
498
|
/* @__PURE__ */ t("div", { className: i.modalTitle, children: "Фильтры" }),
|
|
499
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ g("div", { className: i.tabSWitcherWrapper, children: [
|
|
500
500
|
/* @__PURE__ */ t("div", { className: i.switcherTitle, children: "Готовность" }),
|
|
501
501
|
/* @__PURE__ */ t("div", { className: i.switcherScroll, children: /* @__PURE__ */ t(
|
|
502
502
|
D,
|
|
@@ -504,55 +504,55 @@ const be = /* @__PURE__ */ U(Me), Re = ({
|
|
|
504
504
|
variant: "grayRow",
|
|
505
505
|
addClassName: i.tabs,
|
|
506
506
|
isApart: !0,
|
|
507
|
-
children:
|
|
508
|
-
var
|
|
509
|
-
const
|
|
507
|
+
children: a == null ? void 0 : a.map((w, l) => {
|
|
508
|
+
var f;
|
|
509
|
+
const c = w.value;
|
|
510
510
|
return /* @__PURE__ */ t(
|
|
511
511
|
D.Item,
|
|
512
512
|
{
|
|
513
|
-
itemsLength:
|
|
513
|
+
itemsLength: a == null ? void 0 : a.length,
|
|
514
514
|
size_s: "small",
|
|
515
515
|
mini: !0,
|
|
516
|
-
value:
|
|
516
|
+
value: c,
|
|
517
517
|
onClick: () => {
|
|
518
518
|
},
|
|
519
|
-
checked: ((
|
|
519
|
+
checked: ((f = u == null ? void 0 : u.find((M) => M.value === c)) == null ? void 0 : f.state) ?? !1,
|
|
520
520
|
onChange: () => {
|
|
521
|
-
|
|
522
|
-
(M) => M.map((I) => I.value ===
|
|
521
|
+
x == null || x(
|
|
522
|
+
(M) => M.map((I) => I.value === c ? { ...I, state: !I.state } : I)
|
|
523
523
|
);
|
|
524
524
|
},
|
|
525
|
-
index:
|
|
525
|
+
index: l,
|
|
526
526
|
addItemClassName: i.tabSwitcher,
|
|
527
|
-
children:
|
|
527
|
+
children: c
|
|
528
528
|
},
|
|
529
|
-
|
|
529
|
+
l
|
|
530
530
|
);
|
|
531
531
|
})
|
|
532
532
|
}
|
|
533
533
|
) })
|
|
534
534
|
] }),
|
|
535
|
-
/* @__PURE__ */ t("div", { className: i.selectWrapper, children:
|
|
535
|
+
/* @__PURE__ */ t("div", { className: i.selectWrapper, children: s == null ? void 0 : s.map((w, l) => /* @__PURE__ */ t(
|
|
536
536
|
T,
|
|
537
537
|
{
|
|
538
538
|
sizeIcon: "24",
|
|
539
539
|
addClassName: i.filterOption,
|
|
540
540
|
disabledOptions: [],
|
|
541
|
-
clickableOptions:
|
|
541
|
+
clickableOptions: s == null ? void 0 : s.map((c) => c.value.toString()),
|
|
542
542
|
selectedOptions: z,
|
|
543
|
-
option:
|
|
544
|
-
handleOptionClick:
|
|
543
|
+
option: w,
|
|
544
|
+
handleOptionClick: y
|
|
545
545
|
},
|
|
546
|
-
|
|
546
|
+
l
|
|
547
547
|
)) }),
|
|
548
|
-
/* @__PURE__ */
|
|
548
|
+
/* @__PURE__ */ g("div", { className: i.btnWrapper, children: [
|
|
549
549
|
/* @__PURE__ */ t(
|
|
550
550
|
A,
|
|
551
551
|
{
|
|
552
552
|
as: "button",
|
|
553
553
|
variant: "gray",
|
|
554
554
|
additionalClass: i.resetBtn,
|
|
555
|
-
onClick:
|
|
555
|
+
onClick: _,
|
|
556
556
|
children: "Сбросить"
|
|
557
557
|
}
|
|
558
558
|
),
|
|
@@ -561,7 +561,7 @@ const be = /* @__PURE__ */ U(Me), Re = ({
|
|
|
561
561
|
{
|
|
562
562
|
as: "button",
|
|
563
563
|
additionalClass: i.saveBtn,
|
|
564
|
-
onClick:
|
|
564
|
+
onClick: h,
|
|
565
565
|
children: "Сохранить"
|
|
566
566
|
}
|
|
567
567
|
)
|
|
@@ -573,8 +573,8 @@ const be = /* @__PURE__ */ U(Me), Re = ({
|
|
|
573
573
|
N && /* @__PURE__ */ t(
|
|
574
574
|
J,
|
|
575
575
|
{
|
|
576
|
-
isOpen:
|
|
577
|
-
emitIsOpen:
|
|
576
|
+
isOpen: k,
|
|
577
|
+
emitIsOpen: B,
|
|
578
578
|
isTransparentBack: !0,
|
|
579
579
|
additionalClassModalBody: i.modalAddBody,
|
|
580
580
|
additionalClass: i.filterWithSaveModal,
|
|
@@ -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-CfEBghv2.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-CfEBghv2.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-CfEBghv2.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-CfEBghv2.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-CfEBghv2.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-CfEBghv2.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";
|