@scbt-ecom/ui 0.75.2 → 0.76.0
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/api.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/{index-CiahWWHr.js → index-F-RYAmDP.js} +740 -740
- package/dist/index-F-RYAmDP.js.map +1 -0
- package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/index.d.ts +4 -9
- package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/input/Input.d.ts +1 -1
- package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/maskInput/MaskInput.d.ts +1 -1
- package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/Select.d.ts +1 -1
- package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/switch/Switch.d.ts +1 -1
- package/dist/{shared → lib/shared}/ui/heading/Heading.d.ts +1 -1
- package/dist/{widgets → lib/widgets}/calculator/ui/calculatorFields/ui/FieldsGroup.d.ts +1 -1
- package/dist/{widgets → lib/widgets}/dynamicForm/DynamicForm.d.ts +1 -1
- package/dist/lib/widgets/model/helpers.d.ts +16 -0
- package/dist/{widgets → lib/widgets}/model/index.d.ts +0 -1
- package/dist/lib/widgets/model/types.d.ts +37 -0
- package/dist/static/static/info/helpCircle.svg +3 -3
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +2 -2
- package/dist/utils.d.ts +1 -1
- package/dist/validation.d.ts +1 -1
- package/dist/widget.d.ts +1 -1
- package/dist/widget.js +1668 -1668
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-CiahWWHr.js.map +0 -1
- package/dist/widgets/model/helpers.d.ts +0 -2
- package/dist/widgets/model/types.d.ts +0 -2
- package/dist/widgets/model/utils.d.ts +0 -10
- /package/dist/{configs → lib/configs}/index.d.ts +0 -0
- /package/dist/{configs → lib/configs}/tailwindConfigBase.d.ts +0 -0
- /package/dist/{configs → lib/configs}/tailwindPresets/extendsPreset.d.ts +0 -0
- /package/dist/{configs → lib/configs}/tailwindPresets/index.d.ts +0 -0
- /package/dist/{configs → lib/configs}/tailwindPresets/resetPreset.d.ts +0 -0
- /package/dist/{exports → lib/exports}/api.d.ts +0 -0
- /package/dist/{exports → lib/exports}/config.d.ts +0 -0
- /package/dist/{exports → lib/exports}/hooks.d.ts +0 -0
- /package/dist/{exports → lib/exports}/types.d.ts +0 -0
- /package/dist/{exports → lib/exports}/ui.d.ts +0 -0
- /package/dist/{exports → lib/exports}/utils.d.ts +0 -0
- /package/dist/{exports → lib/exports}/validation.d.ts +0 -0
- /package/dist/{exports → lib/exports}/widget.d.ts +0 -0
- /package/dist/{shared → lib/shared}/api/apiInstance.d.ts +0 -0
- /package/dist/{shared → lib/shared}/api/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/constants/designSystem/colors.d.ts +0 -0
- /package/dist/{shared → lib/shared}/constants/designSystem/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/constants/designSystem/others.d.ts +0 -0
- /package/dist/{shared → lib/shared}/constants/designSystem/typography.d.ts +0 -0
- /package/dist/{shared → lib/shared}/constants/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/useBoolean.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/useClickOutside.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/useControlledForm.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/useDebounce.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/useDevice.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/useFieldsProgress.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/useFloating.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/useObserveElements.d.ts +0 -0
- /package/dist/{shared → lib/shared}/hooks/useOverflow.d.ts +0 -0
- /package/dist/{shared → lib/shared}/types/deepPartial.d.ts +0 -0
- /package/dist/{shared → lib/shared}/types/dicriminatedUnion.d.ts +0 -0
- /package/dist/{shared → lib/shared}/types/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/types/keysOf.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/accordion/Accordion.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/accordion/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/accordion/model/helpers.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/accordion/ui/AccordionHeader.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/badge/Badge.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/badge/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/brandLogos/BrandLogos.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/brandLogos/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/breadcrumbs/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/button/Button.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/button/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/button/model/helpers.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/buttonIcon/ButtonIcon.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/buttonIcon/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/Calendar.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/model/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/model/utils.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/Day.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/DayButton.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/Footer.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/MonthCaption.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/Navigation.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/Weekday.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/model/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/model/types.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/model/utils.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/selectDate/SelectDate.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/selectDate/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/selectDate/ui/SelectList.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/selectDate/ui/Trigger.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/calendar/ui/selectDate/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/CarouselBase.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/CarouselNative.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/model/helpers.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/model/hooks/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/model/hooks/useArrowNavigation.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/model/hooks/useCarousel.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/model/hooks/useDotsNavigation.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/model/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/model/types.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/ArrowNavigationButton.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/CarouselContent.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/CarouselSlide.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/ContainerWithNavigation.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/DotsNavigations.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/slideVariants/SlideFullScreen.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/slideVariants/SlideOnlyImage.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/slideVariants/SlideProductCard.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/carousel/ui/slideVariants/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/customLink/CustomLink.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/customLink/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/customLink/model/helpers.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/floatButton/FloatButton.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/floatButton/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/autocomplete/Autocomplete.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/autocomplete/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/checkbox/CheckboxControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/checkbox/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/address/DadataAddress.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/address/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/address/query.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/auto/DadataAuto.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/auto/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/auto/query.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/country/DadataCountry.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/country/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/country/query.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/fio/DadataFio.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/fio/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/fio/query.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/helpers.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/party/DadataOrganization.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/party/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/party/query.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dadata/types.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dayPickerControl/dayPickerControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dayPickerControl/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dayPickerControl/model/constants.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dayPickerControl/model/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dayPickerControl/model/utils.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dayPickerControl/range.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/dayPickerControl/single.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/EditorControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/model/config.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/model/helper.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/model/types.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/ui/Editor.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/ui/Toolbar.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/ui/commands/SetColor.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/ui/commands/SetCoreCommands.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/ui/commands/SetHeadings.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/ui/commands/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/editor/ui/commands/setCustomLink.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/input/InputControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/input/MaskInputControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/input/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/inputCurrency/InputCurrencyControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/inputCurrency/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/inputCurrency/model/helpers.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/inputCurrency/model/useInputCurrency.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/inputCurrency/ui/MenuTrigger.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/inputCurrency/ui/OptionList.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/inputCurrency/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/inputOtp/InputOtpControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/inputOtp/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/radio/RadioGroupCardControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/radio/RadioGroupControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/radio/RadioGroupTabControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/radio/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/select/SelectControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/select/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/slider/SliderControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/slider/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/switch/SwitchControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/switch/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/textarea/TextareaControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/textarea/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/uploader/UploaderControl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/controlled/uploader/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/ui/MessageView.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/ui/fieldAttachment/FieldAttachment.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/ui/fieldAttachment/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/ui/fieldAttachment/ui/IconSlot.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/ui/fieldAttachment/ui/ValidateSlot.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/ui/fieldAttachment/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/autocomplete/Autocomplete.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/autocomplete/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/checkbox/Checkbox.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/checkbox/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/dayPicker/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/input/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/inputOtp/InputOtpBase.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/inputOtp/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/inputOtp/ui/InputOtpSlot.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/inputOtp/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/maskInput/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/maskInput/model/mask/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/maskInput/model/mask/utils.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/radio/RadioGroup.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/radio/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/radio/ui/AdditionalContent.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/radio/ui/RadioItemCard.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/radio/ui/RadioItemTab.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/radio/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/hooks/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/hooks/useSelectController.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/model/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/model/typeGuards.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/model/types.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/ui/Chip.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/ui/ChipList.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/ui/SelectItem.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/select/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/SliderBase.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/helpers/currency/getFormattedCurrency.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/helpers/currency/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/helpers/dates/getDayIntl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/helpers/dates/getIntlMonth.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/helpers/dates/getYearIntl.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/helpers/dates/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/helpers/formatNumber.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/helpers/getInputSliderSuffix.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/helpers/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/types.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/model/useLogarithmic.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/Slider.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/SliderAlgorithmic.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/hooks/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/hooks/useSliderAlgorithmic.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderMarks/SliderMarks.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderMarks/hooks/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderMarks/hooks/useSliderMarks.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderMarks/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderStep/SliderStep.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderStep/hooks/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderStep/hooks/useSliderStep.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/slider/ui/sliderStep/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/switch/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/textarea/Textarea.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/textarea/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/UploaderBase.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/model/helpers.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/model/hooks/useUploader.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/model/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/ui/UploaderFile.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/ui/UploaderFilename.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/ui/UploaderFiles.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/ui/UploaderInput.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/formElements/uncontrolled/uploader/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/heading/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/hint/Hint.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/hint/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/icon/Icon.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/icon/allowedIcons.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/icon/iconsMap.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/icon/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/icon/sprite.gen.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/keyboardShortcuts/KeyboardShortcuts.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/keyboardShortcuts/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/loader/Loader.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/loader/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/loader/model/helpers.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/modal/Modal.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/modal/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/modal/model/helpers.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/modal/ui/IframeModalContent.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/modal/ui/ModalHeader.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/notification/Notification.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/notification/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/notification/ui/CustomToast.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/pagination/Pagination.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/pagination/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/phoneView/PhoneView.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/phoneView/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/popover/Popover.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/popover/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/progressBar/ProgressBar.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/progressBar/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/providers/NotificationProvider.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/providers/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/responsiveContainer/ResponsiveContainer.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/responsiveContainer/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/skeleton/Skeleton.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/skeleton/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/slot/Slot.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/slot/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/slot/model/getElementRef.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/slot/model/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/slot/model/isSlottable.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/slot/model/mergeProps.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/slot/ui/SlotClone.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/slot/ui/Slottable.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/slot/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/tabSwitcher/TabsSwitcher.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/tabSwitcher/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/tabSwitcher/model/types.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/tabSwitcher/ui/TabContent.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/Desktop.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/Mobile.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/Table.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/TablePagination.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/model/TableUtils.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/model/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/model/types.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/ui/dataTableColumnHeader/DataTableColumnHeader.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/ui/dataTableColumnHeader/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/ui/editableCell/EditableCell.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/ui/editableCell/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/ui/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/ui/primitives/Primitives.d.ts +0 -0
- /package/dist/{shared → lib/shared}/ui/table/ui/primitives/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/utils/capitalize.d.ts +0 -0
- /package/dist/{shared → lib/shared}/utils/cn.d.ts +0 -0
- /package/dist/{shared → lib/shared}/utils/createPhoneNumber.d.ts +0 -0
- /package/dist/{shared → lib/shared}/utils/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/utils/isClient.d.ts +0 -0
- /package/dist/{shared → lib/shared}/utils/mergeRefs.d.ts +0 -0
- /package/dist/{shared → lib/shared}/utils/scrollToElement.d.ts +0 -0
- /package/dist/{shared → lib/shared}/utils/typeGuards.d.ts +0 -0
- /package/dist/{shared → lib/shared}/utils/uuid.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/base.constants.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/base.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/boolean.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/date.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/email.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/number.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/phone.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/regex.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/select.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/string.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/union.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/base/url.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/dadata/dadata.constants.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/dadata/dadata.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/dadata/fio.validators.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/dadata/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/messages.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/regExp.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/utils/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/utils/zodUtils.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/zodValidation/calendar.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/zodValidation/dadataFio.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/zodValidation/index.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/zodValidation/otpCode.d.ts +0 -0
- /package/dist/{shared → lib/shared}/validation/zodValidation/phone.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/advantages/Advantages.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/advantages/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/advantages/model/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/advantages/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/AuthProvider.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/model/helpers.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/ui/Esia.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/ui/MobileId.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/ui/ui/AuthWrapper.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/ui/ui/EsiaLogo.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/ui/ui/Links.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/authProvider/ui/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/banner/Banner.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/banner/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/banner/model/constants.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/banner/model/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/banner/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/banner/ui/banners/BannerImageFull.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/banner/ui/banners/BannerWithSeparateImg.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/banner/ui/banners/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/banner/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/benefit/Benefit.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/benefit/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/benefit/model/constants.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/benefit/model/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/benefit/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/benefit/ui/BenefitItem.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/breadcrumbs/Breadcrumb.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/breadcrumbs/hooks/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/breadcrumbs/hooks/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/breadcrumbs/hooks/useBreadcrumbs.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/breadcrumbs/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/buttonWithHandlers/ButtonWithHandlers.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/buttonWithHandlers/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/buttonWithHandlers/model/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/buttonWithHandlers/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/buttonWithHandlers/model/useButtonHandler.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/Calculator.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/CalculatorView.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/model/helpers.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/model/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/model/utils.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/CalculatorTabs.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorFields/CalculatorFields.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorFields/hooks/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorFields/hooks/useAdditionalSlider.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorFields/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorFields/ui/AdditionalSlider.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorFields/ui/CalculatorModal.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorFields/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorInfo/CalculatorInfo.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorInfo/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorInfo/ui/AssistHint.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorInfo/ui/CalculatedBlock.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorInfo/ui/CalculatorInfoHead.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/calculatorInfo/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/calculator/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/dynamicForm/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/dynamicForm/model/getDynamicSchema.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/dynamicForm/model/getFieldsProgress.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/dynamicForm/model/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/dynamicForm/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/fallbacksView/FallbacksView.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/fallbacksView/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/fallbacksView/model/helpers.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/fallbacksView/model/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/fallbacksView/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/fieldMapper/FieldMapper.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/fieldMapper/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/fieldMapper/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/Footer.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/ui/Copyright.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/ui/FooterLogo.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/ui/Ligal.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/ui/NavLinks.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/ui/PhonesBlock.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/ui/SiteMap.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/ui/SocialLinks.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/footer/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/header/Header.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/header/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/header/model/helpers.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/header/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/htmlParser/HTMLRenderer.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/htmlParser/baseHtmlParser.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/htmlParser/htmlParser.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/htmlParser/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/htmlParser/nodeHtmlParser.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/htmlParser/reactHtmlParser.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/interLinking/InterLinking.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/interLinking/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/interLinking/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/interLinking/ui/Column.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/interLinking/ui/ColumnGroup.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/interLinking/ui/LinksList.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/interLinking/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/longBanner/LongBanner.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/longBanner/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/longBanner/model/cva.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/longBanner/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/longBanner/ui/TextItem.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/longBanner/ui/TextList.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/longBanner/ui/Title.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/longBanner/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/queryClientProvider/QueryClientProvider.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/queryClientProvider/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/SeoHeader.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/hooks/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/hooks/useCategoryReducer/actions.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/hooks/useCategoryReducer/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/hooks/useCategoryReducer/reducer.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/hooks/useCategoryReducer/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/hooks/useCategoryReducer/useCategoryReducer.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/model/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/CategoriesDesktop.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/CategoryTabs.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/rootTab/RootTab.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/rootTab/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/tab/Tab.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/tab/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/tab/ui/content/TabContent.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/tab/ui/content/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/desktop/tab/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/mobile/CategoriesMobile.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/mobile/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/mobile/menu/Menu.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/mobile/menu/MenuItem.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/seoHeader/ui/mobile/menu/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/stepper/Stepper.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/stepper/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/stepper/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/stepper/ui/SingleStep.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/UsefulInfo.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/model/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/model/types.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/model/utils.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/RenderEntity.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/Tabs.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/documents/Documents.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/documents/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/documents/ui/document/Document.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/documents/ui/document/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/documents/ui/document/model/utils.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/html/Html.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/html/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/table/Table.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/table/index.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/table/model/utils.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/table/ui/DesktopHeadings.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/table/ui/DesktopRow.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/table/ui/MobileRow.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/table/ui/TableBody.d.ts +0 -0
- /package/dist/{widgets → lib/widgets}/usefulInfo/ui/subEntities/table/ui/index.d.ts +0 -0
package/dist/widget.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var yt = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var _e = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var kt = (t, e, r) => e in t ? yt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
-
var ae = (t, e, r) => kt(t, typeof e != "symbol" ? e + "" : e, r), we = (t, e, r) => e.has(t) ||
|
|
7
|
-
var h = (t, e, r) => (we(t, e, "read from private field"), r ? r.call(t) : e.get(t)), I = (t, e, r) => e.has(t) ?
|
|
6
|
+
var ae = (t, e, r) => kt(t, typeof e != "symbol" ? e + "" : e, r), we = (t, e, r) => e.has(t) || _e("Cannot " + r);
|
|
7
|
+
var h = (t, e, r) => (we(t, e, "read from private field"), r ? r.call(t) : e.get(t)), I = (t, e, r) => e.has(t) ? _e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), N = (t, e, r, o) => (we(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r), q = (t, e, r) => (we(t, e, "access private method"), r);
|
|
8
8
|
var pe = (t, e, r, o) => ({
|
|
9
9
|
set _(i) {
|
|
10
10
|
N(t, e, i, r);
|
|
@@ -13,22 +13,22 @@ var pe = (t, e, r, o) => ({
|
|
|
13
13
|
return h(t, e, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as Je, x as Ge, Q as wt, y as E, z as
|
|
16
|
+
import { S as Je, x as Ge, Q as wt, y as E, z as Re, E as Nt, F as vt, G as He, J as z, T as Ct, W as It, X as Tt, Y as Mt, Z as De, _ as Pe, $ as Et, a0 as Le, a1 as ze, a2 as Ot, j as n, R as S, H as P, q as Te, i as f, B as Me, M as Ft, v as et, U as Ee, a3 as St, r as Bt, n as tt, t as je, s as _t, A as oe, c as O, a4 as Oe, a5 as Rt, L as Ht, o as Fe } from "./index-F-RYAmDP.js";
|
|
17
17
|
import { T as j, c as d } from "./typeGuards-CSiImkUY.js";
|
|
18
|
+
import { u as G, g as se, b as rt, F as Dt, a as Pt } from "./useDebounce-BH0d8exl.js";
|
|
18
19
|
import * as le from "react";
|
|
19
|
-
import { useCallback as
|
|
20
|
-
import { scrollToElement as
|
|
21
|
-
import { i as
|
|
22
|
-
import { u as G, b as it, a as Vt, g as ke, F as At } from "./useDebounce-BH0d8exl.js";
|
|
20
|
+
import { useCallback as nt, useState as L, useEffect as be, createElement as ot, memo as Se, useMemo as ye, Fragment as Lt, useRef as Be, useReducer as zt, forwardRef as Qt } from "react";
|
|
21
|
+
import { scrollToElement as Vt, createPhoneNumber as ke, getUuid as Qe, capitalize as At } from "./utils.js";
|
|
22
|
+
import { i as it } from "./isClient-C9aZtt2Q.js";
|
|
23
23
|
import { z as at, Z as dt } from "./index-BcOxdcOI.js";
|
|
24
24
|
import { au as lt } from "./utils-CaWgHX_C.js";
|
|
25
|
-
import {
|
|
25
|
+
import { u as qt, a as Ut } from "./useFieldsProgress-dcSmd8dw.js";
|
|
26
26
|
import { createPortal as ut } from "react-dom";
|
|
27
|
-
var
|
|
27
|
+
var R, $e, Wt = ($e = class extends Je {
|
|
28
28
|
constructor(e = {}) {
|
|
29
29
|
super();
|
|
30
|
-
I(this,
|
|
31
|
-
this.config = e, N(this,
|
|
30
|
+
I(this, R);
|
|
31
|
+
this.config = e, N(this, R, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
33
|
build(e, r, o) {
|
|
34
34
|
const i = r.queryKey, a = r.queryHash ?? Ge(i, r);
|
|
@@ -43,14 +43,14 @@ var _, $e, Wt = ($e = class extends Je {
|
|
|
43
43
|
}), this.add(l)), l;
|
|
44
44
|
}
|
|
45
45
|
add(e) {
|
|
46
|
-
h(this,
|
|
46
|
+
h(this, R).has(e.queryHash) || (h(this, R).set(e.queryHash, e), this.notify({
|
|
47
47
|
type: "added",
|
|
48
48
|
query: e
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
remove(e) {
|
|
52
|
-
const r = h(this,
|
|
53
|
-
r && (e.destroy(), r === e && h(this,
|
|
52
|
+
const r = h(this, R).get(e.queryHash);
|
|
53
|
+
r && (e.destroy(), r === e && h(this, R).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
56
|
E.batch(() => {
|
|
@@ -60,20 +60,20 @@ var _, $e, Wt = ($e = class extends Je {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
get(e) {
|
|
63
|
-
return h(this,
|
|
63
|
+
return h(this, R).get(e);
|
|
64
64
|
}
|
|
65
65
|
getAll() {
|
|
66
|
-
return [...h(this,
|
|
66
|
+
return [...h(this, R).values()];
|
|
67
67
|
}
|
|
68
68
|
find(e) {
|
|
69
69
|
const r = { exact: !0, ...e };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(o) =>
|
|
71
|
+
(o) => Re(r, o)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
findAll(e = {}) {
|
|
75
75
|
const r = this.getAll();
|
|
76
|
-
return Object.keys(e).length > 0 ? r.filter((o) =>
|
|
76
|
+
return Object.keys(e).length > 0 ? r.filter((o) => Re(e, o)) : r;
|
|
77
77
|
}
|
|
78
78
|
notify(e) {
|
|
79
79
|
E.batch(() => {
|
|
@@ -96,7 +96,7 @@ var _, $e, Wt = ($e = class extends Je {
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, R = new WeakMap(), $e), H, T, J, D, U, Ze, Kt = (Ze = class extends Nt {
|
|
100
100
|
constructor(e) {
|
|
101
101
|
super();
|
|
102
102
|
I(this, D);
|
|
@@ -134,7 +134,7 @@ var _, $e, Wt = ($e = class extends Je {
|
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(e) {
|
|
137
|
-
var a, l, u, m, x, p, c, b, g, k, w, B,
|
|
137
|
+
var a, l, u, m, x, p, c, b, g, k, w, B, _, V, C, M, A, X, xe, ie;
|
|
138
138
|
const r = () => {
|
|
139
139
|
q(this, D, U).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
@@ -187,8 +187,8 @@ var _, $e, Wt = ($e = class extends Je {
|
|
|
187
187
|
)), await ((B = (w = this.options).onSettled) == null ? void 0 : B.call(w, v, null, e, this.state.context)), q(this, D, U).call(this, { type: "success", data: v }), v;
|
|
188
188
|
} catch (v) {
|
|
189
189
|
try {
|
|
190
|
-
throw await ((V = (
|
|
191
|
-
|
|
190
|
+
throw await ((V = (_ = h(this, T).config).onError) == null ? void 0 : V.call(
|
|
191
|
+
_,
|
|
192
192
|
v,
|
|
193
193
|
e,
|
|
194
194
|
this.state.context,
|
|
@@ -409,7 +409,7 @@ function Ve(t) {
|
|
|
409
409
|
w = !0;
|
|
410
410
|
}), e.signal)
|
|
411
411
|
});
|
|
412
|
-
},
|
|
412
|
+
}, _ = Ct(e.options, e.fetchOptions), V = async (C, M, A) => {
|
|
413
413
|
if (w)
|
|
414
414
|
return Promise.reject();
|
|
415
415
|
if (M == null && C.pages.length)
|
|
@@ -422,7 +422,7 @@ function Ve(t) {
|
|
|
422
422
|
meta: e.options.meta
|
|
423
423
|
};
|
|
424
424
|
B(X);
|
|
425
|
-
const xe = await
|
|
425
|
+
const xe = await _(
|
|
426
426
|
X
|
|
427
427
|
), { maxPages: ie } = e.options, v = A ? It : Tt;
|
|
428
428
|
return {
|
|
@@ -684,157 +684,7 @@ var y, W, K, ee, te, $, re, ne, Ye, Yt = (Ye = class {
|
|
|
684
684
|
h(this, y).clear(), h(this, W).clear();
|
|
685
685
|
}
|
|
686
686
|
}, y = new WeakMap(), W = new WeakMap(), K = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), $ = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), Ye);
|
|
687
|
-
const Jt =
|
|
688
|
-
"header",
|
|
689
|
-
"footer",
|
|
690
|
-
"interLinking",
|
|
691
|
-
"stepper",
|
|
692
|
-
"usefulInfo",
|
|
693
|
-
"longBanner",
|
|
694
|
-
"banner",
|
|
695
|
-
"benefit",
|
|
696
|
-
"form",
|
|
697
|
-
"seoHeader",
|
|
698
|
-
"calculator"
|
|
699
|
-
], s = Jt.reduce(
|
|
700
|
-
(t, e) => (t[e] = e, t),
|
|
701
|
-
{}
|
|
702
|
-
), Gt = ["getFioSchema"], mt = (t, e, r) => {
|
|
703
|
-
const o = t[e];
|
|
704
|
-
if (j.isNil(o))
|
|
705
|
-
throw new Error(`validation for type ${String(e)} not found`);
|
|
706
|
-
if (!j.isFunction(o))
|
|
707
|
-
throw new Error(`Cannot generate ${String(e)} because is not a function`);
|
|
708
|
-
return o(r);
|
|
709
|
-
}, er = (t, e) => mt(at.base, t, e), tr = (t, e) => mt(at.dadata, t, e), xt = (t) => {
|
|
710
|
-
const r = ((t == null ? void 0 : t.map((o) => ({ name: o.args.name, validation: o.args.validation }))) ?? []).reduce((o, i) => {
|
|
711
|
-
const a = Gt.includes(i.validation.type) ? tr(
|
|
712
|
-
i.validation.type,
|
|
713
|
-
i.validation.args
|
|
714
|
-
) : er(
|
|
715
|
-
i.validation.type,
|
|
716
|
-
i.validation.args
|
|
717
|
-
);
|
|
718
|
-
return o[i.name] = a, o;
|
|
719
|
-
}, {});
|
|
720
|
-
return lt(r);
|
|
721
|
-
}, rr = (t) => rt(() => {
|
|
722
|
-
switch (t.handler) {
|
|
723
|
-
case "navigate": {
|
|
724
|
-
const { url: r, target: o, rel: i } = t;
|
|
725
|
-
ot && (window == null || window.open(r, o, i));
|
|
726
|
-
break;
|
|
727
|
-
}
|
|
728
|
-
case "scroll": {
|
|
729
|
-
const { widgetId: r } = t ?? "";
|
|
730
|
-
zt({ widgetId: r });
|
|
731
|
-
break;
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
}, [t]), Z = ({ handlerOptions: t, className: e, ...r }) => {
|
|
735
|
-
const o = rr(t);
|
|
736
|
-
return /* @__PURE__ */ n.jsx(Te, { className: d(e), onClick: o, ...r, children: r.children });
|
|
737
|
-
}, nr = O(
|
|
738
|
-
"flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
|
|
739
|
-
{
|
|
740
|
-
variants: {
|
|
741
|
-
variant: {
|
|
742
|
-
twoCards: "",
|
|
743
|
-
threeCards: "desktop:first:col-span-full",
|
|
744
|
-
fourCards: "desktop:first:col-span-2 desktop:last:col-span-2"
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
), or = ({
|
|
749
|
-
subtitle: t,
|
|
750
|
-
title: e,
|
|
751
|
-
img: r,
|
|
752
|
-
mobileImg: o,
|
|
753
|
-
classes: i,
|
|
754
|
-
withButton: a,
|
|
755
|
-
button: l,
|
|
756
|
-
variant: u,
|
|
757
|
-
color: m
|
|
758
|
-
}) => {
|
|
759
|
-
const { isDesktop: x } = G();
|
|
760
|
-
return /* @__PURE__ */ n.jsxs(
|
|
761
|
-
"li",
|
|
762
|
-
{
|
|
763
|
-
style: { backgroundColor: m ?? "#F3F4F7" },
|
|
764
|
-
className: d(nr({ variant: u }), { "pb-0": o }, { "pb-12": !o }, i == null ? void 0 : i.root),
|
|
765
|
-
children: [
|
|
766
|
-
/* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
767
|
-
/* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
768
|
-
/* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className: d("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
769
|
-
/* @__PURE__ */ n.jsx(
|
|
770
|
-
"div",
|
|
771
|
-
{
|
|
772
|
-
dangerouslySetInnerHTML: { __html: t },
|
|
773
|
-
className: d("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
|
|
774
|
-
}
|
|
775
|
-
)
|
|
776
|
-
] }),
|
|
777
|
-
a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx(Z, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
|
|
778
|
-
] }),
|
|
779
|
-
(o || x) && r && /* @__PURE__ */ n.jsx("div", { className: d("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && j.isObject(r) ? /* @__PURE__ */ n.jsx("img", { className: d("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: r.alt }) : r })
|
|
780
|
-
]
|
|
781
|
-
},
|
|
782
|
-
e
|
|
783
|
-
);
|
|
784
|
-
}, ir = O("grid gap-4", {
|
|
785
|
-
variants: {
|
|
786
|
-
variant: {
|
|
787
|
-
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
788
|
-
threeCards: "grid-cols-1 desktop:grid-cols-2",
|
|
789
|
-
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
}), Zn = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: s.benefit, "data-test-id": s.benefit, className: d("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ n.jsxs(S, { className: o == null ? void 0 : o.container, children: [
|
|
793
|
-
/* @__PURE__ */ n.jsx(
|
|
794
|
-
"div",
|
|
795
|
-
{
|
|
796
|
-
dangerouslySetInnerHTML: { __html: t },
|
|
797
|
-
className: d("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
|
|
798
|
-
}
|
|
799
|
-
),
|
|
800
|
-
/* @__PURE__ */ n.jsx("ul", { className: d(ir({ variant: r }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx(or, { variant: r, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
|
|
801
|
-
] }) }), ar = ({ variant: t, details: e }) => {
|
|
802
|
-
switch (t) {
|
|
803
|
-
case "withButton":
|
|
804
|
-
return /* @__PURE__ */ n.jsx(Z, { ...e });
|
|
805
|
-
case "withPhone":
|
|
806
|
-
return /* @__PURE__ */ n.jsx(et, { classes: { root: "items-end" }, ...e, phone: ye(e.phone) });
|
|
807
|
-
default:
|
|
808
|
-
return null;
|
|
809
|
-
}
|
|
810
|
-
}, Xn = (t) => {
|
|
811
|
-
const { logoPath: e = "/", logoType: r = "main", classes: o } = t;
|
|
812
|
-
return /* @__PURE__ */ n.jsx(
|
|
813
|
-
"header",
|
|
814
|
-
{
|
|
815
|
-
id: s.header,
|
|
816
|
-
"data-test-id": s.header,
|
|
817
|
-
className: d("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
818
|
-
children: /* @__PURE__ */ n.jsx(S, { className: d(o == null ? void 0 : o.container), children: /* @__PURE__ */ n.jsxs("div", { className: d("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
819
|
-
/* @__PURE__ */ n.jsx(
|
|
820
|
-
"a",
|
|
821
|
-
{
|
|
822
|
-
href: e,
|
|
823
|
-
"aria-label": "logo",
|
|
824
|
-
target: "_blank",
|
|
825
|
-
rel: "noreferrer",
|
|
826
|
-
className: d(
|
|
827
|
-
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
828
|
-
o == null ? void 0 : o.logo
|
|
829
|
-
),
|
|
830
|
-
children: Ft[r]
|
|
831
|
-
}
|
|
832
|
-
),
|
|
833
|
-
ar(t)
|
|
834
|
-
] }) })
|
|
835
|
-
}
|
|
836
|
-
);
|
|
837
|
-
}, dr = ({
|
|
687
|
+
const Jt = ({
|
|
838
688
|
headTitle: t,
|
|
839
689
|
subtitle: e,
|
|
840
690
|
buttonsConfig: r,
|
|
@@ -852,7 +702,7 @@ const Jt = [
|
|
|
852
702
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
853
703
|
i == null ? void 0 : i.advantageContainer
|
|
854
704
|
),
|
|
855
|
-
children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ n.jsx(
|
|
705
|
+
children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ n.jsx(Ie, { ...o })
|
|
856
706
|
}
|
|
857
707
|
);
|
|
858
708
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -1007,7 +857,7 @@ const Jt = [
|
|
|
1007
857
|
"items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:flex desktop:translate-x-1/2 desktop:p-0",
|
|
1008
858
|
i == null ? void 0 : i.advantageContainer
|
|
1009
859
|
),
|
|
1010
|
-
children: (o == null ? void 0 : o.details) && ((g = o == null ? void 0 : o.details) == null ? void 0 : g.items.length) > 0 && /* @__PURE__ */ n.jsx(
|
|
860
|
+
children: (o == null ? void 0 : o.details) && ((g = o == null ? void 0 : o.details) == null ? void 0 : g.items.length) > 0 && /* @__PURE__ */ n.jsx(Ie, { ...o })
|
|
1011
861
|
}
|
|
1012
862
|
)
|
|
1013
863
|
] })
|
|
@@ -1020,350 +870,911 @@ const Jt = [
|
|
|
1020
870
|
"flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
|
|
1021
871
|
i == null ? void 0 : i.advantageContainer
|
|
1022
872
|
),
|
|
1023
|
-
children: (o == null ? void 0 : o.details) && ((k = o == null ? void 0 : o.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ n.jsx(
|
|
873
|
+
children: (o == null ? void 0 : o.details) && ((k = o == null ? void 0 : o.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ n.jsx(Ie, { ...o })
|
|
1024
874
|
}
|
|
1025
875
|
)
|
|
1026
876
|
] });
|
|
1027
|
-
},
|
|
877
|
+
}, Gt = ({ variant: t, ...e }) => {
|
|
1028
878
|
switch (t) {
|
|
1029
879
|
case "separateImg":
|
|
1030
880
|
return /* @__PURE__ */ n.jsx(qe, { ...e });
|
|
1031
881
|
case "fullImg":
|
|
1032
|
-
return /* @__PURE__ */ n.jsx(
|
|
882
|
+
return /* @__PURE__ */ n.jsx(Jt, { ...e });
|
|
1033
883
|
default:
|
|
1034
884
|
return /* @__PURE__ */ n.jsx(qe, { ...e });
|
|
1035
885
|
}
|
|
1036
|
-
},
|
|
1037
|
-
const
|
|
1038
|
-
|
|
1039
|
-
|
|
886
|
+
}, er = ["getFioSchema"], mt = (t, e, r) => {
|
|
887
|
+
const o = t[e];
|
|
888
|
+
if (j.isNil(o))
|
|
889
|
+
throw new Error(`validation for type ${String(e)} not found`);
|
|
890
|
+
if (!j.isFunction(o))
|
|
891
|
+
throw new Error(`Cannot generate ${String(e)} because is not a function`);
|
|
892
|
+
return o(r);
|
|
893
|
+
}, tr = (t, e) => mt(at.base, t, e), rr = (t, e) => mt(at.dadata, t, e), xt = (t) => {
|
|
894
|
+
const r = ((t == null ? void 0 : t.map((o) => ({ name: o.args.name, validation: o.args.validation }))) ?? []).reduce((o, i) => {
|
|
895
|
+
const a = er.includes(i.validation.type) ? rr(
|
|
896
|
+
i.validation.type,
|
|
897
|
+
i.validation.args
|
|
898
|
+
) : tr(
|
|
899
|
+
i.validation.type,
|
|
900
|
+
i.validation.args
|
|
901
|
+
);
|
|
902
|
+
return o[i.name] = a, o;
|
|
903
|
+
}, {});
|
|
904
|
+
return lt(r);
|
|
905
|
+
}, ht = (t) => typeof t != "string" && "formula" in t, pt = (t, e) => {
|
|
906
|
+
let r = e;
|
|
907
|
+
const o = {
|
|
908
|
+
style: t
|
|
909
|
+
};
|
|
910
|
+
switch (t) {
|
|
911
|
+
case "currency":
|
|
912
|
+
o.currency = "RUB", o.minimumFractionDigits = 0, o.maximumFractionDigits = 0;
|
|
913
|
+
break;
|
|
914
|
+
case "percent":
|
|
915
|
+
o.minimumFractionDigits = 0, o.maximumFractionDigits = 1, r = r / 100;
|
|
916
|
+
break;
|
|
917
|
+
default:
|
|
918
|
+
return null;
|
|
919
|
+
}
|
|
920
|
+
return new Intl.NumberFormat("ru-RU", o).format(r);
|
|
921
|
+
}, nr = (t, e) => {
|
|
922
|
+
switch (t) {
|
|
923
|
+
case "text":
|
|
924
|
+
return e;
|
|
925
|
+
default:
|
|
926
|
+
return pt(t, Number(e));
|
|
927
|
+
}
|
|
928
|
+
}, or = (t) => Object.values(t).reduce((r, o) => r.merge(xt(o.fields)), lt({})), ir = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, ct = (t, e) => {
|
|
929
|
+
const r = Object.entries(e).map(([m, x]) => [m, x !== null ? x : "1"]), o = r.map(([m]) => m), i = r.map(([, m]) => m), a = ir(t, Object.fromEntries(r)), u = new Function(...o, `return ${a};`)(...i.map(Number));
|
|
930
|
+
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
931
|
+
}, ar = (t, e) => t.map((r) => ({
|
|
932
|
+
...r,
|
|
933
|
+
value: ht(r.value) ? ct(r.value.formula, e) : r.value
|
|
934
|
+
})), dr = ({ subtitle: t, title: e }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: (e || t) && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
935
|
+
e && /* @__PURE__ */ n.jsx(P, { as: "h3", children: e }),
|
|
936
|
+
t && /* @__PURE__ */ n.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
|
|
937
|
+
] }) }), lr = ({ rootDescription: t, rootValue: e, suffix: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
938
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
|
|
939
|
+
/* @__PURE__ */ n.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ n.jsx("span", { children: pt(r, Number(e)) }) })
|
|
940
|
+
] }), ur = ({ hint: t, value: e, label: r, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
941
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
942
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: r }),
|
|
943
|
+
t && /* @__PURE__ */ n.jsx(
|
|
944
|
+
Te,
|
|
945
|
+
{
|
|
946
|
+
withCloseBtn: !1,
|
|
947
|
+
triggerElement: /* @__PURE__ */ n.jsx(f, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
948
|
+
children: /* @__PURE__ */ n.jsx("p", { children: t })
|
|
949
|
+
}
|
|
950
|
+
)
|
|
951
|
+
] }),
|
|
952
|
+
/* @__PURE__ */ n.jsx(
|
|
953
|
+
"span",
|
|
1040
954
|
{
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
"
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
e == null ? void 0 : e.root
|
|
1047
|
-
),
|
|
1048
|
-
children: o == null ? void 0 : o.map(({ title: i, description: a }) => /* @__PURE__ */ n.jsxs(
|
|
1049
|
-
"div",
|
|
1050
|
-
{
|
|
1051
|
-
className: d(
|
|
1052
|
-
'after:content-[" "] relative flex h-full w-full flex-col gap-1 after:absolute after:-bottom-4 after:left-1/2 after:h-[1px] after:w-full after:-translate-x-1/2 after:bg-color-blue-grey-300 last:after:hidden desktop:w-[285px] desktop:items-center desktop:px-8 desktop:after:bottom-auto desktop:after:left-auto desktop:after:right-0 desktop:after:top-1/2 desktop:after:h-10 desktop:after:w-[1px] desktop:after:-translate-y-1/2 desktop:after:translate-x-0',
|
|
1053
|
-
e == null ? void 0 : e.item
|
|
1054
|
-
),
|
|
1055
|
-
children: [
|
|
1056
|
-
/* @__PURE__ */ n.jsx(P, { as: "h4", className: d("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
1057
|
-
/* @__PURE__ */ n.jsx("p", { className: d("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
|
|
1058
|
-
]
|
|
1059
|
-
},
|
|
1060
|
-
i
|
|
1061
|
-
))
|
|
955
|
+
className: d("desk-body-medium-l text-color-dark", {
|
|
956
|
+
"[&&]:desk-title-bold-s": a,
|
|
957
|
+
"text-color-primary-default": i === "blue"
|
|
958
|
+
}),
|
|
959
|
+
children: nr(o, e)
|
|
1062
960
|
}
|
|
1063
|
-
)
|
|
1064
|
-
},
|
|
1065
|
-
|
|
1066
|
-
{
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
"
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
classes: {
|
|
1079
|
-
root: d(e == null ? void 0 : e.phoneWrapper),
|
|
1080
|
-
text: d("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
1081
|
-
link: d("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
961
|
+
)
|
|
962
|
+
] }), mr = ({ infoList: t }) => {
|
|
963
|
+
const { watch: e } = se(), r = e(), o = ar(t, r);
|
|
964
|
+
return /* @__PURE__ */ n.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ n.jsx(ur, { ...i }, i.label)) });
|
|
965
|
+
}, xr = (t) => nt(() => {
|
|
966
|
+
switch (t.handler) {
|
|
967
|
+
case "navigate": {
|
|
968
|
+
const { url: r, target: o, rel: i } = t;
|
|
969
|
+
it && (window == null || window.open(r, o, i));
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
case "scroll": {
|
|
973
|
+
const { widgetId: r } = t ?? "";
|
|
974
|
+
Vt({ widgetId: r });
|
|
975
|
+
break;
|
|
1082
976
|
}
|
|
1083
|
-
},
|
|
1084
|
-
r
|
|
1085
|
-
)) }), mr = ({ classes: t, details: e }) => /* @__PURE__ */ n.jsx(
|
|
1086
|
-
"div",
|
|
1087
|
-
{
|
|
1088
|
-
className: d(
|
|
1089
|
-
"mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8",
|
|
1090
|
-
t == null ? void 0 : t.navRoot
|
|
1091
|
-
),
|
|
1092
|
-
children: e == null ? void 0 : e.map(
|
|
1093
|
-
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
|
|
1094
|
-
/* @__PURE__ */ n.jsx("div", { className: d("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: o }),
|
|
1095
|
-
/* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-1", t == null ? void 0 : t.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: l }) => /* @__PURE__ */ n.jsx(
|
|
1096
|
-
je,
|
|
1097
|
-
{
|
|
1098
|
-
href: a,
|
|
1099
|
-
"aria-label": l,
|
|
1100
|
-
intent: "white",
|
|
1101
|
-
classes: {
|
|
1102
|
-
link: t == null ? void 0 : t.navLink,
|
|
1103
|
-
icon: t == null ? void 0 : t.navLinkIcon
|
|
1104
|
-
},
|
|
1105
|
-
children: l
|
|
1106
|
-
},
|
|
1107
|
-
l
|
|
1108
|
-
)) })
|
|
1109
|
-
] }, o))
|
|
1110
|
-
)
|
|
1111
|
-
}
|
|
1112
|
-
), xr = ({ text: t, classes: e }) => /* @__PURE__ */ n.jsx(
|
|
1113
|
-
"div",
|
|
1114
|
-
{
|
|
1115
|
-
className: d("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
1116
|
-
dangerouslySetInnerHTML: { __html: t }
|
|
1117
977
|
}
|
|
1118
|
-
),
|
|
1119
|
-
|
|
1120
|
-
{
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
{
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
978
|
+
}, [t]), Z = ({ handlerOptions: t, className: e, ...r }) => {
|
|
979
|
+
const o = xr(t);
|
|
980
|
+
return /* @__PURE__ */ n.jsx(Me, { className: d(e), onClick: o, ...r, children: r.children });
|
|
981
|
+
}, hr = ({ iconName: t, text: e, hint: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
982
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
983
|
+
/* @__PURE__ */ n.jsx(f, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
984
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
|
|
985
|
+
] }),
|
|
986
|
+
r && /* @__PURE__ */ n.jsx(Te, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ n.jsx(f, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ n.jsx("p", { children: r }) })
|
|
987
|
+
] }), pr = ({ assistHint: t, buttonsConfig: e, bottomDescription: r }) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
988
|
+
t && /* @__PURE__ */ n.jsx(hr, { ...t }),
|
|
989
|
+
/* @__PURE__ */ n.jsx("div", { className: d("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(Z, { className: "w-full", ...o }, i)) }),
|
|
990
|
+
r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: r })
|
|
991
|
+
] }), cr = ({
|
|
992
|
+
rootDescription: t,
|
|
993
|
+
bottomDescription: e,
|
|
994
|
+
rootValue: r,
|
|
995
|
+
title: o,
|
|
996
|
+
subtitle: i,
|
|
997
|
+
buttonsConfig: a,
|
|
998
|
+
infoList: l,
|
|
999
|
+
suffix: u,
|
|
1000
|
+
assistHint: m
|
|
1001
|
+
}) => /* @__PURE__ */ n.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
|
|
1002
|
+
/* @__PURE__ */ n.jsx(lr, { suffix: u, rootValue: r, rootDescription: t }),
|
|
1003
|
+
/* @__PURE__ */ n.jsx(dr, { title: o, subtitle: i }),
|
|
1004
|
+
/* @__PURE__ */ n.jsx(mr, { infoList: l }),
|
|
1005
|
+
/* @__PURE__ */ n.jsx(pr, { assistHint: m, buttonsConfig: a, bottomDescription: e })
|
|
1006
|
+
] }), fr = 2e4, ft = ({
|
|
1007
|
+
slidersGroupConfig: t,
|
|
1008
|
+
additionalSliderGroupConfig: e
|
|
1009
|
+
}) => {
|
|
1010
|
+
const [r, o] = L(!1), { watch: i, setValue: a } = se(), l = t == null ? void 0 : t.fields.find(({ args: _ }) => _.name === "sum"), { args: u } = l || {}, { max: m, name: x, defaultValue: p } = u || {}, c = i(x), { min: b, name: g } = (e == null ? void 0 : e.args) ?? {}, k = i(g), w = Number(m ?? 0) - (c ?? p);
|
|
1011
|
+
return be(() => {
|
|
1012
|
+
k > w && a(g, w);
|
|
1013
|
+
}, [w, k, a, c]), be(() => {
|
|
1014
|
+
Number(m) === c && o(!1);
|
|
1015
|
+
}, [o, m, c]), {
|
|
1016
|
+
sliderVisible: r,
|
|
1017
|
+
setSliderVisible: o,
|
|
1018
|
+
sumMax: m,
|
|
1019
|
+
sumName: x,
|
|
1020
|
+
sumDefaultValue: p,
|
|
1021
|
+
sumValue: c,
|
|
1022
|
+
additionalSliderMax: w,
|
|
1023
|
+
onCheckedChange: () => {
|
|
1024
|
+
o((_) => !_), k <= 0 && a(g, b), Number(m) === c && (a(x ?? "", c - fr), a(g, b));
|
|
1137
1025
|
},
|
|
1138
|
-
|
|
1026
|
+
sliderSumExist: !j.isObjectEmpty(l == null ? void 0 : l.args),
|
|
1027
|
+
sliderSumCorrectType: (l == null ? void 0 : l.args.componentType) === "algorithmic" || (l == null ? void 0 : l.args.componentType) === "step"
|
|
1028
|
+
};
|
|
1029
|
+
}, br = (t) => {
|
|
1030
|
+
switch (t) {
|
|
1031
|
+
case "content1":
|
|
1032
|
+
return /* @__PURE__ */ n.jsx("div", { children: "content 1" });
|
|
1033
|
+
case "content2":
|
|
1034
|
+
return /* @__PURE__ */ n.jsx("div", { children: "content 2" });
|
|
1139
1035
|
}
|
|
1140
|
-
|
|
1141
|
-
const [
|
|
1142
|
-
return
|
|
1143
|
-
|
|
1144
|
-
u && a(u.scrollHeight > u.clientHeight);
|
|
1145
|
-
}, []), /* @__PURE__ */ n.jsxs("div", { className: d("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1036
|
+
}, gr = ({ triggerText: t, modalTitle: e, description: r, contentVariant: o }) => {
|
|
1037
|
+
const [i, a] = qt(!1);
|
|
1038
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
1039
|
+
r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: r }),
|
|
1146
1040
|
/* @__PURE__ */ n.jsx(
|
|
1147
|
-
"
|
|
1041
|
+
"button",
|
|
1148
1042
|
{
|
|
1149
|
-
|
|
1150
|
-
className:
|
|
1151
|
-
|
|
1043
|
+
onClick: () => a(!0),
|
|
1044
|
+
className: "desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
|
|
1045
|
+
children: t
|
|
1152
1046
|
}
|
|
1153
1047
|
),
|
|
1154
|
-
|
|
1155
|
-
|
|
1048
|
+
/* @__PURE__ */ n.jsx(Ft, { title: e, isModalOpen: i, closeModal: () => a(!1), children: br(o) })
|
|
1049
|
+
] });
|
|
1050
|
+
}, bt = ({ fields: t, control: e }) => t.map(({ type: r, args: o }) => {
|
|
1051
|
+
const i = et[r];
|
|
1052
|
+
return /* @__PURE__ */ ot(i, { ...o, key: o.name, control: e });
|
|
1053
|
+
}), Y = ({ fields: t }) => {
|
|
1054
|
+
const { control: e } = se();
|
|
1055
|
+
return /* @__PURE__ */ n.jsx(bt, { control: e, fields: t });
|
|
1056
|
+
}, jr = ({
|
|
1057
|
+
slidersGroupConfig: t,
|
|
1058
|
+
additionalSliderGroupConfig: e
|
|
1059
|
+
}) => {
|
|
1060
|
+
const { control: r } = se(), { sliderVisible: o, additionalSliderMax: i, onCheckedChange: a } = ft({
|
|
1061
|
+
slidersGroupConfig: t,
|
|
1062
|
+
additionalSliderGroupConfig: e
|
|
1063
|
+
});
|
|
1064
|
+
return j.isNil(e == null ? void 0 : e.args) || !(e != null && e.args) ? null : /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
1065
|
+
/* @__PURE__ */ n.jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
1066
|
+
/* @__PURE__ */ n.jsx(Ee.SwitchBase, { checked: o, onCheckedChange: a }),
|
|
1067
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
1068
|
+
] }),
|
|
1069
|
+
o && /* @__PURE__ */ n.jsx(
|
|
1070
|
+
et.SliderControl,
|
|
1156
1071
|
{
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
),
|
|
1164
|
-
children: "Подробнее"
|
|
1072
|
+
...e.args,
|
|
1073
|
+
control: r,
|
|
1074
|
+
componentType: "algorithmic",
|
|
1075
|
+
suffix: "currency",
|
|
1076
|
+
defaultValue: e == null ? void 0 : e.args.min,
|
|
1077
|
+
max: i
|
|
1165
1078
|
}
|
|
1166
1079
|
)
|
|
1167
1080
|
] });
|
|
1168
|
-
},
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1081
|
+
}, sr = ({ modalConfig: t, fieldsGroup: e }) => {
|
|
1082
|
+
var i;
|
|
1083
|
+
const { sliderSumExist: r, sliderSumCorrectType: o } = ft({
|
|
1084
|
+
slidersGroupConfig: e.slidersGroupConfig,
|
|
1085
|
+
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
1086
|
+
});
|
|
1087
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
1088
|
+
(t == null ? void 0 : t.triggerText) && (t == null ? void 0 : t.contentVariant) && /* @__PURE__ */ n.jsx(gr, { ...t }),
|
|
1089
|
+
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.selectGroupConfig }) }),
|
|
1090
|
+
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.slidersGroupConfig }),
|
|
1091
|
+
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupTabConfig }),
|
|
1092
|
+
(e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.checkboxGroupConfig }) }),
|
|
1093
|
+
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupConfig }),
|
|
1094
|
+
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupCardConfig }),
|
|
1095
|
+
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.switchGroupConfig }) }),
|
|
1096
|
+
((i = e.additionalSliderGroupConfig) == null ? void 0 : i.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig && r && o && /* @__PURE__ */ n.jsx(
|
|
1097
|
+
jr,
|
|
1098
|
+
{
|
|
1099
|
+
slidersGroupConfig: e.slidersGroupConfig,
|
|
1100
|
+
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
1101
|
+
}
|
|
1102
|
+
)
|
|
1103
|
+
] });
|
|
1104
|
+
}, yr = Se(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: r }) => /* @__PURE__ */ n.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ n.jsx(
|
|
1105
|
+
"button",
|
|
1178
1106
|
{
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1107
|
+
onClick: () => r(o),
|
|
1108
|
+
className: d(
|
|
1109
|
+
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent desktop:desk-body-regular-l focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
1110
|
+
{ "bg-icon-primary-default text-color-white": e === o }
|
|
1111
|
+
),
|
|
1112
|
+
children: i
|
|
1113
|
+
},
|
|
1114
|
+
o
|
|
1115
|
+
)) })), kr = ({
|
|
1116
|
+
calculatorInfoConfig: t,
|
|
1117
|
+
calculatorFieldsConfig: e
|
|
1118
|
+
}) => {
|
|
1119
|
+
const r = or(e == null ? void 0 : e.fieldsGroup), o = rt({
|
|
1120
|
+
schema: r,
|
|
1121
|
+
mode: "onBlur",
|
|
1122
|
+
defaultValues: dt.getZodDefaults(r)
|
|
1123
|
+
}), i = o.watch(), { rootValue: a } = t, l = ht(a) ? ct(a.formula, i) : a, u = { ...t, rootValue: l };
|
|
1124
|
+
return /* @__PURE__ */ n.jsx(Dt, { ...o, children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
1125
|
+
/* @__PURE__ */ n.jsx(sr, { ...e }),
|
|
1126
|
+
/* @__PURE__ */ n.jsx(cr, { ...u })
|
|
1127
|
+
] }) });
|
|
1128
|
+
}, wr = ({ calculators: t, headline: e }) => {
|
|
1129
|
+
var m;
|
|
1130
|
+
const r = t.length > 1, [o, i] = L(r ? (m = t[0]) == null ? void 0 : m.name : ""), a = ye(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), l = r ? a == null ? void 0 : a.findIndex((x) => x.name === o) : 0, u = t[l];
|
|
1131
|
+
return /* @__PURE__ */ n.jsx("section", { id: s.calculator, children: /* @__PURE__ */ n.jsx(S, { children: /* @__PURE__ */ n.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
1132
|
+
/* @__PURE__ */ n.jsx(P, { className: "mb-12", as: "h2", children: e }),
|
|
1133
|
+
r && /* @__PURE__ */ n.jsx(
|
|
1134
|
+
yr,
|
|
1135
|
+
{
|
|
1136
|
+
calculatorTabs: a,
|
|
1137
|
+
activeCalculator: o,
|
|
1138
|
+
setActiveCalculator: i
|
|
1139
|
+
}
|
|
1140
|
+
),
|
|
1141
|
+
/* @__PURE__ */ n.jsx(
|
|
1142
|
+
kr,
|
|
1143
|
+
{
|
|
1144
|
+
name: u.name,
|
|
1145
|
+
label: u.label,
|
|
1146
|
+
calculatorInfoConfig: u.calculatorInfoConfig,
|
|
1147
|
+
calculatorFieldsConfig: u.calculatorFieldsConfig
|
|
1148
|
+
}
|
|
1149
|
+
)
|
|
1150
|
+
] }) }) });
|
|
1151
|
+
};
|
|
1152
|
+
class Nr {
|
|
1153
|
+
constructor(e) {
|
|
1154
|
+
ae(this, "TEXT_NODE", 3);
|
|
1155
|
+
ae(this, "ELEMENT_NODE", 1);
|
|
1156
|
+
this.options = e;
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Рекурсивно обходит DOM дерево и собирает данные в зависимости от опций.
|
|
1160
|
+
* @param node Текущий узел DOM дерева
|
|
1161
|
+
* @param elements Массив для сбора элементов
|
|
1162
|
+
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1163
|
+
*/
|
|
1164
|
+
traverse(e, r = "string", o) {
|
|
1165
|
+
const { includeSolidText: i, recursive: a, element: l } = this.options || {};
|
|
1166
|
+
switch (e.nodeType) {
|
|
1167
|
+
// если узел - элемент
|
|
1168
|
+
case this.ELEMENT_NODE:
|
|
1169
|
+
const u = e, m = u.tagName.toLowerCase();
|
|
1170
|
+
if (m === "script") {
|
|
1171
|
+
console.warn("Found script node. For better security this node will be skipped.");
|
|
1172
|
+
break;
|
|
1197
1173
|
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
1206
|
-
i == null ? void 0 : i.footerBottom
|
|
1207
|
-
),
|
|
1208
|
-
children: [
|
|
1209
|
-
o.enabled && /* @__PURE__ */ n.jsx(xr, { text: o.text, classes: i == null ? void 0 : i.copyright }),
|
|
1210
|
-
l && /* @__PURE__ */ n.jsx(pr, { classes: i == null ? void 0 : i.siteMap })
|
|
1211
|
-
]
|
|
1174
|
+
if (l && m !== l)
|
|
1175
|
+
break;
|
|
1176
|
+
if (r === "node")
|
|
1177
|
+
o.push(e);
|
|
1178
|
+
else {
|
|
1179
|
+
const x = u.outerHTML.trim();
|
|
1180
|
+
o.push(x);
|
|
1212
1181
|
}
|
|
1213
|
-
|
|
1214
|
-
|
|
1182
|
+
if (a)
|
|
1183
|
+
for (const x of e.childNodes)
|
|
1184
|
+
this.traverse(x, r, o);
|
|
1185
|
+
break;
|
|
1186
|
+
// если узел - текстовый и требуется его добавить, добавляем
|
|
1187
|
+
case this.TEXT_NODE:
|
|
1188
|
+
if (!i)
|
|
1189
|
+
break;
|
|
1190
|
+
if (r === "node")
|
|
1191
|
+
o.push(e);
|
|
1192
|
+
else {
|
|
1193
|
+
const x = e.textContent;
|
|
1194
|
+
x && o.push(x);
|
|
1195
|
+
}
|
|
1196
|
+
break;
|
|
1197
|
+
}
|
|
1215
1198
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1199
|
+
/**
|
|
1200
|
+
* Парсит HTML строку и возвращает массив тегов или нод в зависимости от опций.
|
|
1201
|
+
* @param html HTML строка
|
|
1202
|
+
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1203
|
+
* @returns Массив тегов или нод
|
|
1204
|
+
*/
|
|
1205
|
+
async parse(e, r = "string") {
|
|
1206
|
+
const { includeBody: o } = this.options || {}, i = [], a = [], l = await this.parseFromString(e), u = r === "string" ? i : a;
|
|
1207
|
+
if (o)
|
|
1208
|
+
this.traverse(l.body, r, u);
|
|
1209
|
+
else
|
|
1210
|
+
for (const m of l.body.childNodes)
|
|
1211
|
+
this.traverse(m, r, u);
|
|
1212
|
+
return { stringNodes: i, nodes: a };
|
|
1213
|
+
}
|
|
1214
|
+
/**
|
|
1215
|
+
* Считает количество указанных тегов в HTML строке.
|
|
1216
|
+
* @param html HTML строка
|
|
1217
|
+
* @returns Количество найденных тегов
|
|
1218
|
+
*/
|
|
1219
|
+
async countElements(e) {
|
|
1220
|
+
const { stringNodes: r } = await this.parse(e, "string");
|
|
1221
|
+
return r.length;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
const vr = typeof window < "u";
|
|
1225
|
+
class Cr extends Nr {
|
|
1226
|
+
constructor(e) {
|
|
1227
|
+
super(e);
|
|
1228
|
+
}
|
|
1229
|
+
async parseFromString(e) {
|
|
1230
|
+
return vr ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
class Ce {
|
|
1234
|
+
/**
|
|
1235
|
+
* Функция для парсинга ноды в react элемент
|
|
1236
|
+
*/
|
|
1237
|
+
static parseNode(e) {
|
|
1238
|
+
if (e.nodeType === this.TEXT_NODE)
|
|
1239
|
+
return e.textContent ?? null;
|
|
1240
|
+
if (e.nodeType === this.ELEMENT_NODE) {
|
|
1241
|
+
const r = e, o = r.tagName.toLowerCase(), i = {};
|
|
1242
|
+
for (const l of r.attributes) {
|
|
1243
|
+
let u = l.name, m = l.value;
|
|
1244
|
+
switch (l.name) {
|
|
1245
|
+
case "class":
|
|
1246
|
+
u = "className";
|
|
1247
|
+
break;
|
|
1248
|
+
case "for":
|
|
1249
|
+
u = "htmlFor";
|
|
1250
|
+
break;
|
|
1251
|
+
case "checked":
|
|
1252
|
+
case "disabled":
|
|
1253
|
+
case "selected":
|
|
1254
|
+
m = l.value !== "false", m = l.value !== "false", m = l.value !== "false";
|
|
1255
|
+
break;
|
|
1256
|
+
case "readonly":
|
|
1257
|
+
u = "readOnly", m = l.value !== "false";
|
|
1258
|
+
break;
|
|
1259
|
+
case "style":
|
|
1260
|
+
u = "style";
|
|
1261
|
+
const x = {};
|
|
1262
|
+
l.value.split(";").forEach((p) => {
|
|
1263
|
+
const [c, b] = p.split(":");
|
|
1264
|
+
if (c && b) {
|
|
1265
|
+
const g = c.trim().replace(/-([a-z])/g, (k, w) => w.toUpperCase());
|
|
1266
|
+
x[g] = b.trim();
|
|
1267
|
+
}
|
|
1268
|
+
}), m = x;
|
|
1269
|
+
break;
|
|
1270
|
+
}
|
|
1271
|
+
i[u] = m;
|
|
1272
|
+
}
|
|
1273
|
+
i.key = Math.random().toString(36).substring(2, 9);
|
|
1274
|
+
const a = [];
|
|
1275
|
+
for (const l of r.childNodes) {
|
|
1276
|
+
const u = this.parseNode(l);
|
|
1277
|
+
u && a.push(u);
|
|
1278
|
+
}
|
|
1279
|
+
return ot(o, i, ...a);
|
|
1253
1280
|
}
|
|
1281
|
+
return null;
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* функция для преобразования html строки в react элементы
|
|
1285
|
+
*/
|
|
1286
|
+
static async toReactNodes(e, r) {
|
|
1287
|
+
const o = new Cr(r), { nodes: i } = await o.parse(e, "node");
|
|
1288
|
+
return i.map((a) => this.parseNode(a));
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
ae(Ce, "TEXT_NODE", 3), ae(Ce, "ELEMENT_NODE", 1);
|
|
1292
|
+
const Ir = ({ promises: t }) => {
|
|
1293
|
+
const [e, r] = L([]);
|
|
1294
|
+
return be(() => {
|
|
1295
|
+
(async () => {
|
|
1296
|
+
r(await t);
|
|
1297
|
+
})();
|
|
1298
|
+
}, [t]), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
|
|
1299
|
+
}, ge = ({ html: t, options: e, as: r, ...o }) => {
|
|
1300
|
+
const i = r ?? Lt, a = r ? o : {}, l = Ce.toReactNodes(t, e);
|
|
1301
|
+
return (
|
|
1302
|
+
// @ts-expect-error disable warning
|
|
1303
|
+
/* @__PURE__ */ n.jsx(i, { ...a, children: /* @__PURE__ */ n.jsx(Ir, { promises: l }) })
|
|
1254
1304
|
);
|
|
1255
|
-
},
|
|
1256
|
-
|
|
1257
|
-
|
|
1305
|
+
}, Tr = (t, e) => t.enabled ? e.map((r) => ({
|
|
1306
|
+
name: r.args.name,
|
|
1307
|
+
...r.args.progress
|
|
1308
|
+
})) : null, Mr = new Yt(), Er = ({ children: t }) => /* @__PURE__ */ n.jsx(St, { client: Mr, children: t }), Or = (t, e, r, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ n.jsx(ge, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ n.jsxs(
|
|
1309
|
+
"label",
|
|
1310
|
+
{
|
|
1311
|
+
className: d(
|
|
1312
|
+
"mob-body-regular-s text-color-dark",
|
|
1313
|
+
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
1314
|
+
"flex items-center justify-items-start gap-x-3"
|
|
1315
|
+
),
|
|
1316
|
+
children: [
|
|
1317
|
+
/* @__PURE__ */ n.jsx(Ee.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: r }),
|
|
1318
|
+
/* @__PURE__ */ n.jsx(ge, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
|
|
1319
|
+
]
|
|
1320
|
+
}
|
|
1321
|
+
), Fr = ({
|
|
1322
|
+
fields: t,
|
|
1323
|
+
title: e,
|
|
1324
|
+
progress: r,
|
|
1325
|
+
approvement: o,
|
|
1326
|
+
chips: i,
|
|
1327
|
+
submitProps: a,
|
|
1328
|
+
classes: l
|
|
1329
|
+
}) => {
|
|
1330
|
+
var V, C;
|
|
1331
|
+
const { submitCallback: u, ...m } = a || {}, [x, p] = L(!1), c = xt(t), b = dt.getZodDefaults(c), { control: g, handleSubmit: k } = rt({
|
|
1332
|
+
schema: c,
|
|
1333
|
+
defaultValues: b,
|
|
1334
|
+
mode: "onBlur"
|
|
1335
|
+
}), w = Tr(r, t), B = Ut({ control: g, fields: w || [], schema: c }), _ = (M) => {
|
|
1336
|
+
u && u({ ...M, agree: x }), console.warn(M);
|
|
1337
|
+
};
|
|
1338
|
+
return /* @__PURE__ */ n.jsx(Er, { children: /* @__PURE__ */ n.jsxs(
|
|
1258
1339
|
"div",
|
|
1259
1340
|
{
|
|
1341
|
+
id: s.form,
|
|
1342
|
+
"data-test-id": s.form,
|
|
1260
1343
|
className: d(
|
|
1261
|
-
"
|
|
1262
|
-
|
|
1344
|
+
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
1345
|
+
"relative mx-auto flex w-max flex-col gap-6 rounded-sm border py-8",
|
|
1346
|
+
l == null ? void 0 : l.root
|
|
1263
1347
|
),
|
|
1264
|
-
children:
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1348
|
+
children: [
|
|
1349
|
+
i.enabled && /* @__PURE__ */ n.jsxs(
|
|
1350
|
+
"div",
|
|
1351
|
+
{
|
|
1352
|
+
className: d(
|
|
1353
|
+
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
1354
|
+
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
1355
|
+
"right-4 top-4 w-max",
|
|
1356
|
+
(V = l == null ? void 0 : l.chips) == null ? void 0 : V.root
|
|
1357
|
+
),
|
|
1358
|
+
children: [
|
|
1359
|
+
i.image && /* @__PURE__ */ n.jsx(f, { name: i.image, className: d("size-4", (C = l == null ? void 0 : l.chips) == null ? void 0 : C.icon) }),
|
|
1360
|
+
i.content
|
|
1361
|
+
]
|
|
1362
|
+
}
|
|
1363
|
+
),
|
|
1364
|
+
/* @__PURE__ */ n.jsx(P, { as: "h3", className: l == null ? void 0 : l.title, children: e }),
|
|
1365
|
+
/* @__PURE__ */ n.jsxs(
|
|
1366
|
+
"form",
|
|
1367
|
+
{
|
|
1368
|
+
onSubmit: k(_),
|
|
1369
|
+
className: d("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
|
|
1370
|
+
children: [
|
|
1371
|
+
r.enabled && /* @__PURE__ */ n.jsx(
|
|
1372
|
+
Bt,
|
|
1373
|
+
{
|
|
1374
|
+
progress: B,
|
|
1375
|
+
topContent: /* @__PURE__ */ n.jsx(ge, { html: r.title }),
|
|
1376
|
+
bottomContent: /* @__PURE__ */ n.jsx(ge, { html: r.subtitle }),
|
|
1377
|
+
maxPercent: r.maxPercent,
|
|
1378
|
+
classes: l == null ? void 0 : l.progressBar
|
|
1379
|
+
}
|
|
1380
|
+
),
|
|
1381
|
+
/* @__PURE__ */ n.jsx(bt, { control: g, fields: t }),
|
|
1382
|
+
/* @__PURE__ */ n.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
|
|
1383
|
+
Or(o, x, p, l == null ? void 0 : l.approvement),
|
|
1384
|
+
/* @__PURE__ */ n.jsx(
|
|
1385
|
+
Me,
|
|
1386
|
+
{
|
|
1387
|
+
...m,
|
|
1388
|
+
type: "submit",
|
|
1389
|
+
disabled: o.type === "checkbox" ? !x : !1,
|
|
1390
|
+
className: d(
|
|
1391
|
+
"w-full whitespace-nowrap",
|
|
1392
|
+
{
|
|
1393
|
+
"w-full desktop:w-[216px]": !!o
|
|
1394
|
+
},
|
|
1395
|
+
l == null ? void 0 : l.submit
|
|
1396
|
+
),
|
|
1397
|
+
children: "Отправить форму"
|
|
1398
|
+
}
|
|
1399
|
+
)
|
|
1400
|
+
] })
|
|
1401
|
+
]
|
|
1402
|
+
}
|
|
1403
|
+
)
|
|
1404
|
+
]
|
|
1278
1405
|
}
|
|
1406
|
+
) });
|
|
1407
|
+
}, Sr = ({ socialsLinks: t, classes: e }) => /* @__PURE__ */ n.jsx("div", { className: d("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: t == null ? void 0 : t.map(({ iconName: r, href: o }) => /* @__PURE__ */ n.jsx(
|
|
1408
|
+
"a",
|
|
1409
|
+
{
|
|
1410
|
+
className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1411
|
+
href: o,
|
|
1412
|
+
"aria-label": r.replace("social/", ""),
|
|
1413
|
+
children: /* @__PURE__ */ n.jsx(f, { name: r, className: d("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1279
1414
|
},
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
true: ""
|
|
1415
|
+
o
|
|
1416
|
+
)) }), Br = ({ phones: t, classes: e }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: r, text: o }) => /* @__PURE__ */ n.jsx(
|
|
1417
|
+
tt,
|
|
1418
|
+
{
|
|
1419
|
+
phone: ke(r),
|
|
1420
|
+
text: o,
|
|
1421
|
+
classes: {
|
|
1422
|
+
root: d(e == null ? void 0 : e.phoneWrapper),
|
|
1423
|
+
text: d("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
1424
|
+
link: d("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
1291
1425
|
}
|
|
1292
1426
|
},
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1427
|
+
r
|
|
1428
|
+
)) }), _r = ({ classes: t, details: e }) => /* @__PURE__ */ n.jsx(
|
|
1429
|
+
"div",
|
|
1430
|
+
{
|
|
1431
|
+
className: d(
|
|
1432
|
+
"mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8",
|
|
1433
|
+
t == null ? void 0 : t.navRoot
|
|
1434
|
+
),
|
|
1435
|
+
children: e == null ? void 0 : e.map(
|
|
1436
|
+
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
|
|
1437
|
+
/* @__PURE__ */ n.jsx("div", { className: d("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: o }),
|
|
1438
|
+
/* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-1", t == null ? void 0 : t.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: l }) => /* @__PURE__ */ n.jsx(
|
|
1439
|
+
je,
|
|
1440
|
+
{
|
|
1441
|
+
href: a,
|
|
1442
|
+
"aria-label": l,
|
|
1443
|
+
intent: "white",
|
|
1444
|
+
classes: {
|
|
1445
|
+
link: t == null ? void 0 : t.navLink,
|
|
1446
|
+
icon: t == null ? void 0 : t.navLinkIcon
|
|
1447
|
+
},
|
|
1448
|
+
children: l
|
|
1449
|
+
},
|
|
1450
|
+
l
|
|
1451
|
+
)) })
|
|
1452
|
+
] }, o))
|
|
1453
|
+
)
|
|
1454
|
+
}
|
|
1455
|
+
), Rr = ({ text: t, classes: e }) => /* @__PURE__ */ n.jsx(
|
|
1456
|
+
"div",
|
|
1457
|
+
{
|
|
1458
|
+
className: d("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
1459
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
1460
|
+
}
|
|
1461
|
+
), Hr = ({ classes: t }) => /* @__PURE__ */ n.jsx(
|
|
1462
|
+
"a",
|
|
1463
|
+
{
|
|
1464
|
+
"aria-label": "logo",
|
|
1465
|
+
href: "https://sovcombank.ru/",
|
|
1466
|
+
className: d("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
|
|
1467
|
+
children: /* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1468
|
+
}
|
|
1469
|
+
), Dr = ({ classes: t }) => /* @__PURE__ */ n.jsx(
|
|
1470
|
+
je,
|
|
1471
|
+
{
|
|
1472
|
+
intent: "white",
|
|
1473
|
+
href: "https://sovcombank.ru/site-map",
|
|
1474
|
+
target: "_blank",
|
|
1475
|
+
"aria-label": "site-map",
|
|
1476
|
+
rel: "noreferrer",
|
|
1477
|
+
classes: {
|
|
1478
|
+
link: d("mobile:mt-6", t == null ? void 0 : t.siteMapLink),
|
|
1479
|
+
icon: t == null ? void 0 : t.siteMapLinkIcon
|
|
1480
|
+
},
|
|
1481
|
+
children: "Карта сайта"
|
|
1482
|
+
}
|
|
1483
|
+
), Pr = ({ text: t, classes: e }) => {
|
|
1484
|
+
const [r, o] = le.useState(!1), [i, a] = le.useState(!1), l = le.useRef(null);
|
|
1485
|
+
return le.useEffect(() => {
|
|
1486
|
+
const u = l.current;
|
|
1487
|
+
u && a(u.scrollHeight > u.clientHeight);
|
|
1488
|
+
}, []), /* @__PURE__ */ n.jsxs("div", { className: d("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1489
|
+
/* @__PURE__ */ n.jsx(
|
|
1490
|
+
"div",
|
|
1491
|
+
{
|
|
1492
|
+
ref: l,
|
|
1493
|
+
className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !r }, e == null ? void 0 : e.ligalText),
|
|
1494
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
1495
|
+
}
|
|
1496
|
+
),
|
|
1497
|
+
i && /* @__PURE__ */ n.jsx(
|
|
1498
|
+
"div",
|
|
1499
|
+
{
|
|
1500
|
+
tabIndex: 0,
|
|
1501
|
+
role: "button",
|
|
1502
|
+
onClick: () => o((u) => !u),
|
|
1503
|
+
className: d(
|
|
1504
|
+
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1505
|
+
e == null ? void 0 : e.ligalButton
|
|
1506
|
+
),
|
|
1507
|
+
children: "Подробнее"
|
|
1508
|
+
}
|
|
1509
|
+
)
|
|
1510
|
+
] });
|
|
1511
|
+
}, Lr = ({
|
|
1512
|
+
socialsLinks: t,
|
|
1513
|
+
phones: e,
|
|
1514
|
+
ligal: r,
|
|
1515
|
+
copyright: o,
|
|
1516
|
+
classes: i,
|
|
1517
|
+
details: a,
|
|
1518
|
+
siteMap: l = !0
|
|
1519
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
1520
|
+
"footer",
|
|
1521
|
+
{
|
|
1522
|
+
id: s.footer,
|
|
1523
|
+
"data-test-id": s.footer,
|
|
1524
|
+
className: d("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1525
|
+
children: /* @__PURE__ */ n.jsx(S, { className: d(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ n.jsxs("div", { className: d("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1526
|
+
/* @__PURE__ */ n.jsxs(
|
|
1527
|
+
"div",
|
|
1528
|
+
{
|
|
1529
|
+
className: d(
|
|
1530
|
+
"flex flex-col items-start justify-between gap-4 border-b border-solid border-blue-grey-500 pb-6 desktop:flex-row desktop:gap-6 desktop:pb-8",
|
|
1531
|
+
i == null ? void 0 : i.footerHead
|
|
1532
|
+
),
|
|
1533
|
+
children: [
|
|
1534
|
+
/* @__PURE__ */ n.jsxs("div", { className: d(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1535
|
+
/* @__PURE__ */ n.jsx(Hr, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1536
|
+
t.enabled && /* @__PURE__ */ n.jsx(Sr, { socialsLinks: t.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1537
|
+
] }),
|
|
1538
|
+
e.enabled && /* @__PURE__ */ n.jsx(Br, { phones: e.items, classes: i == null ? void 0 : i.phonesBlock })
|
|
1539
|
+
]
|
|
1540
|
+
}
|
|
1541
|
+
),
|
|
1542
|
+
!j.isArrayEmpty(a) && /* @__PURE__ */ n.jsx(_r, { details: a, classes: i == null ? void 0 : i.navLinks }),
|
|
1543
|
+
r.enabled && /* @__PURE__ */ n.jsx(Pr, { text: r.text }),
|
|
1544
|
+
/* @__PURE__ */ n.jsxs(
|
|
1545
|
+
"div",
|
|
1546
|
+
{
|
|
1547
|
+
className: d(
|
|
1548
|
+
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
1549
|
+
i == null ? void 0 : i.footerBottom
|
|
1550
|
+
),
|
|
1551
|
+
children: [
|
|
1552
|
+
o.enabled && /* @__PURE__ */ n.jsx(Rr, { text: o.text, classes: i == null ? void 0 : i.copyright }),
|
|
1553
|
+
l && /* @__PURE__ */ n.jsx(Dr, { classes: i == null ? void 0 : i.siteMap })
|
|
1554
|
+
]
|
|
1555
|
+
}
|
|
1556
|
+
)
|
|
1557
|
+
] }) })
|
|
1558
|
+
}
|
|
1559
|
+
), zr = ({ variant: t, details: e }) => {
|
|
1560
|
+
switch (t) {
|
|
1561
|
+
case "withButton":
|
|
1562
|
+
return /* @__PURE__ */ n.jsx(Z, { ...e });
|
|
1563
|
+
case "withPhone":
|
|
1564
|
+
return /* @__PURE__ */ n.jsx(tt, { classes: { root: "items-end" }, ...e, phone: ke(e.phone) });
|
|
1565
|
+
default:
|
|
1566
|
+
return null;
|
|
1567
|
+
}
|
|
1568
|
+
}, Qr = (t) => {
|
|
1569
|
+
const { logoPath: e = "/", logoType: r = "main", classes: o } = t;
|
|
1570
|
+
return /* @__PURE__ */ n.jsx(
|
|
1571
|
+
"header",
|
|
1572
|
+
{
|
|
1573
|
+
id: s.header,
|
|
1574
|
+
"data-test-id": s.header,
|
|
1575
|
+
className: d("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
1576
|
+
children: /* @__PURE__ */ n.jsx(S, { className: d(o == null ? void 0 : o.container), children: /* @__PURE__ */ n.jsxs("div", { className: d("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
1577
|
+
/* @__PURE__ */ n.jsx(
|
|
1578
|
+
"a",
|
|
1579
|
+
{
|
|
1580
|
+
href: e,
|
|
1581
|
+
"aria-label": "logo",
|
|
1582
|
+
target: "_blank",
|
|
1583
|
+
rel: "noreferrer",
|
|
1584
|
+
className: d(
|
|
1585
|
+
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
1586
|
+
o == null ? void 0 : o.logo
|
|
1587
|
+
),
|
|
1588
|
+
children: _t[r]
|
|
1589
|
+
}
|
|
1590
|
+
),
|
|
1591
|
+
zr(t)
|
|
1592
|
+
] }) })
|
|
1593
|
+
}
|
|
1594
|
+
);
|
|
1595
|
+
}, Ue = ({ links: t, classes: e }) => /* @__PURE__ */ n.jsx("nav", { className: d("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: r, label: o }) => /* @__PURE__ */ n.jsx(
|
|
1596
|
+
je,
|
|
1597
|
+
{
|
|
1598
|
+
classes: {
|
|
1599
|
+
link: d("w-max", e == null ? void 0 : e.linkText),
|
|
1600
|
+
icon: d(e == null ? void 0 : e.linkIcon)
|
|
1601
|
+
},
|
|
1602
|
+
intent: "dark",
|
|
1603
|
+
href: r,
|
|
1604
|
+
children: o
|
|
1605
|
+
},
|
|
1606
|
+
r
|
|
1607
|
+
)) }), Vr = ({ groupLabel: t, links: e, mobileAccordionProps: r, classes: o }) => {
|
|
1608
|
+
var a, l, u;
|
|
1609
|
+
const { isMobile: i } = G();
|
|
1610
|
+
return /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1611
|
+
!i && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1612
|
+
/* @__PURE__ */ n.jsx("h5", { className: d("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: t }),
|
|
1613
|
+
/* @__PURE__ */ n.jsx(Ue, { links: e, classes: o == null ? void 0 : o.linksList }, "desktop")
|
|
1614
|
+
] }),
|
|
1615
|
+
i && /* @__PURE__ */ n.jsx(
|
|
1616
|
+
oe,
|
|
1617
|
+
{
|
|
1618
|
+
defaultOpen: !0,
|
|
1619
|
+
label: t,
|
|
1620
|
+
icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1621
|
+
...r,
|
|
1622
|
+
classes: {
|
|
1623
|
+
...r == null ? void 0 : r.classes,
|
|
1624
|
+
header: {
|
|
1625
|
+
trigger: d("p-0 bg-color-blue-grey-100", (l = (a = r == null ? void 0 : r.classes) == null ? void 0 : a.header) == null ? void 0 : l.trigger)
|
|
1626
|
+
},
|
|
1627
|
+
contentInner: d("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
|
|
1628
|
+
},
|
|
1629
|
+
children: /* @__PURE__ */ n.jsx(Ue, { links: e, classes: o == null ? void 0 : o.linksList }, "mobile")
|
|
1630
|
+
}
|
|
1631
|
+
)
|
|
1632
|
+
] });
|
|
1633
|
+
}, Ar = ({ column: t, mobileAccordionProps: e, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ n.jsx(Vr, { ...e, ...o, classes: r == null ? void 0 : r.columnGroup }, o.groupLabel)) }), qr = O("grid gap-4 grid-cols-1", {
|
|
1634
|
+
variants: {
|
|
1635
|
+
variant: {
|
|
1636
|
+
twoCols: "desktop:grid-cols-2",
|
|
1637
|
+
threeCols: "desktop:grid-cols-3",
|
|
1638
|
+
fourCols: "desktop:grid-cols-4"
|
|
1320
1639
|
}
|
|
1321
1640
|
},
|
|
1322
1641
|
defaultVariants: {
|
|
1323
|
-
|
|
1642
|
+
variant: "fourCols"
|
|
1324
1643
|
}
|
|
1325
|
-
}),
|
|
1644
|
+
}), Ur = ({
|
|
1645
|
+
variant: t,
|
|
1646
|
+
details: e,
|
|
1647
|
+
headline: r,
|
|
1648
|
+
mobileAccordionProps: o,
|
|
1649
|
+
rootAccordionProps: i,
|
|
1650
|
+
classes: a,
|
|
1651
|
+
defaultOpen: l
|
|
1652
|
+
}) => {
|
|
1653
|
+
var u, m, x;
|
|
1654
|
+
return /* @__PURE__ */ n.jsx(
|
|
1655
|
+
"section",
|
|
1656
|
+
{
|
|
1657
|
+
id: s.interLinking,
|
|
1658
|
+
"data-test-id": s.interLinking,
|
|
1659
|
+
className: d("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1660
|
+
children: /* @__PURE__ */ n.jsx(S, { children: /* @__PURE__ */ n.jsx(
|
|
1661
|
+
oe,
|
|
1662
|
+
{
|
|
1663
|
+
defaultOpen: l,
|
|
1664
|
+
label: /* @__PURE__ */ n.jsx(P, { as: "h4", className: d("text-left", a == null ? void 0 : a.headline), children: r }),
|
|
1665
|
+
...i,
|
|
1666
|
+
classes: {
|
|
1667
|
+
...i == null ? void 0 : i.classes,
|
|
1668
|
+
header: {
|
|
1669
|
+
trigger: d("bg-color-blue-grey-100", (m = (u = i == null ? void 0 : i.classes) == null ? void 0 : u.header) == null ? void 0 : m.trigger)
|
|
1670
|
+
},
|
|
1671
|
+
content: d("max-w-full bg-color-blue-grey-100 relative", (x = i == null ? void 0 : i.classes) == null ? void 0 : x.content)
|
|
1672
|
+
},
|
|
1673
|
+
children: /* @__PURE__ */ n.jsx("div", { className: d(qr({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.map((p, c) => /* @__PURE__ */ n.jsx(Ar, { ...p, ...o, classes: a == null ? void 0 : a.column }, c)) })
|
|
1674
|
+
}
|
|
1675
|
+
) })
|
|
1676
|
+
}
|
|
1677
|
+
);
|
|
1678
|
+
}, Wr = O("", {
|
|
1326
1679
|
variants: {
|
|
1327
1680
|
intent: {
|
|
1328
|
-
twoItems: "desktop:
|
|
1329
|
-
fourItems: " "
|
|
1681
|
+
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
1682
|
+
fourItems: "mob-title-bold-l desktop:desk-title-bold-l mb-8"
|
|
1330
1683
|
},
|
|
1331
|
-
|
|
1332
|
-
true:
|
|
1333
|
-
|
|
1684
|
+
desktopHidden: {
|
|
1685
|
+
true: "desktop:hidden"
|
|
1686
|
+
},
|
|
1687
|
+
mobileHidden: {
|
|
1688
|
+
true: "mobile:hidden"
|
|
1334
1689
|
}
|
|
1335
1690
|
},
|
|
1336
1691
|
defaultVariants: {
|
|
1337
1692
|
intent: "twoItems"
|
|
1693
|
+
}
|
|
1694
|
+
}), Kr = O("", {
|
|
1695
|
+
variants: {
|
|
1696
|
+
intent: {
|
|
1697
|
+
twoItems: "",
|
|
1698
|
+
fourItems: ""
|
|
1699
|
+
},
|
|
1700
|
+
withButton: {
|
|
1701
|
+
true: ""
|
|
1702
|
+
}
|
|
1338
1703
|
},
|
|
1339
1704
|
compoundVariants: [
|
|
1340
1705
|
{
|
|
1341
|
-
intent: "
|
|
1706
|
+
intent: "twoItems",
|
|
1342
1707
|
withButton: !0,
|
|
1343
|
-
class: "
|
|
1708
|
+
class: "mb-8 desktop:flex"
|
|
1344
1709
|
},
|
|
1345
1710
|
{
|
|
1346
|
-
intent: "
|
|
1711
|
+
intent: "twoItems",
|
|
1347
1712
|
withButton: !1,
|
|
1348
|
-
class: "desktop:
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1713
|
+
class: "desktop:flex"
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
intent: "fourItems",
|
|
1717
|
+
withButton: !0,
|
|
1718
|
+
class: "desktop:grid grid-rows-2 mb-8 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
intent: "fourItems",
|
|
1722
|
+
withButton: !1,
|
|
1723
|
+
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1724
|
+
}
|
|
1725
|
+
]
|
|
1726
|
+
}), $r = O("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1727
|
+
variants: {
|
|
1728
|
+
intent: {
|
|
1729
|
+
twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
|
|
1730
|
+
fourItems: " mobile:last:border-none desktop:w-[264px] desktop:odd:border-b desktop:pb-0 desktop:odd:pb-3"
|
|
1731
|
+
}
|
|
1732
|
+
},
|
|
1733
|
+
defaultVariants: {
|
|
1734
|
+
intent: "twoItems"
|
|
1735
|
+
}
|
|
1736
|
+
}), Zr = O("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1737
|
+
variants: {
|
|
1738
|
+
intent: {
|
|
1739
|
+
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
1740
|
+
fourItems: " "
|
|
1741
|
+
},
|
|
1742
|
+
withButton: {
|
|
1743
|
+
true: !0,
|
|
1744
|
+
false: !1
|
|
1745
|
+
}
|
|
1746
|
+
},
|
|
1747
|
+
defaultVariants: {
|
|
1748
|
+
intent: "twoItems"
|
|
1749
|
+
},
|
|
1750
|
+
compoundVariants: [
|
|
1751
|
+
{
|
|
1752
|
+
intent: "fourItems",
|
|
1753
|
+
withButton: !0,
|
|
1754
|
+
class: "desktop:h-[360px] desktop:w-[500px]"
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
intent: "fourItems",
|
|
1758
|
+
withButton: !1,
|
|
1759
|
+
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
1760
|
+
}
|
|
1761
|
+
]
|
|
1762
|
+
}), Xr = ({ data: t, intent: e }) => {
|
|
1763
|
+
const {
|
|
1764
|
+
title: r,
|
|
1354
1765
|
description: o,
|
|
1355
1766
|
popover: i = {
|
|
1356
1767
|
enabled: !1
|
|
1357
1768
|
}
|
|
1358
1769
|
} = t;
|
|
1359
|
-
return /* @__PURE__ */ n.jsx("li", { className: d(
|
|
1770
|
+
return /* @__PURE__ */ n.jsx("li", { className: d($r({ intent: e })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1360
1771
|
/* @__PURE__ */ n.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
|
|
1361
1772
|
/* @__PURE__ */ n.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: r }),
|
|
1362
|
-
i.enabled && /* @__PURE__ */ n.jsx(
|
|
1773
|
+
i.enabled && /* @__PURE__ */ n.jsx(Te, { triggerElement: /* @__PURE__ */ n.jsx(f, { className: d("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1363
1774
|
] }),
|
|
1364
1775
|
/* @__PURE__ */ n.jsx("div", { className: d("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1365
1776
|
] }) });
|
|
1366
|
-
}, Ne = ({ intent: t, headline: e, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: d(
|
|
1777
|
+
}, Ne = ({ intent: t, headline: e, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: d(Wr({ intent: t, desktopHidden: r, mobileHidden: o })), children: e }), Yr = ({ details: t, intent: e, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: d(Kr({ intent: e, withButton: r })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ n.jsx(Xr, { intent: e, data: o }, i)) }), Jr = ({
|
|
1367
1778
|
headline: t,
|
|
1368
1779
|
buttonConfig: e,
|
|
1369
1780
|
intent: r = "twoItems",
|
|
@@ -1383,14 +1794,14 @@ const Jt = [
|
|
|
1383
1794
|
),
|
|
1384
1795
|
children: [
|
|
1385
1796
|
l && /* @__PURE__ */ n.jsx(Ne, { intent: r, headline: t, desktopHidden: !0 }),
|
|
1386
|
-
/* @__PURE__ */ n.jsx("div", { className: d(
|
|
1797
|
+
/* @__PURE__ */ n.jsx("div", { className: d(Zr({ intent: r, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
|
|
1387
1798
|
/* @__PURE__ */ n.jsxs(
|
|
1388
1799
|
"div",
|
|
1389
1800
|
{
|
|
1390
1801
|
className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
|
|
1391
1802
|
children: [
|
|
1392
1803
|
l && /* @__PURE__ */ n.jsx(Ne, { intent: r, headline: t, mobileHidden: !0 }),
|
|
1393
|
-
/* @__PURE__ */ n.jsx(
|
|
1804
|
+
/* @__PURE__ */ n.jsx(Yr, { details: o, intent: r, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
|
|
1394
1805
|
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ n.jsx(
|
|
1395
1806
|
Z,
|
|
1396
1807
|
{
|
|
@@ -1407,265 +1818,509 @@ const Jt = [
|
|
|
1407
1818
|
}
|
|
1408
1819
|
)
|
|
1409
1820
|
] }) });
|
|
1410
|
-
},
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1821
|
+
}, gt = ({ breadcrumb: t, className: e, ...r }) => /* @__PURE__ */ n.jsx("a", { href: t.path, className: d("desk-body-regular-m", e), ...r, children: t.label }), Gr = ({ startsWith: t, endsWith: e, matcher: r, filter: o, rootEnabled: i = !0 }) => {
|
|
1822
|
+
const [a, l] = L([]);
|
|
1823
|
+
return be(() => {
|
|
1824
|
+
if (!it)
|
|
1825
|
+
return;
|
|
1826
|
+
let u = window.location.pathname.split("/").filter((p) => !j.isStringEmpty(p));
|
|
1827
|
+
j.isUndefined(t) || (j.isString(t) ? u = u.slice(u.findIndex((p) => p === t)) : u = u.slice(t)), j.isUndefined(e) || (j.isString(e) ? u = u.slice(0, u.findIndex((p) => p === e) + 1) : u = u.slice(0, e + 1));
|
|
1828
|
+
let m = [], x = "";
|
|
1829
|
+
if (i) {
|
|
1830
|
+
const p = {
|
|
1831
|
+
index: 0,
|
|
1832
|
+
id: Qe(),
|
|
1833
|
+
path: "/",
|
|
1834
|
+
label: "home"
|
|
1835
|
+
};
|
|
1836
|
+
m.push(p);
|
|
1837
|
+
}
|
|
1838
|
+
u.forEach((p, c) => {
|
|
1839
|
+
x += `/${p}`;
|
|
1840
|
+
const b = {
|
|
1841
|
+
// while root enabled we need to increment index
|
|
1842
|
+
// cuz we have root breadcrumb
|
|
1843
|
+
index: i ? c + 1 : c,
|
|
1844
|
+
id: Qe(),
|
|
1845
|
+
path: x,
|
|
1846
|
+
label: p
|
|
1847
|
+
};
|
|
1848
|
+
m.push(b);
|
|
1849
|
+
}), r && (m = m.map((p) => ({
|
|
1850
|
+
...p,
|
|
1851
|
+
...r(p)
|
|
1852
|
+
}))), l(o ? m.filter(o) : m);
|
|
1853
|
+
}, [e, o, r, i, t]), a;
|
|
1854
|
+
}, fe = (t, e, r, o) => t.map((i, a) => {
|
|
1855
|
+
const l = a === o;
|
|
1856
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
1857
|
+
/* @__PURE__ */ n.jsx(
|
|
1858
|
+
gt,
|
|
1425
1859
|
{
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
"
|
|
1429
|
-
|
|
1430
|
-
r == null ? void 0 : r.wrapper
|
|
1431
|
-
),
|
|
1432
|
-
children: e ? /* @__PURE__ */ n.jsx(St, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : t
|
|
1860
|
+
breadcrumb: i,
|
|
1861
|
+
className: d(r, {
|
|
1862
|
+
"pointer-events-none text-color-primary-disabled": l
|
|
1863
|
+
})
|
|
1433
1864
|
}
|
|
1434
|
-
)
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
}
|
|
1443
|
-
),
|
|
1444
|
-
/* @__PURE__ */ n.jsx(
|
|
1445
|
-
"path",
|
|
1446
|
-
{
|
|
1447
|
-
d: "M1.27985 12.4821C1.27985 12.1286 1.56638 11.8421 1.91985 11.8421H11.8398C12.1933 11.8421 12.4798 12.1286 12.4798 12.4821V14.4021C12.4798 14.7555 12.1933 15.0421 11.8398 15.0421H1.27985V12.4821Z",
|
|
1448
|
-
fill: "#0066B3"
|
|
1449
|
-
}
|
|
1450
|
-
),
|
|
1451
|
-
/* @__PURE__ */ n.jsx(
|
|
1452
|
-
"path",
|
|
1453
|
-
{
|
|
1454
|
-
d: "M1.27985 16.9618H21.4398C21.7933 16.9618 22.0798 17.2484 22.0798 17.6018V19.5218C22.0798 19.8752 21.7933 20.1618 21.4398 20.1618H1.91985C1.56638 20.1618 1.27985 19.8752 1.27985 19.5218V16.9618Z",
|
|
1455
|
-
fill: "#EE2F53"
|
|
1456
|
-
}
|
|
1457
|
-
),
|
|
1458
|
-
/* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsxs("linearGradient", { id: "paint0_linear_6493_452", x1: "16.0071", y1: "0", x2: "16.0071", y2: "31.9996", gradientUnits: "userSpaceOnUse", children: [
|
|
1459
|
-
/* @__PURE__ */ n.jsx("stop", { stopColor: "#0066B3" }),
|
|
1460
|
-
/* @__PURE__ */ n.jsx("stop", { offset: "0.354167", stopColor: "#0066B3" }),
|
|
1461
|
-
/* @__PURE__ */ n.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1462
|
-
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1463
|
-
] }) })
|
|
1464
|
-
] }), pt = ({ mainLink: t, subLink: e, isMobile: r, classes: o }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
|
|
1465
|
-
/* @__PURE__ */ n.jsx(
|
|
1466
|
-
"a",
|
|
1467
|
-
{
|
|
1468
|
-
href: t.href,
|
|
1469
|
-
target: "_blank",
|
|
1470
|
-
rel: "noreferrer",
|
|
1471
|
-
className: d(
|
|
1472
|
-
'before:content=[" "] desk-body-medium-l z-[4] text-color-dark before:absolute before:left-1/2 before:top-1/2 before:h-full before:w-full before:-translate-x-1/2 before:-translate-y-1/2',
|
|
1473
|
-
o == null ? void 0 : o.linksMainLink
|
|
1474
|
-
),
|
|
1475
|
-
children: r ? t.mobileTitle : t.title
|
|
1476
|
-
}
|
|
1477
|
-
),
|
|
1478
|
-
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ n.jsx(
|
|
1479
|
-
je,
|
|
1480
|
-
{
|
|
1481
|
-
intent: "blue",
|
|
1482
|
-
withUnderline: !0,
|
|
1483
|
-
href: e == null ? void 0 : e.href,
|
|
1484
|
-
target: "_blank",
|
|
1485
|
-
rel: "noreferrer",
|
|
1486
|
-
classes: {
|
|
1487
|
-
link: d("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", o == null ? void 0 : o.linksSubLink)
|
|
1488
|
-
},
|
|
1489
|
-
children: e == null ? void 0 : e.text
|
|
1490
|
-
}
|
|
1491
|
-
)
|
|
1492
|
-
] }), Ue = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
1493
|
-
const { isMobile: l } = G();
|
|
1494
|
-
return /* @__PURE__ */ n.jsx(ht, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1495
|
-
"div",
|
|
1496
|
-
{
|
|
1497
|
-
className: d(
|
|
1498
|
-
"flex flex-1 items-center justify-between gap-1",
|
|
1499
|
-
{ "justify-center": !o && l },
|
|
1500
|
-
a == null ? void 0 : a.innerWrapper
|
|
1501
|
-
),
|
|
1502
|
-
children: [
|
|
1503
|
-
/* @__PURE__ */ n.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1504
|
-
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
1505
|
-
/* @__PURE__ */ n.jsx(f, { name: "logos/mts", className: d("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
|
|
1506
|
-
/* @__PURE__ */ n.jsx(f, { name: "logos/megafon", className: d("relative z-[8] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.megafonLogo) }),
|
|
1507
|
-
/* @__PURE__ */ n.jsx(f, { name: "logos/beeline", className: d("relative z-[7] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.beelineLogo) })
|
|
1508
|
-
] }),
|
|
1509
|
-
/* @__PURE__ */ n.jsx(pt, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
|
|
1510
|
-
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1511
|
-
] }),
|
|
1512
|
-
o && /* @__PURE__ */ n.jsx(Ee, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1513
|
-
]
|
|
1514
|
-
}
|
|
1515
|
-
) });
|
|
1516
|
-
}, We = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
1517
|
-
const { isMobile: l } = G();
|
|
1518
|
-
return /* @__PURE__ */ n.jsx(ht, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
1865
|
+
),
|
|
1866
|
+
a !== t.length - 1 && e
|
|
1867
|
+
] }, i.id);
|
|
1868
|
+
}), en = ({ separator: t, ellipsis: e, classes: r, ...o }) => {
|
|
1869
|
+
const [i, a] = L(!1), l = Be(null);
|
|
1870
|
+
Pt(l, () => a(!1));
|
|
1871
|
+
const u = Gr(o), { first: m, middle: x, last: p } = ye(() => {
|
|
1872
|
+
let b = [], g = [], k = [];
|
|
1873
|
+
return e && (b = u.slice(0, e), g = u.slice(e, u.length - e), k = u.slice(u.length - e)), { first: b, middle: g, last: k };
|
|
1874
|
+
}, [u, e]), c = t ?? /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("size-4", r == null ? void 0 : r.separator) });
|
|
1875
|
+
return /* @__PURE__ */ n.jsx(
|
|
1519
1876
|
"div",
|
|
1520
1877
|
{
|
|
1521
1878
|
className: d(
|
|
1522
|
-
"flex flex-
|
|
1523
|
-
|
|
1524
|
-
|
|
1879
|
+
"flex max-w-[840px] flex-wrap items-center",
|
|
1880
|
+
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
1881
|
+
r == null ? void 0 : r.root
|
|
1525
1882
|
),
|
|
1526
|
-
children:
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1883
|
+
children: e ? (
|
|
1884
|
+
// if ellipsis provided, render hidden breadcrumbs
|
|
1885
|
+
/* @__PURE__ */ n.jsx(n.Fragment, { children: u.length > e * 2 + 1 ? (
|
|
1886
|
+
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
1887
|
+
// render hidden breadcrumbs
|
|
1888
|
+
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1889
|
+
fe(m, c, r == null ? void 0 : r.breadcrumb),
|
|
1890
|
+
c,
|
|
1891
|
+
x.length > 0 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1892
|
+
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
1893
|
+
/* @__PURE__ */ n.jsx("button", { onClick: () => a(!0), children: "..." }),
|
|
1894
|
+
/* @__PURE__ */ n.jsx(
|
|
1895
|
+
"ul",
|
|
1896
|
+
{
|
|
1897
|
+
ref: l,
|
|
1898
|
+
className: d(
|
|
1899
|
+
"invisible absolute max-h-[264px] overflow-y-auto",
|
|
1900
|
+
"w-[280px] rounded-sm bg-color-white",
|
|
1901
|
+
"customScrollbar-y p-1 opacity-0 shadow-sm",
|
|
1902
|
+
{
|
|
1903
|
+
"visible opacity-100": i
|
|
1904
|
+
}
|
|
1905
|
+
),
|
|
1906
|
+
children: x.map((b) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
1907
|
+
gt,
|
|
1908
|
+
{
|
|
1909
|
+
breadcrumb: b,
|
|
1910
|
+
className: d(
|
|
1911
|
+
"desk-body-regular-l inline-block py-3",
|
|
1912
|
+
"w-full rounded-sm bg-color-white px-2",
|
|
1913
|
+
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
1914
|
+
r == null ? void 0 : r.breadcrumb
|
|
1915
|
+
)
|
|
1916
|
+
}
|
|
1917
|
+
) }, b.id))
|
|
1918
|
+
}
|
|
1919
|
+
)
|
|
1920
|
+
] }),
|
|
1921
|
+
c
|
|
1922
|
+
] }),
|
|
1923
|
+
fe(p, c, r == null ? void 0 : r.breadcrumb, p.length - 1)
|
|
1924
|
+
] })
|
|
1925
|
+
) : (
|
|
1926
|
+
// otherwise render all breadcrumbs
|
|
1927
|
+
fe(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
1928
|
+
) })
|
|
1929
|
+
) : (
|
|
1930
|
+
// if ellipsis doesn't provided render all breadcrumbs
|
|
1931
|
+
fe(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
1932
|
+
)
|
|
1534
1933
|
}
|
|
1535
|
-
)
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
case
|
|
1541
|
-
return
|
|
1542
|
-
|
|
1934
|
+
);
|
|
1935
|
+
};
|
|
1936
|
+
var ue = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(ue || {});
|
|
1937
|
+
const tn = (t, e) => {
|
|
1938
|
+
switch (e.type) {
|
|
1939
|
+
case ue.ROOT:
|
|
1940
|
+
return {
|
|
1941
|
+
...t,
|
|
1942
|
+
root: e.payload
|
|
1943
|
+
};
|
|
1944
|
+
case ue.CURRENT:
|
|
1945
|
+
return {
|
|
1946
|
+
...t,
|
|
1947
|
+
current: e.payload
|
|
1948
|
+
};
|
|
1543
1949
|
default:
|
|
1544
|
-
|
|
1545
|
-
|
|
1950
|
+
return t;
|
|
1951
|
+
}
|
|
1952
|
+
}, rn = (t) => {
|
|
1953
|
+
const [e, r] = zt(tn, t);
|
|
1954
|
+
return [e, r];
|
|
1955
|
+
}, nn = (t) => ({
|
|
1956
|
+
type: ue.CURRENT,
|
|
1957
|
+
payload: t
|
|
1958
|
+
}), on = (t) => ({
|
|
1959
|
+
type: ue.ROOT,
|
|
1960
|
+
payload: t
|
|
1961
|
+
}), an = ({ categories: t, ...e }) => {
|
|
1962
|
+
var r, o;
|
|
1963
|
+
return ut(
|
|
1964
|
+
/* @__PURE__ */ n.jsx(
|
|
1965
|
+
Oe.div,
|
|
1966
|
+
{
|
|
1967
|
+
...e,
|
|
1968
|
+
layout: !0,
|
|
1969
|
+
initial: { opacity: 0 },
|
|
1970
|
+
animate: { opacity: 1 },
|
|
1971
|
+
transition: { duration: 0.2 },
|
|
1972
|
+
className: "absolute bg-color-white",
|
|
1973
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
|
|
1974
|
+
var l;
|
|
1975
|
+
const a = i.link ? "a" : "p";
|
|
1976
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
1977
|
+
i.title && /* @__PURE__ */ n.jsxs(
|
|
1978
|
+
a,
|
|
1979
|
+
{
|
|
1980
|
+
href: ((l = i.link) == null ? void 0 : l.href) ?? void 0,
|
|
1981
|
+
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
1982
|
+
children: [
|
|
1983
|
+
i.title,
|
|
1984
|
+
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowLink", className: "size-6" })
|
|
1985
|
+
]
|
|
1986
|
+
}
|
|
1987
|
+
),
|
|
1988
|
+
/* @__PURE__ */ n.jsx("ul", { className: "w-[328px]", children: i.children.map((u) => {
|
|
1989
|
+
var m;
|
|
1990
|
+
return /* @__PURE__ */ n.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ n.jsx("a", { href: (m = u.link) == null ? void 0 : m.href, className: "w-full text-16", children: u.title }) }, u.title);
|
|
1991
|
+
}) })
|
|
1992
|
+
] }, i.title);
|
|
1993
|
+
}) })
|
|
1994
|
+
}
|
|
1995
|
+
),
|
|
1996
|
+
/**
|
|
1997
|
+
* Нужно для preview, чтобы категории рендерились в iframe
|
|
1998
|
+
*/
|
|
1999
|
+
((o = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : o.body) ?? document.body
|
|
2000
|
+
);
|
|
2001
|
+
}, dn = Qt(({ category: t, active: e, onActiveTabChange: r }, o) => {
|
|
2002
|
+
var m, x;
|
|
2003
|
+
const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), l = e && !j.isArrayEmpty(t.children), u = j.isArrayEmpty(t.children) ? "a" : "span";
|
|
2004
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2005
|
+
Oe.div,
|
|
2006
|
+
{
|
|
2007
|
+
ref: o,
|
|
2008
|
+
className: d(
|
|
2009
|
+
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
2010
|
+
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
2011
|
+
"after:w-0 after:-translate-x-1/2 after:bg-color-primary-default after:duration-100",
|
|
2012
|
+
{
|
|
2013
|
+
"text-color-primary-default": l,
|
|
2014
|
+
"after:w-full": l
|
|
2015
|
+
}
|
|
2016
|
+
),
|
|
2017
|
+
onMouseEnter: () => r(t.title),
|
|
2018
|
+
onMouseLeave: () => r(null),
|
|
2019
|
+
onFocus: () => r(t.title),
|
|
2020
|
+
children: [
|
|
2021
|
+
/* @__PURE__ */ n.jsx(u, { href: u === "a" ? (x = t.link) == null ? void 0 : x.href : void 0, className: "desk-body-regular-m outline-none", children: t.title }),
|
|
2022
|
+
l && /* @__PURE__ */ n.jsx(
|
|
2023
|
+
an,
|
|
2024
|
+
{
|
|
2025
|
+
categories: t.children,
|
|
2026
|
+
style: {
|
|
2027
|
+
top: a ? a.top + a.height : 0,
|
|
2028
|
+
left: a ? a.left : 0,
|
|
2029
|
+
width: window.innerWidth
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
)
|
|
2033
|
+
]
|
|
2034
|
+
}
|
|
2035
|
+
);
|
|
2036
|
+
}), ln = Se(dn), un = ({ categories: t }) => {
|
|
2037
|
+
const [e, r] = L(null), o = nt((a) => {
|
|
2038
|
+
r(a);
|
|
2039
|
+
}, []), i = Be(null);
|
|
2040
|
+
return /* @__PURE__ */ n.jsx(Rt, { mode: "sync", children: /* @__PURE__ */ n.jsxs(
|
|
2041
|
+
"div",
|
|
2042
|
+
{
|
|
2043
|
+
ref: i,
|
|
2044
|
+
id: "tabs",
|
|
2045
|
+
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2046
|
+
children: [
|
|
2047
|
+
t.map((a) => /* @__PURE__ */ n.jsx(
|
|
2048
|
+
ln,
|
|
2049
|
+
{
|
|
2050
|
+
ref: i,
|
|
2051
|
+
category: a,
|
|
2052
|
+
active: e === a.title,
|
|
2053
|
+
onActiveTabChange: o
|
|
2054
|
+
},
|
|
2055
|
+
a.title
|
|
2056
|
+
)),
|
|
2057
|
+
/* @__PURE__ */ n.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
2058
|
+
]
|
|
2059
|
+
}
|
|
2060
|
+
) });
|
|
2061
|
+
}, mn = Se(un), xn = ({
|
|
2062
|
+
category: t,
|
|
2063
|
+
selectedCategory: e,
|
|
2064
|
+
onCurrentCategoryChange: r,
|
|
2065
|
+
onRootCategoryChange: o,
|
|
2066
|
+
active: i,
|
|
2067
|
+
...a
|
|
2068
|
+
}) => /* @__PURE__ */ n.jsxs(
|
|
2069
|
+
"div",
|
|
2070
|
+
{
|
|
2071
|
+
...a,
|
|
2072
|
+
onClick: () => {
|
|
2073
|
+
r(t.children[0]), o(t);
|
|
2074
|
+
},
|
|
2075
|
+
className: d("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2076
|
+
"text-color-dark": i
|
|
2077
|
+
}),
|
|
2078
|
+
children: [
|
|
2079
|
+
/* @__PURE__ */ n.jsx("span", { className: "desk-body-regular-m", children: t.title }),
|
|
2080
|
+
t.children.length > 1 && /* @__PURE__ */ n.jsx(
|
|
1546
2081
|
"div",
|
|
1547
2082
|
{
|
|
1548
2083
|
className: d(
|
|
1549
|
-
"
|
|
1550
|
-
|
|
2084
|
+
"absolute right-0 top-full z-10 flex w-max flex-col",
|
|
2085
|
+
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
2086
|
+
"rounded-sm p-1"
|
|
1551
2087
|
),
|
|
1552
|
-
children:
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
2088
|
+
children: t.children.map((l) => /* @__PURE__ */ n.jsx(
|
|
2089
|
+
"span",
|
|
2090
|
+
{
|
|
2091
|
+
onClick: (u) => {
|
|
2092
|
+
u.stopPropagation(), u.nativeEvent.stopPropagation(), o(t), r(l);
|
|
2093
|
+
},
|
|
2094
|
+
className: d(
|
|
2095
|
+
"desk-body-regular-l rounded-sm px-3 py-3.5 text-color-dark duration-100 hover:bg-color-primary-tr-hover hover:text-color-dark",
|
|
1560
2096
|
{
|
|
1561
|
-
|
|
1562
|
-
classes: {
|
|
1563
|
-
root: "p-0 outline-0 h-[74px]",
|
|
1564
|
-
arrowIcon: "hidden",
|
|
1565
|
-
...e.classes
|
|
1566
|
-
}
|
|
2097
|
+
"text-color-primary-default": e.title === l.title
|
|
1567
2098
|
}
|
|
1568
2099
|
),
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
classes: {
|
|
1574
|
-
root: "p-0 outline-0 h-[74px]",
|
|
1575
|
-
arrowIcon: "hidden",
|
|
1576
|
-
...r.classes
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
)
|
|
1580
|
-
] })
|
|
1581
|
-
]
|
|
2100
|
+
children: l.title
|
|
2101
|
+
},
|
|
2102
|
+
l.title
|
|
2103
|
+
))
|
|
1582
2104
|
}
|
|
1583
|
-
)
|
|
2105
|
+
)
|
|
2106
|
+
]
|
|
1584
2107
|
}
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
{
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
return /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1601
|
-
!i && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1602
|
-
/* @__PURE__ */ n.jsx("h5", { className: d("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: t }),
|
|
1603
|
-
/* @__PURE__ */ n.jsx(Ke, { links: e, classes: o == null ? void 0 : o.linksList }, "desktop")
|
|
1604
|
-
] }),
|
|
1605
|
-
i && /* @__PURE__ */ n.jsx(
|
|
1606
|
-
oe,
|
|
1607
|
-
{
|
|
1608
|
-
defaultOpen: !0,
|
|
1609
|
-
label: t,
|
|
1610
|
-
icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1611
|
-
...r,
|
|
1612
|
-
classes: {
|
|
1613
|
-
...r == null ? void 0 : r.classes,
|
|
1614
|
-
header: {
|
|
1615
|
-
trigger: d("p-0 bg-color-blue-grey-100", (l = (a = r == null ? void 0 : r.classes) == null ? void 0 : a.header) == null ? void 0 : l.trigger)
|
|
2108
|
+
), hn = ({ categories: t, helpers: e, phone: r }) => {
|
|
2109
|
+
const [o, i] = rn({ root: t[0].children[0], current: t[0].children[0] });
|
|
2110
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2111
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2112
|
+
/* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2113
|
+
t.map((a) => {
|
|
2114
|
+
const l = o.root.title === a.title;
|
|
2115
|
+
return /* @__PURE__ */ n.jsx(
|
|
2116
|
+
xn,
|
|
2117
|
+
{
|
|
2118
|
+
category: a,
|
|
2119
|
+
selectedCategory: o.current,
|
|
2120
|
+
onCurrentCategoryChange: (u) => i(nn(u)),
|
|
2121
|
+
onRootCategoryChange: (u) => i(on(u)),
|
|
2122
|
+
active: l
|
|
1616
2123
|
},
|
|
1617
|
-
|
|
2124
|
+
a.title
|
|
2125
|
+
);
|
|
2126
|
+
}),
|
|
2127
|
+
/* @__PURE__ */ n.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2128
|
+
e.map((a) => /* @__PURE__ */ n.jsxs(
|
|
2129
|
+
"a",
|
|
2130
|
+
{
|
|
2131
|
+
href: a.link.href,
|
|
2132
|
+
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2133
|
+
children: [
|
|
2134
|
+
a.link.icon && /* @__PURE__ */ n.jsx(f, { name: a.link.icon, className: "size-4" }),
|
|
2135
|
+
a.title
|
|
2136
|
+
]
|
|
1618
2137
|
},
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
2138
|
+
a.title
|
|
2139
|
+
)),
|
|
2140
|
+
/* @__PURE__ */ n.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2141
|
+
/* @__PURE__ */ n.jsx(
|
|
2142
|
+
"a",
|
|
2143
|
+
{
|
|
2144
|
+
href: `tel:${r}`,
|
|
2145
|
+
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2146
|
+
children: ke(r, "x xxx xxx xx xx")
|
|
2147
|
+
}
|
|
2148
|
+
)
|
|
2149
|
+
] }),
|
|
2150
|
+
/* @__PURE__ */ n.jsx(mn, { categories: o.current.children })
|
|
1622
2151
|
] });
|
|
1623
|
-
},
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
2152
|
+
}, pn = ({ category: t }) => /* @__PURE__ */ n.jsx(
|
|
2153
|
+
oe,
|
|
2154
|
+
{
|
|
2155
|
+
label: t.title ?? "",
|
|
2156
|
+
icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
2157
|
+
classes: {
|
|
2158
|
+
root: "w-full",
|
|
2159
|
+
header: {
|
|
2160
|
+
trigger: "py-2 data-[open=false]:bg-color-white",
|
|
2161
|
+
label: "desk-body-regular-m"
|
|
2162
|
+
},
|
|
2163
|
+
content: d(
|
|
2164
|
+
"relative",
|
|
2165
|
+
'after:content-"" after:absolute after:w-[calc(100%-32px)]',
|
|
2166
|
+
"after:bottom-0 after:left-1/2 after:-translate-x-1/2",
|
|
2167
|
+
"after:h-[1px] after:bg-color-blue-grey-200"
|
|
2168
|
+
)
|
|
2169
|
+
},
|
|
2170
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: t.children.map((e) => {
|
|
2171
|
+
var i;
|
|
2172
|
+
const r = !!e.link, o = r ? "a" : "p";
|
|
2173
|
+
return /* @__PURE__ */ n.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2174
|
+
/* @__PURE__ */ n.jsxs(
|
|
2175
|
+
o,
|
|
2176
|
+
{
|
|
2177
|
+
href: r ? (i = e.link) == null ? void 0 : i.href : void 0,
|
|
2178
|
+
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2179
|
+
children: [
|
|
2180
|
+
e.title,
|
|
2181
|
+
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowLink" })
|
|
2182
|
+
]
|
|
2183
|
+
}
|
|
2184
|
+
),
|
|
2185
|
+
e.children.map((a) => {
|
|
2186
|
+
var l;
|
|
2187
|
+
return /* @__PURE__ */ n.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ n.jsx("a", { href: (l = a.link) == null ? void 0 : l.href, className: "w-full", children: a.title }) }, a.title);
|
|
2188
|
+
})
|
|
2189
|
+
] }, e.title);
|
|
2190
|
+
}) })
|
|
2191
|
+
},
|
|
2192
|
+
t.title
|
|
2193
|
+
), cn = (t) => t.map((e) => ({
|
|
2194
|
+
value: e.title ?? "",
|
|
2195
|
+
label: e.title ?? ""
|
|
2196
|
+
})), fn = ({ categories: t, helpers: e, phone: r, ...o }) => {
|
|
2197
|
+
const i = cn(t), [a, l] = L(i[0]), u = (x) => {
|
|
2198
|
+
j.isUndefined(x) || j.isArray(x) || l(x);
|
|
2199
|
+
}, m = ye(() => {
|
|
2200
|
+
var x;
|
|
2201
|
+
return j.isUndefined(a) || j.isArray(a) ? [] : ((x = t.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
|
|
2202
|
+
}, [a, t]);
|
|
2203
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2204
|
+
Oe.div,
|
|
1646
2205
|
{
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
2206
|
+
...o,
|
|
2207
|
+
className: d(
|
|
2208
|
+
"absolute w-full max-w-[calc(636px-32px)]",
|
|
2209
|
+
"absolute left-1/2 top-full bg-color-white p-4",
|
|
2210
|
+
"-translate-x-1/2 overflow-x-hidden",
|
|
2211
|
+
"flex flex-col items-center justify-center gap-y-4"
|
|
2212
|
+
),
|
|
2213
|
+
initial: { opacity: 0 },
|
|
2214
|
+
animate: { opacity: 1 },
|
|
2215
|
+
children: [
|
|
2216
|
+
/* @__PURE__ */ n.jsx(Ee.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
|
|
2217
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((x) => {
|
|
2218
|
+
var p;
|
|
2219
|
+
return j.isArrayEmpty(x.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (p = x.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: x.title }) }, x.title) : /* @__PURE__ */ n.jsx(pn, { category: x }, x.title);
|
|
2220
|
+
}) }),
|
|
2221
|
+
/* @__PURE__ */ n.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2222
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2223
|
+
e.map((x) => {
|
|
2224
|
+
var p, c;
|
|
2225
|
+
return /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: (p = x.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2226
|
+
((c = x.link) == null ? void 0 : c.icon) && /* @__PURE__ */ n.jsx(f, { name: x.link.icon, className: "size-4" }),
|
|
2227
|
+
x.title
|
|
2228
|
+
] }) }, x.title);
|
|
2229
|
+
}),
|
|
2230
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: `tel:${r}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2231
|
+
/* @__PURE__ */ n.jsx(f, { name: "communication/phone", className: "size-4" }),
|
|
2232
|
+
ke(r)
|
|
2233
|
+
] }) })
|
|
2234
|
+
] })
|
|
2235
|
+
]
|
|
2236
|
+
}
|
|
2237
|
+
);
|
|
2238
|
+
}, bn = ({ categories: t, helpers: e, phone: r }) => {
|
|
2239
|
+
var m, x, p;
|
|
2240
|
+
const o = Be(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = L(!1), u = () => l(!a);
|
|
2241
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: o, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
|
|
2242
|
+
/* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2243
|
+
/* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(f, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2244
|
+
a && ut(
|
|
2245
|
+
/* @__PURE__ */ n.jsx(
|
|
2246
|
+
fn,
|
|
1652
2247
|
{
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
...i == null ? void 0 : i.classes,
|
|
1658
|
-
header: {
|
|
1659
|
-
trigger: d("bg-color-blue-grey-100", (m = (u = i == null ? void 0 : i.classes) == null ? void 0 : u.header) == null ? void 0 : m.trigger)
|
|
1660
|
-
},
|
|
1661
|
-
content: d("max-w-full bg-color-blue-grey-100 relative", (x = i == null ? void 0 : i.classes) == null ? void 0 : x.content)
|
|
1662
|
-
},
|
|
1663
|
-
children: /* @__PURE__ */ n.jsx("div", { className: d(Ir({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.map((p, c) => /* @__PURE__ */ n.jsx(Cr, { ...p, ...o, classes: a == null ? void 0 : a.column }, c)) })
|
|
2248
|
+
categories: t,
|
|
2249
|
+
helpers: e,
|
|
2250
|
+
phone: r,
|
|
2251
|
+
style: { top: i ? i.top + i.height : 0 }
|
|
1664
2252
|
}
|
|
1665
|
-
)
|
|
2253
|
+
),
|
|
2254
|
+
/**
|
|
2255
|
+
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2256
|
+
*/
|
|
2257
|
+
((p = (x = document.body.querySelector("#modal-preview")) == null ? void 0 : x.contentDocument) == null ? void 0 : p.body) ?? document.body
|
|
2258
|
+
)
|
|
2259
|
+
] });
|
|
2260
|
+
}, gn = ({ categories: t, helpers: e, phone: r }) => {
|
|
2261
|
+
const { isMobile: o } = G();
|
|
2262
|
+
return /* @__PURE__ */ n.jsxs("div", { id: s.seoHeader, "data-test-id": s.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2263
|
+
o ? /* @__PURE__ */ n.jsx(bn, { categories: t.map((i) => i.children).flat(), helpers: e, phone: r }) : /* @__PURE__ */ n.jsx(hn, { categories: t, helpers: e, phone: r }),
|
|
2264
|
+
/* @__PURE__ */ n.jsx(
|
|
2265
|
+
en,
|
|
2266
|
+
{
|
|
2267
|
+
ellipsis: o ? 1 : void 0,
|
|
2268
|
+
matcher: (i) => ({ label: At(i.label).split("-").join(" ") })
|
|
2269
|
+
}
|
|
2270
|
+
)
|
|
2271
|
+
] });
|
|
2272
|
+
}, jn = ({ classes: t, index: e, variant: r, title: o, description: i }) => {
|
|
2273
|
+
const a = r === "withTitleAndDescription" && o;
|
|
2274
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2275
|
+
"div",
|
|
2276
|
+
{
|
|
2277
|
+
className: d(
|
|
2278
|
+
"flex w-[328px] max-w-[328px] flex-col gap-4 rounded-md border border-solid border-blue-grey-500 p-4 desktop:w-[348px] desktop:max-w-[348px] desktop:border-none desktop:p-0",
|
|
2279
|
+
t == null ? void 0 : t.singleStep
|
|
2280
|
+
),
|
|
2281
|
+
children: [
|
|
2282
|
+
/* @__PURE__ */ n.jsx(
|
|
2283
|
+
"div",
|
|
2284
|
+
{
|
|
2285
|
+
className: d(
|
|
2286
|
+
"mob-headline-bold-s flex size-10 items-center justify-center rounded-sm bg-color-blue-grey-500 text-color-white desktop:desk-title-bold-l desktop:size-12",
|
|
2287
|
+
t == null ? void 0 : t.numeric
|
|
2288
|
+
),
|
|
2289
|
+
children: e
|
|
2290
|
+
}
|
|
2291
|
+
),
|
|
2292
|
+
/* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-2"), children: [
|
|
2293
|
+
a && /* @__PURE__ */ n.jsx(
|
|
2294
|
+
"div",
|
|
2295
|
+
{
|
|
2296
|
+
dangerouslySetInnerHTML: { __html: o },
|
|
2297
|
+
className: d("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", t == null ? void 0 : t.title)
|
|
2298
|
+
}
|
|
2299
|
+
),
|
|
2300
|
+
/* @__PURE__ */ n.jsx(
|
|
2301
|
+
"div",
|
|
2302
|
+
{
|
|
2303
|
+
dangerouslySetInnerHTML: { __html: i ?? "" },
|
|
2304
|
+
className: d("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description)
|
|
2305
|
+
}
|
|
2306
|
+
)
|
|
2307
|
+
] })
|
|
2308
|
+
]
|
|
1666
2309
|
}
|
|
1667
2310
|
);
|
|
1668
|
-
},
|
|
2311
|
+
}, sn = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: s.stepper, "data-test-id": s.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ n.jsx(S, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
2312
|
+
/* @__PURE__ */ n.jsx(P, { as: "h2", className: d("text-color-dark", o == null ? void 0 : o.headline), children: t }),
|
|
2313
|
+
/* @__PURE__ */ n.jsx(
|
|
2314
|
+
"div",
|
|
2315
|
+
{
|
|
2316
|
+
className: d(
|
|
2317
|
+
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
2318
|
+
o == null ? void 0 : o.stepsWrapper
|
|
2319
|
+
),
|
|
2320
|
+
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ n.jsx(jn, { variant: r, ...i, index: a + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
2321
|
+
}
|
|
2322
|
+
)
|
|
2323
|
+
] }) }) }), yn = ({ tabsNames: t, activeTab: e, setActiveTab: r, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: d("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: t && t.map((i, a) => /* @__PURE__ */ n.jsx(
|
|
1669
2324
|
"button",
|
|
1670
2325
|
{
|
|
1671
2326
|
onClick: () => r(a),
|
|
@@ -1679,10 +2334,10 @@ const Jt = [
|
|
|
1679
2334
|
children: i
|
|
1680
2335
|
},
|
|
1681
2336
|
i
|
|
1682
|
-
)) }),
|
|
2337
|
+
)) }), kn = (t) => t.variant === "HTML", wn = (t) => t.variant === "DOCUMENTS", Nn = (t) => t.variant === "TABLE", vn = ({ html: t, config: e, classes: r, accordionConfig: o }) => {
|
|
1683
2338
|
const i = /* @__PURE__ */ n.jsx("div", { className: d(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
|
|
1684
2339
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(oe, { label: e == null ? void 0 : e.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
|
|
1685
|
-
},
|
|
2340
|
+
}, Cn = (t, e) => ({
|
|
1686
2341
|
rows: t == null ? void 0 : t.map(({ row: r }) => ({
|
|
1687
2342
|
row: r == null ? void 0 : r.map((o, i) => {
|
|
1688
2343
|
var a;
|
|
@@ -1692,21 +2347,21 @@ const Jt = [
|
|
|
1692
2347
|
};
|
|
1693
2348
|
})
|
|
1694
2349
|
}))
|
|
1695
|
-
}),
|
|
2350
|
+
}), In = O("flex flex-col", {
|
|
1696
2351
|
variants: {
|
|
1697
2352
|
columnsVariant: {
|
|
1698
2353
|
twoCols: "w-full max-w-[656px]",
|
|
1699
2354
|
threeCols: "w-full max-w-[768px]"
|
|
1700
2355
|
}
|
|
1701
2356
|
}
|
|
1702
|
-
}),
|
|
2357
|
+
}), Tn = O("desktop:grid mobile:hidden px-4 mb-4", {
|
|
1703
2358
|
variants: {
|
|
1704
2359
|
columnsVariant: {
|
|
1705
2360
|
twoCols: "grid-cols-2 gap-16",
|
|
1706
2361
|
threeCols: "grid-cols-3 gap-12"
|
|
1707
2362
|
}
|
|
1708
2363
|
}
|
|
1709
|
-
}),
|
|
2364
|
+
}), Mn = ({ headings: t, columnsVariant: e, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: d(Tn({ columnsVariant: e }), r == null ? void 0 : r.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ n.jsx("div", { className: d("text-color-secondary", r == null ? void 0 : r.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), En = O("desktop:grid mobile:hidden items-center", {
|
|
1710
2365
|
variants: {
|
|
1711
2366
|
columnsVariant: {
|
|
1712
2367
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1717,21 +2372,21 @@ const Jt = [
|
|
|
1717
2372
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1718
2373
|
}
|
|
1719
2374
|
}
|
|
1720
|
-
}),
|
|
2375
|
+
}), On = ({ row: t, tableVariant: e, columnsVariant: r, rowIndex: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: d(En({ columnsVariant: r, tableVariant: e }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a }, l) => /* @__PURE__ */ n.jsx(
|
|
1721
2376
|
"div",
|
|
1722
2377
|
{
|
|
1723
2378
|
className: d("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
|
|
1724
2379
|
children: a && a
|
|
1725
2380
|
},
|
|
1726
2381
|
l
|
|
1727
|
-
)) }),
|
|
2382
|
+
)) }), Fn = O("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1728
2383
|
variants: {
|
|
1729
2384
|
tableVariant: {
|
|
1730
2385
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1731
2386
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1732
2387
|
}
|
|
1733
2388
|
}
|
|
1734
|
-
}),
|
|
2389
|
+
}), Sn = ({ row: t, tableVariant: e, columnsVariant: r, headingsExist: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: d(Fn({ tableVariant: e }), i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a, heading: l }, u) => /* @__PURE__ */ n.jsxs("div", { className: d("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
|
|
1735
2390
|
l && /* @__PURE__ */ n.jsx("div", { className: d("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
|
|
1736
2391
|
/* @__PURE__ */ n.jsx(
|
|
1737
2392
|
"div",
|
|
@@ -1746,13 +2401,13 @@ const Jt = [
|
|
|
1746
2401
|
children: a
|
|
1747
2402
|
}
|
|
1748
2403
|
)
|
|
1749
|
-
] }, u)) }),
|
|
2404
|
+
] }, u)) }), Bn = ({ tableVariant: t, rows: e, headings: r, columnsVariant: o, classes: i }) => {
|
|
1750
2405
|
var u;
|
|
1751
|
-
const a = ((u =
|
|
2406
|
+
const a = ((u = Cn(e, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
|
|
1752
2407
|
return /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1753
|
-
l && /* @__PURE__ */ n.jsx(
|
|
2408
|
+
l && /* @__PURE__ */ n.jsx(Mn, { headings: r, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1754
2409
|
e == null ? void 0 : e.map((m, x) => /* @__PURE__ */ n.jsx(
|
|
1755
|
-
|
|
2410
|
+
On,
|
|
1756
2411
|
{
|
|
1757
2412
|
rowIndex: x,
|
|
1758
2413
|
tableVariant: t,
|
|
@@ -1763,7 +2418,7 @@ const Jt = [
|
|
|
1763
2418
|
x
|
|
1764
2419
|
)),
|
|
1765
2420
|
a == null ? void 0 : a.map((m, x) => /* @__PURE__ */ n.jsx(
|
|
1766
|
-
|
|
2421
|
+
Sn,
|
|
1767
2422
|
{
|
|
1768
2423
|
headingsExist: l,
|
|
1769
2424
|
tableVariant: t,
|
|
@@ -1774,7 +2429,7 @@ const Jt = [
|
|
|
1774
2429
|
x
|
|
1775
2430
|
))
|
|
1776
2431
|
] });
|
|
1777
|
-
},
|
|
2432
|
+
}, _n = ({
|
|
1778
2433
|
tableVariant: t,
|
|
1779
2434
|
description: e,
|
|
1780
2435
|
columnsVariant: r,
|
|
@@ -1785,9 +2440,9 @@ const Jt = [
|
|
|
1785
2440
|
accordionConfig: u,
|
|
1786
2441
|
classes: m
|
|
1787
2442
|
}) => {
|
|
1788
|
-
const x = /* @__PURE__ */ n.jsxs("div", { className: d(
|
|
2443
|
+
const x = /* @__PURE__ */ n.jsxs("div", { className: d(In({ columnsVariant: r }), m == null ? void 0 : m.wrapper), children: [
|
|
1789
2444
|
a && /* @__PURE__ */ n.jsx(P, { as: "h4", className: d("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
|
|
1790
|
-
/* @__PURE__ */ n.jsx(
|
|
2445
|
+
/* @__PURE__ */ n.jsx(Bn, { tableVariant: t, rows: i, headings: l, columnsVariant: r }),
|
|
1791
2446
|
e && /* @__PURE__ */ n.jsx(
|
|
1792
2447
|
"div",
|
|
1793
2448
|
{
|
|
@@ -1797,10 +2452,10 @@ const Jt = [
|
|
|
1797
2452
|
)
|
|
1798
2453
|
] });
|
|
1799
2454
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ n.jsx(oe, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || x }) : x });
|
|
1800
|
-
},
|
|
2455
|
+
}, Rn = {
|
|
1801
2456
|
documentFilled: "files/documentFilled",
|
|
1802
2457
|
documentOutline: "files/documentOutline"
|
|
1803
|
-
},
|
|
2458
|
+
}, Hn = O("size-8 transition-colors", {
|
|
1804
2459
|
variants: {
|
|
1805
2460
|
iconType: {
|
|
1806
2461
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1810,7 +2465,7 @@ const Jt = [
|
|
|
1810
2465
|
defaultVariants: {
|
|
1811
2466
|
iconType: "documentOutline"
|
|
1812
2467
|
}
|
|
1813
|
-
}),
|
|
2468
|
+
}), Dn = ({ label: t, size: e, url: r, iconType: o, classes: i }) => /* @__PURE__ */ n.jsxs(
|
|
1814
2469
|
"a",
|
|
1815
2470
|
{
|
|
1816
2471
|
href: r,
|
|
@@ -1822,7 +2477,7 @@ const Jt = [
|
|
|
1822
2477
|
i == null ? void 0 : i.link
|
|
1823
2478
|
),
|
|
1824
2479
|
children: [
|
|
1825
|
-
/* @__PURE__ */ n.jsx(f, { name:
|
|
2480
|
+
/* @__PURE__ */ n.jsx(f, { name: Rn[o], className: d(Hn({ iconType: o }), i == null ? void 0 : i.icon) }),
|
|
1826
2481
|
/* @__PURE__ */ n.jsxs("div", { className: d("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1827
2482
|
/* @__PURE__ */ n.jsx("p", { className: d("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
|
|
1828
2483
|
/* @__PURE__ */ n.jsxs("div", { className: d("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
@@ -1832,26 +2487,26 @@ const Jt = [
|
|
|
1832
2487
|
] })
|
|
1833
2488
|
]
|
|
1834
2489
|
}
|
|
1835
|
-
),
|
|
2490
|
+
), Pn = ({ docs: t, config: e, title: r, iconType: o, description: i, classes: a, accordionConfig: l }) => {
|
|
1836
2491
|
const u = /* @__PURE__ */ n.jsxs("div", { className: d("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
|
|
1837
2492
|
r && /* @__PURE__ */ n.jsx(P, { as: "h3", className: "mb-4", children: r }),
|
|
1838
|
-
/* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ n.jsx(
|
|
2493
|
+
/* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ n.jsx(Dn, { iconType: o, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
|
|
1839
2494
|
i && /* @__PURE__ */ n.jsx("div", { className: d("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1840
2495
|
] });
|
|
1841
2496
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(oe, { label: e == null ? void 0 : e.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
|
|
1842
|
-
},
|
|
2497
|
+
}, Ln = ({ entity: t, classes: e, accordionsConfig: r }) => {
|
|
1843
2498
|
var o, i, a;
|
|
1844
2499
|
switch (!0) {
|
|
1845
|
-
case
|
|
2500
|
+
case kn(t):
|
|
1846
2501
|
return (o = t.details) == null ? void 0 : o.map((l, u) => {
|
|
1847
2502
|
var m;
|
|
1848
|
-
return /* @__PURE__ */ n.jsx(
|
|
2503
|
+
return /* @__PURE__ */ n.jsx(vn, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.html }, u);
|
|
1849
2504
|
});
|
|
1850
|
-
case
|
|
2505
|
+
case wn(t):
|
|
1851
2506
|
return (i = t.details) == null ? void 0 : i.map((l, u) => {
|
|
1852
2507
|
var m;
|
|
1853
2508
|
return /* @__PURE__ */ n.jsx(
|
|
1854
|
-
|
|
2509
|
+
Pn,
|
|
1855
2510
|
{
|
|
1856
2511
|
accordionConfig: r == null ? void 0 : r.documentAccordion,
|
|
1857
2512
|
...l,
|
|
@@ -1860,11 +2515,11 @@ const Jt = [
|
|
|
1860
2515
|
u
|
|
1861
2516
|
);
|
|
1862
2517
|
});
|
|
1863
|
-
case
|
|
2518
|
+
case Nn(t):
|
|
1864
2519
|
return (a = t.details) == null ? void 0 : a.map((l, u) => {
|
|
1865
2520
|
var m;
|
|
1866
2521
|
return /* @__PURE__ */ n.jsx(
|
|
1867
|
-
|
|
2522
|
+
_n,
|
|
1868
2523
|
{
|
|
1869
2524
|
accordionConfig: r == null ? void 0 : r.tableAccordion,
|
|
1870
2525
|
...l,
|
|
@@ -1876,274 +2531,297 @@ const Jt = [
|
|
|
1876
2531
|
default:
|
|
1877
2532
|
return null;
|
|
1878
2533
|
}
|
|
1879
|
-
},
|
|
2534
|
+
}, zn = ({ entity: t, classes: e, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Ln({ entity: t, classes: e, accordionsConfig: r }) }), Qn = ({ headline: t, tabs: e, classes: r, accordionsConfig: o }) => {
|
|
1880
2535
|
var u, m;
|
|
1881
|
-
const [i, a] = L(0), l =
|
|
2536
|
+
const [i, a] = L(0), l = ye(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
|
|
1882
2537
|
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: s.usefulInfo, "data-test-id": s.usefulInfo, className: d(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(S, { className: d(r == null ? void 0 : r.container), children: [
|
|
1883
2538
|
/* @__PURE__ */ n.jsx(P, { className: d(r == null ? void 0 : r.headline), as: "h2", children: t }),
|
|
1884
|
-
/* @__PURE__ */ n.jsx("div", { className: d("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(
|
|
1885
|
-
/* @__PURE__ */ n.jsx("div", { className: d("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ n.jsx(
|
|
2539
|
+
/* @__PURE__ */ n.jsx("div", { className: d("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(yn, { tabsNames: l, activeTab: i, setActiveTab: a, classes: r == null ? void 0 : r.tabs }) }),
|
|
2540
|
+
/* @__PURE__ */ n.jsx("div", { className: d("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ n.jsx(zn, { accordionsConfig: o, ...x, classes: r == null ? void 0 : r.entityClasses }, p)) })
|
|
1886
2541
|
] }) });
|
|
1887
|
-
},
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
break;
|
|
1912
|
-
}
|
|
1913
|
-
if (l && m !== l)
|
|
1914
|
-
break;
|
|
1915
|
-
if (r === "node")
|
|
1916
|
-
o.push(e);
|
|
1917
|
-
else {
|
|
1918
|
-
const x = u.outerHTML.trim();
|
|
1919
|
-
o.push(x);
|
|
1920
|
-
}
|
|
1921
|
-
if (a)
|
|
1922
|
-
for (const x of e.childNodes)
|
|
1923
|
-
this.traverse(x, r, o);
|
|
1924
|
-
break;
|
|
1925
|
-
// если узел - текстовый и требуется его добавить, добавляем
|
|
1926
|
-
case this.TEXT_NODE:
|
|
1927
|
-
if (!i)
|
|
1928
|
-
break;
|
|
1929
|
-
if (r === "node")
|
|
1930
|
-
o.push(e);
|
|
1931
|
-
else {
|
|
1932
|
-
const x = e.textContent;
|
|
1933
|
-
x && o.push(x);
|
|
1934
|
-
}
|
|
1935
|
-
break;
|
|
2542
|
+
}, Vn = {
|
|
2543
|
+
header: Qr,
|
|
2544
|
+
footer: Lr,
|
|
2545
|
+
interLinking: Ur,
|
|
2546
|
+
stepper: sn,
|
|
2547
|
+
usefulInfo: Qn,
|
|
2548
|
+
longBanner: Jr,
|
|
2549
|
+
banner: Gt,
|
|
2550
|
+
benefit: Kn,
|
|
2551
|
+
form: Fr,
|
|
2552
|
+
seoHeader: gn,
|
|
2553
|
+
calculator: wr
|
|
2554
|
+
}, An = Object.keys(Vn), s = An.reduce(
|
|
2555
|
+
(t, e) => (t[e] = e, t),
|
|
2556
|
+
{}
|
|
2557
|
+
), qn = O(
|
|
2558
|
+
"flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
|
|
2559
|
+
{
|
|
2560
|
+
variants: {
|
|
2561
|
+
variant: {
|
|
2562
|
+
twoCards: "",
|
|
2563
|
+
threeCards: "desktop:first:col-span-full",
|
|
2564
|
+
fourCards: "desktop:first:col-span-2 desktop:last:col-span-2"
|
|
2565
|
+
}
|
|
1936
2566
|
}
|
|
1937
2567
|
}
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1964
|
-
class Xr extends $r {
|
|
1965
|
-
constructor(e) {
|
|
1966
|
-
super(e);
|
|
1967
|
-
}
|
|
1968
|
-
async parseFromString(e) {
|
|
1969
|
-
return Zr ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
class Ie {
|
|
1973
|
-
/**
|
|
1974
|
-
* Функция для парсинга ноды в react элемент
|
|
1975
|
-
*/
|
|
1976
|
-
static parseNode(e) {
|
|
1977
|
-
if (e.nodeType === this.TEXT_NODE)
|
|
1978
|
-
return e.textContent ?? null;
|
|
1979
|
-
if (e.nodeType === this.ELEMENT_NODE) {
|
|
1980
|
-
const r = e, o = r.tagName.toLowerCase(), i = {};
|
|
1981
|
-
for (const l of r.attributes) {
|
|
1982
|
-
let u = l.name, m = l.value;
|
|
1983
|
-
switch (l.name) {
|
|
1984
|
-
case "class":
|
|
1985
|
-
u = "className";
|
|
1986
|
-
break;
|
|
1987
|
-
case "for":
|
|
1988
|
-
u = "htmlFor";
|
|
1989
|
-
break;
|
|
1990
|
-
case "checked":
|
|
1991
|
-
case "disabled":
|
|
1992
|
-
case "selected":
|
|
1993
|
-
m = l.value !== "false", m = l.value !== "false", m = l.value !== "false";
|
|
1994
|
-
break;
|
|
1995
|
-
case "readonly":
|
|
1996
|
-
u = "readOnly", m = l.value !== "false";
|
|
1997
|
-
break;
|
|
1998
|
-
case "style":
|
|
1999
|
-
u = "style";
|
|
2000
|
-
const x = {};
|
|
2001
|
-
l.value.split(";").forEach((p) => {
|
|
2002
|
-
const [c, b] = p.split(":");
|
|
2003
|
-
if (c && b) {
|
|
2004
|
-
const g = c.trim().replace(/-([a-z])/g, (k, w) => w.toUpperCase());
|
|
2005
|
-
x[g] = b.trim();
|
|
2568
|
+
), Un = ({
|
|
2569
|
+
subtitle: t,
|
|
2570
|
+
title: e,
|
|
2571
|
+
img: r,
|
|
2572
|
+
mobileImg: o,
|
|
2573
|
+
classes: i,
|
|
2574
|
+
withButton: a,
|
|
2575
|
+
button: l,
|
|
2576
|
+
variant: u,
|
|
2577
|
+
color: m
|
|
2578
|
+
}) => {
|
|
2579
|
+
const { isDesktop: x } = G();
|
|
2580
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2581
|
+
"li",
|
|
2582
|
+
{
|
|
2583
|
+
style: { backgroundColor: m ?? "#F3F4F7" },
|
|
2584
|
+
className: d(qn({ variant: u }), { "pb-0": o }, { "pb-12": !o }, i == null ? void 0 : i.root),
|
|
2585
|
+
children: [
|
|
2586
|
+
/* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
2587
|
+
/* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
2588
|
+
/* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className: d("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
2589
|
+
/* @__PURE__ */ n.jsx(
|
|
2590
|
+
"div",
|
|
2591
|
+
{
|
|
2592
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
2593
|
+
className: d("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
|
|
2006
2594
|
}
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2595
|
+
)
|
|
2596
|
+
] }),
|
|
2597
|
+
a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx(Z, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
|
|
2598
|
+
] }),
|
|
2599
|
+
(o || x) && r && /* @__PURE__ */ n.jsx("div", { className: d("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && j.isObject(r) ? /* @__PURE__ */ n.jsx("img", { className: d("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: r.alt }) : r })
|
|
2600
|
+
]
|
|
2601
|
+
},
|
|
2602
|
+
e
|
|
2603
|
+
);
|
|
2604
|
+
}, Wn = O("grid gap-4", {
|
|
2605
|
+
variants: {
|
|
2606
|
+
variant: {
|
|
2607
|
+
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
2608
|
+
threeCards: "grid-cols-1 desktop:grid-cols-2",
|
|
2609
|
+
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
2019
2610
|
}
|
|
2020
|
-
return null;
|
|
2021
|
-
}
|
|
2022
|
-
/**
|
|
2023
|
-
* функция для преобразования html строки в react элементы
|
|
2024
|
-
*/
|
|
2025
|
-
static async toReactNodes(e, r) {
|
|
2026
|
-
const o = new Xr(r), { nodes: i } = await o.parse(e, "node");
|
|
2027
|
-
return i.map((a) => this.parseNode(a));
|
|
2028
2611
|
}
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
},
|
|
2038
|
-
},
|
|
2039
|
-
const
|
|
2040
|
-
return (
|
|
2041
|
-
|
|
2042
|
-
|
|
2612
|
+
}), Kn = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: s.benefit, "data-test-id": s.benefit, className: d("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ n.jsxs(S, { className: o == null ? void 0 : o.container, children: [
|
|
2613
|
+
/* @__PURE__ */ n.jsx(
|
|
2614
|
+
"div",
|
|
2615
|
+
{
|
|
2616
|
+
dangerouslySetInnerHTML: { __html: t },
|
|
2617
|
+
className: d("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
|
|
2618
|
+
}
|
|
2619
|
+
),
|
|
2620
|
+
/* @__PURE__ */ n.jsx("ul", { className: d(Wn({ variant: r }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx(Un, { variant: r, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
|
|
2621
|
+
] }) }), Ie = ({ details: t, classes: e }) => {
|
|
2622
|
+
const { variant: r, items: o } = t ?? {};
|
|
2623
|
+
return /* @__PURE__ */ n.jsx(
|
|
2624
|
+
"div",
|
|
2625
|
+
{
|
|
2626
|
+
id: "advantages",
|
|
2627
|
+
className: d(
|
|
2628
|
+
"m-auto flex w-full min-w-[328px] max-w-[636px] flex-col gap-8 rounded-md bg-color-white p-6 shadow-sm desktop:w-full desktop:flex-row desktop:items-start desktop:gap-0 desktop:p-0 desktop:py-6",
|
|
2629
|
+
{ "desktop:max-w-[860px]": r === "threeCards" },
|
|
2630
|
+
{ "desktop:max-w-[1140px]": r === "fourCards" },
|
|
2631
|
+
e == null ? void 0 : e.root
|
|
2632
|
+
),
|
|
2633
|
+
children: o == null ? void 0 : o.map(({ title: i, description: a }) => /* @__PURE__ */ n.jsxs(
|
|
2634
|
+
"div",
|
|
2635
|
+
{
|
|
2636
|
+
className: d(
|
|
2637
|
+
'after:content-[" "] relative flex h-full w-full flex-col gap-1 after:absolute after:-bottom-4 after:left-1/2 after:h-[1px] after:w-full after:-translate-x-1/2 after:bg-color-blue-grey-300 last:after:hidden desktop:w-[285px] desktop:items-center desktop:px-8 desktop:after:bottom-auto desktop:after:left-auto desktop:after:right-0 desktop:after:top-1/2 desktop:after:h-10 desktop:after:w-[1px] desktop:after:-translate-y-1/2 desktop:after:translate-x-0',
|
|
2638
|
+
e == null ? void 0 : e.item
|
|
2639
|
+
),
|
|
2640
|
+
children: [
|
|
2641
|
+
/* @__PURE__ */ n.jsx(P, { as: "h4", className: d("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
2642
|
+
/* @__PURE__ */ n.jsx("p", { className: d("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
|
|
2643
|
+
]
|
|
2644
|
+
},
|
|
2645
|
+
i
|
|
2646
|
+
))
|
|
2647
|
+
}
|
|
2043
2648
|
);
|
|
2044
|
-
},
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2649
|
+
}, ve = {
|
|
2650
|
+
ESIA: "esia",
|
|
2651
|
+
MOBILE_ID: "mobileId",
|
|
2652
|
+
COMBINE: "combine"
|
|
2653
|
+
}, jt = ({ children: t, isLoading: e, classes: r, loaderProps: o }) => /* @__PURE__ */ n.jsx(
|
|
2654
|
+
"div",
|
|
2049
2655
|
{
|
|
2656
|
+
tabIndex: 0,
|
|
2050
2657
|
className: d(
|
|
2051
|
-
"
|
|
2052
|
-
"
|
|
2053
|
-
|
|
2658
|
+
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
2659
|
+
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
2660
|
+
r == null ? void 0 : r.root
|
|
2054
2661
|
),
|
|
2055
|
-
children:
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2662
|
+
children: /* @__PURE__ */ n.jsx(
|
|
2663
|
+
"div",
|
|
2664
|
+
{
|
|
2665
|
+
className: d(
|
|
2666
|
+
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
2667
|
+
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
2668
|
+
{ "items-center": e },
|
|
2669
|
+
r == null ? void 0 : r.wrapper
|
|
2670
|
+
),
|
|
2671
|
+
children: e ? /* @__PURE__ */ n.jsx(Ht, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : t
|
|
2672
|
+
}
|
|
2673
|
+
)
|
|
2059
2674
|
}
|
|
2060
|
-
),
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2675
|
+
), $n = ({ ...t }) => /* @__PURE__ */ n.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
2676
|
+
/* @__PURE__ */ n.jsx(
|
|
2677
|
+
"path",
|
|
2678
|
+
{
|
|
2679
|
+
d: "M30.3986 10.6149C30.2728 8.96576 29.014 6.85155 27.7553 5.83672C26.3398 4.79816 24.8691 3.83828 23.3497 2.96139C21.8418 2.06068 20.2871 1.24201 18.6923 0.508895C17.8404 0.15868 16.927 -0.0139306 16.007 0.00148264C15.0868 -0.0180029 14.1725 0.154761 13.3217 0.508895C11.7272 1.24253 10.1725 2.06119 8.66438 2.96139C6.23081 4.44134 4.25878 5.83672 4.25878 5.83672C3.22329 6.71008 2.43892 7.83418 1.97146 9.09195C1.87834 9.34251 2.07032 9.59987 2.33762 9.59987H4.2568C4.55401 9.59987 4.82321 9.43281 4.98085 9.18085C5.33539 8.61417 5.77902 8.10202 6.29948 7.66607C6.29948 7.66607 7.92774 6.52186 9.93709 5.3083C11.1823 4.57013 12.466 3.89884 13.7826 3.29725C14.485 3.00687 15.2399 2.8652 15.9998 2.88118C16.7593 2.86854 17.5136 3.01008 18.217 3.29725C19.5337 3.89841 20.8174 4.56972 22.0624 5.3083C23.317 6.02735 24.5313 6.81445 25.7 7.66607C26.7394 8.49823 27.7787 10.2319 27.8826 11.5841C27.8826 11.5841 28.1251 13.5952 28.1598 15.9772C28.1576 17.4483 28.0767 18.9183 27.9173 20.3807C27.6755 21.912 26.8879 23.3038 25.7 24.2988C25.7 24.2988 24.0718 25.4777 22.0624 26.6912C20.8172 27.4294 19.5335 28.1007 18.217 28.7023C17.5145 28.9927 16.7596 29.1343 15.9998 29.1184C15.2409 29.1343 14.4867 28.9963 13.7826 28.7127C12.4658 28.1115 11.1821 27.4402 9.93709 26.7016C7.92774 25.5228 6.29948 24.3092 6.29948 24.3092C5.84515 23.9454 5.39081 23.4094 5.01172 22.8082C4.85581 22.561 4.5896 22.3997 4.2973 22.3997H2.34718C2.07645 22.3997 1.88475 22.6629 1.98611 22.914C2.49249 24.168 3.37564 25.4212 4.25878 26.1332C4.25878 26.1332 6.23081 27.6132 8.66438 29.0508C10.1723 29.9515 11.7269 30.7702 13.3217 31.5033C14.1745 31.8492 15.088 32.0175 16.007 31.998C16.9273 32.0175 17.8416 31.8448 18.6923 31.4906C20.2869 30.757 21.8415 29.9383 23.3497 29.0381C25.7833 27.5582 27.7553 26.1205 27.7553 26.1205C29.1939 24.9072 30.1478 23.2098 30.4406 21.3424C30.6337 19.5589 30.7317 17.7663 30.7343 15.9723C30.6923 13.0673 30.3986 10.6149 30.3986 10.6149Z",
|
|
2680
|
+
fill: "url(#paint0_linear_6493_452)"
|
|
2681
|
+
}
|
|
2682
|
+
),
|
|
2683
|
+
/* @__PURE__ */ n.jsx(
|
|
2684
|
+
"path",
|
|
2685
|
+
{
|
|
2686
|
+
d: "M1.27985 12.4821C1.27985 12.1286 1.56638 11.8421 1.91985 11.8421H11.8398C12.1933 11.8421 12.4798 12.1286 12.4798 12.4821V14.4021C12.4798 14.7555 12.1933 15.0421 11.8398 15.0421H1.27985V12.4821Z",
|
|
2687
|
+
fill: "#0066B3"
|
|
2688
|
+
}
|
|
2689
|
+
),
|
|
2690
|
+
/* @__PURE__ */ n.jsx(
|
|
2691
|
+
"path",
|
|
2692
|
+
{
|
|
2693
|
+
d: "M1.27985 16.9618H21.4398C21.7933 16.9618 22.0798 17.2484 22.0798 17.6018V19.5218C22.0798 19.8752 21.7933 20.1618 21.4398 20.1618H1.91985C1.56638 20.1618 1.27985 19.8752 1.27985 19.5218V16.9618Z",
|
|
2694
|
+
fill: "#EE2F53"
|
|
2695
|
+
}
|
|
2696
|
+
),
|
|
2697
|
+
/* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsxs("linearGradient", { id: "paint0_linear_6493_452", x1: "16.0071", y1: "0", x2: "16.0071", y2: "31.9996", gradientUnits: "userSpaceOnUse", children: [
|
|
2698
|
+
/* @__PURE__ */ n.jsx("stop", { stopColor: "#0066B3" }),
|
|
2699
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.354167", stopColor: "#0066B3" }),
|
|
2700
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
2701
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
2702
|
+
] }) })
|
|
2703
|
+
] }), st = ({ mainLink: t, subLink: e, isMobile: r, classes: o }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
|
|
2704
|
+
/* @__PURE__ */ n.jsx(
|
|
2705
|
+
"a",
|
|
2706
|
+
{
|
|
2707
|
+
href: t.href,
|
|
2708
|
+
target: "_blank",
|
|
2709
|
+
rel: "noreferrer",
|
|
2710
|
+
className: d(
|
|
2711
|
+
'before:content=[" "] desk-body-medium-l z-[4] text-color-dark before:absolute before:left-1/2 before:top-1/2 before:h-full before:w-full before:-translate-x-1/2 before:-translate-y-1/2',
|
|
2712
|
+
o == null ? void 0 : o.linksMainLink
|
|
2713
|
+
),
|
|
2714
|
+
children: r ? t.mobileTitle : t.title
|
|
2715
|
+
}
|
|
2716
|
+
),
|
|
2717
|
+
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ n.jsx(
|
|
2718
|
+
je,
|
|
2719
|
+
{
|
|
2720
|
+
intent: "blue",
|
|
2721
|
+
withUnderline: !0,
|
|
2722
|
+
href: e == null ? void 0 : e.href,
|
|
2723
|
+
target: "_blank",
|
|
2724
|
+
rel: "noreferrer",
|
|
2725
|
+
classes: {
|
|
2726
|
+
link: d("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", o == null ? void 0 : o.linksSubLink)
|
|
2727
|
+
},
|
|
2728
|
+
children: e == null ? void 0 : e.text
|
|
2729
|
+
}
|
|
2730
|
+
)
|
|
2731
|
+
] }), We = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
2732
|
+
const { isMobile: l } = G();
|
|
2733
|
+
return /* @__PURE__ */ n.jsx(jt, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
2078
2734
|
"div",
|
|
2079
2735
|
{
|
|
2080
|
-
id: s.form,
|
|
2081
|
-
"data-test-id": s.form,
|
|
2082
2736
|
className: d(
|
|
2083
|
-
"
|
|
2084
|
-
"
|
|
2085
|
-
|
|
2737
|
+
"flex flex-1 items-center justify-between gap-1",
|
|
2738
|
+
{ "justify-center": !o && l },
|
|
2739
|
+
a == null ? void 0 : a.innerWrapper
|
|
2086
2740
|
),
|
|
2087
2741
|
children: [
|
|
2088
|
-
|
|
2089
|
-
"div",
|
|
2090
|
-
|
|
2091
|
-
className: d(
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2742
|
+
/* @__PURE__ */ n.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
2743
|
+
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2744
|
+
/* @__PURE__ */ n.jsx(f, { name: "logos/mts", className: d("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
|
|
2745
|
+
/* @__PURE__ */ n.jsx(f, { name: "logos/megafon", className: d("relative z-[8] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.megafonLogo) }),
|
|
2746
|
+
/* @__PURE__ */ n.jsx(f, { name: "logos/beeline", className: d("relative z-[7] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.beelineLogo) })
|
|
2747
|
+
] }),
|
|
2748
|
+
/* @__PURE__ */ n.jsx(st, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
|
|
2749
|
+
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
2750
|
+
] }),
|
|
2751
|
+
o && /* @__PURE__ */ n.jsx(Fe, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
2752
|
+
]
|
|
2753
|
+
}
|
|
2754
|
+
) });
|
|
2755
|
+
}, Ke = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
|
|
2756
|
+
const { isMobile: l } = G();
|
|
2757
|
+
return /* @__PURE__ */ n.jsx(jt, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
2758
|
+
"div",
|
|
2759
|
+
{
|
|
2760
|
+
className: d(
|
|
2761
|
+
"flex flex-1 items-center justify-between gap-1",
|
|
2762
|
+
{ "justify-center": !o && l },
|
|
2763
|
+
a == null ? void 0 : a.innerWrapper
|
|
2764
|
+
),
|
|
2765
|
+
children: [
|
|
2766
|
+
/* @__PURE__ */ n.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
2767
|
+
/* @__PURE__ */ n.jsx($n, { className: d("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
|
|
2768
|
+
/* @__PURE__ */ n.jsx(st, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
|
|
2769
|
+
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
2770
|
+
] }),
|
|
2771
|
+
o && /* @__PURE__ */ n.jsx(Fe, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
2772
|
+
]
|
|
2773
|
+
}
|
|
2774
|
+
) });
|
|
2775
|
+
}, Zn = (t) => {
|
|
2776
|
+
switch (t.mode) {
|
|
2777
|
+
case ve.ESIA:
|
|
2778
|
+
return /* @__PURE__ */ n.jsx(Ke, { ...t });
|
|
2779
|
+
case ve.MOBILE_ID:
|
|
2780
|
+
return /* @__PURE__ */ n.jsx(We, { ...t });
|
|
2781
|
+
case ve.COMBINE:
|
|
2782
|
+
default:
|
|
2783
|
+
const { esiaConfig: e, mobileIdConfig: r, subtitle: o, badge: i, classes: a } = t, l = !o && !i ? le.Fragment : "div";
|
|
2784
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2785
|
+
"div",
|
|
2786
|
+
{
|
|
2787
|
+
className: d(
|
|
2788
|
+
"flex w-[328px] flex-col items-center justify-center gap-2 rounded-sm bg-color-white px-2 py-4 outline outline-1 outline-warm-grey-200 desktop:w-[524px] desktop:p-4",
|
|
2789
|
+
a == null ? void 0 : a.root
|
|
2790
|
+
),
|
|
2791
|
+
children: [
|
|
2792
|
+
/* @__PURE__ */ n.jsxs(l, { className: d("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
|
|
2793
|
+
o && /* @__PURE__ */ n.jsx("h5", { className: d("desk-body-regular-l flex flex-1 text-color-dark", a == null ? void 0 : a.subtitle), children: o }),
|
|
2794
|
+
i && /* @__PURE__ */ n.jsx(Fe, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: i })
|
|
2795
|
+
] }),
|
|
2796
|
+
/* @__PURE__ */ n.jsxs("div", { className: d("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
|
|
2797
|
+
/* @__PURE__ */ n.jsx(
|
|
2798
|
+
Ke,
|
|
2112
2799
|
{
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2800
|
+
...e,
|
|
2801
|
+
classes: {
|
|
2802
|
+
root: "p-0 outline-0 h-[74px]",
|
|
2803
|
+
arrowIcon: "hidden",
|
|
2804
|
+
...e.classes
|
|
2805
|
+
}
|
|
2118
2806
|
}
|
|
2119
2807
|
),
|
|
2120
|
-
/* @__PURE__ */ n.jsx(
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
disabled: o.type === "checkbox" ? !x : !1,
|
|
2129
|
-
className: d(
|
|
2130
|
-
"w-full whitespace-nowrap",
|
|
2131
|
-
{
|
|
2132
|
-
"w-full desktop:w-[216px]": !!o
|
|
2133
|
-
},
|
|
2134
|
-
l == null ? void 0 : l.submit
|
|
2135
|
-
),
|
|
2136
|
-
children: "Отправить форму"
|
|
2808
|
+
/* @__PURE__ */ n.jsx(
|
|
2809
|
+
We,
|
|
2810
|
+
{
|
|
2811
|
+
...r,
|
|
2812
|
+
classes: {
|
|
2813
|
+
root: "p-0 outline-0 h-[74px]",
|
|
2814
|
+
arrowIcon: "hidden",
|
|
2815
|
+
...r.classes
|
|
2137
2816
|
}
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
]
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
}, de = () => ({
|
|
2817
|
+
}
|
|
2818
|
+
)
|
|
2819
|
+
] })
|
|
2820
|
+
]
|
|
2821
|
+
}
|
|
2822
|
+
);
|
|
2823
|
+
}
|
|
2824
|
+
}, lo = (t) => Zn(t), de = () => ({
|
|
2147
2825
|
approve: {
|
|
2148
2826
|
icon: {
|
|
2149
2827
|
element: /* @__PURE__ */ n.jsx(f, { name: "status/iconMark" }),
|
|
@@ -2204,7 +2882,7 @@ const Yr = ({ promises: t }) => {
|
|
|
2204
2882
|
text: "Вернуться на главную"
|
|
2205
2883
|
}
|
|
2206
2884
|
}
|
|
2207
|
-
}),
|
|
2885
|
+
}), uo = ({ status: t, navigationFn: e }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(S, { className: "flex flex-col justify-center", children: /* @__PURE__ */ n.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
|
|
2208
2886
|
/* @__PURE__ */ n.jsx(
|
|
2209
2887
|
"span",
|
|
2210
2888
|
{
|
|
@@ -2219,711 +2897,33 @@ const Yr = ({ promises: t }) => {
|
|
|
2219
2897
|
/* @__PURE__ */ n.jsx(P, { as: "h2", children: de()[t].title }),
|
|
2220
2898
|
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: de()[t].description })
|
|
2221
2899
|
] }),
|
|
2222
|
-
/* @__PURE__ */ n.jsx(
|
|
2223
|
-
] }) }) })
|
|
2224
|
-
const [a, l] = L([]);
|
|
2225
|
-
return be(() => {
|
|
2226
|
-
if (!ot)
|
|
2227
|
-
return;
|
|
2228
|
-
let u = window.location.pathname.split("/").filter((p) => !j.isStringEmpty(p));
|
|
2229
|
-
j.isUndefined(t) || (j.isString(t) ? u = u.slice(u.findIndex((p) => p === t)) : u = u.slice(t)), j.isUndefined(e) || (j.isString(e) ? u = u.slice(0, u.findIndex((p) => p === e) + 1) : u = u.slice(0, e + 1));
|
|
2230
|
-
let m = [], x = "";
|
|
2231
|
-
if (i) {
|
|
2232
|
-
const p = {
|
|
2233
|
-
index: 0,
|
|
2234
|
-
id: Qe(),
|
|
2235
|
-
path: "/",
|
|
2236
|
-
label: "home"
|
|
2237
|
-
};
|
|
2238
|
-
m.push(p);
|
|
2239
|
-
}
|
|
2240
|
-
u.forEach((p, c) => {
|
|
2241
|
-
x += `/${p}`;
|
|
2242
|
-
const b = {
|
|
2243
|
-
// while root enabled we need to increment index
|
|
2244
|
-
// cuz we have root breadcrumb
|
|
2245
|
-
index: i ? c + 1 : c,
|
|
2246
|
-
id: Qe(),
|
|
2247
|
-
path: x,
|
|
2248
|
-
label: p
|
|
2249
|
-
};
|
|
2250
|
-
m.push(b);
|
|
2251
|
-
}), r && (m = m.map((p) => ({
|
|
2252
|
-
...p,
|
|
2253
|
-
...r(p)
|
|
2254
|
-
}))), l(o ? m.filter(o) : m);
|
|
2255
|
-
}, [e, o, r, i, t]), a;
|
|
2256
|
-
}, fe = (t, e, r, o) => t.map((i, a) => {
|
|
2257
|
-
const l = a === o;
|
|
2258
|
-
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2259
|
-
/* @__PURE__ */ n.jsx(
|
|
2260
|
-
ft,
|
|
2261
|
-
{
|
|
2262
|
-
breadcrumb: i,
|
|
2263
|
-
className: d(r, {
|
|
2264
|
-
"pointer-events-none text-color-primary-disabled": l
|
|
2265
|
-
})
|
|
2266
|
-
}
|
|
2267
|
-
),
|
|
2268
|
-
a !== t.length - 1 && e
|
|
2269
|
-
] }, i.id);
|
|
2270
|
-
}), nn = ({ separator: t, ellipsis: e, classes: r, ...o }) => {
|
|
2271
|
-
const [i, a] = L(!1), l = Se(null);
|
|
2272
|
-
Vt(l, () => a(!1));
|
|
2273
|
-
const u = rn(o), { first: m, middle: x, last: p } = se(() => {
|
|
2274
|
-
let b = [], g = [], k = [];
|
|
2275
|
-
return e && (b = u.slice(0, e), g = u.slice(e, u.length - e), k = u.slice(u.length - e)), { first: b, middle: g, last: k };
|
|
2276
|
-
}, [u, e]), c = t ?? /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("size-4", r == null ? void 0 : r.separator) });
|
|
2277
|
-
return /* @__PURE__ */ n.jsx(
|
|
2278
|
-
"div",
|
|
2279
|
-
{
|
|
2280
|
-
className: d(
|
|
2281
|
-
"flex max-w-[840px] flex-wrap items-center",
|
|
2282
|
-
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
2283
|
-
r == null ? void 0 : r.root
|
|
2284
|
-
),
|
|
2285
|
-
children: e ? (
|
|
2286
|
-
// if ellipsis provided, render hidden breadcrumbs
|
|
2287
|
-
/* @__PURE__ */ n.jsx(n.Fragment, { children: u.length > e * 2 + 1 ? (
|
|
2288
|
-
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2289
|
-
// render hidden breadcrumbs
|
|
2290
|
-
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2291
|
-
fe(m, c, r == null ? void 0 : r.breadcrumb),
|
|
2292
|
-
c,
|
|
2293
|
-
x.length > 0 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2294
|
-
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
2295
|
-
/* @__PURE__ */ n.jsx("button", { onClick: () => a(!0), children: "..." }),
|
|
2296
|
-
/* @__PURE__ */ n.jsx(
|
|
2297
|
-
"ul",
|
|
2298
|
-
{
|
|
2299
|
-
ref: l,
|
|
2300
|
-
className: d(
|
|
2301
|
-
"invisible absolute max-h-[264px] overflow-y-auto",
|
|
2302
|
-
"w-[280px] rounded-sm bg-color-white",
|
|
2303
|
-
"customScrollbar-y p-1 opacity-0 shadow-sm",
|
|
2304
|
-
{
|
|
2305
|
-
"visible opacity-100": i
|
|
2306
|
-
}
|
|
2307
|
-
),
|
|
2308
|
-
children: x.map((b) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
2309
|
-
ft,
|
|
2310
|
-
{
|
|
2311
|
-
breadcrumb: b,
|
|
2312
|
-
className: d(
|
|
2313
|
-
"desk-body-regular-l inline-block py-3",
|
|
2314
|
-
"w-full rounded-sm bg-color-white px-2",
|
|
2315
|
-
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
2316
|
-
r == null ? void 0 : r.breadcrumb
|
|
2317
|
-
)
|
|
2318
|
-
}
|
|
2319
|
-
) }, b.id))
|
|
2320
|
-
}
|
|
2321
|
-
)
|
|
2322
|
-
] }),
|
|
2323
|
-
c
|
|
2324
|
-
] }),
|
|
2325
|
-
fe(p, c, r == null ? void 0 : r.breadcrumb, p.length - 1)
|
|
2326
|
-
] })
|
|
2327
|
-
) : (
|
|
2328
|
-
// otherwise render all breadcrumbs
|
|
2329
|
-
fe(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2330
|
-
) })
|
|
2331
|
-
) : (
|
|
2332
|
-
// if ellipsis doesn't provided render all breadcrumbs
|
|
2333
|
-
fe(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2334
|
-
)
|
|
2335
|
-
}
|
|
2336
|
-
);
|
|
2337
|
-
};
|
|
2338
|
-
var ue = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(ue || {});
|
|
2339
|
-
const on = (t, e) => {
|
|
2340
|
-
switch (e.type) {
|
|
2341
|
-
case ue.ROOT:
|
|
2342
|
-
return {
|
|
2343
|
-
...t,
|
|
2344
|
-
root: e.payload
|
|
2345
|
-
};
|
|
2346
|
-
case ue.CURRENT:
|
|
2347
|
-
return {
|
|
2348
|
-
...t,
|
|
2349
|
-
current: e.payload
|
|
2350
|
-
};
|
|
2351
|
-
default:
|
|
2352
|
-
return t;
|
|
2353
|
-
}
|
|
2354
|
-
}, an = (t) => {
|
|
2355
|
-
const [e, r] = Pt(on, t);
|
|
2356
|
-
return [e, r];
|
|
2357
|
-
}, dn = (t) => ({
|
|
2358
|
-
type: ue.CURRENT,
|
|
2359
|
-
payload: t
|
|
2360
|
-
}), ln = (t) => ({
|
|
2361
|
-
type: ue.ROOT,
|
|
2362
|
-
payload: t
|
|
2363
|
-
}), un = ({ categories: t, ...e }) => {
|
|
2364
|
-
var r, o;
|
|
2365
|
-
return ut(
|
|
2366
|
-
/* @__PURE__ */ n.jsx(
|
|
2367
|
-
Fe.div,
|
|
2368
|
-
{
|
|
2369
|
-
...e,
|
|
2370
|
-
layout: !0,
|
|
2371
|
-
initial: { opacity: 0 },
|
|
2372
|
-
animate: { opacity: 1 },
|
|
2373
|
-
transition: { duration: 0.2 },
|
|
2374
|
-
className: "absolute bg-color-white",
|
|
2375
|
-
children: /* @__PURE__ */ n.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
|
|
2376
|
-
var l;
|
|
2377
|
-
const a = i.link ? "a" : "p";
|
|
2378
|
-
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
2379
|
-
i.title && /* @__PURE__ */ n.jsxs(
|
|
2380
|
-
a,
|
|
2381
|
-
{
|
|
2382
|
-
href: ((l = i.link) == null ? void 0 : l.href) ?? void 0,
|
|
2383
|
-
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
2384
|
-
children: [
|
|
2385
|
-
i.title,
|
|
2386
|
-
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowLink", className: "size-6" })
|
|
2387
|
-
]
|
|
2388
|
-
}
|
|
2389
|
-
),
|
|
2390
|
-
/* @__PURE__ */ n.jsx("ul", { className: "w-[328px]", children: i.children.map((u) => {
|
|
2391
|
-
var m;
|
|
2392
|
-
return /* @__PURE__ */ n.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ n.jsx("a", { href: (m = u.link) == null ? void 0 : m.href, className: "w-full text-16", children: u.title }) }, u.title);
|
|
2393
|
-
}) })
|
|
2394
|
-
] }, i.title);
|
|
2395
|
-
}) })
|
|
2396
|
-
}
|
|
2397
|
-
),
|
|
2398
|
-
/**
|
|
2399
|
-
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2400
|
-
*/
|
|
2401
|
-
((o = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : o.body) ?? document.body
|
|
2402
|
-
);
|
|
2403
|
-
}, mn = Lt(({ category: t, active: e, onActiveTabChange: r }, o) => {
|
|
2404
|
-
var m, x;
|
|
2405
|
-
const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), l = e && !j.isArrayEmpty(t.children), u = j.isArrayEmpty(t.children) ? "a" : "span";
|
|
2406
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2407
|
-
Fe.div,
|
|
2408
|
-
{
|
|
2409
|
-
ref: o,
|
|
2410
|
-
className: d(
|
|
2411
|
-
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
2412
|
-
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
2413
|
-
"after:w-0 after:-translate-x-1/2 after:bg-color-primary-default after:duration-100",
|
|
2414
|
-
{
|
|
2415
|
-
"text-color-primary-default": l,
|
|
2416
|
-
"after:w-full": l
|
|
2417
|
-
}
|
|
2418
|
-
),
|
|
2419
|
-
onMouseEnter: () => r(t.title),
|
|
2420
|
-
onMouseLeave: () => r(null),
|
|
2421
|
-
onFocus: () => r(t.title),
|
|
2422
|
-
children: [
|
|
2423
|
-
/* @__PURE__ */ n.jsx(u, { href: u === "a" ? (x = t.link) == null ? void 0 : x.href : void 0, className: "desk-body-regular-m outline-none", children: t.title }),
|
|
2424
|
-
l && /* @__PURE__ */ n.jsx(
|
|
2425
|
-
un,
|
|
2426
|
-
{
|
|
2427
|
-
categories: t.children,
|
|
2428
|
-
style: {
|
|
2429
|
-
top: a ? a.top + a.height : 0,
|
|
2430
|
-
left: a ? a.left : 0,
|
|
2431
|
-
width: window.innerWidth
|
|
2432
|
-
}
|
|
2433
|
-
}
|
|
2434
|
-
)
|
|
2435
|
-
]
|
|
2436
|
-
}
|
|
2437
|
-
);
|
|
2438
|
-
}), xn = Be(mn), hn = ({ categories: t }) => {
|
|
2439
|
-
const [e, r] = L(null), o = rt((a) => {
|
|
2440
|
-
r(a);
|
|
2441
|
-
}, []), i = Se(null);
|
|
2442
|
-
return /* @__PURE__ */ n.jsx(_t, { mode: "sync", children: /* @__PURE__ */ n.jsxs(
|
|
2443
|
-
"div",
|
|
2444
|
-
{
|
|
2445
|
-
ref: i,
|
|
2446
|
-
id: "tabs",
|
|
2447
|
-
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2448
|
-
children: [
|
|
2449
|
-
t.map((a) => /* @__PURE__ */ n.jsx(
|
|
2450
|
-
xn,
|
|
2451
|
-
{
|
|
2452
|
-
ref: i,
|
|
2453
|
-
category: a,
|
|
2454
|
-
active: e === a.title,
|
|
2455
|
-
onActiveTabChange: o
|
|
2456
|
-
},
|
|
2457
|
-
a.title
|
|
2458
|
-
)),
|
|
2459
|
-
/* @__PURE__ */ n.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
2460
|
-
]
|
|
2461
|
-
}
|
|
2462
|
-
) });
|
|
2463
|
-
}, pn = Be(hn), cn = ({
|
|
2464
|
-
category: t,
|
|
2465
|
-
selectedCategory: e,
|
|
2466
|
-
onCurrentCategoryChange: r,
|
|
2467
|
-
onRootCategoryChange: o,
|
|
2468
|
-
active: i,
|
|
2469
|
-
...a
|
|
2470
|
-
}) => /* @__PURE__ */ n.jsxs(
|
|
2471
|
-
"div",
|
|
2472
|
-
{
|
|
2473
|
-
...a,
|
|
2474
|
-
onClick: () => {
|
|
2475
|
-
r(t.children[0]), o(t);
|
|
2476
|
-
},
|
|
2477
|
-
className: d("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2478
|
-
"text-color-dark": i
|
|
2479
|
-
}),
|
|
2480
|
-
children: [
|
|
2481
|
-
/* @__PURE__ */ n.jsx("span", { className: "desk-body-regular-m", children: t.title }),
|
|
2482
|
-
t.children.length > 1 && /* @__PURE__ */ n.jsx(
|
|
2483
|
-
"div",
|
|
2484
|
-
{
|
|
2485
|
-
className: d(
|
|
2486
|
-
"absolute right-0 top-full z-10 flex w-max flex-col",
|
|
2487
|
-
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
2488
|
-
"rounded-sm p-1"
|
|
2489
|
-
),
|
|
2490
|
-
children: t.children.map((l) => /* @__PURE__ */ n.jsx(
|
|
2491
|
-
"span",
|
|
2492
|
-
{
|
|
2493
|
-
onClick: (u) => {
|
|
2494
|
-
u.stopPropagation(), u.nativeEvent.stopPropagation(), o(t), r(l);
|
|
2495
|
-
},
|
|
2496
|
-
className: d(
|
|
2497
|
-
"desk-body-regular-l rounded-sm px-3 py-3.5 text-color-dark duration-100 hover:bg-color-primary-tr-hover hover:text-color-dark",
|
|
2498
|
-
{
|
|
2499
|
-
"text-color-primary-default": e.title === l.title
|
|
2500
|
-
}
|
|
2501
|
-
),
|
|
2502
|
-
children: l.title
|
|
2503
|
-
},
|
|
2504
|
-
l.title
|
|
2505
|
-
))
|
|
2506
|
-
}
|
|
2507
|
-
)
|
|
2508
|
-
]
|
|
2509
|
-
}
|
|
2510
|
-
), fn = ({ categories: t, helpers: e, phone: r }) => {
|
|
2511
|
-
const [o, i] = an({ root: t[0].children[0], current: t[0].children[0] });
|
|
2512
|
-
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2513
|
-
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2514
|
-
/* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2515
|
-
t.map((a) => {
|
|
2516
|
-
const l = o.root.title === a.title;
|
|
2517
|
-
return /* @__PURE__ */ n.jsx(
|
|
2518
|
-
cn,
|
|
2519
|
-
{
|
|
2520
|
-
category: a,
|
|
2521
|
-
selectedCategory: o.current,
|
|
2522
|
-
onCurrentCategoryChange: (u) => i(dn(u)),
|
|
2523
|
-
onRootCategoryChange: (u) => i(ln(u)),
|
|
2524
|
-
active: l
|
|
2525
|
-
},
|
|
2526
|
-
a.title
|
|
2527
|
-
);
|
|
2528
|
-
}),
|
|
2529
|
-
/* @__PURE__ */ n.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2530
|
-
e.map((a) => /* @__PURE__ */ n.jsxs(
|
|
2531
|
-
"a",
|
|
2532
|
-
{
|
|
2533
|
-
href: a.link.href,
|
|
2534
|
-
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2535
|
-
children: [
|
|
2536
|
-
a.link.icon && /* @__PURE__ */ n.jsx(f, { name: a.link.icon, className: "size-4" }),
|
|
2537
|
-
a.title
|
|
2538
|
-
]
|
|
2539
|
-
},
|
|
2540
|
-
a.title
|
|
2541
|
-
)),
|
|
2542
|
-
/* @__PURE__ */ n.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2543
|
-
/* @__PURE__ */ n.jsx(
|
|
2544
|
-
"a",
|
|
2545
|
-
{
|
|
2546
|
-
href: `tel:${r}`,
|
|
2547
|
-
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2548
|
-
children: ye(r, "x xxx xxx xx xx")
|
|
2549
|
-
}
|
|
2550
|
-
)
|
|
2551
|
-
] }),
|
|
2552
|
-
/* @__PURE__ */ n.jsx(pn, { categories: o.current.children })
|
|
2553
|
-
] });
|
|
2554
|
-
}, bn = ({ category: t }) => /* @__PURE__ */ n.jsx(
|
|
2555
|
-
oe,
|
|
2556
|
-
{
|
|
2557
|
-
label: t.title ?? "",
|
|
2558
|
-
icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
2559
|
-
classes: {
|
|
2560
|
-
root: "w-full",
|
|
2561
|
-
header: {
|
|
2562
|
-
trigger: "py-2 data-[open=false]:bg-color-white",
|
|
2563
|
-
label: "desk-body-regular-m"
|
|
2564
|
-
},
|
|
2565
|
-
content: d(
|
|
2566
|
-
"relative",
|
|
2567
|
-
'after:content-"" after:absolute after:w-[calc(100%-32px)]',
|
|
2568
|
-
"after:bottom-0 after:left-1/2 after:-translate-x-1/2",
|
|
2569
|
-
"after:h-[1px] after:bg-color-blue-grey-200"
|
|
2570
|
-
)
|
|
2571
|
-
},
|
|
2572
|
-
children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: t.children.map((e) => {
|
|
2573
|
-
var i;
|
|
2574
|
-
const r = !!e.link, o = r ? "a" : "p";
|
|
2575
|
-
return /* @__PURE__ */ n.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2576
|
-
/* @__PURE__ */ n.jsxs(
|
|
2577
|
-
o,
|
|
2578
|
-
{
|
|
2579
|
-
href: r ? (i = e.link) == null ? void 0 : i.href : void 0,
|
|
2580
|
-
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2581
|
-
children: [
|
|
2582
|
-
e.title,
|
|
2583
|
-
/* @__PURE__ */ n.jsx(f, { name: "arrows/arrowLink" })
|
|
2584
|
-
]
|
|
2585
|
-
}
|
|
2586
|
-
),
|
|
2587
|
-
e.children.map((a) => {
|
|
2588
|
-
var l;
|
|
2589
|
-
return /* @__PURE__ */ n.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ n.jsx("a", { href: (l = a.link) == null ? void 0 : l.href, className: "w-full", children: a.title }) }, a.title);
|
|
2590
|
-
})
|
|
2591
|
-
] }, e.title);
|
|
2592
|
-
}) })
|
|
2593
|
-
},
|
|
2594
|
-
t.title
|
|
2595
|
-
), gn = (t) => t.map((e) => ({
|
|
2596
|
-
value: e.title ?? "",
|
|
2597
|
-
label: e.title ?? ""
|
|
2598
|
-
})), jn = ({ categories: t, helpers: e, phone: r, ...o }) => {
|
|
2599
|
-
const i = gn(t), [a, l] = L(i[0]), u = (x) => {
|
|
2600
|
-
j.isUndefined(x) || j.isArray(x) || l(x);
|
|
2601
|
-
}, m = se(() => {
|
|
2602
|
-
var x;
|
|
2603
|
-
return j.isUndefined(a) || j.isArray(a) ? [] : ((x = t.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
|
|
2604
|
-
}, [a, t]);
|
|
2605
|
-
return /* @__PURE__ */ n.jsxs(
|
|
2606
|
-
Fe.div,
|
|
2607
|
-
{
|
|
2608
|
-
...o,
|
|
2609
|
-
className: d(
|
|
2610
|
-
"absolute w-full max-w-[calc(636px-32px)]",
|
|
2611
|
-
"absolute left-1/2 top-full bg-color-white p-4",
|
|
2612
|
-
"-translate-x-1/2 overflow-x-hidden",
|
|
2613
|
-
"flex flex-col items-center justify-center gap-y-4"
|
|
2614
|
-
),
|
|
2615
|
-
initial: { opacity: 0 },
|
|
2616
|
-
animate: { opacity: 1 },
|
|
2617
|
-
children: [
|
|
2618
|
-
/* @__PURE__ */ n.jsx(Oe.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
|
|
2619
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((x) => {
|
|
2620
|
-
var p;
|
|
2621
|
-
return j.isArrayEmpty(x.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (p = x.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: x.title }) }, x.title) : /* @__PURE__ */ n.jsx(bn, { category: x }, x.title);
|
|
2622
|
-
}) }),
|
|
2623
|
-
/* @__PURE__ */ n.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2624
|
-
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2625
|
-
e.map((x) => {
|
|
2626
|
-
var p, c;
|
|
2627
|
-
return /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: (p = x.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2628
|
-
((c = x.link) == null ? void 0 : c.icon) && /* @__PURE__ */ n.jsx(f, { name: x.link.icon, className: "size-4" }),
|
|
2629
|
-
x.title
|
|
2630
|
-
] }) }, x.title);
|
|
2631
|
-
}),
|
|
2632
|
-
/* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: `tel:${r}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2633
|
-
/* @__PURE__ */ n.jsx(f, { name: "communication/phone", className: "size-4" }),
|
|
2634
|
-
ye(r)
|
|
2635
|
-
] }) })
|
|
2636
|
-
] })
|
|
2637
|
-
]
|
|
2638
|
-
}
|
|
2639
|
-
);
|
|
2640
|
-
}, sn = ({ categories: t, helpers: e, phone: r }) => {
|
|
2641
|
-
var m, x, p;
|
|
2642
|
-
const o = Se(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = L(!1), u = () => l(!a);
|
|
2643
|
-
return /* @__PURE__ */ n.jsxs("div", { ref: o, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
|
|
2644
|
-
/* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2645
|
-
/* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(f, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2646
|
-
a && ut(
|
|
2647
|
-
/* @__PURE__ */ n.jsx(
|
|
2648
|
-
jn,
|
|
2649
|
-
{
|
|
2650
|
-
categories: t,
|
|
2651
|
-
helpers: e,
|
|
2652
|
-
phone: r,
|
|
2653
|
-
style: { top: i ? i.top + i.height : 0 }
|
|
2654
|
-
}
|
|
2655
|
-
),
|
|
2656
|
-
/**
|
|
2657
|
-
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2658
|
-
*/
|
|
2659
|
-
((p = (x = document.body.querySelector("#modal-preview")) == null ? void 0 : x.contentDocument) == null ? void 0 : p.body) ?? document.body
|
|
2660
|
-
)
|
|
2661
|
-
] });
|
|
2662
|
-
}, ao = ({ categories: t, helpers: e, phone: r }) => {
|
|
2663
|
-
const { isMobile: o } = G();
|
|
2664
|
-
return /* @__PURE__ */ n.jsxs("div", { id: s.seoHeader, "data-test-id": s.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2665
|
-
o ? /* @__PURE__ */ n.jsx(sn, { categories: t.map((i) => i.children).flat(), helpers: e, phone: r }) : /* @__PURE__ */ n.jsx(fn, { categories: t, helpers: e, phone: r }),
|
|
2666
|
-
/* @__PURE__ */ n.jsx(
|
|
2667
|
-
nn,
|
|
2668
|
-
{
|
|
2669
|
-
ellipsis: o ? 1 : void 0,
|
|
2670
|
-
matcher: (i) => ({ label: Qt(i.label).split("-").join(" ") })
|
|
2671
|
-
}
|
|
2672
|
-
)
|
|
2673
|
-
] });
|
|
2674
|
-
}, bt = (t) => typeof t != "string" && "formula" in t, gt = (t, e) => {
|
|
2675
|
-
let r = e;
|
|
2676
|
-
const o = {
|
|
2677
|
-
style: t
|
|
2678
|
-
};
|
|
2679
|
-
switch (t) {
|
|
2680
|
-
case "currency":
|
|
2681
|
-
o.currency = "RUB", o.minimumFractionDigits = 0, o.maximumFractionDigits = 0;
|
|
2682
|
-
break;
|
|
2683
|
-
case "percent":
|
|
2684
|
-
o.minimumFractionDigits = 0, o.maximumFractionDigits = 1, r = r / 100;
|
|
2685
|
-
break;
|
|
2686
|
-
default:
|
|
2687
|
-
return null;
|
|
2688
|
-
}
|
|
2689
|
-
return new Intl.NumberFormat("ru-RU", o).format(r);
|
|
2690
|
-
}, yn = (t, e) => {
|
|
2691
|
-
switch (t) {
|
|
2692
|
-
case "text":
|
|
2693
|
-
return e;
|
|
2694
|
-
default:
|
|
2695
|
-
return gt(t, Number(e));
|
|
2696
|
-
}
|
|
2697
|
-
}, kn = (t) => Object.values(t).reduce((r, o) => r.merge(xt(o.fields)), lt({})), wn = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, jt = (t, e) => {
|
|
2698
|
-
const r = Object.entries(e).map(([m, x]) => [m, x !== null ? x : "1"]), o = r.map(([m]) => m), i = r.map(([, m]) => m), a = wn(t, Object.fromEntries(r)), u = new Function(...o, `return ${a};`)(...i.map(Number));
|
|
2699
|
-
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2700
|
-
}, Nn = (t, e) => t.map((r) => ({
|
|
2701
|
-
...r,
|
|
2702
|
-
value: bt(r.value) ? jt(r.value.formula, e) : r.value
|
|
2703
|
-
})), vn = ({ subtitle: t, title: e }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: (e || t) && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2704
|
-
e && /* @__PURE__ */ n.jsx(P, { as: "h3", children: e }),
|
|
2705
|
-
t && /* @__PURE__ */ n.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
|
|
2706
|
-
] }) }), Cn = ({ rootDescription: t, rootValue: e, suffix: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2707
|
-
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
|
|
2708
|
-
/* @__PURE__ */ n.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ n.jsx("span", { children: gt(r, Number(e)) }) })
|
|
2709
|
-
] }), In = ({ hint: t, value: e, label: r, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2710
|
-
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2711
|
-
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: r }),
|
|
2712
|
-
t && /* @__PURE__ */ n.jsx(
|
|
2713
|
-
Me,
|
|
2714
|
-
{
|
|
2715
|
-
withCloseBtn: !1,
|
|
2716
|
-
triggerElement: /* @__PURE__ */ n.jsx(f, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
2717
|
-
children: /* @__PURE__ */ n.jsx("p", { children: t })
|
|
2718
|
-
}
|
|
2719
|
-
)
|
|
2720
|
-
] }),
|
|
2721
|
-
/* @__PURE__ */ n.jsx(
|
|
2722
|
-
"span",
|
|
2723
|
-
{
|
|
2724
|
-
className: d("desk-body-medium-l text-color-dark", {
|
|
2725
|
-
"[&&]:desk-title-bold-s": a,
|
|
2726
|
-
"text-color-primary-default": i === "blue"
|
|
2727
|
-
}),
|
|
2728
|
-
children: yn(o, e)
|
|
2729
|
-
}
|
|
2730
|
-
)
|
|
2731
|
-
] }), Tn = ({ infoList: t }) => {
|
|
2732
|
-
const { watch: e } = ke(), r = e(), o = Nn(t, r);
|
|
2733
|
-
return /* @__PURE__ */ n.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ n.jsx(In, { ...i }, i.label)) });
|
|
2734
|
-
}, Mn = ({ iconName: t, text: e, hint: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2735
|
-
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2736
|
-
/* @__PURE__ */ n.jsx(f, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
2737
|
-
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
|
|
2738
|
-
] }),
|
|
2739
|
-
r && /* @__PURE__ */ n.jsx(Me, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ n.jsx(f, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ n.jsx("p", { children: r }) })
|
|
2740
|
-
] }), En = ({ assistHint: t, buttonsConfig: e, bottomDescription: r }) => /* @__PURE__ */ n.jsxs("div", { children: [
|
|
2741
|
-
t && /* @__PURE__ */ n.jsx(Mn, { ...t }),
|
|
2742
|
-
/* @__PURE__ */ n.jsx("div", { className: d("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(Z, { className: "w-full", ...o }, i)) }),
|
|
2743
|
-
r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: r })
|
|
2744
|
-
] }), On = ({
|
|
2745
|
-
rootDescription: t,
|
|
2746
|
-
bottomDescription: e,
|
|
2747
|
-
rootValue: r,
|
|
2748
|
-
title: o,
|
|
2749
|
-
subtitle: i,
|
|
2750
|
-
buttonsConfig: a,
|
|
2751
|
-
infoList: l,
|
|
2752
|
-
suffix: u,
|
|
2753
|
-
assistHint: m
|
|
2754
|
-
}) => /* @__PURE__ */ n.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
|
|
2755
|
-
/* @__PURE__ */ n.jsx(Cn, { suffix: u, rootValue: r, rootDescription: t }),
|
|
2756
|
-
/* @__PURE__ */ n.jsx(vn, { title: o, subtitle: i }),
|
|
2757
|
-
/* @__PURE__ */ n.jsx(Tn, { infoList: l }),
|
|
2758
|
-
/* @__PURE__ */ n.jsx(En, { assistHint: m, buttonsConfig: a, bottomDescription: e })
|
|
2759
|
-
] }), Fn = 2e4, st = ({
|
|
2760
|
-
slidersGroupConfig: t,
|
|
2761
|
-
additionalSliderGroupConfig: e
|
|
2762
|
-
}) => {
|
|
2763
|
-
const [r, o] = L(!1), { watch: i, setValue: a } = ke(), l = t == null ? void 0 : t.fields.find(({ args: R }) => R.name === "sum"), { args: u } = l || {}, { max: m, name: x, defaultValue: p } = u || {}, c = i(x), { min: b, name: g } = (e == null ? void 0 : e.args) ?? {}, k = i(g), w = Number(m ?? 0) - (c ?? p);
|
|
2764
|
-
return be(() => {
|
|
2765
|
-
k > w && a(g, w);
|
|
2766
|
-
}, [w, k, a, c]), be(() => {
|
|
2767
|
-
Number(m) === c && o(!1);
|
|
2768
|
-
}, [o, m, c]), {
|
|
2769
|
-
sliderVisible: r,
|
|
2770
|
-
setSliderVisible: o,
|
|
2771
|
-
sumMax: m,
|
|
2772
|
-
sumName: x,
|
|
2773
|
-
sumDefaultValue: p,
|
|
2774
|
-
sumValue: c,
|
|
2775
|
-
additionalSliderMax: w,
|
|
2776
|
-
onCheckedChange: () => {
|
|
2777
|
-
o((R) => !R), k <= 0 && a(g, b), Number(m) === c && (a(x ?? "", c - Fn), a(g, b));
|
|
2778
|
-
},
|
|
2779
|
-
sliderSumExist: !j.isObjectEmpty(l == null ? void 0 : l.args),
|
|
2780
|
-
sliderSumCorrectType: (l == null ? void 0 : l.args.componentType) === "algorithmic" || (l == null ? void 0 : l.args.componentType) === "step"
|
|
2781
|
-
};
|
|
2782
|
-
}, Sn = (t) => {
|
|
2783
|
-
switch (t) {
|
|
2784
|
-
case "content1":
|
|
2785
|
-
return /* @__PURE__ */ n.jsx("div", { children: "content 1" });
|
|
2786
|
-
case "content2":
|
|
2787
|
-
return /* @__PURE__ */ n.jsx("div", { children: "content 2" });
|
|
2788
|
-
}
|
|
2789
|
-
}, Bn = ({ triggerText: t, modalTitle: e, description: r, contentVariant: o }) => {
|
|
2790
|
-
const [i, a] = Ut(!1);
|
|
2791
|
-
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
2792
|
-
r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: r }),
|
|
2793
|
-
/* @__PURE__ */ n.jsx(
|
|
2794
|
-
"button",
|
|
2795
|
-
{
|
|
2796
|
-
onClick: () => a(!0),
|
|
2797
|
-
className: "desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
|
|
2798
|
-
children: t
|
|
2799
|
-
}
|
|
2800
|
-
),
|
|
2801
|
-
/* @__PURE__ */ n.jsx(Ht, { title: e, isModalOpen: i, closeModal: () => a(!1), children: Sn(o) })
|
|
2802
|
-
] });
|
|
2803
|
-
}, Y = ({ fields: t }) => {
|
|
2804
|
-
const { control: e } = ke();
|
|
2805
|
-
return /* @__PURE__ */ n.jsx(ct, { control: e, fields: t });
|
|
2806
|
-
}, Rn = ({
|
|
2807
|
-
slidersGroupConfig: t,
|
|
2808
|
-
additionalSliderGroupConfig: e
|
|
2809
|
-
}) => {
|
|
2810
|
-
const { control: r } = ke(), { sliderVisible: o, additionalSliderMax: i, onCheckedChange: a } = st({
|
|
2811
|
-
slidersGroupConfig: t,
|
|
2812
|
-
additionalSliderGroupConfig: e
|
|
2813
|
-
});
|
|
2814
|
-
return j.isNil(e == null ? void 0 : e.args) || !(e != null && e.args) ? null : /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
2815
|
-
/* @__PURE__ */ n.jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
2816
|
-
/* @__PURE__ */ n.jsx(Oe.SwitchBase, { checked: o, onCheckedChange: a }),
|
|
2817
|
-
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
2818
|
-
] }),
|
|
2819
|
-
o && /* @__PURE__ */ n.jsx(
|
|
2820
|
-
tt.SliderControl,
|
|
2821
|
-
{
|
|
2822
|
-
...e.args,
|
|
2823
|
-
control: r,
|
|
2824
|
-
componentType: "algorithmic",
|
|
2825
|
-
suffix: "currency",
|
|
2826
|
-
defaultValue: e == null ? void 0 : e.args.min,
|
|
2827
|
-
max: i
|
|
2828
|
-
}
|
|
2829
|
-
)
|
|
2830
|
-
] });
|
|
2831
|
-
}, _n = ({ modalConfig: t, fieldsGroup: e }) => {
|
|
2832
|
-
var i;
|
|
2833
|
-
const { sliderSumExist: r, sliderSumCorrectType: o } = st({
|
|
2834
|
-
slidersGroupConfig: e.slidersGroupConfig,
|
|
2835
|
-
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2836
|
-
});
|
|
2837
|
-
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2838
|
-
t && /* @__PURE__ */ n.jsx(Bn, { ...t }),
|
|
2839
|
-
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.selectGroupConfig }) }),
|
|
2840
|
-
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.slidersGroupConfig }),
|
|
2841
|
-
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupTabConfig }),
|
|
2842
|
-
(e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.checkboxGroupConfig }) }),
|
|
2843
|
-
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupConfig }),
|
|
2844
|
-
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupCardConfig }),
|
|
2845
|
-
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.switchGroupConfig }) }),
|
|
2846
|
-
((i = e.additionalSliderGroupConfig) == null ? void 0 : i.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig && r && o && /* @__PURE__ */ n.jsx(
|
|
2847
|
-
Rn,
|
|
2848
|
-
{
|
|
2849
|
-
slidersGroupConfig: e.slidersGroupConfig,
|
|
2850
|
-
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2851
|
-
}
|
|
2852
|
-
)
|
|
2853
|
-
] });
|
|
2854
|
-
}, Hn = Be(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: r }) => /* @__PURE__ */ n.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ n.jsx(
|
|
2855
|
-
"button",
|
|
2856
|
-
{
|
|
2857
|
-
onClick: () => r(o),
|
|
2858
|
-
className: d(
|
|
2859
|
-
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent desktop:desk-body-regular-l focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
2860
|
-
{ "bg-icon-primary-default text-color-white": e === o }
|
|
2861
|
-
),
|
|
2862
|
-
children: i
|
|
2863
|
-
},
|
|
2864
|
-
o
|
|
2865
|
-
)) })), Dn = ({
|
|
2866
|
-
calculatorInfoConfig: t,
|
|
2867
|
-
calculatorFieldsConfig: e
|
|
2868
|
-
}) => {
|
|
2869
|
-
const r = kn(e == null ? void 0 : e.fieldsGroup), o = it({
|
|
2870
|
-
schema: r,
|
|
2871
|
-
mode: "onBlur",
|
|
2872
|
-
defaultValues: dt.getZodDefaults(r)
|
|
2873
|
-
}), i = o.watch(), { rootValue: a } = t, l = bt(a) ? jt(a.formula, i) : a, u = { ...t, rootValue: l };
|
|
2874
|
-
return /* @__PURE__ */ n.jsx(At, { ...o, children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2875
|
-
/* @__PURE__ */ n.jsx(_n, { ...e }),
|
|
2876
|
-
/* @__PURE__ */ n.jsx(On, { ...u })
|
|
2877
|
-
] }) });
|
|
2878
|
-
}, lo = ({ calculators: t, headline: e }) => {
|
|
2879
|
-
var m;
|
|
2880
|
-
const r = t.length > 1, [o, i] = L(r ? (m = t[0]) == null ? void 0 : m.name : ""), a = se(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), l = r ? a == null ? void 0 : a.findIndex((x) => x.name === o) : 0, u = t[l];
|
|
2881
|
-
return /* @__PURE__ */ n.jsx("section", { id: s.calculator, children: /* @__PURE__ */ n.jsx(S, { children: /* @__PURE__ */ n.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2882
|
-
/* @__PURE__ */ n.jsx(P, { className: "mb-12", as: "h2", children: e }),
|
|
2883
|
-
r && /* @__PURE__ */ n.jsx(
|
|
2884
|
-
Hn,
|
|
2885
|
-
{
|
|
2886
|
-
calculatorTabs: a,
|
|
2887
|
-
activeCalculator: o,
|
|
2888
|
-
setActiveCalculator: i
|
|
2889
|
-
}
|
|
2890
|
-
),
|
|
2891
|
-
/* @__PURE__ */ n.jsx(
|
|
2892
|
-
Dn,
|
|
2893
|
-
{
|
|
2894
|
-
name: u.name,
|
|
2895
|
-
label: u.label,
|
|
2896
|
-
calculatorInfoConfig: u.calculatorInfoConfig,
|
|
2897
|
-
calculatorFieldsConfig: u.calculatorFieldsConfig
|
|
2898
|
-
}
|
|
2899
|
-
)
|
|
2900
|
-
] }) }) });
|
|
2901
|
-
};
|
|
2900
|
+
/* @__PURE__ */ n.jsx(Me, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
|
|
2901
|
+
] }) }) });
|
|
2902
2902
|
export {
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2903
|
+
Ie as Advantages,
|
|
2904
|
+
lo as AuthProvider,
|
|
2905
|
+
Gt as Banner,
|
|
2906
2906
|
qe as BannerWithSeparateImg,
|
|
2907
|
-
|
|
2908
|
-
|
|
2907
|
+
Kn as Benefit,
|
|
2908
|
+
en as Breadcrumbs,
|
|
2909
2909
|
Z as ButtonWithHandlers,
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2910
|
+
wr as Calculator,
|
|
2911
|
+
kr as CalculatorView,
|
|
2912
|
+
Fr as DynamicForm,
|
|
2913
|
+
uo as FallbacksView,
|
|
2914
|
+
bt as FieldMapper,
|
|
2915
|
+
Lr as Footer,
|
|
2916
|
+
Cr as HTMLParser,
|
|
2917
2917
|
ge as HTMLRenderer,
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2918
|
+
Qr as Header,
|
|
2919
|
+
Ur as InterLinking,
|
|
2920
|
+
An as KEYS_OF_WIDGET_LIST,
|
|
2921
|
+
Jr as LongBanner,
|
|
2922
|
+
gn as SeoHeader,
|
|
2923
|
+
sn as Stepper,
|
|
2924
|
+
Qn as UsefulInfo,
|
|
2925
|
+
Vn as WIDGET_LIST_MAP,
|
|
2926
|
+
Mr as queryClient,
|
|
2927
2927
|
s as widgetIds
|
|
2928
2928
|
};
|
|
2929
2929
|
//# sourceMappingURL=widget.js.map
|