stone-kit 0.0.708 → 0.0.710

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