stone-kit 0.0.877 → 0.0.879
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/App.js +1 -1
- package/dist/{src/pages/ButtonsPage/ButtonState/ButtonState.module.scss.js → ButtonState.module-DtW3aevR.js} +1 -4
- package/dist/FilterWithSave-Bp6rH8Pe.js +2230 -0
- package/dist/Menu-CgCfinVZ.js +513 -0
- package/dist/Option-BVIm7wOW.js +83 -0
- package/dist/{src/components/NewIcon/assets/PinTrans.svg.js → PinTrans-D6OZq76b.js} +4 -4
- package/dist/Router.js +9 -9
- package/dist/{src/components/NewIcon/assets/SmallFilter.svg.js → SmallFilter-C-VKnbkP.js} +3 -3
- package/dist/components/Button/ui/Button.js +73 -44
- package/dist/components/CheckBox/CheckBox.js +46 -35
- package/dist/components/CheckBoxNew/CheckBoxNew.js +23 -19
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +31 -24
- package/dist/components/DestinationTab/ui/DestinationTab.js +48 -35
- package/dist/components/FieldInput/ui/FieldInput.js +10 -7
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +5 -61
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -266
- package/dist/components/Flex/ui/Flex.js +61 -26
- package/dist/components/FormModal/ui/ModalForm.js +14 -289
- package/dist/components/GroupedInput/ui/GroupedInputs.js +6 -5
- package/dist/components/Input/ui/Input.js +3307 -74
- package/dist/components/Logo/ui/Logo.js +31 -19
- package/dist/components/Logo/ui/Logo.types.js +10 -18
- package/dist/components/LotCard/hooks/useLotCard.js +11 -125
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.js +9 -150
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +58 -31
- package/dist/components/MetroLabel/ui/MetroLabel.js +24 -19
- package/dist/components/MetroTag/ui/MetroTag.js +72 -59
- package/dist/components/Modal/ui/Modal.js +38 -33
- package/dist/components/ModalSuccess/ModalSuccess.js +35 -26
- package/dist/components/NewIcon/icons/PinTrans.js +3 -3
- package/dist/components/NewIcon/icons/SmallFilter.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.js +301 -141
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +15 -5
- package/dist/components/RoundButton/ui/RoundButton.js +60 -42
- package/dist/components/Select/ui/Category.js +29 -30
- package/dist/components/Select/ui/Option.js +5 -52
- package/dist/components/Select/ui/Select.js +23 -24
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +28 -27
- package/dist/components/SortSelect/hooks/useSortSelect.js +4 -59
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +9 -114
- package/dist/components/SummarySelect/ui/SummarySelect.js +69 -59
- package/dist/components/Switcher/ui/Switcher.js +24 -13
- package/dist/components/TabSelect/ui/TabSelect.js +34 -28
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +7 -84
- package/dist/components/Tag/ui/Tag.js +67 -19
- package/dist/components/Text/ui/Text.js +13 -12
- package/dist/components/TextArea/TextArea.js +14 -11
- package/dist/components/ZoomControls/ui/ZoomControls.js +11 -8
- package/dist/components/mobileButton/ui/MobileButton.js +39 -34
- package/dist/index-DmANy9jd.js +890 -0
- package/dist/{node_modules/classnames/index.js → index-rKuIKazb.js} +15 -12
- package/dist/layout/Layout.js +8 -7
- package/dist/layout/components/Header/Header.js +44 -41
- package/dist/layout/components/Menu.js +6 -111
- package/dist/main.js +42 -46
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +1 -1
- package/dist/pages/ButtonsPage/Buttons.js +62 -54
- package/dist/pages/CheckboxPage/CheckboxPage.js +51 -47
- package/dist/pages/FormsPage/FormsPage.js +32 -31
- package/dist/pages/HomePage/HomePage.js +4 -3
- package/dist/pages/IconsPage/IconsPage.js +10 -12
- package/dist/pages/InputPage/InputPage.js +12 -17
- package/dist/pages/LogoPage/LogoPage.js +14 -17
- package/dist/pages/LotsPage/LotsPage.js +15 -15
- package/dist/pages/ModalsPage/ModalPage.js +14 -19
- package/dist/pages/SelectPage/SelectPage.js +41 -42
- package/dist/pages/TabsPage/TabsPage.js +51 -49
- package/dist/pages/TagsPage/TagsPage.js +7 -10
- package/dist/stories/Button.js +4 -5
- package/dist/stories/Header.js +3 -4
- package/dist/stories/Page.js +2 -3
- package/dist/style.css +1 -1
- package/dist/useSortSelect-CjZXLFOG.js +80 -0
- package/package.json +4 -3
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/bind.js +0 -4
- package/dist/_virtual/index.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/node_modules/@remix-run/router/dist/router.js +0 -431
- package/dist/node_modules/classnames/bind.js +0 -42
- package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -35
- package/dist/node_modules/imask/esm/controls/html-input-mask-element.js +0 -31
- package/dist/node_modules/imask/esm/controls/html-mask-element.js +0 -48
- package/dist/node_modules/imask/esm/controls/input-history.js +0 -30
- package/dist/node_modules/imask/esm/controls/input.js +0 -224
- package/dist/node_modules/imask/esm/controls/mask-element.js +0 -43
- package/dist/node_modules/imask/esm/core/action-details.js +0 -51
- package/dist/node_modules/imask/esm/core/change-details.js +0 -36
- package/dist/node_modules/imask/esm/core/continuous-tail-details.js +0 -44
- package/dist/node_modules/imask/esm/core/holder.js +0 -6
- package/dist/node_modules/imask/esm/core/utils.js +0 -80
- package/dist/node_modules/imask/esm/index.js +0 -50
- package/dist/node_modules/imask/esm/masked/base.js +0 -257
- package/dist/node_modules/imask/esm/masked/date.js +0 -118
- package/dist/node_modules/imask/esm/masked/dynamic.js +0 -224
- package/dist/node_modules/imask/esm/masked/enum.js +0 -70
- package/dist/node_modules/imask/esm/masked/factory.js +0 -51
- package/dist/node_modules/imask/esm/masked/function.js +0 -23
- package/dist/node_modules/imask/esm/masked/number.js +0 -215
- package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -110
- package/dist/node_modules/imask/esm/masked/pattern/cursor.js +0 -102
- package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -103
- package/dist/node_modules/imask/esm/masked/pattern/input-definition.js +0 -134
- package/dist/node_modules/imask/esm/masked/pattern.js +0 -339
- package/dist/node_modules/imask/esm/masked/pipe.js +0 -23
- package/dist/node_modules/imask/esm/masked/range.js +0 -82
- package/dist/node_modules/imask/esm/masked/regexp.js +0 -21
- package/dist/node_modules/imask/esm/masked/repeat.js +0 -106
- package/dist/node_modules/object-assign/index.js +0 -55
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -55
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -53
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -330
- package/dist/node_modules/prop-types/index.js +0 -15
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -11
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -79
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -1062
- package/dist/node_modules/react-imask/esm/input.js +0 -25
- package/dist/node_modules/react-imask/esm/mixin.js +0 -131
- package/dist/node_modules/react-router/dist/index.js +0 -486
- package/dist/node_modules/react-router-dom/dist/index.js +0 -424
- package/dist/src/components/Button/ui/Button.module.scss.js +0 -49
- package/dist/src/components/CheckBox/s.module.scss.js +0 -24
- package/dist/src/components/CheckBoxNew/s.module.scss.js +0 -13
- package/dist/src/components/CheckboxSelect/ui/s.module.scss.js +0 -19
- package/dist/src/components/DestinationTab/ui/DestinationTab.module.scss.js +0 -23
- package/dist/src/components/FieldInput/ui/FieldInput.module.scss.js +0 -11
- package/dist/src/components/FilterWithSave/ui/s.module.scss.js +0 -39
- package/dist/src/components/Flex/ui/Flex.module.scss.js +0 -41
- package/dist/src/components/FormModal/ui/ModalForm.module.scss.js +0 -31
- package/dist/src/components/GroupedInput/ui/GroupedInputs.module.scss.js +0 -7
- package/dist/src/components/Input/ui/Input.module.scss.js +0 -43
- package/dist/src/components/Logo/assets/LogoBlack.svg.js +0 -4
- package/dist/src/components/Logo/assets/LogoDom.svg.js +0 -4
- package/dist/src/components/Logo/assets/LogoNewDom.svg.js +0 -4
- package/dist/src/components/Logo/assets/LogoNewOffice.svg.js +0 -4
- package/dist/src/components/Logo/assets/LogoOffice.svg.js +0 -4
- package/dist/src/components/Logo/assets/LogoRealty.svg.js +0 -4
- package/dist/src/components/Logo/assets/LogoValue.svg.js +0 -4
- package/dist/src/components/Logo/assets/LogoWhite.svg.js +0 -4
- package/dist/src/components/Logo/ui/Logo.module.scss.js +0 -29
- package/dist/src/components/LotCard/assets/testLot.webp.js +0 -4
- package/dist/src/components/LotCard/ui/LotCard.module.scss.js +0 -71
- package/dist/src/components/LotCardSkeleton/ui/LotCardSkeleton.module.scss.js +0 -59
- package/dist/src/components/MetroLabel/ui/MetroLabel.module.scss.js +0 -15
- package/dist/src/components/MetroTag/ui/MetroTag.module.scss.js +0 -31
- package/dist/src/components/Modal/ui/Modal.module.scss.js +0 -15
- package/dist/src/components/ModalSuccess/styles.module.scss.js +0 -23
- package/dist/src/components/NewIcon/assets/ArrowLong.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/ArrowShort.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Auto.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Building.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Burger.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/BurgerClose.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Call.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Callback.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Case.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Check.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Circle.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Close.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/DirectionDown.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Download.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Filter.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Food.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Fullscreen.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Heart.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Layers.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/LayersFilled.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Loader.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Lock.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Metro.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Minus.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/MinusCheck.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Moon.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Park.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Pedestrian.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Phone.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/PhoneFilled.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Pin.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Play.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Play2.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Plus.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Redo.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Ruble.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Search.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/SelectChecked.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/SelectUnchecked.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Share.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Sport.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/SquareMeter.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Star.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/StarFilled.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Sun.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Telegram.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/Timer.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/TwoArrows.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/User.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/WhatsApp.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/WithoutDecor.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/arrowRight.svg.js +0 -10
- package/dist/src/components/NewIcon/assets/mail.svg.js +0 -10
- package/dist/src/components/NewIcon/ui/NewIcon.module.scss.js +0 -4
- package/dist/src/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.module.scss.js +0 -25
- package/dist/src/components/RoundButton/ui/RoundButton.module.scss.js +0 -29
- package/dist/src/components/Select/ui/Select.module.scss.js +0 -52
- package/dist/src/components/SliderNavigation/ui/SliderNavigation.module.scss.js +0 -7
- package/dist/src/components/SortSelect/ui/SortSelect.module.scss.js +0 -41
- package/dist/src/components/SummarySelect/ui/SummarySelect.module.scss.js +0 -25
- package/dist/src/components/Switcher/ui/Switcher.module.scss.js +0 -27
- package/dist/src/components/TabSelect/ui/TabSelect.module.scss.js +0 -17
- package/dist/src/components/TabSwitcher/ui/TabSwitcher.module.scss.js +0 -57
- package/dist/src/components/Tag/ui/Tag.module.scss.js +0 -70
- package/dist/src/components/Text/ui/Text.module.scss.js +0 -7
- package/dist/src/components/TextArea/styles.module.scss.js +0 -9
- package/dist/src/components/ZoomControls/ui/ZoomControls.module.scss.js +0 -11
- package/dist/src/components/mobileButton/ui/MobileButton.module.scss.js +0 -12
- package/dist/src/layout/components/Header/s.module.scss.js +0 -19
- package/dist/src/layout/components/Menu.module.scss.js +0 -9
- package/dist/src/layout/style.module.scss.js +0 -7
- package/dist/src/pages/ButtonsPage/ButtonState/ButtonState.js +0 -18
- package/dist/src/pages/ButtonsPage/ButtonsPage.module.scss.js +0 -9
- package/dist/src/pages/CheckboxPage/CheckboxPage.module.scss.js +0 -13
- package/dist/src/pages/FormsPage/FormsPage.module.scss.js +0 -15
- package/dist/src/pages/HomePage/HomePage.module.scss.js +0 -7
- package/dist/src/pages/IconsPage/IconsPage.module.scss.js +0 -9
- package/dist/src/pages/InputPage/InputPage.module.scss.js +0 -4
- package/dist/src/pages/LogoPage/LogoPage.module.scss.js +0 -7
- package/dist/src/pages/LotsPage/LotsPage.module.scss.js +0 -13
- package/dist/src/pages/ModalsPage/ModalPage.module.scss.js +0 -4
- package/dist/src/pages/SelectPage/SelectPage.module.scss.js +0 -11
- package/dist/src/pages/TabsPage/TabsPage.module.scss.js +0 -17
- package/dist/src/pages/TagsPage/TagsPage.module.scss.js +0 -7
- package/dist/src/stories/button.css.js +0 -1
- package/dist/src/stories/header.css.js +0 -1
- package/dist/src/stories/page.css.js +0 -1
|
@@ -1,268 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import a from "../../../
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { Button as p } from "../../Button/ui/Button.js";
|
|
8
|
-
import K from "../../../node_modules/classnames/bind.js";
|
|
9
|
-
import { useFilterWithSave as P } from "../hooks/useFilterWithSave.js";
|
|
10
|
-
const Q = K.bind(a), b = ({
|
|
11
|
-
disabledOptions: x,
|
|
12
|
-
tabs: i = [],
|
|
13
|
-
selectOptions: l = [],
|
|
14
|
-
onChange: S,
|
|
15
|
-
onClick: k = () => null,
|
|
16
|
-
selectedValues: A,
|
|
17
|
-
setSelectedTabs: F,
|
|
18
|
-
selectedTabs: R,
|
|
19
|
-
onClickItem: j,
|
|
20
|
-
onCLickSelect: g,
|
|
21
|
-
onSaveClick: _ = () => null,
|
|
22
|
-
onClearClick: q = () => null,
|
|
23
|
-
onTabClick: D = () => null,
|
|
24
|
-
btnName: E = "Фильтр"
|
|
25
|
-
}) => {
|
|
26
|
-
const {
|
|
27
|
-
handleCloseModal: W,
|
|
28
|
-
localSelectedTabs: c,
|
|
29
|
-
selectedOptions: B,
|
|
30
|
-
isMobile: u,
|
|
31
|
-
handleOptionClick: w,
|
|
32
|
-
handleClearClick: y,
|
|
33
|
-
handleSaveClick: I,
|
|
34
|
-
isModalOpen: N,
|
|
35
|
-
setLocalSelectedTabs: o,
|
|
36
|
-
setIsModalOpen: C,
|
|
37
|
-
containerRef: G
|
|
38
|
-
} = P({
|
|
39
|
-
selectedTabs: R,
|
|
40
|
-
onClickItem: j,
|
|
41
|
-
setSelectedTabs: F,
|
|
42
|
-
tabs: i,
|
|
43
|
-
onChange: S,
|
|
44
|
-
disabledOptions: x,
|
|
45
|
-
selectedValues: A,
|
|
46
|
-
onSaveClick: _,
|
|
47
|
-
onClearClick: q
|
|
48
|
-
}), H = () => /* @__PURE__ */ m(M, { children: [
|
|
49
|
-
/* @__PURE__ */ e(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
className: a.closeBtn,
|
|
53
|
-
onClick: () => {
|
|
54
|
-
W();
|
|
55
|
-
},
|
|
56
|
-
children: /* @__PURE__ */ e(
|
|
57
|
-
f,
|
|
58
|
-
{
|
|
59
|
-
name: "close",
|
|
60
|
-
size: "24"
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
/* @__PURE__ */ e("div", { className: a.modalTitle, children: "Фильтры" }),
|
|
66
|
-
/* @__PURE__ */ m("div", { className: a.tabSWitcherWrapper, children: [
|
|
67
|
-
/* @__PURE__ */ e("div", { className: a.switcherTitle, children: "Готовность" }),
|
|
68
|
-
/* @__PURE__ */ e("div", { className: a.switcherScroll, children: /* @__PURE__ */ e(
|
|
69
|
-
v,
|
|
70
|
-
{
|
|
71
|
-
variant: "grayRow",
|
|
72
|
-
addClassName: a.tabs,
|
|
73
|
-
isApart: !0,
|
|
74
|
-
children: i == null ? void 0 : i.map((n, d) => {
|
|
75
|
-
var h;
|
|
76
|
-
const r = n.value;
|
|
77
|
-
return /* @__PURE__ */ e(
|
|
78
|
-
v.Item,
|
|
79
|
-
{
|
|
80
|
-
itemsLength: i == null ? void 0 : i.length,
|
|
81
|
-
mini: !0,
|
|
82
|
-
size_s: "small",
|
|
83
|
-
value: r,
|
|
84
|
-
onClick: () => {
|
|
85
|
-
},
|
|
86
|
-
checked: ((h = c == null ? void 0 : c.find((t) => t.value === r)) == null ? void 0 : h.state) ?? !1,
|
|
87
|
-
onChange: () => {
|
|
88
|
-
o == null || o(
|
|
89
|
-
(t) => t.map((s) => s.value === r ? { ...s, state: !s.state } : s)
|
|
90
|
-
);
|
|
91
|
-
},
|
|
92
|
-
index: d,
|
|
93
|
-
children: r
|
|
94
|
-
},
|
|
95
|
-
d
|
|
96
|
-
);
|
|
97
|
-
})
|
|
98
|
-
}
|
|
99
|
-
) })
|
|
100
|
-
] }),
|
|
101
|
-
/* @__PURE__ */ e("div", { className: a.selectWrapper, children: l == null ? void 0 : l.map((n, d) => /* @__PURE__ */ e(
|
|
102
|
-
z,
|
|
103
|
-
{
|
|
104
|
-
sizeIcon: "24",
|
|
105
|
-
addClassName: a.filterOption,
|
|
106
|
-
disabledOptions: [],
|
|
107
|
-
clickableOptions: l == null ? void 0 : l.map((r) => r.value.toString()),
|
|
108
|
-
selectedOptions: B,
|
|
109
|
-
option: n,
|
|
110
|
-
handleOptionClick: w
|
|
111
|
-
},
|
|
112
|
-
d
|
|
113
|
-
)) }),
|
|
114
|
-
/* @__PURE__ */ m("div", { className: a.btnWrapper, children: [
|
|
115
|
-
/* @__PURE__ */ e(
|
|
116
|
-
p,
|
|
117
|
-
{
|
|
118
|
-
as: "button",
|
|
119
|
-
variant: "gray",
|
|
120
|
-
additionalClass: a.resetBtn,
|
|
121
|
-
onClick: y,
|
|
122
|
-
children: "Сбросить"
|
|
123
|
-
}
|
|
124
|
-
),
|
|
125
|
-
/* @__PURE__ */ e(
|
|
126
|
-
p,
|
|
127
|
-
{
|
|
128
|
-
as: "button",
|
|
129
|
-
additionalClass: a.saveBtn,
|
|
130
|
-
onClick: I,
|
|
131
|
-
children: "Сохранить"
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
] })
|
|
135
|
-
] });
|
|
136
|
-
return /* @__PURE__ */ m(M, { children: [
|
|
137
|
-
/* @__PURE__ */ m("div", { style: { position: "relative" }, children: [
|
|
138
|
-
/* @__PURE__ */ m(
|
|
139
|
-
"div",
|
|
140
|
-
{
|
|
141
|
-
className: a.root,
|
|
142
|
-
onClick: () => {
|
|
143
|
-
g && g(), k && k(), u ? C((n) => !n) : N || C(!0);
|
|
144
|
-
},
|
|
145
|
-
children: [
|
|
146
|
-
/* @__PURE__ */ e("div", { className: a.btnName, children: E }),
|
|
147
|
-
/* @__PURE__ */ e(
|
|
148
|
-
f,
|
|
149
|
-
{
|
|
150
|
-
name: "filter",
|
|
151
|
-
size: "16"
|
|
152
|
-
}
|
|
153
|
-
)
|
|
154
|
-
]
|
|
155
|
-
}
|
|
156
|
-
),
|
|
157
|
-
!u && /* @__PURE__ */ m(
|
|
158
|
-
"div",
|
|
159
|
-
{
|
|
160
|
-
ref: G,
|
|
161
|
-
className: Q(a.desktopWrapper, { [a.desktopWrapperOpen]: N }),
|
|
162
|
-
children: [
|
|
163
|
-
/* @__PURE__ */ e(
|
|
164
|
-
"div",
|
|
165
|
-
{
|
|
166
|
-
className: a.closeBtn,
|
|
167
|
-
onClick: () => {
|
|
168
|
-
W();
|
|
169
|
-
},
|
|
170
|
-
children: /* @__PURE__ */ e(
|
|
171
|
-
f,
|
|
172
|
-
{
|
|
173
|
-
name: "close",
|
|
174
|
-
size: "24"
|
|
175
|
-
}
|
|
176
|
-
)
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
/* @__PURE__ */ e("div", { className: a.modalTitle, children: "Фильтры" }),
|
|
180
|
-
/* @__PURE__ */ m("div", { className: a.tabSWitcherWrapper, children: [
|
|
181
|
-
/* @__PURE__ */ e("div", { className: a.switcherTitle, children: "Готовность" }),
|
|
182
|
-
/* @__PURE__ */ e("div", { className: a.switcherScroll, children: /* @__PURE__ */ e(
|
|
183
|
-
v,
|
|
184
|
-
{
|
|
185
|
-
variant: "grayRow",
|
|
186
|
-
addClassName: a.tabs,
|
|
187
|
-
isApart: !0,
|
|
188
|
-
children: i == null ? void 0 : i.map((n, d) => {
|
|
189
|
-
var h;
|
|
190
|
-
const r = n.value;
|
|
191
|
-
return /* @__PURE__ */ e(
|
|
192
|
-
v.Item,
|
|
193
|
-
{
|
|
194
|
-
itemsLength: i == null ? void 0 : i.length,
|
|
195
|
-
size_s: "small",
|
|
196
|
-
mini: !0,
|
|
197
|
-
value: r,
|
|
198
|
-
onClick: () => D(),
|
|
199
|
-
checked: ((h = c == null ? void 0 : c.find((t) => t.value === r)) == null ? void 0 : h.state) ?? !1,
|
|
200
|
-
onChange: () => {
|
|
201
|
-
o == null || o(
|
|
202
|
-
(t) => t.map((s) => s.value === r ? { ...s, state: !s.state } : s)
|
|
203
|
-
);
|
|
204
|
-
},
|
|
205
|
-
index: d,
|
|
206
|
-
addItemClassName: a.tabSwitcher,
|
|
207
|
-
children: r
|
|
208
|
-
},
|
|
209
|
-
d
|
|
210
|
-
);
|
|
211
|
-
})
|
|
212
|
-
}
|
|
213
|
-
) })
|
|
214
|
-
] }),
|
|
215
|
-
/* @__PURE__ */ e("div", { className: a.selectWrapper, children: l == null ? void 0 : l.map((n, d) => /* @__PURE__ */ e(
|
|
216
|
-
z,
|
|
217
|
-
{
|
|
218
|
-
sizeIcon: "24",
|
|
219
|
-
addClassName: a.filterOption,
|
|
220
|
-
disabledOptions: [],
|
|
221
|
-
clickableOptions: l == null ? void 0 : l.map((r) => r.value.toString()),
|
|
222
|
-
selectedOptions: B,
|
|
223
|
-
option: n,
|
|
224
|
-
handleOptionClick: w
|
|
225
|
-
},
|
|
226
|
-
d
|
|
227
|
-
)) }),
|
|
228
|
-
/* @__PURE__ */ m("div", { className: a.btnWrapper, children: [
|
|
229
|
-
/* @__PURE__ */ e(
|
|
230
|
-
p,
|
|
231
|
-
{
|
|
232
|
-
as: "button",
|
|
233
|
-
variant: "gray",
|
|
234
|
-
additionalClass: a.resetBtn,
|
|
235
|
-
onClick: y,
|
|
236
|
-
children: "Сбросить"
|
|
237
|
-
}
|
|
238
|
-
),
|
|
239
|
-
/* @__PURE__ */ e(
|
|
240
|
-
p,
|
|
241
|
-
{
|
|
242
|
-
as: "button",
|
|
243
|
-
additionalClass: a.saveBtn,
|
|
244
|
-
onClick: I,
|
|
245
|
-
children: "Сохранить"
|
|
246
|
-
}
|
|
247
|
-
)
|
|
248
|
-
] })
|
|
249
|
-
]
|
|
250
|
-
}
|
|
251
|
-
)
|
|
252
|
-
] }),
|
|
253
|
-
u && /* @__PURE__ */ e(
|
|
254
|
-
J,
|
|
255
|
-
{
|
|
256
|
-
isOpen: N,
|
|
257
|
-
emitIsOpen: C,
|
|
258
|
-
isTransparentBack: !0,
|
|
259
|
-
additionalClassModalBody: a.modalAddBody,
|
|
260
|
-
additionalClass: a.filterWithSaveModal,
|
|
261
|
-
children: /* @__PURE__ */ e(H, {})
|
|
262
|
-
}
|
|
263
|
-
)
|
|
264
|
-
] });
|
|
265
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../NewIcon/ui/NewIcon.js";
|
|
3
|
+
import { F as a } from "../../../FilterWithSave-Bp6rH8Pe.js";
|
|
4
|
+
import "../../Modal/ui/Modal.js";
|
|
5
|
+
import "../../../Option-BVIm7wOW.js";
|
|
6
|
+
import "../../Button/ui/Button.js";
|
|
266
7
|
export {
|
|
267
|
-
|
|
8
|
+
a as FilterWithSave
|
|
268
9
|
};
|
|
@@ -1,33 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
gap:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../../index-rKuIKazb.js";
|
|
3
|
+
const o = "_root_fi64k_1", _ = {
|
|
4
|
+
root: o,
|
|
5
|
+
"gap-1": "_gap-1_fi64k_5",
|
|
6
|
+
"gap-2": "_gap-2_fi64k_9",
|
|
7
|
+
"gap-3": "_gap-3_fi64k_13",
|
|
8
|
+
"gap-4": "_gap-4_fi64k_17",
|
|
9
|
+
"gap-5": "_gap-5_fi64k_21",
|
|
10
|
+
"gap-6": "_gap-6_fi64k_25",
|
|
11
|
+
"gap-7": "_gap-7_fi64k_29",
|
|
12
|
+
"gap-8": "_gap-8_fi64k_33",
|
|
13
|
+
"gap-9": "_gap-9_fi64k_37",
|
|
14
|
+
"gap-10": "_gap-10_fi64k_41",
|
|
15
|
+
"gap-11": "_gap-11_fi64k_45",
|
|
16
|
+
"gap-12": "_gap-12_fi64k_49",
|
|
17
|
+
"gap-13": "_gap-13_fi64k_53",
|
|
18
|
+
"gap-14": "_gap-14_fi64k_57",
|
|
19
|
+
"gap-15": "_gap-15_fi64k_61",
|
|
20
|
+
"gap-16": "_gap-16_fi64k_65",
|
|
21
|
+
"fd-row": "_fd-row_fi64k_69",
|
|
22
|
+
"fd-row-reverse": "_fd-row-reverse_fi64k_73",
|
|
23
|
+
"fd-column": "_fd-column_fi64k_77",
|
|
24
|
+
"fd-column-reverse": "_fd-column-reverse_fi64k_81",
|
|
25
|
+
"w-nowrap": "_w-nowrap_fi64k_85",
|
|
26
|
+
"w-wrap": "_w-wrap_fi64k_89",
|
|
27
|
+
"w-wrap-reverse": "_w-wrap-reverse_fi64k_93",
|
|
28
|
+
"jc-flex-start": "_jc-flex-start_fi64k_97",
|
|
29
|
+
"jc-flex-end": "_jc-flex-end_fi64k_101",
|
|
30
|
+
"jc-center": "_jc-center_fi64k_105",
|
|
31
|
+
"jc-space-between": "_jc-space-between_fi64k_109",
|
|
32
|
+
"jc-space-around": "_jc-space-around_fi64k_113",
|
|
33
|
+
"jc-space-evenly": "_jc-space-evenly_fi64k_117",
|
|
34
|
+
"ai-stretch": "_ai-stretch_fi64k_121",
|
|
35
|
+
"ai-flex-start": "_ai-flex-start_fi64k_125",
|
|
36
|
+
"ai-flex-end": "_ai-flex-end_fi64k_129",
|
|
37
|
+
"ai-center": "_ai-center_fi64k_133",
|
|
38
|
+
"ai-baseline": "_ai-baseline_fi64k_137"
|
|
39
|
+
}, n = t.bind(_), d = ({
|
|
40
|
+
className: a,
|
|
41
|
+
children: e,
|
|
42
|
+
jc: f = "start",
|
|
43
|
+
ai: i = "center",
|
|
44
|
+
gap: p,
|
|
45
|
+
fd: r = "row",
|
|
46
|
+
w: c = "nowrap",
|
|
47
|
+
additionalClass: k = "",
|
|
48
|
+
...g
|
|
49
|
+
}) => /* @__PURE__ */ s(
|
|
15
50
|
"div",
|
|
16
51
|
{
|
|
17
|
-
className:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
52
|
+
className: n(
|
|
53
|
+
_.root,
|
|
54
|
+
a,
|
|
55
|
+
_[`w-${c}`],
|
|
56
|
+
_[`jc-${f}`],
|
|
57
|
+
_[`ai-${i}`],
|
|
58
|
+
_[`gap-${p}`],
|
|
59
|
+
_[`fd-${r}`],
|
|
60
|
+
k
|
|
26
61
|
),
|
|
27
|
-
...
|
|
28
|
-
children:
|
|
62
|
+
...g,
|
|
63
|
+
children: e
|
|
29
64
|
}
|
|
30
65
|
);
|
|
31
66
|
export {
|
|
32
|
-
|
|
67
|
+
d as Flex
|
|
33
68
|
};
|
|
@@ -1,305 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import le from "../../../node_modules/classnames/index.js";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { M as A } from "../../../FilterWithSave-Bp6rH8Pe.js";
|
|
3
|
+
import "../../Modal/ui/Modal.js";
|
|
4
|
+
import "../../Flex/ui/Flex.js";
|
|
5
|
+
import "../../Input/ui/Input.js";
|
|
6
|
+
import "../../Button/ui/Button.js";
|
|
7
|
+
import "../../NewIcon/ui/NewIcon.js";
|
|
8
|
+
import "../utils/reg.js";
|
|
9
|
+
import "../../CheckBox/CheckBox.js";
|
|
10
|
+
import "../../TextArea/TextArea.js";
|
|
11
|
+
import "../../../index-rKuIKazb.js";
|
|
13
12
|
import "../../mobileButton/ui/MobileButton.js";
|
|
14
13
|
import "../../DestinationTab/ui/DestinationTab.js";
|
|
15
14
|
import "../../RoundButton/ui/RoundButton.js";
|
|
16
15
|
import "../../Tag/ui/Tag.js";
|
|
17
16
|
import "../../Switcher/ui/Switcher.js";
|
|
18
17
|
import "../../Text/ui/Text.js";
|
|
19
|
-
import "../../TabSwitcher/ui/TabSwitcher.js";
|
|
20
18
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
21
19
|
import "../../MetroTag/ui/MetroTag.js";
|
|
22
|
-
import "../../LotCard/ui/LotCard.js";
|
|
23
20
|
import "../../Select/ui/Select.js";
|
|
24
|
-
import
|
|
25
|
-
import "../../SortSelect/ui/SortSelect.js";
|
|
21
|
+
import "../../../shared/useClientWidth.js";
|
|
26
22
|
import "../../SliderNavigation/ui/SliderNavigation.js";
|
|
27
23
|
import "../../LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
28
24
|
import "../../TabSelect/ui/TabSelect.js";
|
|
29
|
-
import "../../FilterWithSave/ui/FilterWithSave.js";
|
|
30
25
|
import "../../CheckBoxNew/CheckBoxNew.js";
|
|
31
26
|
import "../../CheckboxSelect/ui/CheckboxSelect.js";
|
|
32
|
-
import
|
|
33
|
-
const ne = le.bind(t), se = "Я принимаю условия Политики обработки и защиты персональных данных, даю согласия на обработку персональных данных", Ae = ({
|
|
34
|
-
isFormOpen: N,
|
|
35
|
-
setIsFormOpen: _,
|
|
36
|
-
isNews: a,
|
|
37
|
-
title: S,
|
|
38
|
-
isEmail: z,
|
|
39
|
-
isPhone: I,
|
|
40
|
-
isTextArea: q,
|
|
41
|
-
telegramLink: w = "https://t.me/stone_developer",
|
|
42
|
-
isRequiredPhone: g = !0,
|
|
43
|
-
isRequiredEmail: d = !1,
|
|
44
|
-
isRequiredPhoneOrEmail: B,
|
|
45
|
-
textAreaPlaceholder: W,
|
|
46
|
-
subTitle: $,
|
|
47
|
-
submitHandler: F,
|
|
48
|
-
modalWidth: L = "442px",
|
|
49
|
-
rowsTextArea: P = 2,
|
|
50
|
-
advCheckBox: l = { text: se, isRequired: !0 },
|
|
51
|
-
isAdvCheckBox: j,
|
|
52
|
-
addTitleClassName: H,
|
|
53
|
-
createPortalObj: R,
|
|
54
|
-
telegramClickHandler: A = () => null,
|
|
55
|
-
blurHandler: x,
|
|
56
|
-
block_name: m,
|
|
57
|
-
emitCheckBox: c,
|
|
58
|
-
emitAdvCheckBox: p
|
|
59
|
-
}) => {
|
|
60
|
-
const {
|
|
61
|
-
register: n,
|
|
62
|
-
handleSubmit: V,
|
|
63
|
-
reset: D,
|
|
64
|
-
control: G,
|
|
65
|
-
watch: s,
|
|
66
|
-
formState: { errors: r }
|
|
67
|
-
} = E(), k = !!s("email"), C = s("personalCheckBox"), y = s("advCheckBox");
|
|
68
|
-
M(() => {
|
|
69
|
-
typeof C < "u" && c && c();
|
|
70
|
-
}, [c, C]), M(() => {
|
|
71
|
-
typeof y < "u" && p && p();
|
|
72
|
-
}, [p, y]);
|
|
73
|
-
const { isMobile: J, currentClientWidth: K } = ie(), O = s("personalCheckBox"), Q = s("advCheckBox"), U = (o) => {
|
|
74
|
-
F(o), D();
|
|
75
|
-
}, u = (o, { action_element_status: h, action_element: X }) => {
|
|
76
|
-
x && x({
|
|
77
|
-
e: o,
|
|
78
|
-
analyticParams: { action_element: X, action_element_status: h, block_name: m }
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
return K ? /* @__PURE__ */ e(
|
|
82
|
-
Y,
|
|
83
|
-
{
|
|
84
|
-
additionalClass: t.modal,
|
|
85
|
-
additionalClassModalBody: t.modalBody,
|
|
86
|
-
createPortalObj: R,
|
|
87
|
-
isOpen: N,
|
|
88
|
-
isTransparentBack: !0,
|
|
89
|
-
emitIsOpen: () => _(!1),
|
|
90
|
-
opacity: 0.7,
|
|
91
|
-
children: /* @__PURE__ */ i(
|
|
92
|
-
"div",
|
|
93
|
-
{
|
|
94
|
-
className: t.root,
|
|
95
|
-
style: { width: J ? "100%" : L },
|
|
96
|
-
"data-testid": "modal_window",
|
|
97
|
-
children: [
|
|
98
|
-
/* @__PURE__ */ e(
|
|
99
|
-
"div",
|
|
100
|
-
{
|
|
101
|
-
className: ne(t.title, H),
|
|
102
|
-
dangerouslySetInnerHTML: { __html: S ?? "Оставить обращение" }
|
|
103
|
-
}
|
|
104
|
-
),
|
|
105
|
-
a && /* @__PURE__ */ i("div", { className: t.telegramWrapper, children: [
|
|
106
|
-
/* @__PURE__ */ e(
|
|
107
|
-
"a",
|
|
108
|
-
{
|
|
109
|
-
className: t.telegramLink,
|
|
110
|
-
href: w,
|
|
111
|
-
target: "_blank",
|
|
112
|
-
"data-testid": "modal_telegram_link",
|
|
113
|
-
children: /* @__PURE__ */ i(
|
|
114
|
-
"div",
|
|
115
|
-
{
|
|
116
|
-
className: t.telegram,
|
|
117
|
-
onClick: A,
|
|
118
|
-
children: [
|
|
119
|
-
/* @__PURE__ */ e("div", { children: "Подписаться в Telegram" }),
|
|
120
|
-
/* @__PURE__ */ e(v, { name: "telegram" })
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
)
|
|
124
|
-
}
|
|
125
|
-
),
|
|
126
|
-
/* @__PURE__ */ e("div", { className: t.orText, children: "или" })
|
|
127
|
-
] }),
|
|
128
|
-
!a && /* @__PURE__ */ e(
|
|
129
|
-
"div",
|
|
130
|
-
{
|
|
131
|
-
className: t.description,
|
|
132
|
-
dangerouslySetInnerHTML: {
|
|
133
|
-
__html: $ && !a ? "Оставьте номер телефона для получения консультации" : `${/* @__PURE__ */ e("div", { children: "привет" })}`
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
),
|
|
137
|
-
/* @__PURE__ */ i("form", { onSubmit: V(U), children: [
|
|
138
|
-
/* @__PURE__ */ i(Z, { className: t.inputWrapper, children: [
|
|
139
|
-
/* @__PURE__ */ e(
|
|
140
|
-
f,
|
|
141
|
-
{
|
|
142
|
-
width: "full",
|
|
143
|
-
size_s: "large",
|
|
144
|
-
variant: "light",
|
|
145
|
-
placeholder: "Введите имя",
|
|
146
|
-
"data-testid": "modal_name",
|
|
147
|
-
...n("name", { required: !0, pattern: te }),
|
|
148
|
-
onBlur: (o) => u(o, {
|
|
149
|
-
action_element_status: r.name ? "error" : "success",
|
|
150
|
-
action_element: `input_${m}_name`
|
|
151
|
-
}),
|
|
152
|
-
error: !!r.name
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
I && /* @__PURE__ */ e(
|
|
156
|
-
ee,
|
|
157
|
-
{
|
|
158
|
-
name: "phone",
|
|
159
|
-
control: G,
|
|
160
|
-
rules: {
|
|
161
|
-
required: d || g || B && !k,
|
|
162
|
-
pattern: { value: re, message: "" }
|
|
163
|
-
},
|
|
164
|
-
defaultValue: "",
|
|
165
|
-
render: ({ field: o }) => /* @__PURE__ */ e(
|
|
166
|
-
f,
|
|
167
|
-
{
|
|
168
|
-
inputMode: "numeric",
|
|
169
|
-
isPhoneIMask: !0,
|
|
170
|
-
...o,
|
|
171
|
-
width: "full",
|
|
172
|
-
"data-testid": "phone_modal",
|
|
173
|
-
type: "tel",
|
|
174
|
-
error: !!r.phone,
|
|
175
|
-
size_s: "large",
|
|
176
|
-
variant: "light",
|
|
177
|
-
onBlur: (h) => u(h, {
|
|
178
|
-
action_element_status: r.phone ? "error" : "success",
|
|
179
|
-
action_element: `input_${m}_phone`
|
|
180
|
-
})
|
|
181
|
-
}
|
|
182
|
-
)
|
|
183
|
-
}
|
|
184
|
-
),
|
|
185
|
-
z && /* @__PURE__ */ e(
|
|
186
|
-
f,
|
|
187
|
-
{
|
|
188
|
-
width: "full",
|
|
189
|
-
size_s: "large",
|
|
190
|
-
variant: "light",
|
|
191
|
-
placeholder: "Введите email",
|
|
192
|
-
"data-testid": "modal_email",
|
|
193
|
-
...n("email", {
|
|
194
|
-
required: d || B && !k,
|
|
195
|
-
pattern: oe
|
|
196
|
-
}),
|
|
197
|
-
error: !!r.email,
|
|
198
|
-
onBlur: (o) => u(o, {
|
|
199
|
-
action_element_status: r.email ? "error" : "success",
|
|
200
|
-
action_element: `input_${m}_email`
|
|
201
|
-
})
|
|
202
|
-
}
|
|
203
|
-
),
|
|
204
|
-
q && /* @__PURE__ */ e(
|
|
205
|
-
ae,
|
|
206
|
-
{
|
|
207
|
-
"data-testid": "modal_textarea",
|
|
208
|
-
placeholder: W,
|
|
209
|
-
rows: P,
|
|
210
|
-
width: "full",
|
|
211
|
-
...n("textarea")
|
|
212
|
-
}
|
|
213
|
-
),
|
|
214
|
-
l && !a && j && /* @__PURE__ */ e(
|
|
215
|
-
T,
|
|
216
|
-
{
|
|
217
|
-
"data-testid": "modal_advCheckBox",
|
|
218
|
-
isChecked: Q,
|
|
219
|
-
error: !!r.advCheckBox,
|
|
220
|
-
text: l.text,
|
|
221
|
-
...n("advCheckBox", { required: l == null ? void 0 : l.isRequired })
|
|
222
|
-
}
|
|
223
|
-
),
|
|
224
|
-
/* @__PURE__ */ i(
|
|
225
|
-
T,
|
|
226
|
-
{
|
|
227
|
-
"data-testid": "modal_personalCheckBox",
|
|
228
|
-
isChecked: O,
|
|
229
|
-
error: !!r.personalCheckBox,
|
|
230
|
-
...n("personalCheckBox", { required: !a }),
|
|
231
|
-
children: [
|
|
232
|
-
a && /* @__PURE__ */ i("div", { className: t.checkboxText, children: [
|
|
233
|
-
"Согласен(-на)",
|
|
234
|
-
" ",
|
|
235
|
-
/* @__PURE__ */ e(
|
|
236
|
-
"a",
|
|
237
|
-
{
|
|
238
|
-
className: t.linkPolicy,
|
|
239
|
-
href: "/documents/soglasie-na-rassylki",
|
|
240
|
-
children: "получать новости, информацию по сделке и рекламу"
|
|
241
|
-
}
|
|
242
|
-
),
|
|
243
|
-
" ",
|
|
244
|
-
"от Stone"
|
|
245
|
-
] }),
|
|
246
|
-
!a && /* @__PURE__ */ i("div", { className: t.checkboxText, children: [
|
|
247
|
-
"Я принимаю условия",
|
|
248
|
-
" ",
|
|
249
|
-
/* @__PURE__ */ e(
|
|
250
|
-
"a",
|
|
251
|
-
{
|
|
252
|
-
className: t.linkPolicy,
|
|
253
|
-
href: "/documents/docs",
|
|
254
|
-
children: "Политики обработки и защиты персональных данных"
|
|
255
|
-
}
|
|
256
|
-
),
|
|
257
|
-
", даю согласия на обработку персональных данных"
|
|
258
|
-
] })
|
|
259
|
-
]
|
|
260
|
-
}
|
|
261
|
-
),
|
|
262
|
-
/* @__PURE__ */ e(
|
|
263
|
-
b,
|
|
264
|
-
{
|
|
265
|
-
"data-testid": "modal_submit",
|
|
266
|
-
variant: "blue",
|
|
267
|
-
width: "full",
|
|
268
|
-
type: "submit",
|
|
269
|
-
size: "large",
|
|
270
|
-
as: "button",
|
|
271
|
-
additionalClass: t.modalBtn,
|
|
272
|
-
disabled: !!r.name || !!r.phone && g || !!r.email && d || !!r.advCheckBox && (l == null ? void 0 : l.isRequired) || !!r.personalCheckBox && !a,
|
|
273
|
-
children: "Отправить запрос"
|
|
274
|
-
}
|
|
275
|
-
)
|
|
276
|
-
] }),
|
|
277
|
-
/* @__PURE__ */ e(
|
|
278
|
-
b,
|
|
279
|
-
{
|
|
280
|
-
additionalClass: t.btn,
|
|
281
|
-
onClick: () => _(!1),
|
|
282
|
-
as: "button",
|
|
283
|
-
variant: "gray",
|
|
284
|
-
type: "button",
|
|
285
|
-
size: "small",
|
|
286
|
-
children: /* @__PURE__ */ e(
|
|
287
|
-
v,
|
|
288
|
-
{
|
|
289
|
-
name: "close",
|
|
290
|
-
size: "16",
|
|
291
|
-
color: "#141416"
|
|
292
|
-
}
|
|
293
|
-
)
|
|
294
|
-
}
|
|
295
|
-
)
|
|
296
|
-
] })
|
|
297
|
-
]
|
|
298
|
-
}
|
|
299
|
-
)
|
|
300
|
-
}
|
|
301
|
-
) : null;
|
|
302
|
-
};
|
|
27
|
+
import "react";
|
|
303
28
|
export {
|
|
304
|
-
|
|
29
|
+
A as ModalForm
|
|
305
30
|
};
|