stone-kit 0.0.875 → 0.0.877
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/Router.js +9 -9
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/bind.js +4 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/components/Button/ui/Button.js +44 -73
- package/dist/components/CheckBox/CheckBox.js +35 -46
- package/dist/components/CheckBoxNew/CheckBoxNew.js +19 -23
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +24 -31
- package/dist/components/DestinationTab/ui/DestinationTab.js +35 -48
- package/dist/components/FieldInput/ui/FieldInput.js +7 -10
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +61 -5
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +266 -7
- package/dist/components/Flex/ui/Flex.js +26 -61
- package/dist/components/FormModal/ui/ModalForm.js +289 -14
- package/dist/components/GroupedInput/ui/GroupedInputs.js +5 -6
- package/dist/components/Input/ui/Input.js +74 -3307
- package/dist/components/Logo/ui/Logo.js +19 -31
- package/dist/components/Logo/ui/Logo.types.js +18 -10
- package/dist/components/LotCard/hooks/useLotCard.js +125 -11
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.js +150 -9
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +31 -58
- package/dist/components/MetroLabel/ui/MetroLabel.js +19 -24
- package/dist/components/MetroTag/ui/MetroTag.js +59 -72
- package/dist/components/Modal/ui/Modal.js +33 -38
- package/dist/components/ModalSuccess/ModalSuccess.js +26 -35
- 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 +141 -301
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +5 -15
- package/dist/components/RoundButton/ui/RoundButton.js +42 -60
- package/dist/components/Select/ui/Category.js +30 -29
- package/dist/components/Select/ui/Option.js +52 -5
- package/dist/components/Select/ui/Select.js +24 -23
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +27 -28
- package/dist/components/SortSelect/hooks/useSortSelect.js +59 -4
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.js +114 -9
- package/dist/components/SummarySelect/ui/SummarySelect.js +59 -69
- package/dist/components/Switcher/ui/Switcher.js +13 -24
- package/dist/components/TabSelect/ui/TabSelect.js +28 -34
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +84 -7
- package/dist/components/Tag/ui/Tag.js +19 -67
- package/dist/components/Text/ui/Text.js +12 -13
- package/dist/components/TextArea/TextArea.js +11 -14
- package/dist/components/ZoomControls/ui/ZoomControls.js +8 -11
- package/dist/components/mobileButton/ui/MobileButton.js +34 -39
- package/dist/layout/Layout.js +7 -8
- package/dist/layout/components/Header/Header.js +41 -44
- package/dist/layout/components/Menu.js +111 -6
- package/dist/main.js +46 -42
- package/dist/node_modules/@remix-run/router/dist/router.js +431 -0
- package/dist/node_modules/classnames/bind.js +42 -0
- package/dist/{index-rKuIKazb.js → node_modules/classnames/index.js} +12 -15
- package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +35 -0
- package/dist/node_modules/imask/esm/controls/html-input-mask-element.js +31 -0
- package/dist/node_modules/imask/esm/controls/html-mask-element.js +48 -0
- package/dist/node_modules/imask/esm/controls/input-history.js +30 -0
- package/dist/node_modules/imask/esm/controls/input.js +224 -0
- package/dist/node_modules/imask/esm/controls/mask-element.js +43 -0
- package/dist/node_modules/imask/esm/core/action-details.js +51 -0
- package/dist/node_modules/imask/esm/core/change-details.js +36 -0
- package/dist/node_modules/imask/esm/core/continuous-tail-details.js +44 -0
- package/dist/node_modules/imask/esm/core/holder.js +6 -0
- package/dist/node_modules/imask/esm/core/utils.js +80 -0
- package/dist/node_modules/imask/esm/index.js +50 -0
- package/dist/node_modules/imask/esm/masked/base.js +257 -0
- package/dist/node_modules/imask/esm/masked/date.js +118 -0
- package/dist/node_modules/imask/esm/masked/dynamic.js +224 -0
- package/dist/node_modules/imask/esm/masked/enum.js +70 -0
- package/dist/node_modules/imask/esm/masked/factory.js +51 -0
- package/dist/node_modules/imask/esm/masked/function.js +23 -0
- package/dist/node_modules/imask/esm/masked/number.js +215 -0
- package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +110 -0
- package/dist/node_modules/imask/esm/masked/pattern/cursor.js +102 -0
- package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js +103 -0
- package/dist/node_modules/imask/esm/masked/pattern/input-definition.js +134 -0
- package/dist/node_modules/imask/esm/masked/pattern.js +339 -0
- package/dist/node_modules/imask/esm/masked/pipe.js +23 -0
- package/dist/node_modules/imask/esm/masked/range.js +82 -0
- package/dist/node_modules/imask/esm/masked/regexp.js +21 -0
- package/dist/node_modules/imask/esm/masked/repeat.js +106 -0
- package/dist/node_modules/object-assign/index.js +55 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +55 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +53 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +330 -0
- package/dist/node_modules/prop-types/index.js +15 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +11 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +79 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +1062 -0
- package/dist/node_modules/react-imask/esm/input.js +25 -0
- package/dist/node_modules/react-imask/esm/mixin.js +131 -0
- package/dist/node_modules/react-router/dist/index.js +486 -0
- package/dist/node_modules/react-router-dom/dist/index.js +424 -0
- package/dist/pages/ButtonsPage/ButtonState/ButtonState.js +1 -1
- package/dist/pages/ButtonsPage/Buttons.js +54 -62
- package/dist/pages/CheckboxPage/CheckboxPage.js +47 -51
- package/dist/pages/FormsPage/FormsPage.js +31 -32
- package/dist/pages/HomePage/HomePage.js +3 -4
- package/dist/pages/IconsPage/IconsPage.js +12 -10
- package/dist/pages/InputPage/InputPage.js +17 -12
- package/dist/pages/LogoPage/LogoPage.js +17 -14
- package/dist/pages/LotsPage/LotsPage.js +15 -15
- package/dist/pages/ModalsPage/ModalPage.js +19 -14
- package/dist/pages/SelectPage/SelectPage.js +42 -41
- package/dist/pages/TabsPage/TabsPage.js +49 -51
- package/dist/pages/TagsPage/TagsPage.js +10 -7
- package/dist/src/components/Button/ui/Button.module.scss.js +49 -0
- package/dist/src/components/CheckBox/s.module.scss.js +24 -0
- package/dist/src/components/CheckBoxNew/s.module.scss.js +13 -0
- package/dist/src/components/CheckboxSelect/ui/s.module.scss.js +19 -0
- package/dist/src/components/DestinationTab/ui/DestinationTab.module.scss.js +23 -0
- package/dist/src/components/FieldInput/ui/FieldInput.module.scss.js +11 -0
- package/dist/src/components/FilterWithSave/ui/s.module.scss.js +39 -0
- package/dist/src/components/Flex/ui/Flex.module.scss.js +41 -0
- package/dist/src/components/FormModal/ui/ModalForm.module.scss.js +31 -0
- package/dist/src/components/GroupedInput/ui/GroupedInputs.module.scss.js +7 -0
- package/dist/src/components/Input/ui/Input.module.scss.js +43 -0
- package/dist/src/components/Logo/assets/LogoBlack.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoDom.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoNewDom.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoNewOffice.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoOffice.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoRealty.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoValue.svg.js +4 -0
- package/dist/src/components/Logo/assets/LogoWhite.svg.js +4 -0
- package/dist/src/components/Logo/ui/Logo.module.scss.js +29 -0
- package/dist/src/components/LotCard/assets/testLot.webp.js +4 -0
- package/dist/src/components/LotCard/ui/LotCard.module.scss.js +71 -0
- package/dist/src/components/LotCardSkeleton/ui/LotCardSkeleton.module.scss.js +59 -0
- package/dist/src/components/MetroLabel/ui/MetroLabel.module.scss.js +15 -0
- package/dist/src/components/MetroTag/ui/MetroTag.module.scss.js +31 -0
- package/dist/src/components/Modal/ui/Modal.module.scss.js +15 -0
- package/dist/src/components/ModalSuccess/styles.module.scss.js +23 -0
- package/dist/src/components/NewIcon/assets/ArrowLong.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/ArrowShort.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Auto.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Building.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Burger.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/BurgerClose.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Call.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Callback.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Case.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Check.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Circle.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Close.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/DirectionDown.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Download.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Filter.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Food.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Fullscreen.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Heart.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Layers.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/LayersFilled.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Loader.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Lock.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Metro.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Minus.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/MinusCheck.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Moon.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Park.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Pedestrian.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Phone.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/PhoneFilled.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Pin.svg.js +10 -0
- package/dist/{PinTrans-D6OZq76b.js → src/components/NewIcon/assets/PinTrans.svg.js} +4 -4
- package/dist/src/components/NewIcon/assets/Play.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Play2.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Plus.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Redo.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Ruble.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Search.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/SelectChecked.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/SelectUnchecked.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Share.svg.js +10 -0
- package/dist/{SmallFilter-C-VKnbkP.js → src/components/NewIcon/assets/SmallFilter.svg.js} +3 -3
- package/dist/src/components/NewIcon/assets/Sport.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/SquareMeter.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Star.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/StarFilled.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Sun.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Telegram.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/Timer.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/TwoArrows.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/User.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/WhatsApp.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/WithoutDecor.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/arrowRight.svg.js +10 -0
- package/dist/src/components/NewIcon/assets/mail.svg.js +10 -0
- package/dist/src/components/NewIcon/ui/NewIcon.module.scss.js +4 -0
- package/dist/src/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.module.scss.js +25 -0
- package/dist/src/components/RoundButton/ui/RoundButton.module.scss.js +29 -0
- package/dist/src/components/Select/ui/Select.module.scss.js +52 -0
- package/dist/src/components/SliderNavigation/ui/SliderNavigation.module.scss.js +7 -0
- package/dist/src/components/SortSelect/ui/SortSelect.module.scss.js +41 -0
- package/dist/src/components/SummarySelect/ui/SummarySelect.module.scss.js +25 -0
- package/dist/src/components/Switcher/ui/Switcher.module.scss.js +27 -0
- package/dist/src/components/TabSelect/ui/TabSelect.module.scss.js +17 -0
- package/dist/src/components/TabSwitcher/ui/TabSwitcher.module.scss.js +57 -0
- package/dist/src/components/Tag/ui/Tag.module.scss.js +70 -0
- package/dist/src/components/Text/ui/Text.module.scss.js +7 -0
- package/dist/src/components/TextArea/styles.module.scss.js +9 -0
- package/dist/src/components/ZoomControls/ui/ZoomControls.module.scss.js +11 -0
- package/dist/src/components/mobileButton/ui/MobileButton.module.scss.js +12 -0
- package/dist/src/layout/components/Header/s.module.scss.js +19 -0
- package/dist/src/layout/components/Menu.module.scss.js +9 -0
- package/dist/src/layout/style.module.scss.js +7 -0
- package/dist/src/pages/ButtonsPage/ButtonState/ButtonState.js +18 -0
- package/dist/{ButtonState.module-DtW3aevR.js → src/pages/ButtonsPage/ButtonState/ButtonState.module.scss.js} +4 -1
- package/dist/src/pages/ButtonsPage/ButtonsPage.module.scss.js +9 -0
- package/dist/src/pages/CheckboxPage/CheckboxPage.module.scss.js +13 -0
- package/dist/src/pages/FormsPage/FormsPage.module.scss.js +15 -0
- package/dist/src/pages/HomePage/HomePage.module.scss.js +7 -0
- package/dist/src/pages/IconsPage/IconsPage.module.scss.js +9 -0
- package/dist/src/pages/InputPage/InputPage.module.scss.js +4 -0
- package/dist/src/pages/LogoPage/LogoPage.module.scss.js +7 -0
- package/dist/src/pages/LotsPage/LotsPage.module.scss.js +13 -0
- package/dist/src/pages/ModalsPage/ModalPage.module.scss.js +4 -0
- package/dist/src/pages/SelectPage/SelectPage.module.scss.js +11 -0
- package/dist/src/pages/TabsPage/TabsPage.module.scss.js +17 -0
- package/dist/src/pages/TagsPage/TagsPage.module.scss.js +7 -0
- package/dist/src/stories/button.css.js +1 -0
- package/dist/src/stories/header.css.js +1 -0
- package/dist/src/stories/page.css.js +1 -0
- package/dist/stories/Button.js +24 -0
- package/dist/stories/Header.js +45 -0
- package/dist/stories/Page.js +59 -0
- package/dist/style.css +1 -1
- package/package.json +11 -6
- package/dist/FilterWithSave-Bp6rH8Pe.js +0 -2230
- package/dist/Menu-CgCfinVZ.js +0 -513
- package/dist/Option-BVIm7wOW.js +0 -83
- package/dist/index-DmANy9jd.js +0 -890
- package/dist/useSortSelect-CjZXLFOG.js +0 -80
|
@@ -1,30 +1,305 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import "../../Modal/ui/Modal.js";
|
|
4
|
-
import "../../Flex/ui/Flex.js";
|
|
5
|
-
import "../../Input/ui/Input.js";
|
|
6
|
-
import "
|
|
7
|
-
import "../../
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "../../
|
|
11
|
-
import "
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import t from "../../../src/components/FormModal/ui/ModalForm.module.scss.js";
|
|
3
|
+
import { Modal as Y } from "../../Modal/ui/Modal.js";
|
|
4
|
+
import { Flex as Z } from "../../Flex/ui/Flex.js";
|
|
5
|
+
import { Input as f } from "../../Input/ui/Input.js";
|
|
6
|
+
import { useForm as E, Controller as ee } from "../../../node_modules/react-hook-form/dist/index.esm.js";
|
|
7
|
+
import { Button as b } from "../../Button/ui/Button.js";
|
|
8
|
+
import { NewIcon as v } from "../../NewIcon/ui/NewIcon.js";
|
|
9
|
+
import { nameReg as te, phoneReg as re, emailReg as oe } from "../utils/reg.js";
|
|
10
|
+
import { CheckBox as T } from "../../CheckBox/CheckBox.js";
|
|
11
|
+
import { TextArea as ae } from "../../TextArea/TextArea.js";
|
|
12
|
+
import le from "../../../node_modules/classnames/index.js";
|
|
12
13
|
import "../../mobileButton/ui/MobileButton.js";
|
|
13
14
|
import "../../DestinationTab/ui/DestinationTab.js";
|
|
14
15
|
import "../../RoundButton/ui/RoundButton.js";
|
|
15
16
|
import "../../Tag/ui/Tag.js";
|
|
16
17
|
import "../../Switcher/ui/Switcher.js";
|
|
17
18
|
import "../../Text/ui/Text.js";
|
|
19
|
+
import "../../TabSwitcher/ui/TabSwitcher.js";
|
|
18
20
|
import "../../GroupedInput/ui/GroupedInputs.js";
|
|
19
21
|
import "../../MetroTag/ui/MetroTag.js";
|
|
22
|
+
import "../../LotCard/ui/LotCard.js";
|
|
20
23
|
import "../../Select/ui/Select.js";
|
|
21
|
-
import "../../../shared/useClientWidth.js";
|
|
24
|
+
import { useClientWidth as ie } from "../../../shared/useClientWidth.js";
|
|
25
|
+
import "../../SortSelect/ui/SortSelect.js";
|
|
22
26
|
import "../../SliderNavigation/ui/SliderNavigation.js";
|
|
23
27
|
import "../../LotCardSkeleton/ui/LotCardSkeleton.js";
|
|
24
28
|
import "../../TabSelect/ui/TabSelect.js";
|
|
29
|
+
import "../../FilterWithSave/ui/FilterWithSave.js";
|
|
25
30
|
import "../../CheckBoxNew/CheckBoxNew.js";
|
|
26
31
|
import "../../CheckboxSelect/ui/CheckboxSelect.js";
|
|
27
|
-
import "react";
|
|
32
|
+
import { useEffect as M } from "react";
|
|
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
|
+
};
|
|
28
303
|
export {
|
|
29
|
-
|
|
304
|
+
Ae as ModalForm
|
|
30
305
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, n = c.bind(o), p = ({ children: s, addClassName: t }) => /* @__PURE__ */ r("div", { className: n(o.root, t), children: s });
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import o from "../../../src/components/GroupedInput/ui/GroupedInputs.module.scss.js";
|
|
3
|
+
import m from "../../../node_modules/classnames/index.js";
|
|
4
|
+
const p = m.bind(o), n = ({ children: r, addClassName: s }) => /* @__PURE__ */ t("div", { className: p(o.root, s), children: r });
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
n as GroupedInputs
|
|
8
7
|
};
|