@redneckz/wildless-cms-uni-blocks 0.10.6 → 0.10.7
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/bundle/bundle.umd.js +198 -266
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/Rate.d.ts +1 -0
- package/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
- package/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
- package/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/bundle/components/Carousel/itemsGap.d.ts +1 -0
- package/bundle/components/Carousel/itemsGap.mobile.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
- package/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/Blocks.mobile.js +4 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +16 -18
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +4 -4
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +27 -43
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +30 -33
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Rate.d.ts +1 -0
- package/dist/components/Calculator/Rate.js +1 -1
- package/dist/components/Calculator/Rate.js.map +1 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/dist/components/Calculator/renderDaysInput.d.ts +2 -7
- package/dist/components/Calculator/renderDaysInput.js +2 -9
- package/dist/components/Calculator/renderDaysInput.js.map +1 -1
- package/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/dist/components/Calculator/renderInterestPayment.js +8 -18
- package/dist/components/Calculator/renderInterestPayment.js.map +1 -1
- package/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/dist/components/Calculator/renderMonthsInput.js +2 -10
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/components/Calculator/renderPaymentType.d.ts +2 -11
- package/dist/components/Calculator/renderPaymentType.js +9 -19
- package/dist/components/Calculator/renderPaymentType.js.map +1 -1
- package/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/dist/components/Calculator/renderRegistrationType.js +8 -18
- package/dist/components/Calculator/renderRegistrationType.js.map +1 -1
- package/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/dist/components/Calculator/renderWantedSumInput.js +4 -6
- package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +3 -3
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/itemsGap.d.ts +1 -0
- package/dist/components/Carousel/itemsGap.js +4 -0
- package/dist/components/Carousel/itemsGap.js.map +1 -0
- package/dist/components/Carousel/itemsGap.mobile.d.ts +1 -0
- package/dist/components/Carousel/itemsGap.mobile.js +4 -0
- package/dist/components/Carousel/itemsGap.mobile.js.map +1 -0
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js +4 -0
- package/dist/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js +5 -0
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
- package/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
- package/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
- package/dist/components/Headline/Headline.js +2 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/dist/components/Headline/headlineVersionStyles.js +6 -6
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/hooks/useForm.js +2 -2
- package/dist/hooks/useForm.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +4 -1
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +22 -16
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/dist/ui-kit/InputRange/parseDecimal.js +9 -0
- package/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
- package/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
- package/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
- package/dist/utils/getSanitizedValue.js +1 -1
- package/dist/utils/getSanitizedValue.js.map +1 -1
- package/dist/wlc.json +1 -2
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/Blocks.mobile.js +4 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +16 -18
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +4 -4
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +27 -43
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +31 -34
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Rate.d.ts +1 -0
- package/lib/components/Calculator/Rate.js +1 -1
- package/lib/components/Calculator/Rate.js.map +1 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/lib/components/Calculator/renderDaysInput.d.ts +2 -7
- package/lib/components/Calculator/renderDaysInput.js +2 -9
- package/lib/components/Calculator/renderDaysInput.js.map +1 -1
- package/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/lib/components/Calculator/renderInterestPayment.js +8 -18
- package/lib/components/Calculator/renderInterestPayment.js.map +1 -1
- package/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/lib/components/Calculator/renderMonthsInput.js +2 -10
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/components/Calculator/renderPaymentType.d.ts +2 -11
- package/lib/components/Calculator/renderPaymentType.js +8 -18
- package/lib/components/Calculator/renderPaymentType.js.map +1 -1
- package/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/lib/components/Calculator/renderRegistrationType.js +8 -18
- package/lib/components/Calculator/renderRegistrationType.js.map +1 -1
- package/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/lib/components/Calculator/renderWantedSumInput.js +4 -6
- package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +11 -0
- package/lib/components/Carousel/Carousel.js +2 -2
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/itemsGap.d.ts +1 -0
- package/lib/components/Carousel/itemsGap.js +2 -0
- package/lib/components/Carousel/itemsGap.js.map +1 -0
- package/lib/components/Carousel/itemsGap.mobile.d.ts +1 -0
- package/lib/components/Carousel/itemsGap.mobile.js +2 -0
- package/lib/components/Carousel/itemsGap.mobile.js.map +1 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.d.ts +9 -0
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js +2 -0
- package/lib/components/CarouselTariffsCard/descriptionSize.mobile.js.map +1 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.d.ts +1 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js +2 -0
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -0
- package/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
- package/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +22 -0
- package/lib/components/Headline/Headline.js +2 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/lib/components/Headline/headlineVersionStyles.js +6 -6
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/hooks/useForm.js +2 -2
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +4 -1
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +22 -16
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/lib/ui-kit/InputRange/parseDecimal.js +6 -0
- package/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
- package/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
- package/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
- package/lib/utils/getSanitizedValue.js +1 -1
- package/lib/utils/getSanitizedValue.js.map +1 -1
- package/lib/wlc.json +1 -2
- package/mobile/bundle/bundle.umd.js +363 -265
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/Rate.d.ts +1 -0
- package/mobile/bundle/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/mobile/bundle/components/Calculator/renderDaysInput.d.ts +2 -7
- package/mobile/bundle/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +2 -11
- package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/mobile/bundle/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/mobile/bundle/components/Carousel/itemsGap.d.ts +1 -0
- package/mobile/bundle/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/mobile/bundle/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/mobile/bundle/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/mobile/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/Blocks.js +4 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +16 -18
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +4 -4
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +27 -43
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +30 -33
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Rate.d.ts +1 -0
- package/mobile/dist/components/Calculator/Rate.js +1 -1
- package/mobile/dist/components/Calculator/Rate.js.map +1 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +8 -0
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/mobile/dist/components/Calculator/renderDaysInput.d.ts +2 -7
- package/mobile/dist/components/Calculator/renderDaysInput.js +2 -9
- package/mobile/dist/components/Calculator/renderDaysInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/mobile/dist/components/Calculator/renderInterestPayment.js +8 -18
- package/mobile/dist/components/Calculator/renderInterestPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/mobile/dist/components/Calculator/renderMonthsInput.js +2 -10
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderPaymentType.d.ts +2 -11
- package/mobile/dist/components/Calculator/renderPaymentType.js +9 -19
- package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/mobile/dist/components/Calculator/renderRegistrationType.js +8 -18
- package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -1
- package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/mobile/dist/components/Calculator/renderWantedSumInput.js +4 -6
- package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +3 -3
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/itemsGap.d.ts +1 -0
- package/mobile/dist/components/Carousel/itemsGap.js +4 -0
- package/mobile/dist/components/Carousel/itemsGap.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +6 -10
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js +4 -0
- package/mobile/dist/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js +5 -0
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js +12 -0
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
- package/mobile/dist/components/Headline/Headline.js +2 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.js +6 -6
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/hooks/useForm.js +2 -2
- package/mobile/dist/hooks/useForm.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +4 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +22 -16
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/mobile/dist/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/mobile/dist/ui-kit/InputRange/parseDecimal.js +9 -0
- package/mobile/dist/ui-kit/InputRange/parseDecimal.js.map +1 -0
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +17 -0
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
- package/mobile/dist/utils/getSanitizedValue.js +1 -1
- package/mobile/dist/utils/getSanitizedValue.js.map +1 -1
- package/mobile/dist/wlc.json +1 -2
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/Blocks.js +4 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +16 -18
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -30
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +4 -4
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +27 -43
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +31 -34
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Rate.d.ts +1 -0
- package/mobile/lib/components/Calculator/Rate.js +1 -1
- package/mobile/lib/components/Calculator/Rate.js.map +1 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.d.ts +11 -0
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +5 -0
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/mobile/lib/components/Calculator/renderDaysInput.d.ts +2 -7
- package/mobile/lib/components/Calculator/renderDaysInput.js +2 -9
- package/mobile/lib/components/Calculator/renderDaysInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +2 -9
- package/mobile/lib/components/Calculator/renderInterestPayment.js +8 -18
- package/mobile/lib/components/Calculator/renderInterestPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -5
- package/mobile/lib/components/Calculator/renderMonthsInput.js +2 -10
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderPaymentType.d.ts +2 -11
- package/mobile/lib/components/Calculator/renderPaymentType.js +8 -18
- package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +2 -9
- package/mobile/lib/components/Calculator/renderRegistrationType.js +8 -18
- package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -1
- package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +3 -7
- package/mobile/lib/components/Calculator/renderWantedSumInput.js +4 -6
- package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +2 -2
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/itemsGap.d.ts +1 -0
- package/mobile/lib/components/Carousel/itemsGap.js +2 -0
- package/mobile/lib/components/Carousel/itemsGap.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -9
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.d.ts +1 -0
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js +2 -0
- package/mobile/lib/components/CarouselTariffsCard/descriptionSize.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.d.ts +1 -0
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js +2 -0
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -0
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.d.ts +3 -0
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js +9 -0
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -0
- package/mobile/lib/components/Headline/Headline.js +2 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.js +6 -6
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/hooks/useForm.js +2 -2
- package/mobile/lib/hooks/useForm.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +4 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +22 -16
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +1 -0
- package/mobile/lib/ui-kit/InputRange/parseDecimal.d.ts +1 -0
- package/mobile/lib/ui-kit/InputRange/parseDecimal.js +6 -0
- package/mobile/lib/ui-kit/InputRange/parseDecimal.js.map +1 -0
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +12 -0
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +14 -0
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js.map +1 -0
- package/mobile/lib/utils/getSanitizedValue.js +1 -1
- package/mobile/lib/utils/getSanitizedValue.js.map +1 -1
- package/mobile/lib/wlc.json +1 -2
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/mobile/src/components/Blocks.ts +4 -0
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
- package/mobile/src/components/Calculator/Calculator.tsx +11 -5
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
- package/mobile/src/components/Calculator/Rate.tsx +14 -14
- package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
- package/mobile/src/components/Calculator/renderDaysInput.tsx +10 -31
- package/mobile/src/components/Calculator/renderInterestPayment.tsx +13 -52
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +17 -39
- package/mobile/src/components/Calculator/renderPaymentType.tsx +13 -49
- package/mobile/src/components/Calculator/renderRegistrationType.tsx +13 -51
- package/mobile/src/components/Calculator/renderWantedSumInput.tsx +10 -27
- package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +2 -3
- package/mobile/src/components/Carousel/itemsGap.ts +1 -0
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
- package/mobile/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
- package/mobile/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
- package/mobile/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
- package/mobile/src/components/Headline/Headline.tsx +10 -5
- package/mobile/src/components/Headline/headlineVersionStyles.ts +7 -7
- package/mobile/src/hooks/useForm.ts +17 -14
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +5 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +56 -43
- package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
- package/mobile/src/ui-kit/InputRange/parseDecimal.ts +6 -0
- package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
- package/mobile/src/utils/getSanitizedValue.ts +1 -1
- package/mobile/src/wlc.json +1 -2
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/src/components/Blocks.mobile.ts +4 -0
- package/src/components/Calculator/BonusCalculatorForm.tsx +29 -33
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +37 -57
- package/src/components/Calculator/Calculator.tsx +11 -5
- package/src/components/Calculator/CreditCalculatorForm.tsx +52 -87
- package/src/components/Calculator/DepositCalculatorForm.tsx +38 -66
- package/src/components/Calculator/Rate.tsx +14 -14
- package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +35 -0
- package/src/components/Calculator/renderDaysInput.tsx +10 -31
- package/src/components/Calculator/renderInterestPayment.tsx +13 -52
- package/src/components/Calculator/renderMonthsInput.tsx +17 -39
- package/src/components/Calculator/renderPaymentType.tsx +13 -49
- package/src/components/Calculator/renderRegistrationType.tsx +13 -51
- package/src/components/Calculator/renderWantedSumInput.tsx +10 -27
- package/src/components/Calculator/useDepositCalculatorParams.ts +1 -1
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +93 -0
- package/src/components/Carousel/Carousel.tsx +2 -3
- package/src/components/Carousel/itemsGap.mobile.ts +1 -0
- package/src/components/Carousel/itemsGap.ts +1 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +74 -0
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +7 -31
- package/src/components/CarouselTariffsCard/descriptionSize.mobile.tsx +1 -0
- package/src/components/CarouselTariffsCard/descriptionSize.tsx +1 -0
- package/src/components/CarouselTariffsCard/getPaddingStyle.mobile.tsx +2 -0
- package/src/components/CarouselTariffsCard/getPaddingStyle.tsx +2 -0
- package/src/components/CarouselTariffsCard/renderCardInfo.tsx +31 -0
- package/src/components/Headline/Headline.fixture.mobile.tsx +95 -0
- package/src/components/Headline/Headline.tsx +10 -5
- package/src/components/Headline/headlineVersionStyles.ts +7 -7
- package/src/hooks/useForm.ts +17 -14
- package/src/ui-kit/Checkbox/Checkbox.tsx +5 -1
- package/src/ui-kit/InputRange/InputRange.tsx +56 -43
- package/src/ui-kit/InputRange/InputRangeProps.ts +1 -0
- package/src/ui-kit/InputRange/parseDecimal.ts +6 -0
- package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +62 -0
- package/src/utils/getSanitizedValue.ts +1 -1
- package/src/wlc.json +1 -2
- package/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/dist/ui-kit/InputListRange/InputListRange.js +0 -41
- package/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
- package/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/dist/ui-kit/InputListRange/InputListRangeProps.js +0 -2
- package/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
- package/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/lib/ui-kit/InputListRange/InputListRange.js +0 -39
- package/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
- package/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
- package/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
- package/mobile/bundle/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/mobile/bundle/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/mobile/dist/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/mobile/dist/ui-kit/InputListRange/InputListRange.js +0 -41
- package/mobile/dist/ui-kit/InputListRange/InputListRange.js.map +0 -1
- package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js +0 -2
- package/mobile/dist/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
- package/mobile/lib/ui-kit/InputListRange/InputListRange.d.ts +0 -2
- package/mobile/lib/ui-kit/InputListRange/InputListRange.js +0 -39
- package/mobile/lib/ui-kit/InputListRange/InputListRange.js.map +0 -1
- package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.d.ts +0 -10
- package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js +0 -2
- package/mobile/lib/ui-kit/InputListRange/InputListRangeProps.js.map +0 -1
- package/mobile/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
- package/mobile/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
- package/src/ui-kit/InputListRange/InputListRange.tsx +0 -99
- package/src/ui-kit/InputListRange/InputListRangeProps.ts +0 -11
package/bundle/bundle.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),a=l("useEffect"),r=l("useCallback"),i=l("useMemo"),s=l("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,l){const{children:n,...a}=t||{},r=l?.slots?.default,i=n||r&&r();return e(Object.assign(a,i&&{children:i}),l)}return t.inheritAttrs=!1,t};class b{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const f=new b;function v(e,{sensitivity:t,rootRef:l}={}){const n=s(null),r=i((()=>({threshold:N(t),root:l?.current})),[t,l?.current]);return a((()=>{if(!n.current)return;const t=new IntersectionObserver(e,r);return t.observe(n.current),()=>{t.disconnect()}}),[e,r]),n}function N(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const y=new b;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),C={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},k=x((({className:e="",version:t="primary",isTheme:l=!0,block:i,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return v(r((t=>{if(!e||!t?.length)return;const l=t[t.length-1];y.fire("intersection",{block:e,intersection:l})}),[e]),{sensitivity:1})}(i),[h,p]=n(!1);return a((()=>f.subscribe("tab",(e=>{p(Boolean(e.label&&i?.labels?.length&&!i.labels.includes(e.label)))}))),[i]),u(d,{className:w(S(Boolean(t&&l)),C[t],h?"hidden":"",e),...t&&l?{"data-ver":t}:{},...i?.anchor?{id:i.anchor,ref:m}:{},role:o,children:c})})),S=e=>e?"group":"",I={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},T=x((({className:e="",headingType:t="h3",as:l="h3",title:n,children:a})=>u(l,{className:`font-sans m-0 ${I[t]} ${e}`,children:n||a}))),$=(e,t)=>{const[l,a]=n(e),[i,o]=n(!1),[c,d]=n({}),m=s({}),h=r((()=>{a(e),o(!1),d({})}),[e]),u=r((e=>{e.preventDefault(),o(!0),t&&t(l)}),[t,l]);return[l,{isDirty:i||Object.values(c).some(Boolean),field:e=>(m.current||(m.current={}),m.current[e]||=t=>{a((l=>({...l,[e]:t}))),d((t=>({...t,[e]:!0})))},{value:l[e],isDirty:i||c[e],onChange:m.current[e]}),reset:h,onSubmit:u}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,l])=>l(t[e])))||[],B=e=>!e?.length,M=e=>t=>l=>e(l)?[]:[t],_=new Map;function j(e,t,{fallback:l}={}){const r=i((()=>z(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};a((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>_.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=l&&"string"==typeof u&&l[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function z(e){return e?Array.isArray(e)?e:e instanceof Function?z(e()):[e]:[e]}async function L(e,t){try{return e?await D(e,t):null}catch(e){console.error(e)}return null}async function D(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}const P=[];function V(){const{data:e}=j("/api/v1/regions",D);return e||P}const O=(e="")=>({open:t=>f.fire("dialog",{type:"open",id:e,message:t}),close:()=>f.fire("dialog",{type:"close"})}),A=e=>Boolean(e?.includes(":")),E=(e,t)=>Boolean(e&&!A(e)&&(!t||"_self"===t)),F=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),U=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var H=Object.freeze({__proto__:null,isURL:A,isLocalURL:E,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:F,joinPath:U});const X=e=>(t,l=c.BASE_PATH)=>{if(!t||A(t)||W(t,c.CDN))return t;const n=t.startsWith("/");return U(W(t,l)?"":l,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},W=(e,t)=>t&&e&&e.startsWith(t),K=(e,t)=>K._impl(e,t);function G(){return G._impl()}function J(e={}){const{isRemote:t,basePath:l}=e,n=G(),{close:a}=O();return e=>({...e,href:t?e.href:X(n)(e.href,l),"aria-label":e.text,onClick:K(r(e),e)});function r({href:e,target:l,onClick:r}){return i=>{r&&r(i),e&&!t&&E(e,l)&&(a(),i?.preventDefault(),n.push(e))}}}K._impl=e=>e,K.setup=e=>{K._impl=e},G._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),G.setup=e=>{G._impl=e};const Y={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},q="bg-main-divider text-main-disabled",Z={primary:q,secondary:q,white:q,link:"",transparent:"",gray:q,"":""},Q="text-center font-sans select-none",ee={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},te=x((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:a,version:r="primary"}=e;return p("div",{className:w(le(e),"flex gap-2"),children:[n?u("div",{className:ee[r],children:n}):null,ne(e)?p("div",{children:[l?u("div",{className:"text-xs-light text-left",children:l}):null,u("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,a?u("div",{className:ee[r],children:a}):null]})})),le=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const a=""+(l?"py-2.5 px-7":"py-4 px-4");return["group/btn items-center justify-center",ne(e)?a:"h-12 w-12",n?"rounded-full":""].join(" ")},ne=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ae=({className:e,rounded:t,version:l})=>["inline-block",Q,l?Z[l]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:l})=>[Q,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",l?Y[l]:"",t?"rounded-full":"rounded-md",e].join(" "),ie=x((({disabled:e,children:t,...l})=>{const n=J()(l),a=t??u(te,{...n});return u(e?oe:se,{...n,children:a})})),se=x((({className:e="",href:t,rel:l,target:n,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:re({className:e,version:r,rounded:i}),href:t,rel:l,target:n,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),oe=x((({className:e,ariaLabel:t,version:l,rounded:n,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ae({className:e,rounded:n,version:l}),children:a}))),ce=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),de=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),me=x((({link:e})=>p(ce,{size:"text-s-light",color:"text-secondary-text",children:[u(de,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(ie,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(de,{children:e.text})}):null]}))),he=(e,t)=>{const{value:l,isDirty:n}=e,a=n?t(l):[];return{...e,errors:a,error:a[0]}},ue=x((({className:e="",inputClassName:t="",id:l,name:n,type:a="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,...m})=>{const h=r((e=>{d&&d(e.target?.value||"")}),[d]),x=c?"pr-8":"",g=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",e),children:[i?u("label",{className:"block text-m-light mb-2",children:i}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",x,g,t),id:l,name:n||l,type:a,value:s,onInput:h,...m}),c]})})),pe=x((({className:e,label:t,value:l="",error:n,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(ue,{type:"text","aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:r}),u("div",{className:"h-2",children:n?u(de,{size:"text-xs-light",color:"text-error",children:n}):null})]}))),xe=e=>"_"===e,ge=e=>/\d/.test(e),be=e=>xe(e)||ge(e),fe=[..."+7 (___) ___-__-__"],ve=fe.findIndex(xe),Ne=fe.map(((e,t)=>be(e)?fe.slice(0,t).filter(be).length:-1));const ye=x((({children:e,onChange:t,...l})=>{const n=r((({target:{value:e}})=>t&&t(function(e){const t=e.replace(/\D/g,""),l=fe.map(((e,l)=>ge(e)?e:t.charAt(Ne[l])||e)),n=Ne.indexOf(t.length-1)+1;return(n?l.slice(0,Math.max(ve,n)):l).join("")}(e||""))),[t]);return u(ue,{onInput:n,onFocus:n,...l,children:e})})),we=x((({className:e,label:t,value:l,error:n,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(ye,{"aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:r}),u("div",{className:"h-2",children:n?u(de,{size:"text-xs-light",color:"text-error",children:n}):null})]}))),Ce="Некорректно заполненное поле",ke=M((e=>null!=e&&""!==e))(Ce),Se=M((e=>"string"==typeof e&&e.length>1))(Ce),Ie=M((e=>"string"==typeof e&&(10===e.length||12===e.length)))(Ce),Te=($e=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,M((e=>"string"==typeof e&&$e.test(e))))(Ce);var $e;const Re=e=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",...he(e("fullName"),ke)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)})]}),p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",...he(e("inn"),Ie)}),u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)})]})]}),Be=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function Me(e=!1){const[t,l]=n(e),a=r((()=>l(!0)),[]),i=r((()=>l(!1)),[]),s=r((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:a,setFalse:i,toggle:s}]}function _e(e){const t=s(null);return a((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const je={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},ze=x((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:a=n,iconVersion:r="color",...i})=>{const s=G(),o=X(s)(U(c.CDN,"/icons",`${l}.svg`));return"normal"!==r?u(De,{className:e,children:p("svg",{className:w(Le(i.width),je[r],"white"===r?"invert":"",t),...i,"aria-hidden":"true",children:[a?u("title",{children:a}):null,n?u("desc",{children:n}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(i.style={height:`${i.height}px`}),u("img",{className:e,src:o,alt:n,title:a,"aria-hidden":"true",...i}))})),Le=e=>e?"":"w-full h-full",De=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Pe=x((({className:e="",label:t,options:l=[],value:n,valid:a=!0,isBorder:i=!0,placeholder:s="",onChange:o})=>{const[c,{setFalse:d,toggle:m}]=Me(),h=_e(d),x=r((e=>{d(),o&&o(e)}),[o]);return p("div",{className:e,ref:h,children:[t?u("div",{className:"mb-2",children:u(de,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",c?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer",Ae(i,a)),onClick:m,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Oe(n)||s}),u(ze,{className:w("absolute right-3",c?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),l?.length?u("div",{className:w("h-0",c?"":"overflow-hidden"),children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:l.map(Ve(x,c,(e=>e.key===n?.key)))})}):null]})]})})),Ve=(e,t,l)=>(n,a)=>p("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:Oe(n)}),u(ze,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",l(n)&&t?"":"hidden")})]},String(a)),Oe=e=>e?.text||e?.key||"",Ae=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),Ee=x((e=>p("div",{children:[u(Pe,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(de,{size:"text-xs-light",color:"text-error",children:e.error}):null})]}))),Fe=({regions:e,field:t})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Ee,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Be.map((({name:e=""})=>({key:e,text:e}))),...he(t("acquiringType"),ke)})}),u("div",{className:"w-1/2",children:u(Ee,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),ke)})})]}),Ue=x((({value:e=!1,text:t,type:l="checkbox",onChange:n})=>p("div",{role:l,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-3",onClick:()=>n&&n(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-[50%]":"left-[5%]")})}),u(de,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),He=e=>p("div",{className:"mb-5",children:[u(Ue,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(Ue,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),Xe=(e,t)=>{const l=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4",l,t),children:e?.text?e.text:"Отправить заявку"})},We={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ke=R({acquiringType:ke,region:ke,fullName:ke,inn:Ie,name:Se,phone:Te}),Ge=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{acquiringType:t,region:l,fullName:a,inn:r,name:i,phone:s,onlineCheckout:o,posTerminal:c}=e;B(Ke(e))&&n({typeForm:"acqr",region:l?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:r,name:i,phone:s})}),[n]),[,{field:i,...s}]=$(We,a),o=V();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Fe({regions:o,field:i}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Re(i),He(i),Xe(t,"mb-4"),u(me,{link:l})]})})),Je=e=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",...he(e("inn"),Ie)})]}),p("div",{className:"w-1/2",children:[u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",...he(e("mail"),ke)})]})]}),Ye=({regions:e,field:t})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(Ee,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),ke)})})}),qe={name:"",phone:"",inn:"",mail:""},Ze=R({region:ke,name:Se,phone:Te,inn:Ie,mail:ke}),Qe=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{region:t,name:l,phone:a,inn:r,mail:i}=e;B(Ze(e))&&n({typeForm:"bcrd",region:t?.text||"",name:l,phone:a,inn:r,mail:i})}),[n]),[,{field:i,...s}]=$(qe,a),o=V();return p("form",{className:"container",onSubmit:s.onSubmit,children:[Ye({regions:o,field:i}),Je(i),Xe(t,"mb-4"),u(me,{link:l})]})})),et=[];const tt=async e=>await L(e,{method:"GET"})||et,lt=["От 1 000 ₽","До 1 000 000 000 ₽"],nt=["От 1 мес","До 15 лет"],at=e=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",...e("fullName")}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",...he(e("inn"),Ie)}),u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)})]}),p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Годовая выручка, ₽",...he(e("annualRevenue"),ke)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),rt=e=>new Intl.NumberFormat("ru-RU",{}).format(e),it=(e,t,l)=>Math.max(t,Math.min(e,l)),st=e=>e.split(/\s+/).join(""),ot=x((({className:e,title:t,items:l=[],min:n=1,max:a=100,step:r=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(it(Number(st(e.target.value)),n,a))},d={backgroundSize:`${(100*(i-n)/(a-n)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:rt(i),disabled:s,onChange:c,onBlur:c}),u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:a,step:r,value:i,disabled:s,onChange:c,style:d})})]}),ct(l)]})}));function ct(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const dt=e=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u("label",{children:u(de,{size:"text-m-light",children:"Сумма кредита, ₽"})}),u(ot,{items:lt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"w-1/2",children:[u("label",{children:u(de,{size:"text-m-light",children:"Срок кредита, месяцев"})}),u(ot,{items:nt,min:1,max:180,...e("term")})]})]}),mt=({regions:e,branches:t,field:l})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Ee,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(l("region"),ke)})}),u("div",{className:"w-1/2",children:u(Ee,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...he(l("department"),ke)})})]}),ht={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},ut=R({annualRevenue:ke,inn:Ie,name:Se,phone:Te,region:ke,department:ke}),pt=x((({button:e,link:t,onSubmit:l})=>{const n=r((e=>{const{amount:t,term:n,fullName:a,inn:r,name:i,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;B(ut(e))&&l({typeForm:"cred",fullName:a,inn:r,name:i,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${n}/Выручка=${m}`})}),[l]),[a,{field:i,...s}]=$(ht,n),o=V(),c=function(e){const{data:t}=j(e?`/api/v1/branches?regionCode=${e}`:null,tt);return t||et}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),dt(i),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),at(i),u(T,{headingType:"h6",title:"Офис банка",className:"text-center mb-4"}),mt({regions:o,branches:c,field:i}),Xe(e,"mb-4"),u(me,{link:t})]})})),xt={name:"",phone:""},gt=R({name:Se,phone:Te}),bt=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{name:t,phone:l}=e;B(gt(e))&&n({typeForm:"dpst",name:t,phone:l})}),[n]),[,{field:i,...s}]=$(xt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Имя",...he(i("name"),Se)}),u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(i("phone"),Te)})]}),p("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(me,{link:l})}),Xe(t)]})]})})),ft=(e,t)=>e?.media&&t?.media?e.media-t.media:0,vt=x((({className:e="",image:t,imageClassName:l="",isMobile:n=!1,pathPrefix:a})=>{const r=G();return p("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(ft).map((({src:e,format:l,media:n},i)=>u("source",{srcSet:yt(r,a)(e),type:wt(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?Nt({...t,src:yt(r,a)(t.src)},l,n):null]})})),Nt=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",r=e.alt||e.title,i=l?"m-auto":"m-0";return u("img",{src:e.src,className:`${i} ${t}`,alt:r,title:a,style:n,...e.size})},yt=(e,t)=>l=>l&&!A(l)?X(e)(U(t,l)):l,wt=e=>e?`image/${String(e)}`:void 0,Ct=x((({className:e="",image:t,imageClassName:l="",isMobile:n,pathPrefix:a,...r})=>t?.src||t?.icon?t.icon?u(ze,{className:e,imageClassName:l,iconVersion:t?.iconVersion,name:t.icon,...r}):u(vt,{className:e,imageClassName:l,image:t,isMobile:n,pathPrefix:a}):null)),kt=x((({className:e,viewBox:t,fill:l="none",width:n,height:a,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:a,children:r.map((({d:e,fill:t,...l},n)=>u("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),St=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],It=x((({className:e,value:t,text:l,disabled:n,isRadio:a,onChange:i})=>{const s=r((e=>{e.preventDefault(),i&&i(!t)}),[i,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(kt,{paths:St,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":Tt(t),t?"border-primary-main":"border-gray",n?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(n)}),t?o:null,l?u("span",{className:"font-sans ml-3 text-l-light",children:l}):null]})})})),Tt=e=>w("rounded border",e?"bg-primary-main":""),$t=e=>{const t=e("text");return p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u(It,{text:"Валютный контроль",...e("currencyControl")}),u(It,{text:"Документарные операции",...e("documentaryOperations")}),u(It,{text:"Конверсионные операции",...e("conversionOperations")})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},Rt=e=>p("div",{children:[p("div",{className:"flex justify-between gap-5",children:[u("div",{className:"w-1/2",children:u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",...he(e("fullName"),ke)})}),u("div",{className:"w-1/2",children:u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ФИО",...he(e("name"),Se)})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)})}),u("div",{className:"w-1/2",children:u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",...he(e("mail"),ke)})})]})]}),Bt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},Mt=R({fullName:ke,name:Se,phone:Te,mail:ke}),_t=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{fullName:t,name:l,phone:a,mail:r,currencyControl:i,documentaryOperations:s,conversionOperations:o,text:c}=e;B(Mt(e))&&n({typeForm:"kved",fullName:t,name:l,phone:a,mail:r,partnerComments:`Валютный контроль=${i}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[n]),[,{field:i,...s}]=$(Bt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Rt(i),u(T,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),$t(i),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Xe(t,"mr-5"),u(me,{link:l})]}),u(T,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(Ct,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(Ct,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),jt=x((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[u(Ct,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(T,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(de,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),zt={credit:e=>u(pt,{...e}),acquiring:e=>u(Ge,{...e}),"business-card":e=>u(Qe,{...e}),deposit:e=>u(bt,{...e}),wed:e=>u(_t,{...e})},Lt={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Dt=x((e=>{const{className:t,title:l,typeForm:a="credit",button:i,link:s,...o}=e,[c,d]=n(""),m=r((async e=>{const t=await Lt.send(e)?"OK":"Fail";return d(t),t}),[]);return u(k,{className:w("font-sans bg-white p-12 pb-9",t),...o,children:p("div",{className:"container max-w-[978px]",children:[l?u(T,{headingType:"h3",title:l,className:"text-center mb-8"}):null,zt[a]({button:i,link:s,onSubmit:m}),c?u(jt,{responseType:c}):null]})})})),Pt=x((({className:e="",title:t,benefitList:l,...n})=>p(k,{className:`p-default flex flex-col items-center ${e}`,...n,children:[t?u(T,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?u("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(Vt)}):null]}))),Vt=(e,t)=>{const l=e.description;return p("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?u(Ct,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black",image:e.icon}):null,e?.icon?.src?u(Ct,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(T,{headingType:"h6",children:e.label}):null,Ot(l)]})]},String(t))},Ot=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Et(e):At(e)}):null},At=e=>e?.name||null,Et=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Ft=(e,{className:t="",buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",n?"flex-col gap-2":"gap-4",t),children:e.map(Ut(l))}):null,Ut=(e="")=>(t,l)=>{const{text:n,icon:a,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return n||a?.icon?u(ie,{className:e,appendLeft:Ht({...a,iconVersion:c}),appendRight:Ht({...r,iconVersion:c}),version:i,text:n,...s},l?String(l):""):null},Ht=e=>e?.icon||e?.src?u(Ct,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Xt={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Wt={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Kt=x((({className:e,title:t,description:l,headlineVersion:n="XL",align:a="text-center",as:r,isPadding:i=!0,isTheme:s=!1,version:o="",...c})=>{const d=Xt[n];return p(k,{className:w("flex flex-col",i?"p-default":"",d.wrapper,e),version:o,isTheme:s,...c,children:[t?u(T,{className:w("whitespace-pre-wrap",a),...d?.title,as:r||d?.title.as,title:t}):null,l?u(ce,{size:d.descriptionSize,align:a,children:l}):null]})})),Gt=x((e=>{const{className:t="",title:l,description:n,bonusItems:a,...r}=e;return u(k,{className:`p-default pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(Kt,{className:"!p-0",title:l,description:n,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u(de,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-2",children:u(ce,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[Ft(e?.buttons),e.bonusItemContent?.bonusType?Jt(e.bonusItemContent):null]})]},String(t)))):null})]})})})),Jt=e=>u("div",{children:"count"===e.bonusType?Yt(e):qt(e)}),Yt=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),qt=e=>e.image?u(Ct,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Zt={left:"text-left",center:"text-center",right:"text-right"},Qt=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:a,title:r,...i})=>p(k,{className:`font-sans text-primary-text bg-white p-default flex flex-col text-center ${l}`,...i,children:[u(Kt,{className:"!p-0 mb-8",title:r,description:a,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${Zt[t]} ${tl(n)}`,children:e.map(el)}):null]}))),el=({icon:e,title:t,description:l},n)=>p("div",{className:w("flex flex-col items-center text-h6",l||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(Ct,{image:e,height:"180",className:"w-auto"}):null,l?u("span",{children:l}):null]},String(n)),tl=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},ll=x((e=>{const{title:t,image:l,cardItems:n,button:a}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[l?p("div",{className:"flex justify-center",children:[l?.src?u(Ct,{className:"mb-5",image:l}):null,l?.icon?u(Ct,{image:l}):null]}):null,t?u(T,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?u("ul",{children:n.map(((e,t)=>nl(e,String(t))))}):null,Ft([a],{buttonClassName:"mt-6"})]})})),nl=(e,t)=>{const{icon:l,text:n}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?u(Ct,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider"}):null,l?.src?u(Ct,{image:l}):null,u("span",{className:"text-xl-light",children:n})]},t)},al=x((({className:e="",title:t,cards:l,...n})=>p(k,{className:`p-default pb-9 ${e}`,...n,children:[u(T,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>u(ll,{...e},String(t)))):null})]}))),rl=x((({button:e,className:t,...l})=>u(k,{className:w("!bg-transparent",t),...l,children:Ft([e])}))),il=e=>{const{itemCount:t,visibleItemCount:l}=e,[a,i]=n(0),s=r((()=>i((e=>Math.min(e+1,t-1)))),[t]),o=r((()=>i((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(l||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const sl=x((({className:e,disabled:t,...l})=>u(ie,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:u(Ct,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),ol=x((e=>u(sl,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),cl=x((e=>u(sl,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function dl({dec:e,inc:t,canDec:l,canInc:n,btnClass:a,className:r=""}){return l||n?p("div",{children:[l?u(sl,{className:`absolute z-40 ${a[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?u(sl,{className:`absolute z-40 rotate-180 ${a[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const ml=x((({title:e,value:t,postfix:l="",prefix:n,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(de,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(de,{size:"text-h3",children:[n," ",rt(Math.round(t))," ",l]})}:{children:u(de,{size:"text-h3",children:"-"})})]}))),hl=Math.round(23.5),ul={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},pl={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},xl={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},gl={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},bl=x((({rate:e,title:t="Ставка",unit:l,depositeName:n,isShowDepositeName:a,rateBlockClassName:r})=>p("div",{children:[u(de,{size:"text-l-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start",children:[u("span",{className:w("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e.toFixed(2)).replace(".",",")}),l?u("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]}),n&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:n}):null]})]}))),fl=e=>e?u(ce,{size:"text-s-light",color:"text-secondary-text",children:e}):null,vl=1e3;function Nl(e,t,l){const{moneyValue:n,minSum:a,maxSum:r,step:i=vl,isShowItems:s=!0}=t,o=[`От ${rt(a)} ₽`,`До ${rt(r)} ₽`];return u(ot,{title:e,items:s?o:[],min:a,max:r,step:i,value:it(n,a,r),onChange:l})}function yl(e){const{data:t}=j(`/wcms-resources/${e}.json`,D);return t}const wl=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,a=yl(t||"bonus-calculator-data")||pl,[r,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:a,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),r)*(12-i)]})(a,l,n);return{...a,...e,monthBonus:r,yearBonus:i}},Cl=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:a})=>{const[i,s]=n(6e3),o=r((e=>s(e)),[]),[c,d]=n(6e3),m=r((e=>d(e)),[]),h={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=wl(h,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Nl("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),Nl("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),u("div",{children:v>=0?u(bl,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),p("div",{className:"w-full max-w-[350px]",children:[N>=0?u(ml,{title:"Баллов за год",value:N}):null,Ft(l,{className:"mt-7",isVertical:!0}),fl(a)]})]})}));function kl(e,t,l){const{minDays:n,maxDays:a,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return u(ot,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(a)}`],min:n,max:a,step:1,value:it(r,n,a),onChange:l})}const Sl={horizontal:"gap-10",vertical:"flex-col gap-3"},Il=x((({items:e,checkedItem:t,onChange:l,orientation:n="horizontal"})=>u("div",{className:`flex ${Sl[n]}`,children:e?.map((({id:e,text:n})=>u(It,{isRadio:!0,text:n,value:t===e,onChange:()=>l&&l(e)},String(e))))}))),Tl="everyMonth",$l="atEndTerm",Rl=[{id:Tl,text:"Ежемесячно"},{id:$l,text:"В конце срока"}];function Bl({isMonthlyInterestPayment:e,callback:t,title:l,orientation:n="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(de,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(Il,{orientation:n,items:Rl,checkedItem:e?Tl:$l,onChange:e=>t&&t(e===Tl)})})]})}const Ml=x((({title:e="Ставка"})=>p("div",{children:[u(de,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(ze,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-[250px] mt-3.5",children:p(ce,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),_l=e=>e,jl=(e=_l)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),zl=jl(),Ll=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let l=1;for(;l<t.length;){const[e,n]=t[l-1],[a,r]=t[l];n>=a?t.splice(l-1,2,[e,Math.max(n,r)]):l++}return t},Dl=(e=_l)=>jl((t=>-e(t))),Pl=([e,t],l,n=[])=>l&&l[e]&&l[t]?{[e]:l[e],[t]:l[t]}:Vl([e,t],n),Vl=([e,t],l=[])=>({[e]:l.length?Dl()(l.filter((t=>t[e])).map((t=>t[e]))):0,[t]:l.length?jl()(l.filter((e=>e[t])).map((e=>e[t]))):0}),Ol=(e,[t,l],n)=>e>=n[t]&&e<=n[l],Al=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,El=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,daysValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a/30)-n):Math.round(n*e*a/365/100)},Fl=x((({className:e="",sourceBookDir:t,buttons:l,footnote:a,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=n(1e5),d=r((e=>c(e)),[]),[m,h]=n(90),x=r((e=>h(e)),[]),[g,b]=n(!1),f=r((e=>b(e)),[]),[v,N]=n(!1),y=r((e=>N(e)),[]),[w,C]=n(!1),k=r((e=>C(e)),[]),[S,I]=n(!1),T=r((e=>I(e)),[]),$=((e,t)=>{const{daysValue:l,moneyValue:n,isPartialWithdrawal:a,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=yl(t||"business-calculator-data"),c=r||a,d=l<90||l>730;if(l<=30)return{...gl,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&Al(c,e)&&Ol(n,["minSum","maxSum"],e)&&Ol(l,["minDays","maxDays"],e)))||gl,{rate:h}=m,u=El(h,e),p=n+u,x=o?.rateRows||[gl];return{...m,...Vl(["minSum","maxSum"],x),...Vl(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:m,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:R,finalSum:B,rate:M,depositeName:_,isShowUnknownRate:j}=$;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[Nl("Сумма вклада, ₽",$,d),kl("Срок вклада, дни",$,x),p("div",{className:"mt-7 flex justify-between",children:[Ul({...$,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),Bl({isMonthlyInterestPayment:S,callback:T,title:"Выплата процентов",orientation:"vertical"})]})]}),j?u(Ml,{}):u(bl,{rate:M,depositeName:_,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(ml,{title:"Доход по вкладу",value:R,postfix:"₽",prefix:"+"}),u(ml,{title:"Сумма в конце срока",value:B,postfix:"₽"}),Ft(l,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:fl(a)})]})]}),u("div",{className:"mt-5",children:fl(i)})]})})),Ul=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:l,isSmallBusiness:n,handleIsReplenished:a,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>p("div",{children:[u(It,{text:"Пополнение",disabled:e,value:t,onChange:a}),u(It,{className:"mt-3",disabled:e,text:"Частичное снятие",value:l,onChange:r}),u(It,{className:"mt-3",text:"Являюсь малым предприятием",value:n,onChange:i})]}),Hl=x((({className:e,title:t,items:l=[],list:n=[],value:a=n[0],disabled:r=!1,onChange:i})=>{const s=n.length-1,o=e=>{if(!i)return;const t=parseInt(e.target.value),l=n.reduce((function(e,l){return Math.abs(l-t)<Math.abs(e-t)?l:e}));i(Number(st(l.toString())))},c=n.findIndex((e=>e===a))||0,d={backgroundSize:`${(100*(c-0)/(s-0)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:rt(a),disabled:r,onChange:o,onBlur:o}),n.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:n.map(Xl(c,r))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",type:"range",min:0,max:s,step:1,value:c,disabled:r,onChange:e=>{if(!i)return;const t=n.at(it(parseInt(e.target.value),0,s))||0;i(Number(st(t.toString())))},style:d})})]}),Wl(l)]})})),Xl=(e,t)=>(l,n)=>u("span",{className:"w-2 h-2 rounded-full "+(e<=n||t?"bg-gray":"bg-primary-main")},String(n));function Wl(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}function Kl(e,t,l){const{minMonths:n,maxMonths:a,monthsValue:r,availableMonths:i}=t,s=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return i?.length?u(Hl,{className:"mt-7",title:e,items:[`От ${s(n)}`,`До ${s(a)}`],list:i,value:it(r,n,a),onChange:l}):u(ot,{className:"mt-7",title:e,items:[`От ${s(n)}`,`До ${s(a)}`],min:n,max:a,step:1,value:it(r,n,a),onChange:l})}const Gl="annuity",Jl="differential",Yl=[{id:Gl,text:"Аннуитетный"},{id:Jl,text:"Дифференцированный"}];function ql({isAnnuity:e,callback:t,title:l,orientation:n="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(de,{color:"text-secondary-text",font:"font-light",children:l})}):null,u(Il,{orientation:n,items:Yl,checkedItem:e?Gl:Jl,onChange:e=>t&&t(e===Gl)})]})}const Zl=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,r=yl(t||"credit-calculator-data"),s=r?.limitRows?.find((t=>Ql({row:t,userInputParams:e,paramsViewSettings:l}))),o=r?.rateRows?.find((t=>Ql({row:t,userInputParams:e,paramsViewSettings:l})&&Ol(n,["minSum","maxSum"],t)&&Ol(a,["minMonths","maxMonths"],t)))||ul,{rate:c}=o,d=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:a}=t;if(0===e)return 0;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,a)-1))}return Math.round(n/a)+n*(e/1200)})(c,e),m=r?.rateRows||[ul];return i((()=>({...o,...Pl(["minSum","maxSum"],s,m),...Pl(["minMonths","maxMonths"],s,m),...e,monthlyPayment:d})),[e])},Ql=e=>en({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&en({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&en({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&en({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),en=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],tn=x((({className:e="",sourceBookDir:t,buttons:l,footnote:i,paramsViewSettings:s})=>{const[o,c]=n(!1),[d,m]=n(!1),h=r((e=>m(e)),[]),[x,g]=n(!1),b=r((e=>g(e)),[]),[f,v]=n(!1),N=r((e=>v(e)),[]),[y,C]=n(!0),k=r((e=>C(e)),[]),[S,I]=n(2e5),T=r((e=>I(e)),[]),[$,R]=n(hl),B=r((e=>R(e)),[]),M=Zl({isAnnuity:o,isInsurance:y,isSalaryClient:d,isPensionClient:f,isStateEmployee:x,moneyValue:S,monthsValue:$},t,s);return a((()=>{I(it(S,M.minSum,M.maxSum)),R(it($,M.minMonths,M.maxMonths))}),[M]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Nl("Сумма кредита, ₽",{...M,step:500},T),Kl("Срок кредита, месяцев",M,B),u("div",{className:"mt-7",children:nn({...M,...s,handleIsSalaryClient:h,handleIsStateEmployee:b,handleIsPensionClient:N,handleIsInsurance:k})})]}),ln(M.rate),p("div",{className:"w-full max-w-[350px]",children:[u(ml,{title:"Ежемесячный платеж",value:M.monthlyPayment,postfix:"₽"}),ql({isAnnuity:o,orientation:"vertical",callback:c}),Ft(l,{className:"mt-7",isVertical:!0}),fl(i)]})]})})),ln=e=>u(bl,{title:"Ставка",rate:e,rateBlockClassName:"tracking-[-25px]",unit:"%"}),nn=({isSalaryClient:e,isStateEmployee:t,isPensionClient:l,isInsurance:n,isShowSalaryClient:a,isShowStateEmployee:r,isShowPensionClient:i,isShowInsurance:s,handleIsSalaryClient:o,handleIsStateEmployee:c,handleIsPensionClient:d,handleIsInsurance:m})=>p("div",{children:[a?u(It,{text:"Получаю зарплату на счёт в Россельхозбанке",value:e,onChange:o}):null,r?u(It,{className:"mt-3",text:"Работаю в бюджетной организации",value:t,onChange:c}):null,i?u(It,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",value:l,onChange:d}):null,s?u(It,{className:"mt-3",text:"Комплексная страховая защита",value:n,onChange:m}):null]}),an="remote",rn="office",sn=[{id:rn,text:"Офис Банка"},{id:an,text:"Дистанционно"}];function on({isRemoteRegistration:e,callback:t,title:l,orientation:n="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(de,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(Il,{orientation:n,items:sn,checkedItem:e?an:rn,onChange:e=>t&&t(e===an)})})]})}const cn=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,r=yl(t||"deposit-calculator-data"),i=r?.rateRows[0]?hn(r.rateRows[0].minMonths,r.rateRows[0].maxMonths):1,s=!l?.isShowMonthlyInterestPayment,o=!l?.isShowRemoteRegistration,c=r?.rateRows?.find((t=>mn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&mn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Ol(n,["minSum","maxSum"],t)&&Ol(a||i,["minMonths","maxMonths"],t)))||xl,{rate:d}=c,m=dn(d,e),h=n+m,u=r?.rateRows||[xl];return{...c,...Vl(["minSum","maxSum"],u),...Vl(["minMonths","maxMonths"],u),availableMonths:Ll(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,l=1)=>Array.from({length:Math.abs(t-e)/l+1},((n,a)=>t>=e?e+a*l:e-a*l)))(e,t))),...e,defaultMonth:i,income:m,finalSum:h}},dn=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a)-n):Math.round(n*e*30*a/365/100)},mn=({row:e,userInputParams:t,paramKey:l,isExclude:n})=>n||t[l]===e[l],hn=(e,t)=>e+Math.round((t-e)/2),un=x((({className:e="",sourceBookDir:t,buttons:l,footnote:i,paramsViewSettings:s})=>{const[o,c]=n(2e4),d=r((e=>c(e)),[]),[m,h]=n(0),[x,g]=n(!1),b=r((e=>g(e)),[]),[f,v]=n(!1),N=r((e=>v(e)),[]),y={moneyValue:o,monthsValue:m,isMonthlyInterestPayment:x,isRemoteRegistration:f},C=r((e=>h(e)),[]),k=cn(y,t,s),{defaultMonth:S,income:I,finalSum:T,rate:$}=k;return a((()=>{h(S)}),[S]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Nl("Сумма вклада, ₽",{...k},d),Kl("Срок вклада, месяцев",{...k},C),u("div",{className:"mt-7",children:pn({...k,...s,handleIsMonthlyInterestPayment:b,handleIsRemoteRegistration:N})})]}),u(bl,{rate:$,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(ml,{title:"Доход по вкладу",value:I,postfix:"₽",prefix:"+"}),u(ml,{title:"Сумма в конце срока",value:T,postfix:"₽"}),Ft(l,{className:"mt-7",isVertical:!0}),fl(i)]})]})})),pn=({isMonthlyInterestPayment:e,isRemoteRegistration:t,isShowMonthlyInterestPayment:l,isShowRemoteRegistration:n,handleIsMonthlyInterestPayment:a,handleIsRemoteRegistration:r})=>p("div",{className:"flex flex-col gap-y-7",children:[l?Bl({isMonthlyInterestPayment:e,callback:a,title:"Выплата процентов"}):null,n?on({isRemoteRegistration:t,callback:r,title:"Оформление"}):null]}),xn={CreditCalculatorForm:tn,DepositCalculatorForm:un,BusinessDepositCalculatorForm:Fl,BonusCalculatorForm:Cl},gn=(e,t)=>{const l=e?.calcType;if(!l||!(l in xn))return null;const n=xn[l];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(T,{className:"text-center mb-6",title:e.title}):null,u(n,{...e})]})},String(t))},bn=x((({className:e="",calculatorTabs:t=[],...l})=>{const a=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=r((e=>o(e)),[]),[d,m]=il({itemCount:t?.length,visibleItemCount:3});return p(k,{className:`box-border overflow-hidden relative w-100 ${e}`,...l,children:[p("div",{className:"bg-white",children:[a.length>1?fn({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,dl({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(gn):null})]})}));function fn({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const a=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",r=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return p("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[u(Ct,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:`${r}`,children:e?.title}),u("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const vn=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Nn=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},yn=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),wn=x((({className:e="",value:t="",onChange:l,minValue:n=0,maxValue:a=3e5,...i})=>{const s=r((e=>{const t=vn(Nn(yn(st(e))));const r=Cn(t,it(Number(t),n,a));l&&l(r)}),[l]),o=r((()=>{var e;l&&l((e=t,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(st(e))).replace(",",".")))}),[l,t]);return u(ue,{className:e,inputClassName:"w-full",value:t,onChange:s,onBlur:o,...i,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Cn=(e,t)=>Number(e)===t?e:String(t),kn=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:a="1500",button:i,...s})=>{const[o,c]=n(""),d=r((e=>c(e)),[]),m=!Number(st(o)),h=m?ae({version:i?.version}):re({className:"text-white",version:i?.version}),x=J();return p(k,{className:`p-default flex flex-col items-center ${e}`,...s,children:[t?u(T,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,p("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(wn,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:a,label:l}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),Sn=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),In=[];function Tn(e,t,{className:l,...n}={}){const{key:a,blockDecorator:r=Sn,blocksRegistry:i={},ancestors:s=In}=t,{type:o}=e;o&&o in i||console.warn(`No block with "${o}" is registered`);const c=o&&i[o];return r({blockClassName:w("scroll-mt-12",l,e.style||"col-span-12"),block:e,ancestors:s,render:({block:l,blockClassName:r})=>{const{content:i}=l;return c?u(c,{className:r,block:e,options:t,...i,...n},a):null}},a)}const $n=[],Rn=(e,{key:t,ancestors:l=$n,slotName:n=null,renderProps:a=Tn,...r})=>(e||[]).map(((e,i)=>a(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...l||$n,[r.parent,n]]:l})));function Bn({children:e,block:t,options:l,renderProps:n}){return e||(t&&l?Rn(t.blocks,{...l,parent:t,renderProps:n}):null)}const Mn=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),_n=x((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:a,children:i,onIntersection:s})=>{const o=v(r((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===n),ref:o,children:i})})),jn=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],zn=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:a=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),b=r(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),p&&p(Dn(l))}),[h,p]),f=n>0?a*Number(n)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?Ln(i,f):{},...v?Mn(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:y,ref:t,children:(C=(e,t)=>u(_n,{className:w(c,n?jn[n-1]:"",v?"h-full":""),style:N?Ln(i/4):{},activeIndex:l,idx:t,observerOptions:x,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(C):C(e,0))(m)});var C})),Ln=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Dn=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Pn={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Vn={"horizontal-list":"w-6","vertical-list":"h-6"},On=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list",version:a})=>l?u("div",{className:w("flex gap-2",Pn[n],a?"group":""),...a?{"data-ver":a}:{},children:new Array(l).fill(null).map(((l,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Vn[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(l=>{l!==t&&e?.current&&e.current.children[l]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),An=e=>t=>e.scrollWidth/t,En=e=>(t,l)=>{e.scrollBy({left:l*An(e)(t),behavior:"smooth"})},Fn=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const a=s(null),[i,o]=n([]),c=r((e=>{o((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),l&&l(e)}),[e]),[d,m]=i.length?[Dl()(i),jl()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var l;a.current&&(t&&!h?(l=a.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):En(a.current)(e,-1))}),[t,e,h]),x=r((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):En(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Un="absolute top-[calc(50%-24px)] z-40",Hn="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Xn=x((({scroll:e,arrowsPadded:t,isBlur:l,onScrollLeft:n,onScrollRight:a,hasEdgeBlocks:i,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=i?s>0:c,g=i?s<o-1:d,b=r((()=>{i?(c&&s!==o-1&&m(),n()):m()}),[m,n,i,c,s,o]),f=r((()=>{i?(d&&0!==s&&h(),a()):h()}),[h,a,i,c,s,o]);return p("div",{children:[Wn(l,e),x?u(ol,{className:w(Un,t?"left-8":"left-0"),onClick:b}):null,g?u(cl,{className:w(Un,t?"right-8":"right-0"),onClick:f}):null]})})),Wn=(e,t)=>e?p("div",{children:[t.canScrollLeft?u("div",{className:w(Hn,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(Hn,"right-0 bg-opacity-to-white")}):null]}):null,Kn=x((({className:e="",itemCount:t,visibleItemCount:l,isBlur:a=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},x=t||h?.length,[g,b]=n(Math.floor((l||0)/2)),f=r((()=>b((e=>e+1))),[]),v=r((()=>b((e=>e-1))),[]),[N,y]=Fn({itemCount:x,isCyclic:i}),[C]=y.visibleIndicesRange,S=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(k,{className:w(Gn(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...m,children:p("div",{className:w(Jn(d),"relative max-w-full"),children:[u(zn,{containerRef:N,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:y.handleVisibleIndicesChange,children:Bn({...m,renderProps:S?(e,t)=>Tn(e,t,{blocksLength:h?.length,activeIndex:g}):Tn})}),u(Xn,{scroll:y,isBlur:a,arrowsPadded:s,onScrollLeft:v,onScrollRight:f,hasEdgeBlocks:S,activeIndex:g,itemCount:x}),c?Yn(N,C,t):null]})})}));Kn.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Gn=e=>e?"p-default":"",Jn=e=>e?"flex justify-center":"",Yn=(e,t,l)=>u(On,{containerRef:e,activeIndex:t,dotCount:l,listType:"horizontal-list"}),qn=x((({title:e,description:t,blocksLength:l=0,activeIndex:n,options:a})=>{const r=Number(a?.key?.split("-").slice(-1)[0])||0;return u(k,{className:"flex h-[485px]",children:u("div",r===n?{className:"relative flex items-center w-full",children:u(Kt,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue",ea(r,l),Zn(r))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",Zn(r)),children:u("span",{className:Qn(r),children:e})})})})})),Zn=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},Qn=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},ea=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",ta="absolute border border-solid border-gray w-full h-full",la={normal:"min-w-[970px]",small:"min-w-[355px]"},na=x((({className:e="",button:t,description:l,title:n,carouselVersion:a="normal",version:r=""})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${la[a]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${ta} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${ta} z-10 top-6 right-8 bg-green`}),u("div",{className:`${ta} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(Kt,{className:"!p-0",title:n,description:l,headlineVersion:"L",align:"text-left",version:r}),Ft([t],{className:"mt-14"})]})]})}))),aa={black:"bg-black",white:"bg-white"},ra=x((({className:e="",title:t,description:l,image:n,price:a,button:r,colors:i,...s})=>p(k,{className:`border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${e}`,...s,children:[n?.src?u(Ct,{className:"mb-5 flex justify-center",image:n}):null,t?u(T,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?u("div",{className:"mb-4",children:u(ce,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,i?.length?p("div",{className:"flex mb-4 text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(de,{size:"text-s",align:"text-left",font:"font-light",children:"Доступные цвета:"})}),i.map(ia)]}):null,a?p(de,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Ft([r],{buttonClassName:"mt-5 w-full"})]}))),ia=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${aa[e]}`},String(t)),sa=x((({className:e="",href:t,target:l,isRemote:n=!1,children:a})=>{const r=J({isRemote:n})({href:t,target:l});return u(t?"a":"div",{className:w("block",e),...t?r:{},children:a})})),oa=x((({className:e="",icon:t,title:l,description:n,href:a,target:r,...i})=>u(k,{className:w("w-[365px]",e),...i,children:p(sa,{className:"flex flex-col",href:a,target:r,children:[t?.icon?u(Ct,{image:t}):null,t?.src?u(Ct,{image:t}):null,l?u(T,{headingType:"h6",as:"h4",className:"text-left pt-3 mb-2",title:l}):null,n?u("div",{className:"mb-4",children:u(de,{font:"font-light",size:"text-m",color:"text-secondary-text",children:n})}):null]})}))),ca=x((({className:e="",title:t="",buttons:l,image:n,children:a})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:a}),l?u("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]}))),da={1:"flex-col",2:"gap-x-10 flex-wrap"},ma=x((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:n=1,description:a,image:r,title:i,...s})=>{const o=i?u(T,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?u(Ct,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return u(k,{className:["relative box-border text-left p-9 w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",l].join(" "),...s,children:p(ca,{title:o,image:c,children:[p("div",{className:"flex justify-between mb-4",children:[a?u("div",{className:"w-1/3",children:u(de,{size:"text-h6",children:a})}):null,e?u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?u("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${da[n]}`,children:ha(t,n)}):null]})})})),ha=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(de,{size:(n=t,1===n?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),ua="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",pa=x((({text:e,href:t="",target:l="",className:n=""})=>{const a=J()({href:t,target:l});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${n}`,children:[p("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(Ct,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:`${ua} mx-1.5 mt-1.5`}),u("div",{className:`${ua} mt-3 mr-3`})]}):null})),xa=x((({className:e="",additionalDescription:t,description:l,links:n,title:a,...r})=>p(k,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,...r,children:[p("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[u(Kt,{isPadding:!1,title:a,description:l,as:"h1",align:"text-left"}),t?u(Kt,{className:"pt-6",isPadding:!1,description:t,align:"text-left"}):null]}),n?.length?ga(n):null]}))),ga=e=>{const t=Math.ceil(e.length/10);return u(Kn,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,l)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*l,10*(l+1)).map(((e,t)=>u(pa,{className:"m-1",...e},String(t))))},String(l))))})},ba={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},fa=x((({className:e="",isDotted:t=!0,children:l,size:n="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${ba[n]}`})}):null,u("span",{children:l})]}))),va={S:"text-l-light",M:"text-h6",L:"text-h5"},Na={S:"ml-2",M:"ml-3",L:"ml-4"},ya=x((({className:e="",hasIndent:t,isDotted:l,itemClassName:n="",items:a,listItemSize:r="M"})=>a?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${va[r]} ${t?Na[r]:""} ${e}`,role:"list",children:a.map(((e,t)=>u(fa,{className:n,isDotted:l,size:r,children:e},String(t))))}):null)),wa=x((({additionalDescription:e,align:t="text-center",button:l={},className:n="",description:a,headlineSmallVersion:r="H6",href:i,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...x})=>p(k,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,n),version:u,...x,children:[p(sa,{className:"p-6",href:i,target:m,children:[Ca(s),ka(r,h),Sa(a,h),Ta(d,o,u),Ia(e)]}),Ft([l],{className:w("p-6 pt-0",c?"":"self-center min-w-[158px]"),isVertical:c})]}))),Ca=e=>p("div",{className:"flex justify-center",children:[e?.src?u(Ct,{className:"mb-5",image:e}):null,e?.icon?u(Ct,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e}):null]}),ka=(e,t)=>t?u("div",{children:u(de,{size:Wt[e],children:t})}):null,Sa=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(ce,{size:"text-l",children:e})}):null,Ia=e=>e?u("div",{className:"mt-auto",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Ta=(e,t,l="primary")=>e?.length?u(ya,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,$a=x((({className:e="",title:t,icon:l,list:n=[],href:a,target:r,...i})=>u(k,{className:w("border border-gray",e),...i,children:p(sa,{className:"flex",href:a,target:r,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?u(Ct,{image:l}):null,l?.src?u(Ct,{image:l}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(T,{className:"mb-3.5",headingType:"h5",title:t}):null,n.length?u("div",{className:"flex flex-col gap-3",children:n?.map(Ra)}):null]})]})}))),Ra=(e,t)=>p("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),Ba=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],Ma={default:"w-14 h-14",small:"w-12 h-12"},_a=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${Ma[t]}`,ja=x((({buttonSize:e="default",rounded:t=!1,icon:l,...n})=>{const{href:a,version:r,text:i=""}=n,{iconMapped:s,label:o}=Ba.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=za(l)??s;return u(ie,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",_a(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...n,children:c&&!i?u(Ct,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),za=e=>e?.src||e?.icon?e:void 0,La=x((({className:e="",media:t,children:l,buttonSize:n})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(ja,{buttonSize:n,...e},String(t))))}),u(de,{size:"text-s-light",color:"text-secondary-text",children:l})]}))),Da=x((({className:e="",description:t,href:l,icon:n,items:a=[],socialMedia:r=[],target:i,title:s,align:o="text-left",version:c="primary",...d})=>u(k,{className:w("relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),version:c,...d,children:p(sa,{href:l,target:i,children:[u(Kt,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(ya,{className:"flex flex-col gap-2",itemClassName:"text-l-light",items:a}):null,r.length?u(La,{className:"pt-10",media:r}):null]}),Pa(n)]})}))),Pa=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(Ct,{image:e}):null,e?.src?u(Ct,{image:e}):null]}),Va=x((e=>{const{__html:t="",richVersion:l=""}=e;return u("div",{className:w(l,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Oa=x((({className:e="",__html:t,richVersion:l="striped",...n})=>u(k,{className:w("p-9 border border-gray h-full min-w-96",e),...n,children:u(Va,{__html:t,richVersion:l})}))),Aa=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:a,renderFoldButton:i})=>{const[s,o]=n(l),c=r((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Ea=x((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return a((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),Fa=x((({className:e="",title:t,icon:l,isHighlighting:n,button:a,cardCells:r=[],...i})=>{const s=r.map(Wa),o=s.slice(0,1),c=s.slice(1);return p(k,{className:w("relative border border-gray p-8 flex flex-col",Ha(n),e),...i,children:[n?Ka():null,Ua(l),t?u(T,{className:"text-center pt-2",headingType:"h5",title:t}):null,a?u(ie,{className:"w-full mt-4",...a}):null,r.length?u(Aa,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(Ea,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Xa:null}):null]})})),Ua=e=>p("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?u(Ct,{image:e}):null,e?.icon?u(Ct,{image:e}):null]}),Ha=e=>e?"mt-8 pt-20":"mt-20 pt-8",Xa=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(ze,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Wa=(e,t)=>{const{title:l,description:n,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[l?u("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,n?u("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null,a?.length?u("div",{className:"text-primary-main",children:Ft(a)}):null]},String(t))},Ka=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(ze,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(ce,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Ga="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Ja="border-gray border-solid border",Ya="border-main-divider border border-t-0 border-x-0",qa="w-[200px] mr-6",Za=x((({icon:e,image:t,title:l,link:n})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Ja} ${Ga}`,role:"columnheader",children:[e&&!t?.src&&u(Ct,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&u(Ct,{className:"mb-[18px]",image:t}),l?u(T,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&u("div",{className:"mt-auto w-full",children:u(ie,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),Qa={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},er=x((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:Qa[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),tr=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),lr=x((({colHeaders:e,activeIndex:t})=>p(tr,{children:[u("div",{className:qa,role:"columnheader"}),u(er,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(Za,{...e},String(t))))})]}))),nr=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>u("div",{className:`w-80 box-border flex flex-col ${Ja} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?Ga:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${Ya} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>ir(e,t,n)))})}))),ar=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),rr=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),ir=({label:e,description:t},l,n)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:ar(n),children:e}):null,t?u("div",{className:rr(n),children:t}):null]},String(l)),sr=(e=!1)=>`text-s py-7 ${Ya} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,or=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:a,isLastRow:r})=>p(tr,{children:[e?.title?u("div",{className:sr(r),children:e.title}):null,t?.length?u(er,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(nr,{cell:e,isFirstRow:a,isLastRow:r,isFillGradient:n&&0===t},String(t))))}):null]}))),cr=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:a}=n;return p("div",{className:"relative",children:[e.map(((e,n,{length:a})=>u(or,{row:e,isFirstRow:0===n,isLastRow:n+1===a,activeIndex:l,isColoredFirstColumn:t},String(n)))),a?dl({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),dr=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:a})=>{const r=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=il({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[r?.length?u(lr,{colHeaders:r,activeIndex:o}):null,s?.length?u(cr,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),mr=x((({className:e="",title:t,rowHeaders:l,columns:a,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),m=r((()=>d((e=>!e))),[]);return p(k,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[u(T,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(dr,{columns:a,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?hr({isShowAllRow:c,onClick:m}):null]})})),hr=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:qa}),u("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),ur=x((({className:e="",contacts:t,info:l,version:n="secondary",...a})=>p(k,{className:`flex p-default ${e}`,version:n,...a,children:[l?.length?pr(l):null,t?.length?pr(t):null]}))),pr=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>xr({column:e,index:t})))}),xr=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},a)=>p("div",{className:"mt-6 first:mt-0",children:[u(Kt,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?u("div",{className:"mt-1.5 opacity-80",children:u(ce,{size:"text-m",font:"font-light",children:l})}):null,n?u(ie,{className:"mt-6",...n}):null]},String(a))))},`col-${String(t)}`):null,gr=e=>"Image"===e?.errorContentType&&e?.image?u(Ct,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,br=x((({className:e="",title:t,subtitle:l,error:n,button:a,...r})=>{return p(k,{className:w("flex flex-col justify-center items-center",(i=a?.text,i?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),e),version:"transparent",...r,children:[u("div",{className:"flex justify-center py-20",children:gr(n)}),t?u(T,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?u("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,a?.text?u(ie,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var i}));var fr;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(fr||(fr={}));const vr={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},Nr=e=>e?Cr.format(e):"",yr=(e,t)=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:Nr(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:Nr(t)})]}),wr=(e,t="")=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:Nr(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),Cr=new Intl.NumberFormat("ru",{style:"currency",currency:fr.RUB}),kr=e=>u("th",{className:"pl-11",children:u(de,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:e})}),Sr=x((({className:e="",currencies:t=[],actuality:l="",officeName:n="",...a})=>{const r=Ir(t,4);return p(k,{className:w("font-sans text-primary-text py-10 bg-white",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between mx-10 mb-8",children:[u(T,{headingType:"h4",title:"Курс обмена валют в "+n,className:"whitespace-pre-wrap text-h4 mb-5"}),u("div",{className:"pl-11",children:u(de,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:l})})]}),u("div",{className:"flex flex-row ml-8 mr-14 pt-4 text-left",children:r.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(de,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),kr("Купить"),kr("Продать"),kr("Лучшая покупка"),kr("Лучшая продажа")]})}),u("tbody",{children:r.map((e=>(({title:e,buyPrice:t,buyDifference:l,sellPrice:n,sellDifference:a,buyOfficeName:r,sellOfficeName:i})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(Ct,{image:{icon:vr[e]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:e})]})}),yr(t,l),yr(n,a),wr(t,r),wr(n,i)]},e))(e)))})]}):null})]})})),Ir=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var Tr;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Tr||(Tr={}));const $r=new Intl.NumberFormat("ru",{style:"currency",currency:Tr.RUB}),Rr=e=>e?$r.format(e):"",Br="text-left text-m-light text-secondary-text",Mr=`${Br} pl-11`,_r={USD:"DollarIcon",EUR:"EuroIcon"},jr=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:Br,children:"Валюта"}),u("th",{className:Mr,children:"Купить"}),u("th",{className:Mr,children:"Продать"})]})}),u("tbody",{children:t.map(zr)})]}))),zr=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[t?u(Ct,{image:{icon:_r[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:Rr(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:Rr(e?.buyExchangeRate)})]},t)},Lr=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(Ct,{image:{icon:"GpsIcon"},width:"24",height:"24"}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Dr=(e,t,l)=>{const n=Number(Pr(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},Pr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Vr=e=>{return(t=[[e=>e.value!==Tr.RUB&&e.oppositeValue!==Tr.RUB,()=>e.handleConvert(e.value,Tr.RUB)],[e=>e.value===Tr.RUB&&e.oppositeValue===Tr.RUB,()=>e.handleConvert(e.value,Tr.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Or(e){const{placeholder:t,rates:l,selected:n,value:a,setValue:r,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return p("div",{className:"relative flex",children:[u(ue,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:r}),s.length?u(Pe,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Ar=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:a})=>{const[i,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Tr.RUB,selectBuy:l?.[0]?.currency?.currency||Tr.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Or({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:Er(i,o,l),value:i.inputSell,setValue:e=>Ur(o,l)(e,i.selectSell,i.selectBuy)}),Or({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:Fr(i,o,t),value:i.inputBuy,setValue:e=>Hr(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?u(ie,{className:"py-4 mr-1",version:a?.version,...a,children:a.text}):null]})})),Er=(e,t,l)=>n=>{t({selectSell:n}),Vr({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,a=e.selectBuy)=>{Ur(t,l)(e.inputSell,n,a)}})},Fr=(e,t,l)=>n=>{t({selectBuy:n}),Vr({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,a=e.selectSell)=>Hr(t,l)(e.inputBuy,n,a)})},Ur=(e,t)=>(l,n,a)=>{e({inputSell:Pr(l),selectBuy:a});const r=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;r&&e({inputBuy:String(Dr(l,r,n===Tr.RUB)||"")})},Hr=(e,t)=>(l,n,a)=>{e({inputBuy:Pr(l),selectSell:a});const r=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;r&&e({inputSell:String(Dr(l,r,n===Tr.RUB)||"")})};const Xr=async e=>{const t=await Wr(),l=t?.code||"000";return{region:t,exchangeRates:await Kr(e,l)}},Wr=async()=>{try{return await D("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Kr=async(e,t)=>{try{return await D(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Gr=x((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:a}=function(){const{data:e}=j("/api/v1/exchangerates",Xr);return e||{}}(),r=Jr(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Tr.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Tr.RUB}}),u(k,{className:`p-9 box-border min-h-80 ${e}`,...n,children:u(ca,{title:u(T,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:p("div",{className:"flex",children:[p("div",{className:"mr-14 pt-4",children:[r?u(jr,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(Lr,{address:a?.address})]}),r.length&&i.length&&s.length?u(Ar,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Jr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],Yr=x((({className:e="",label:t,icon:l,dataTheme:n="",disabled:a=!1,onClick:r})=>p("button",{className:w("flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:a,"data-theme":n,children:[u("span",{className:"text-h4 pr-3",children:t}),l?u(Ct,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),qr=({isUnfolded:e,onToggle:t})=>u(Yr,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Zr=["ArrowDownIcon","ArrowUpIcon"],Qr="grid grid-cols-12 gap-1 border-box",ei=x((({label:e="",filtrationState:t={},topItemsCount:l=0,block:n,notFound:a,...r})=>{const i=n?.blocks?.filter((e=>((e,t)=>Object.entries(e).map((([t,l])=>Array.isArray(l)?((e,t)=>l=>void 0===t[e]||t[e]?.every((t=>l[e]?.includes(t))))(t,e):((e,t)=>l=>void 0===t[e]||t[e]===l[e])(t,e))).every((e=>e(t))))(t,e.content||{})))||[],[s,o]=l>0?[i.slice(0,l),i.slice(l)]:[i,[]];return p("div",{children:[u("div",{className:w(i.length?"hidden":"block"),children:a?ti(a):null}),p("div",{className:w(i.length?"":"hidden"),children:[u("div",{className:w("mb-1",Qr),children:Rn(s,{...r.options,parent:n})}),u(Aa,{renderFoldableSection:({isUnfolded:e})=>u(Ea,{className:w(Qr,e?"mb-1":""),isUnfolded:e,children:Rn(o,{...r.options,parent:n})}),renderFoldButton:({isUnfolded:t,onToggle:n})=>u(Yr,{className:w(l<1?"hidden":""),disabled:!o?.length,label:e,icon:Zr[Number(t)],dataTheme:r.options?.page?.colorPalette,onClick:n})})]})]})}));function ti({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-2",children:u(ce,{align:"text-center",children:u(de,{size:"text-h4",children:e})})}):null,t?u(ce,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const li=x((({value:e,onChange:t,items:l=[],multiple:n})=>l.map((l=>u(Ue,{text:l.title,value:[e].flatMap((e=>e)).includes(l.value),onChange:()=>(l=>{if(n){const n=e?.includes(l);t&&t(n?e?.filter((e=>e!==l)):[...e||[],l])}else t&&t(e===l?void 0:l)})(l.value),type:n?"checkbox":"radio"},l.value))))),ni=(e,t)=>l=>{const n=e[l],a=n?.type;return"array"===a?ai(l,t)(n):null},ai=(e,t)=>l=>{const n=l?.items?.enum?.map(((e,t)=>({value:e,title:l?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[l?.title?u("div",{className:"mb-4",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:l.title})}):null,u(li,{items:n,multiple:!0,...t(e)})]},e)},ri={},ii=x((({className:e,filtrationSchema:t={},resetButton:l,...n})=>{const[a,{field:r,reset:i}]=$(ri);return p(k,{className:w(e),version:"transparent",...n,children:[p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[u("div",{className:"flex gap-11",children:Object.keys(t).map(ni(t,r))}),l?u("div",{children:u(ie,{className:"w-72",onClick:i,...l})}):null]}),u(ei,{filtrationState:a,...n})]})}));function si(e,t={}){const{data:l}=j(`/wcms-resources/${e}.json`,D,{fallback:t});return l||{}}ii.childrenTypes=["ProductTile"],ii.childSchema=e=>e?.filtrationSchema||{};const oi={"bg-white":"color",transparent:"white"},ci={"bg-white":"text-primary-main",transparent:"text-white"},di=(e,t,l)=>u(Ct,t?.src?{image:t,className:ci[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:oi[e]},className:ci[e],width:l?.width,height:l?.height}),mi={"bg-white":"text-primary-text",transparent:"text-white"},hi=(e,t,l)=>u("span",{className:`${mi[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),ui=x((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:a,bgColor:r="bg-white",showTitle:i=!0})=>p("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:a?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[di(r,l?.image,{width:"40",height:"45"}),i?hi(n||l?.title,r):null]}))),pi=x((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(Ct,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function xi(e){throw new Error(e)}function gi({onOpen:e,onClose:t}={}){a((()=>f.subscribe("dialog",(l=>{switch(l.type){case"open":e&&e(l);break;case"close":t&&t();break;default:xi(l)}}))),[e,t])}function bi(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const fi=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:n,s2Matches:a}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),n=new Array(e.length),a=new Array(t.length);let r=0;for(let i=0;i<e.length;i++){const s=Math.max(0,i-l),o=Math.min(i+l,t.length-1);for(let l=s;l<=o;l++)n[i]||a[l]||e[i]!==t[l]||(r++,n[i]=!0,a[l]=!0)}return{m:r,s1Matches:n,s2Matches:a}}(e,t);if(0===l)return 0;const r=function(e,t,{s1Matches:l,s2Matches:n}){let a=0;for(let r=0,i=0;r<e.length;r++){if(!l[r])continue;let s=i;for(;s<t.length;s++)if(n[s]){i=s+1;break}e[r]!==t[s]&&a++}return a}(e,t,{s1Matches:n,s2Matches:a}),i=(l/e.length+l/t.length+(l-r/2)/l)/3,s=i>.7?.1*function(e,t){let l=0;for(;e[l]===t[l]&&l<4;)l++;return l}(e,t):0;return i+s*(1-i)};const vi=(e,t)=>(l,n)=>{for(const[a,r]of n)l.set(a,e(l.get(a)||t,r));return l},Ni=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),yi=e=>t=>e.map((([e,l])=>[fi(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>Ci(t,e))).reduce(vi(Math.max,0),new Map),wi=e=>t=>{return bi(t,t.map((({title:e})=>e)).map((e=>t=>{const l=Ni(t||"");return l.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>zl(l.map(fi(e)))))):0})(e))).sort((n=([,e])=>e,l=(e,t)=>n(e)-n(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,n},Ci=(e,t)=>new Map(e.map((e=>[e,t]))),ki=({basePathList:e=["/"],initialQuery:t="",wasOpened:l})=>{const[r,s]=n(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=i((()=>e.map((e=>l?e:null))),[l,...e]),{data:c}=j(o,Si),[d,m]=n(null);return((e,t,l=300)=>{a((()=>{const t=setTimeout(e,l);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:l,dictionary:n}=t||{};if(!(e&&l?.length&&n&&Object.keys(n).length))return[];const a=Ni(e);if(!a.length)return[];const r=Object.entries(n),i=[...a.map(yi(r)).reduce(vi(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>l[e]));return wi(a)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},Si=async(...e)=>(await Promise.allSettled(e.map((e=>L(U(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Ii=x((({className:e,isOpened:t,head:l,children:n,onClose:r})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&r&&r()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[r]),t?u("div",{className:w("fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(pi,{className:"absolute top-10 -right-12",onClick:r}),l]}),n]})}):null)));function Ti(e,t=!1){const[l,{setTrue:a,setFalse:i}]=Me(t),[o,c]=n({id:e}),d=s(l);d.current||=l;gi({onOpen:r((t=>{t.id===e?(c(t),a()):i()}),[e]),onClose:i});const m=r((()=>{i(),f.fire("dialog",{type:"close"})}),[]);return{...o,isOpened:l,wasOpened:d.current,onClose:m}}const $i=x((({className:e,topItems:t})=>{const l=J({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(l).map(Ri)})})),Ri=(e,t)=>{const{text:l,items:n,href:a,target:r,onClick:i}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:r||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>u(Bi,{...e,basePath:a,index:t},String(t))))]},String(t))},Bi=x((({text:e,index:t,basePath:l,...n})=>{const a=J({isRemote:!(!c.BASE_PATH||!l)&&!c.BASE_PATH.startsWith(l),basePath:l}),{href:r,target:i,onClick:s}=a(n);return u("a",{className:w("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:r,target:i||"_self",onClick:s,children:e||`Раздел ${t}`})})),Mi=x((({className:e,isMobile:t,value:l,autoFocus:n,onChange:a,onFocus:i})=>{const s=r((e=>{a&&a(e.target?.value||"")}),[a]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(Ct,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",t?"":"h-full"),value:l,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:n,onChange:s,onFocus:i})]})})),_i="search",ji=x((({topItems:e})=>{const t=Ti(_i),l=e?.map((e=>e.href||"/")),[n,r]=ki({basePathList:l,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>zi(e)(n)),[e,n]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(Ii,{...t,head:u(Mi,{className:"my-5",autoFocus:!0,...r}),children:u($i,{topItems:s})})})),zi=e=>t=>e?.length&&t?.length?bi(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:U("/",t)})))}))):[];const Li=x((({className:e,isMobile:t})=>{const[l,a]=n(""),i=r((()=>a("")),[]);gi({onClose:i});const{open:s}=O(_i),o=r((e=>{a(e),Di(e)&&s(e)}),[]);return p("div",{className:e,children:[u(Mi,{isMobile:t,value:l,onChange:o}),t?u(pi,{className:"absolute top-2 right-3",onClick:i}):null]})})),Di=e=>e&&e.length>=3,Pi=x((e=>u(Li,{...e}))),Vi=x((({className:e="",items:t,hasButton:l})=>p("div",{className:e,children:[t?.length?t.map(Oi):null,l?u(ie,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Oi=(e,t)=>{const{type:l,text:n,description:a}=e;return p("div",{className:"mb-4",children:[u("div",{children:Ai(l,n)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:a})]},String(t))},Ai=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Ei(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Ei=e=>e.replaceAll(/\D/g,""),Fi=x((({className:e="",index:t,text:l,...n})=>{const a=J(),{href:r,target:i,onClick:s}=a(n);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:l||`Документ ${t}`})})),Ui=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(Fi,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),Hi=x((({className:e="",index:t,...l})=>{const n=J({isRemote:!0}),{href:a,target:r,text:i,onClick:s}=n(l);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:r,onClick:s,children:i||`Документ ${t}`})})),Xi=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-5",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>u(Hi,{index:t,...e},String(t))))}):null]}))),Wi="w-[204px]",Ki=x((({className:e="",...t})=>{const l=t.options?.page?.fallback,n=si(c.SITEMAP||"sitemap",l),{documents:a,relatedEnterprises:r,contacts:i,socialMedia:s,mobileApps:o,logo:d}=si(c.FOOTER||"footer",l);return p(k,{tag:"footer",className:`p-9 ${e}`,...t,children:[p("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[u(ui,{className:Wi,logo:d}),u(Pi,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[u(Vi,{items:i,hasButton:!0}),u(La,{media:s,children:"Соцсети"}),u(La,{className:"mt-6",media:o,children:"Мобильное приложение"})]}),u($i,{className:"flex-grow",topItems:n?.topItems})]}),u(Ui,{className:"mt-[98px]",links:r}),u(Xi,{links:a})]})})),Gi=x((({className:e="",title:t,description:l,calendar:n,...a})=>p(k,{className:`p-default ${e}`,...a,children:[u(Kt,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),n?Ji(n):null]}))),Ji=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Yi(e,t)))}),u("div",{className:"flex w-full",children:l.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:qi(e)}),p("div",{className:"text-s-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Yi=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),qi=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(Ct,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Zi=864e5;function Qi(e,t,l=globalThis?.localStorage){const n=r((async(...n)=>{const a=`async:${e}`,r=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<Zi?t:void 0}(l.getItem(a));if(r)return r;const i=await t(...n);return l.setItem(a,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return j(e,n)}const es=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},ts=e=>({href:t})=>F(A(t)?e.href:e.pathname).startsWith(F(t));const ls=x((({className:e,searchTerm:t,onSearch:l})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),ns="location",as=x((({currentLocation:e,onChangeLocation:t,foreignOffices:l})=>{const a=Ti(ns),[i,s]=n(""),o=is(function(){const{data:e}=j("/api/v1/regions",D);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;for(const n of e){const e=t(n),a=l.get(e)||[];l.set(e,[...a,n])}return l})(o,rs),d=r((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(Ii,{...a,head:p("div",{children:[u(ss,{currentLocation:e,onChangeLocation:d}),u(ls,{onSearch:s,searchTerm:i,className:"mb-7"})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&fi(e.toLowerCase())(i.toLowerCase())>=.8)).map(cs(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(os(d))}),u(ds,{foreignOffices:l})]})})),rs=e=>e.name?.charAt(0)||"",is=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),ss=x((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(de,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(de,{color:"text-primary-main",children:e.name})})]}):null)),os=e=>([t,l])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(de,{size:"text-h6",children:t})}),l.map(cs(e))]},t),cs=e=>t=>u("div",{className:"mb-1",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),ds=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-7 pt-7",children:[u("div",{className:"mb-4",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(ms,{...e},String(t))))})]}):null)),ms=x((({icon:e,...t})=>{const l=J(),{text:n,target:a,href:r,onClick:i}=l(t);return p("div",{className:"flex gap-x-3",children:[e?u(Ct,{pathPrefix:"/wcms-resources/",image:e}):null,n?u("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:n}):null]})})),hs=x((({className:e="",active:t,flat:l,children:n,...a})=>{const r=J({isRemote:!0}),{href:i,target:s,text:o,onClick:c}=r(a);return u("a",{className:w(us(t,l),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:ps(t,l),children:o||n})})})),us=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),ps=(e=!1,t=!1)=>w("font-sans text-s-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),xs={default:"w-6 h-6",large:"w-12 h-12"},gs=x((({className:e,isRounded:t,buttonSize:l="default",isGrayBg:n=!1,disabled:a,ariaLabel:r,image:i,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",n?"p-3 rounded-full":"p-0 bg-inherit",n&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${xs[l]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":r,onClick:s,children:u(Ct,{image:i,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),bs=x((({className:e,version:t,locationName:l,officesLink:n})=>{const a="transparent"===t?"white":"black",{open:i}=O(ns),s=r((()=>i()),[]),{open:o}=O(_i),c=r((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(hs,{flat:!0,href:"#",text:l,onClick:s}),n?u(hs,{flat:!0,href:n,text:"Офисы и банкоматы"}):null,u(gs,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:c})]})})),fs=x((({className:e="",items:t,activeItem:l})=>{const a=J(),[i,s]=n(!1),o=r((()=>s((e=>!e))),[]),c=_e(r((()=>s(!1)),[]));return p("div",{className:w(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:n,...r}=e;return u("a",{className:w("text-l-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...a(r),children:n},e.href||String(t))}))})]})})),vs=x((({className:e="",active:t,dataItemName:l,children:n,...a})=>{const r=J(),{href:i,target:s,text:o,onClick:c}=r(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:i,target:s,"data-item-name":l,onClick:c,children:[u("span",{className:Ns(t),children:o||n}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Ns=(e=!1)=>w("font-sans text-l-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),ys=x((({observerOptions:e,onVisibilityChange:t,children:l,className:n,...a})=>{const i=v(r((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:i,className:n,children:u(vs,{...a,children:l})})})),ws=e=>globalThis[e];function Cs(e,t){const[l,i]=n(),s=r((()=>i(ws(e))),[e]);return a((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!ws(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const ks={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Ss=x((e=>{const[t,{setTrue:l}]=Me();return t?u(Is,{...e}):Ts({...e,onClick:l})})),Is=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Cs("chatbot",ks[e])})(e),Ts(t)))),Ts=({className:e,iconVersion:t,onClick:l})=>u(gs,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l,buttonSize:"large",isGrayBg:!0}),$s={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},Rs=x((({version:e,internetBankUrl:t})=>t?u(ie,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",$s["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),Bs=x((({subItems:e=[],version:t,internetBankUrl:l})=>{const a="transparent"===t?"white":"black",r=(e=>(t=[])=>{const l=t?.filter(ts(e));return l?.length?jl((e=>e.href?.length||0))(l):void 0})(G())(e),[o,d]=n(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=i((()=>e.map(((e,t)=>e=>{d(e?Ms(t):_s(t))}))),[e]);return p("nav",{className:"relative mt-3 flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-3 mt-2",children:e.map(((e,t)=>u(ys,{className:w("ml-8 first:ml-0",o-1<t?"invisible":""),active:e===r,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(fs,{className:"relative w-auto z-40",items:m,activeItem:r}):null,c.CHAT_BOT?u(Ss,{className:"ml-9",iconVersion:a,chat:c.CHAT_BOT}):null,u(Rs,{version:t,internetBankUrl:l})]})})),Ms=e=>t=>Math.max(t,e+1),_s=e=>t=>Math.min(t,e),js={"bg-white":"primary",transparent:"transparent"},zs=x((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:i=js[e],...s})=>{const o=G(),{topItems:d,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g,internetBankUrl:b}=si(c.SITEMAP||"sitemap",s.options?.page?.fallback),f=d?.find((e=>ts(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(o)),[v,N]=function(e="Москва"){const t=es(),[l,i]=n(t?.region??{name:e}),{data:s}=Qi("/api/v1/region",D);return a((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[])]}(h);return p(k,{tag:"header",className:w("pt-6 px-20",l&&f?.items?.length?"pb-4":"pb-5",t),version:i,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(ui,{className:"mr-8",bgColor:e,logo:m}),d?.map(((e,t)=>u(hs,{active:e===f,...e},String(t)))),u(bs,{version:i,className:"ml-auto",locationName:v.name,officesLink:g})]}),u("div",{className:w("mt-6 h-px bg-main-divider","transparent"===i?"opacity-30":"")}),l&&f?.items?.length?u(Bs,{subItems:f.items,version:i,internetBankUrl:b}):null]}),u(ji,{topItems:d}),u(as,{currentLocation:v,foreignOffices:x,onChangeLocation:N})]})})),Ls={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},Ds=x((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",isTheme:a=!1,...r})=>u(k,{className:w("relative","grid grid-cols-12",l?"p-default":"",Ls[t],e),version:n,isTheme:a,...r,children:Bn(r)})));Ds.childrenTypes={exclude:["HorizontalLayout"]};const Ps=x((e=>{const{className:t,image:l,...n}=e;return u(k,{className:t,...n,children:u(Ct,{image:l})})})),Vs=x((({className:e="",cards:t=[],button:l})=>{const[a,i]=n(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=il({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?Os({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,dl({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(ie,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function Os({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const a=460*e,r=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-12",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return p("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(Ct,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?As("страховая сумма",e.sum):null,e?.fee?As("страховой взнос",e.fee):null]}),Es(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function As(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[rt(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Es(e){return e?u(Ct,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const Fs=x((({className:e="",title:t,insuranceTabs:l=[],button:a,...i})=>{const[s,o]=n(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?u(T,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?u("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Us({insuranceTabs:l,button:a})})]})})),Us=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(Vs,{button:t,cards:e},String(l)))):null};function Hs(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const Xs={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Ws={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Ks=x((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:a,investmentColumns:r,...i}=e,s=r?[...r]:[];return a&&s.unshift(a),u(k,{className:`px-9 py-12 ${t}`,...i,children:p("div",{className:"container text-m-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[Hs(u("div",{className:"w-px h-4 bg-gray"}))(s.map(Gs)),u("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),u("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(qs)})]}):null,l?.length?u(ya,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),Gs=(e,t,l)=>{const n=1===t,a=t===l.length-1;return u("div",{className:`${Js(n,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Ys)}):null},`column_${t}`)},Js=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Ys=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Ws[l]} ${Xs[n]} ${"XS"===l?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},qs=(e,t,l)=>{const n=0===t,a=t===l.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${a?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Zs=x((({doc:e,icon:t})=>{const{text:l,fileSize:n,...a}=e;return p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...a,children:[t,l?p(de,{size:"text-l",font:"font-light",children:[l,u(de,{color:"text-secondary-text",children:a?.href&&Qs(eo(a.href),n)})]}):null]})})),Qs=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),eo=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},to={double:"flex-wrap",single:"flex-col"},lo=x((({className:e="",title:t,description:l,align:n="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(k,{className:w("p-default",e),...s,children:[u(Kt,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2"}),a?.length?u("div",{className:w("mt-8 flex gap-6",to[i]),role:"list",children:a.map(((e,t)=>u("div",{className:"double"===i?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(Zs,{doc:e,icon:r?u(Ct,{className:"min-w-6 min-h-6",image:r,width:"24",height:"24"}):null})},String(t))))}):null]}))),no=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function ao(e=""){const t=no(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const ro=x((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:a="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===a?"p-3.5 min-w-[120px]":"min-w-[92px]";return p(k,{className:`flex justify-between p-default box-border relative min-h-80 ${ao(e)} ${e}`,version:a,...d,children:[p(ca,{className:"z-10",title:t?u(T,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${Zt[o]}`}):null,buttons:Ft(n,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[so(c),p("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?u("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:u(Ct,{className:"w-fit",image:l})}):null,io(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(Ct,{image:i})}):null]})})),io=e=>e?.length?u(ya,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),so=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,oo=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}];function co(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(r),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const mo={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},ho=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(mo).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),uo={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},po=(e,t,l)=>p("div",{className:`${Object.values(uo).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(ze,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),xo={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},go=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(xo).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(ze,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),bo={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},fo=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(bo).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(ze,{name:l,width:"20",height:"16"})})})),vo={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},No=x((({points:e,className:t="",zoom:l=5,showSearchField:r=!1})=>{const i=s(null),o=Cs("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=n(),[h,x]=n(ko(oo)),g=yo(e);if(a((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),co(o,i.current,h)}))}),[o,i,h]),a((()=>{if(i.current&&h&&o){const e=h.length<1?ko(oo):h;co(o,i.current,e)}}),[i,h,o]),!o)return null;const b=d?"z-[100000]":"z-10";return p("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?po(oo,0,(e=>{if(e){const t=ko(e);x(t)}})):ho(g)}),u("div",{className:`${Object.values(vo).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(ze,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[u(fo,{yandexMaps:i}),u(fo,{yandexMaps:i,direction:"out"})]}),go(i.current,o,`right-2 top-80 ${b}`)]})})),yo=e=>[Co(wo(e,0)),Co(wo(e,1))],wo=(e,t)=>e.map((e=>e[t])),Co=e=>e.reduce(((e,t)=>e+t))/e.length,ko=e=>e?e.map((e=>e.coords)):null,So=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Io=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},To=({icon:e,title:t,distance:l,time:n},a)=>p("div",{className:"flex mr-4",children:[u(ze,{name:e,width:"16",height:"16",className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${a}`),$o=({title:e,status:t,workTime:l,lunchHour:n,description:a},r)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?u("div",{children:l}):null]}),t&&n?Ro(n):null,a?u("div",{className:"pb-1 text-s-light text-secondary-text",children:a}):null]},`day${r}`),Ro=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:u("div",{children:e})}),Bo={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function Mo(e){return e?L(e,{method:"GET"}):{}}const _o=x((({className:e=""})=>{const t=function(e){const{data:t}=j(e?`/api/v1/branches?regionCode=${e}`:void 0,Mo);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),Bo}("000"),{name:l,address:n,gpsLatitude:a,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=a&&r?[a,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:h,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:l}),Io(C)]}),p("div",{className:"flex text-l-light pt-4",children:[u(ze,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),n]}),u("div",{className:"flex pt-4",children:So.map(To)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(No,{points:[N],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map($o)})]})]})})),jo=x((({className:e="",title:t,servicesList:l,...n})=>p(k,{className:`p-8 flex flex-col ${e}`,...n,children:[t?u(T,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?u("ul",{className:"list-none m-0 p-0",children:l.map(zo)}):null]}))),zo=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(Ct,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Lo=x((({text:e,size:t,align:l,font:n,children:a,...r})=>u(k,{...r,children:u(ce,{size:t,align:l,font:n,children:e||a})}))),Do=x((e=>{const{className:t="",icon:l,label:n,description:a,version:r="primary",benefitsVersion:i="normal"}=e;return p("div",{className:`flex gap-5 ${a?"items-start":"items-center"} ${t}`,children:[l?u("div",{className:Po(r,i),children:u(Ct,{className:"w-6 h-6",image:{...l,iconVersion:l.iconVersion||i}})}):null,p("div",{className:"gap-0.5",children:[n?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:n}):null,a?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:a}):null]})]})}));function Po(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const Vo=e=>(t,l)=>{const{type:n}=t;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return u(Do,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));case"rte":return u(Va,{__html:t.__html});default:xi(t)}},Oo=x((({className:e="",title:t,description:l,image:n,benefits:a,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>p(k,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[u(Kt,{className:"!p-0",title:t,description:l,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?u(Ct,{className:s?"order-2":"",image:n}):null,p("div",{className:"w-[558px] m-auto",children:[a?.length?u("div",{className:"flex flex-col gap-4",children:a.map(Vo(o))}):null,Ao(Number(r),Number(i))]})]})]})));function Ao(e,t){return e||t?p("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?Eo("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Eo("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Eo(e,t=0,l=!1){return p("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[u("span",{className:"text-secondary-text text-l-light",children:e}),p("span",{className:"text-primary-main text-h6",children:[rt(t)," ₽"]})]})}function Fo(e=""){const t=no(e);return t<=4?"S":t<=8?"M":"L"}function Uo(e=""){const t=no(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ho=x((({className:e,title:t,description:l="Блок в разработке...",...n})=>p(k,{className:w("p-9 box-border",e,Uo(e),ao(e)),...n,children:[u(Kt,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:Fo(e)}),u("figure",{className:"m-0 min-w-[80%]",children:Xo()})]}))),Xo=(e=3)=>Ko(100,e).map((e=>Math.floor(e))).map(Wo),Wo=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ko=(e,t)=>[e].concat(t>0?Ko(e/1.618,t-1):[]),Go=x((({className:e="",children:t,...l})=>{const n=J(),{text:a,href:r,target:i,onClick:s}=n(l);return r?u("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:u("span",{className:e,children:a||t})}):u("span",{className:e,children:a||t})})),Jo=(e="primary",t="normal")=>({icon:l,label:n,description:a},r)=>u(Do,{icon:l,label:n,description:a,version:e,benefitsVersion:t},String(r)),Yo=x((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:a=3,benefits:r,benefitsVersion:i,buttons:s,image:o,__html:c,items:d,version:m="primary",isDotted:h=!0,textBlockClassName:x="",directionRight:g=!0})=>{const b=r?.filter((e=>e.label))?.length,f=qo(a);return p("div",{className:w("flex grow justify-between items-stretch h-full",e),children:[o?.src?u(Ct,{className:w("mt-[-50px]",g?"order-2":""),image:o}):null,p("div",{className:w("flex flex-col",x),children:[u(Kt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:l,align:"text-left"}),p(ca,{buttons:Ft(s),children:[b?u("div",{className:f,children:r?.map(Jo(m,i))}):null,c?u("div",{className:"mt-5",children:u(Va,{__html:c})}):null,d?.length?u(ya,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",isDotted:h}):null]})]})]})})),qo=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Zo(e,t,l){const{text:n,href:a,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:w("flex items-center",l),children:[u(ie,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:a,target:r,children:u(Ct,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i}})}),n?u(ie,{version:"link",text:n,href:a,target:r,ariaLabel:n}):null]})}const Qo="text-secondary-text group-data-secondary:text-white/80",ec=x((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:a="primary",...r}=e,i="primary"===a?a:"white";return p(k,{className:w("overflow-hidden p-default flex flex-col box-border min-h-[454px]",t),version:a,...r,children:[n?.text?Zo(n,i):null,l?.length?u("div",{className:"text-xs-light mb-6",children:Hs(u("span",{className:w("mx-2",Qo),children:"/"}))(l.map(((e,t)=>u(Go,{className:Qo,...e},String(t)))))}):null,u(Yo,{className:"mt-10",version:a,...r})]})})),tc=x((({className:e="",slides:t=[],...l})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=n(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,...l,children:[u("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){return u("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:u("div",{className:"flex grow",children:u(Yo,{className:"pl-12 z-10 group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...l},t)))}),u("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){const a=l?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":"min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur",r=l?"text-primary-text !text-h6 p-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",i=l?"text-secondary-text text-l-light":"text-m-light text-secondary-text group-data-secondary:text-white/80";return u("button",{type:"button",onClick:n,"aria-label":e?.title,className:`relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${a}`,children:p("div",{className:"border-0 px-6",children:[u("div",{className:`last:pb-0 ${r}`,children:e?.title}),u("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))})]})}));function lc(e,t){if(!e)return null;return u("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:u(ce,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const nc=(e,t)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return[u(de,{size:"text-h6",children:e.label},`label-${t}`),u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return u("div",{className:"col-span-2",children:u(Va,{__html:e.__html})});default:xi(e)}};function ac(e,t){return e?.src?u(Ct,{className:w("absolute",t?"right-0":"left-0","bottom-0"),image:e}):null}const rc=x((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:a,benefits:r=[],buttons:i,image:s,directionRight:o=!0,...c})=>p(k,{className:w("overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between",Uo(e),e),...c,children:[p("div",{className:w("flex flex-col",o?"":"items-end"),children:[u(Kt,{className:w("!p-0 !bg-transparent z-10",t||n?"mb-3.5":""),title:t,description:n,headlineVersion:l,as:"h2",align:"text-left"}),ic(r,s),lc(a,s)]}),Ft(i,{className:w("mt-5 text-l",o?"":"justify-end")}),ac(s,o)]})));function ic(e,t){if(!e.length)return null;return u("div",{className:w("z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline",t?.src?"max-w-[calc(100%-186px)]":"100%"),children:e.length?e.map(nc):null})}const sc=x((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,as:a,buttons:r=[],...i})=>u(k,{className:w("p-9 box-border",e,Uo(e),ao(e)),...i,children:u(ca,{title:t?u(Kt,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:Fo(e),align:"text-left",as:a||"h2"}):null,buttons:Ft(r),children:p("div",{className:"mt-1.5",children:[l?u("div",{className:"text-s mb-2",children:oc(l)}):null,u("div",{className:"text-l",children:n})]})})})));function oc(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const cc=x((e=>{const{__html:t,richVersion:l,...n}=e;return u(k,{...n,children:u(Va,{__html:t,richVersion:l})})})),dc=x((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:a="primary",...r})=>u(k,{className:`w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,tag:"div",version:"transparent",...r,children:u(Aa,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>u(Ea,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:Bn(r)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>mc({version:a,label:t,isUnfolded:e,onToggle:l})})})));dc.childrenTypes={exclude:["RollupItem"]};const mc=({version:e,label:t,isUnfolded:l,onToggle:n})=>{const a=t||(l?"Скрыть":"Развернуть");return"primary"===e?hc({label:a,icon:l?"MinusIcon":"PlusIcon",onToggle:n}):u(Yr,{label:a,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:n})},hc=({label:e,icon:t,onToggle:l})=>p("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:l,children:[u(de,{size:"text-xl",font:"font-medium",children:e}),t?u(ze,{name:t,width:"24",height:"24"}):null]}),uc=[];const pc=async e=>await L(e,{method:"GET"})||uc,xc=x((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:a="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return u(Pe,{options:s,label:i,placeholder:a||n,onChange:e=>r(e.key),value:o})})),gc=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:a,onSelectedBranch:r})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(xc,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(xc,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),bc=x((({name:e,text:t,value:l,checked:n,onChange:a,className:r})=>u("div",{className:r,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),fc=x((()=>{const[e,t]=n("option2"),l=r((e=>t(e)),[]);return p("div",{children:[u(bc,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),u(bc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),vc=["От 1 дня","До 365 дней"],Nc=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),u(ot,{min:1,max:365,value:e,items:vc,onChange:t})]}))),yc=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:a,onSelectedBoxSize:r})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(xc,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(xc,{data:n,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),wc=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:a,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(gc,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Cc(c)}),u(Nc,{days:a,setDays:e=>c({days:e})}),u(yc,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:kc(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(fc,{}),u(ie,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Cc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},kc=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Sc=x((({days:e,tariffs:t=[]})=>{const l=Tc(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[Ic("Аренда за",e,"mr-11"),Ic("Цена",l+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(Ct,{image:{icon:"PackA4Icon"},width:"290",height:"257"}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),Ic=(e,t,l="")=>p("div",{className:l,children:[u("div",{className:"text-m-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),Tc=(e,t)=>{const l=$c(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},$c=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},Rc=(e,t)=>e.find((e=>e.branchCode===t)),Bc=x((e=>{const{regions:t,data:l,branches:n,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,r]);const s=Rc(n,l.selectedBranch),o=Mc(s?.safeBoxCaseVolumes),c=_c(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=jc(c,l.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(wc,{...l,regions:t,onClick:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:r}),u(Sc,{days:l.days,tariffs:d})]})})),Mc=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],_c=(e,t)=>e?.find((e=>e.volume===t)),jc=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,zc=x((({title:e,footnote:t,className:l="",...a})=>{const[i,s]=n(!1),o=r((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=V(),h=Lc(c.selectedRegion,m),x=function(e){const{data:t}=j(e?`/api/v1/safeboxes?regionCode=${e}`:null,pc);return t||uc}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=Rc(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return p(k,{className:l,...a,children:[p("div",{className:"px-8 py-12",children:[e?u(T,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,u(Bc,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?u(No,{points:b,className:"h-[640px]"}):null]})})),Lc=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Dc=e=>Boolean(e?.icon||e?.src),Pc=({styleMap:e,isMainButton:t,version:l})=>(n,a,r)=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",Vc(r.length)),children:[p("div",{className:w(o?.text?"mb-8":"","text-center"),children:[i?u("div",{className:"mb-2",children:u(de,{size:"text-h6",children:i})}):null,p("div",{className:"flex flex-col items-center",children:[s?u("div",{className:e.description,children:s}):null,u(ya,{className:w(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(ie,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(a))},Vc=e=>e<5?"w-[276px]":"w-[210px]",Oc={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Ac=x((({className:e="",showLines:t=!0,steps:l=[],buttons:n,size:a="normal",version:r="primary",stepVersion:i="gray",title:s,...o})=>{const c=l.length>3,d=Oc,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(l.length),x=Boolean(n?.every((e=>e?.text)));return p(k,{className:w("box-border py-12",c?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e),version:r,...o,children:[s?u(T,{headingType:"h4",className:"max-w-[752px] text-center mb-9",title:s}):null,l?.length?p("div",{className:"box-border",children:[u("div",{className:w("flex items-center",h),children:Hs(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(l.map(Ec(d,a,i)))}),u("div",{className:w("flex justify-between mt-4",c?"gap-x-3":"gap-x-[101px]"),children:l.map((g={styleMap:d,isMainButton:x,version:r},(e,t,l)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return Pc(g)(e,t,l);case"rte":return u("div",{className:w("text-center",Vc(l.length)),children:u(Va,{__html:e.__html})},String(t));default:return null}}))})]}):null,Ft(n,{className:"mt-8"})]});var g})),Ec=(e,t,l)=>({icon:n},a)=>{const r="secondary"===l?"group-data-primary:text-white":"text-secondary-text",i="secondary"===l?"white":"color";return u(k,{className:`${"normal"===t?"h-[100px] w-[100px]":"h-[63px] w-[63px]"} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`,version:l,children:Dc(n)?u(Ct,{image:{...n,iconVersion:n.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===l?e.iconText:r),children:a+1})},String(a))},Fc=x((({className:e="",gap:t=14,padding:l=16,showDots:n=!0,minHeight:a,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=Fn({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===s?"relative h-full":""),children:[u(zn,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:a,children:r}),n?u(On,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),Uc=x((({listType:e,showDots:t,options:l,version:n,...a})=>u(k,{version:n,...a,children:u(Fc,{listType:e,showDots:t,version:n,children:Bn({...a,options:l})})})));Uc.childrenTypes={exclude:["SwipeListControlBlock"]};const Hc="h-12 flex-1 flex items-center justify-center cursor-pointer",Xc="font-sans text-m text-center",Wc="text-white",Kc="text-secondary-text group-hover/btn:text-primary-main",Gc="text-primary-main",Jc={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Hc} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Hc} group/btn bg-white`},default:{active:`${Hc} bg-primary-main text-white whitespace-nowrap`,default:`${Hc} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Yc={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Hc} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Hc} group/btn bg-white`},default:{active:`${Hc} bg-primary-main text-white`,default:`${Hc} group/btn bg-white`}},text:{scrollable:{active:`${Xc} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${Xc} ${Kc}`},default:{active:`${Xc} text-white`,default:`${Xc} ${Kc}`}}},qc=(e,t,l)=>{const n=t?"active":"default";return Jc[e][l?"scrollable":"default"][n]},Zc=(e,t,l)=>{const n=t?"active":"default";return Yc[e][l?"scrollable":"default"][n]},Qc=x((e=>{const{tab:t,currentTab:l,onClick:n,isScrollable:a=!1}=e,r="link"===l?.type&&l.href===t.href,i=J()(t);return u("a",{role:"tab",className:Zc("link",r,a),target:t.target,href:i.href,onClick:e=>{i.onClick(e),n(t)},children:u("span",{className:Zc("text",r,a),children:t.text})})})),ed=(e,t,l)=>e?u("h3",{className:l?`${Xc} ${t?Gc:Kc}`:`${Xc} ${t?Wc:Kc}`,children:e}):null,td=(e,t,l)=>e&&t?u("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(l?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,ld=({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:qc("div",s,a),role:"tab","aria-selected":s,onClick:()=>n(r),children:p("div",{className:`flex flex-1 items-center justify-center ${qc("text",s,a)}`,children:[ed(r.title,s,a),td(l,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a})(r,i);case"link":return u(Qc,{tab:r,currentTab:t,isScrollable:a,onClick:n},String(i));default:xi(s)}return null},nd=x((e=>{const{tabs:t,onClick:l,currentTab:n,page:a,showCounter:r}=e,[i,s]=Fn({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(zn,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(ld({onClick:l,currentTab:n,showCounter:r,page:a,isScrollable:!0}))})}),s.canScrollLeft?u(ol,{className:"absolute z-40 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(cl,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),ad=x((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=n(l?l[0]:void 0);a((()=>{l&&l[0]&&rd(l[0])}),[]),a((()=>{"group"===d?.type&&f.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{rd(e),m(e)}),[]);return u(k,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?u(nd,{tabs:l,onClick:h,currentTab:d,showCounter:i,...c}):l?.map(ld({onClick:h,currentTab:d,showCounter:i,...c}))})})),rd=e=>{"group"===e.type&&f.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&f.fire("tab",{type:e.type,label:e.href})},id=x((({isOpen:e,onClick:t})=>p(ie,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),u(ze,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20"})]}))),sd={Buttons:({buttons:e})=>Ft(e),Img:({image:e})=>e?.src?u(Ct,{image:e}):null,List:({isDotted:e,...t})=>u(ya,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:a})=>e?u(id,{isOpen:a,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},od=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);a((()=>{t===i&&r||m(!0)}),[r,i]);return p("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?u("div",{className:"h-5"}):null,cd({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},cd=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in sd))return null;return u(sd[l],{...t,...n})},dd=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(od({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),md=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=il({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(hd(l)),dl({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),hd=e=>(t,l)=>{if(!t?.length)return null;const[n,...a]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?u("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:i,style:{transform:`translateX(-${r}px)`},children:a?.map(((t,l)=>p("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?ud(t.cols,e):null]},`row${l}`)))})})]},String(l))},ud=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,pd=x((({activeTabIndex:e,items:t})=>{const[l,a]=n({}),i=r((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(a),children:[t.title,u(Ct,{image:{icon:l[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:u("div",{className:"relative",children:u(md,{rows:t.rowsData})})})]},a)}))})})),xd=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>p("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?u(ie,{href:t,version:"secondary",target:"_blank",appendLeft:u(ze,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function gd(e){const t=await fetch(e);return await t.json()}const bd=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:a}=function(e){const{data:t}=j(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),gd);return t||{}}(e),[i,s]=n(0),o=r((e=>s(e)),[]),c=a?.[i]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(xd,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),u(pd,{activeTabIndex:i,items:c}),u(id,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(id,{onClick:l,isOpen:!0})]})})),fd=x((({children:e,tableInner:t,onHideContentClick:l})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(bd,{...t,onClick:l})}):null]}))),vd=x((({row:{header:e,data:t},activeIndex:l,rowIdx:a,...i})=>{const[s,o]=n(void 0),c=r((e=>o(e)),[]),[d,m]=n(void 0),h=r((e=>m(e)),[]);return p(fd,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[u("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(Ct,{className:"mr-3.5 max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?u(er,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(dd,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...i},String(t))))}):null]})})),Nd=x((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:a,hiddenRowsNum:r=0,...i})=>{const s=a?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=il({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(vd,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[h.slice(0,-r),h.slice(-r)]:[h,[]];return p(k,{className:`p-default overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[yd({title:t,description:l}),wd(l),r>0?u(Aa,{renderFoldableSection:({isUnfolded:e})=>p(Cd,{controls:m,children:[x,u(Ea,{isUnfolded:e,children:g})]}),renderFoldButton:qr}):u(Cd,{controls:m,children:h})]})}));function yd({title:e,description:t}){return e?u(T,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function wd(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const Cd=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,dl({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),kd=x((({className:e="",title:t,description:l,iconVersion:n,image:a,__html:r,items:i=[],...s})=>p(k,{className:w("px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===n?u("div",{className:"mt-1",children:Sd()}):null,"big"===n?Id(a):null,p("div",{className:"flex flex-col w-fit gap-3",children:[t?u(de,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:t}):null,l?Td(l):null,i?.length?$d(i,!0):null,r?u(Va,{__html:r}):null]})]}))),Sd=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Id=e=>e?.src?u(Ct,{className:"h-fit",image:e}):null,Td=e=>u(ce,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),$d=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(de,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),Rd=x((e=>{const{tags:t,className:l=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Bd)}):null})),Bd=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),Md=x((({title:e,headingType:t="h3",__html:l,items:n,buttons:a,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,directionRight:m=!0,...h})=>p(k,{className:w("flex grow justify-between items-stretch h-full p-9 pr-3 box-border",Uo(o),ao(o),o),...h,children:[r?.src?u(Ct,{className:w("mt-auto ml-7",m?"order-2":""),image:r}):null,u(ca,{title:e?u(T,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:Ft(a,{className:"mt-8",buttonClassName:"min-w-[158px]"}),children:p("div",{children:[l?u("div",{className:"max-w-[600px] mt-2.5",children:u(Va,{__html:l})}):null,d,u(ya,{className:"mt-2.5",itemClassName:"mb-1.5",items:n,isDotted:i,listItemSize:s}),c?.length?u(Rd,{tags:c,className:"mt-5"}):null]})})]}))),_d={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},jd=x((({className:e="",gap:t="",align:l="stretch",isPadding:n=!1,isInnerPadding:a=!0,version:r="transparent",isTheme:i=!1,...s})=>{const o=a?"":"!p-0";return u(k,{className:w("relative","flex flex-col [&>*]:max-w-full",n?"p-default":"",Ls[t],l&&_d[l],e),version:r,isTheme:i,...s,children:Bn({...s,renderProps:(e,t)=>Tn(e,t,{className:o})})})}));jd.childrenTypes=[];const zd=e=>no(e)<10?"py-6 px-11":"py-12 px-32",Ld=x((({className:e,title:t,url:l,previewImg:n,...a})=>{const r=G();return p(k,{className:w(zd(e),e),...a,children:[u(Kt,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:X(r)(n?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:X(r)(l)})}):null]})})),Dd=x((({address:e,email:t,telephone:l,button:n,className:a="",__html:r,icon:i,title:s,version:o="primary",...c})=>p(k,{className:w("box-border text-left p-9",a),version:o,...c,children:[p("div",{className:"w-full flex justify-between",children:[s?u(T,{headingType:"h4",as:"h3",className:"mb-6",title:s}):null,Pd(i)]}),p("div",{className:"w-full",children:[r?Vd(r):null,Od("Адрес",e,"GeolocationIcon"),Od("Телефон",l,"PhoneIcon"),Od("E-mail",t,"MailIcon"),n?.text?Ft([n],{className:"mb-6"}):null]})]}))),Pd=e=>p("div",{className:"self-end",children:[e?.src?u(Ct,{image:e}):null,e?.icon?u(Ct,{image:e}):null]}),Vd=e=>u("div",{className:"border-b border-main-divider pb-5 my-5",children:u(Va,{__html:e})}),Od=(e,t,l)=>p("div",{className:"flex mb-4",children:[u(ze,{className:"pr-4",iconVersion:"black",name:l,width:"24",height:"24"}),p("div",{className:"flex flex-col first:pb-1",children:[u(de,{size:"text-m-light",children:e}),t?u(de,{size:"text-h6",color:"text-green",children:t}):null]})]}),Ad={ApplicationForm:Dt,BenefitsBlock:Pt,Bonus:Gt,BonusBenefitsBlock:Qt,BusinessBlock:al,ButtonBlock:rl,Calculator:bn,CardTransfer:kn,Carousel:Kn,CarouselBankHistoryCard:qn,CarouselCard:na,CarouselCatalogCard:ra,CarouselEventCard:oa,CarouselInvestmentCard:ma,CarouselLinks:xa,CarouselProductCard:wa,CarouselProgramsCard:$a,CarouselRecommendationCard:Da,CarouselRichTextCard:Oa,CarouselTariffsCard:Fa,ComparisonTable:mr,ContactsBlock:ur,ErrorBlock:br,ExchangeRateTile:Gr,Filtration:ii,Footer:Ki,GracePeriod:Gi,Header:zs,Headline:Kt,HorizontalLayout:Ds,ImgBlock:Ps,InsuranceAmountBlock:Fs,InvestmentInfo:Ks,LinkDocs:lo,MobileAppTile:ro,OfficeMap:_o,OfficeServicesBlock:jo,ParagraphBlock:Lo,PictureText:Oo,Placeholder:Ho,ProductBlock:ec,ProductGallery:tc,ProductTile:rc,PromoTile:sc,RichTextBlock:cc,RollupItem:dc,SafeDepositRental:zc,StepsBlock:Ac,SwipeListControlBlock:Uc,Tabs:ad,TariffsTable:Nd,TextBlock:kd,Tile:Md,VerticalLayout:jd,Video:Ld,ExchangeRateOffice:Sr,RepresentativeOfficeInfo:Dd};const Ed=["Header","Footer"],Fd=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Ud(e=globalThis){const t=s(new Map);a((()=>y.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),a((()=>{const l=((e,t=600)=>{let l;const n=(...a)=>{n.dispose(),l=setTimeout((()=>{e(...a)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{!function(e){const t=`#${l=e?.anchor,l?.replace("#","")||""}`;var l;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Ed.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?Dl(Fd)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const Hd="cookieClose",Xd=x((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:l,onClose:n}=Ti("cookie",!globalThis.localStorage?.getItem(Hd)),a=r((()=>{globalThis.localStorage?.setItem(Hd,"true"),n&&n()}),[n]);return l?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"flex-1",children:p(ce,{size:"text-s-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(sa,{isRemote:!0,className:w(Wd(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(sa,{isRemote:!0,className:w(Wd(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"w-24 flex justify-end",children:u(pi,{className:"bg-main-gray rounded-md",onClick:a})})]})}):null})),Wd=e=>["inline mx-1",e?"text-green-dark":""],Kd=h();const Gd=x((({className:e,onClick:t,ariaLabel:l})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:Jd()}))),Jd=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Yd=x((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return a((()=>{(async()=>{const[t]=await Kd.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{l(await Kd.like(e))}),[e]),dislike:r((async()=>{l(await Kd.dislike(e))}),[e])}}(G().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(Gd,{onClick:K(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Gd,{onClick:K(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),qd=x((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:a={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:l,blockDecorator:n,parent:a};Ud();const[m,{setTrue:h,setFalse:x}]=Me();return gi({onOpen:h,onClose:x}),p("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:Rn(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[Rn(i,d),s?.footer?Rn(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Yd,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(Xd,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));qd.childrenTypes=[],qd.slots=()=>["header","footer"];e.Blocks=Ad,e.ContentPage=qd,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=K,e.joinList=Hs,e.packageVersion="0.10.6",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=H,e.useRouter=G,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),a=l("useEffect"),r=l("useCallback"),i=l("useMemo"),s=l("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,l){const{children:n,...a}=t||{},r=l?.slots?.default,i=n||r&&r();return e(Object.assign(a,i&&{children:i}),l)}return t.inheritAttrs=!1,t};class b{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const f=new b;function v(e,{sensitivity:t,rootRef:l}={}){const n=s(null),r=i((()=>({threshold:N(t),root:l?.current})),[t,l?.current]);return a((()=>{if(!n.current)return;const t=new IntersectionObserver(e,r);return t.observe(n.current),()=>{t.disconnect()}}),[e,r]),n}function N(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const y=new b;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),k={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},C=x((({className:e="",version:t="primary",isTheme:l=!0,block:i,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return v(r((t=>{if(!e||!t?.length)return;const l=t[t.length-1];y.fire("intersection",{block:e,intersection:l})}),[e]),{sensitivity:1})}(i),[h,p]=n(!1);return a((()=>f.subscribe("tab",(e=>{p(Boolean(e.label&&i?.labels?.length&&!i.labels.includes(e.label)))}))),[i]),u(d,{className:w(S(Boolean(t&&l)),k[t],h?"hidden":"",e),...t&&l?{"data-ver":t}:{},...i?.anchor?{id:i.anchor,ref:m}:{},role:o,children:c})})),S=e=>e?"group":"",I={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},T=x((({className:e="",headingType:t="h3",as:l="h3",title:n,children:a})=>u(l,{className:`font-sans m-0 ${I[t]} ${e}`,children:n||a}))),$=(e,t)=>{const[l,a]=n(e),[i,o]=n(!1),[c,d]=n({}),m=s({}),h=r((e=>(m.current||(m.current={}),m.current[e]||=t=>{a((l=>({...l,[e]:t}))),d((t=>({...t,[e]:!0})))},{value:l[e],isDirty:i||c[e],onChange:m.current[e]})),[l,i,c]),u=r((()=>{a(e),o(!1),d({})}),[e]),p=r((e=>{e.preventDefault(),o(!0),t&&t(l)}),[t,l]);return[l,{isDirty:i||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:p}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,l])=>l(t[e])))||[],B=e=>!e?.length,_=e=>t=>l=>e(l)?[]:[t],M=new Map;function j(e,t,{fallback:l}={}){const r=i((()=>V(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};a((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>M.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=l&&"string"==typeof u&&l[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function V(e){return e?Array.isArray(e)?e:e instanceof Function?V(e()):[e]:[e]}async function z(e,t){try{return e?await D(e,t):null}catch(e){console.error(e)}return null}async function D(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}const L=[];function P(){const{data:e}=j("/api/v1/regions",D);return e||L}const O=(e="")=>({open:t=>f.fire("dialog",{type:"open",id:e,message:t}),close:()=>f.fire("dialog",{type:"close"})}),A=e=>Boolean(e?.includes(":")),E=(e,t)=>Boolean(e&&!A(e)&&(!t||"_self"===t)),F=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),U=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var H=Object.freeze({__proto__:null,isURL:A,isLocalURL:E,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:F,joinPath:U});const X=e=>(t,l=c.BASE_PATH)=>{if(!t||A(t)||W(t,c.CDN))return t;const n=t.startsWith("/");return U(W(t,l)?"":l,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},W=(e,t)=>t&&e&&e.startsWith(t),K=(e,t)=>K._impl(e,t);function G(){return G._impl()}function J(e={}){const{isRemote:t,basePath:l}=e,n=G(),{close:a}=O();return e=>({...e,href:t?e.href:X(n)(e.href,l),"aria-label":e.text,onClick:K(r(e),e)});function r({href:e,target:l,onClick:r}){return i=>{r&&r(i),e&&!t&&E(e,l)&&(a(),i?.preventDefault(),n.push(e))}}}K._impl=e=>e,K.setup=e=>{K._impl=e},G._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),G.setup=e=>{G._impl=e};const Y={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},q="bg-main-divider text-main-disabled",Z={primary:q,secondary:q,white:q,link:"",transparent:"",gray:q,"":""},Q="text-center font-sans select-none",ee={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},te=x((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:a,version:r="primary"}=e;return p("div",{className:w(le(e),"flex gap-2"),children:[n?u("div",{className:ee[r],children:n}):null,ne(e)?p("div",{children:[l?u("div",{className:"text-xs-light text-left",children:l}):null,u("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,a?u("div",{className:ee[r],children:a}):null]})})),le=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const a=""+(l?"py-2.5 px-7":"py-4 px-4");return["group/btn items-center justify-center",ne(e)?a:"h-12 w-12",n?"rounded-full":""].join(" ")},ne=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ae=({className:e,rounded:t,version:l})=>["inline-block",Q,l?Z[l]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:l})=>[Q,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",l?Y[l]:"",t?"rounded-full":"rounded-md",e].join(" "),ie=x((({disabled:e,children:t,...l})=>{const n=J()(l),a=t??u(te,{...n});return u(e?oe:se,{...n,children:a})})),se=x((({className:e="",href:t,rel:l,target:n,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:re({className:e,version:r,rounded:i}),href:t,rel:l,target:n,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),oe=x((({className:e,ariaLabel:t,version:l,rounded:n,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ae({className:e,rounded:n,version:l}),children:a}))),ce=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),de=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),me=x((({link:e})=>p(ce,{size:"text-s-light",color:"text-secondary-text",children:[u(de,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(ie,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(de,{children:e.text})}):null]}))),he=(e,t)=>{const{value:l,isDirty:n}=e,a=n?t(l):[];return{...e,errors:a,error:a[0]}},ue=x((({className:e="",inputClassName:t="",id:l,name:n,type:a="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,...m})=>{const h=r((e=>{d&&d(e.target?.value||"")}),[d]),x=c?"pr-8":"",g=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",e),children:[i?u("label",{className:"block text-m-light mb-2",children:i}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",x,g,t),id:l,name:n||l,type:a,value:s,onInput:h,...m}),c]})})),pe=x((({className:e,label:t,value:l="",error:n,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(ue,{type:"text","aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:r}),u("div",{className:"h-2",children:n?u(de,{size:"text-xs-light",color:"text-error",children:n}):null})]}))),xe=e=>"_"===e,ge=e=>/\d/.test(e),be=e=>xe(e)||ge(e),fe=[..."+7 (___) ___-__-__"],ve=fe.findIndex(xe),Ne=fe.map(((e,t)=>be(e)?fe.slice(0,t).filter(be).length:-1));const ye=x((({children:e,onChange:t,...l})=>{const n=r((({target:{value:e}})=>t&&t(function(e){const t=e.replace(/\D/g,""),l=fe.map(((e,l)=>ge(e)?e:t.charAt(Ne[l])||e)),n=Ne.indexOf(t.length-1)+1;return(n?l.slice(0,Math.max(ve,n)):l).join("")}(e||""))),[t]);return u(ue,{onInput:n,onFocus:n,...l,children:e})})),we=x((({className:e,label:t,value:l,error:n,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(ye,{"aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:r}),u("div",{className:"h-2",children:n?u(de,{size:"text-xs-light",color:"text-error",children:n}):null})]}))),ke="Некорректно заполненное поле",Ce=_((e=>null!=e&&""!==e))(ke),Se=_((e=>"string"==typeof e&&e.length>1))(ke),Ie=_((e=>"string"==typeof e&&(10===e.length||12===e.length)))(ke),Te=($e=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,_((e=>"string"==typeof e&&$e.test(e))))(ke);var $e;const Re=e=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",...he(e("fullName"),Ce)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)})]}),p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",...he(e("inn"),Ie)}),u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)})]})]}),Be=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function _e(e=!1){const[t,l]=n(e),a=r((()=>l(!0)),[]),i=r((()=>l(!1)),[]),s=r((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:a,setFalse:i,toggle:s}]}function Me(e){const t=s(null);return a((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const je={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},Ve=x((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:a=n,iconVersion:r="color",...i})=>{const s=G(),o=X(s)(U(c.CDN,"/icons",`${l}.svg`));return"normal"!==r?u(De,{className:e,children:p("svg",{className:w(ze(i.width),je[r],"white"===r?"invert":"",t),...i,"aria-hidden":"true",children:[a?u("title",{children:a}):null,n?u("desc",{children:n}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(i.style={height:`${i.height}px`}),u("img",{className:e,src:o,alt:n,title:a,"aria-hidden":"true",...i}))})),ze=e=>e?"":"w-full h-full",De=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Le=x((({className:e="",label:t,options:l=[],value:n,valid:a=!0,isBorder:i=!0,placeholder:s="",onChange:o})=>{const[c,{setFalse:d,toggle:m}]=_e(),h=Me(d),x=r((e=>{d(),o&&o(e)}),[o]);return p("div",{className:e,ref:h,children:[t?u("div",{className:"mb-2",children:u(de,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",c?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer",Ae(i,a)),onClick:m,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Oe(n)||s}),u(Ve,{className:w("absolute right-3",c?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),l?.length?u("div",{className:w("h-0",c?"":"overflow-hidden"),children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:l.map(Pe(x,c,(e=>e.key===n?.key)))})}):null]})]})})),Pe=(e,t,l)=>(n,a)=>p("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:Oe(n)}),u(Ve,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",l(n)&&t?"":"hidden")})]},String(a)),Oe=e=>e?.text||e?.key||"",Ae=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),Ee=x((e=>p("div",{children:[u(Le,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(de,{size:"text-xs-light",color:"text-error",children:e.error}):null})]}))),Fe=({regions:e,field:t})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Ee,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Be.map((({name:e=""})=>({key:e,text:e}))),...he(t("acquiringType"),Ce)})}),u("div",{className:"w-1/2",children:u(Ee,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),Ce)})})]}),Ue=x((({value:e=!1,text:t,type:l="checkbox",onChange:n})=>p("div",{role:l,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-3",onClick:()=>n&&n(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-[50%]":"left-[5%]")})}),u(de,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),He=e=>p("div",{className:"mb-5",children:[u(Ue,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(Ue,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),Xe=(e,t)=>{const l=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4",l,t),children:e?.text?e.text:"Отправить заявку"})},We={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ke=R({acquiringType:Ce,region:Ce,fullName:Ce,inn:Ie,name:Se,phone:Te}),Ge=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{acquiringType:t,region:l,fullName:a,inn:r,name:i,phone:s,onlineCheckout:o,posTerminal:c}=e;B(Ke(e))&&n({typeForm:"acqr",region:l?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:r,name:i,phone:s})}),[n]),[,{field:i,...s}]=$(We,a),o=P();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Fe({regions:o,field:i}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Re(i),He(i),Xe(t,"mb-4"),u(me,{link:l})]})})),Je=e=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",...he(e("inn"),Ie)})]}),p("div",{className:"w-1/2",children:[u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",...he(e("mail"),Ce)})]})]}),Ye=({regions:e,field:t})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(Ee,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),Ce)})})}),qe={name:"",phone:"",inn:"",mail:""},Ze=R({region:Ce,name:Se,phone:Te,inn:Ie,mail:Ce}),Qe=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{region:t,name:l,phone:a,inn:r,mail:i}=e;B(Ze(e))&&n({typeForm:"bcrd",region:t?.text||"",name:l,phone:a,inn:r,mail:i})}),[n]),[,{field:i,...s}]=$(qe,a),o=P();return p("form",{className:"container",onSubmit:s.onSubmit,children:[Ye({regions:o,field:i}),Je(i),Xe(t,"mb-4"),u(me,{link:l})]})})),et=[];const tt=async e=>await z(e,{method:"GET"})||et,lt=["От 1 000 ₽","До 1 000 000 000 ₽"],nt=["От 1 мес","До 15 лет"],at=e=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",...e("fullName")}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",...he(e("inn"),Ie)}),u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)})]}),p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Годовая выручка, ₽",...he(e("annualRevenue"),Ce)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),rt=e=>new Intl.NumberFormat("ru-RU",{}).format(e),it=(e,t,l)=>Math.max(t,Math.min(e,l));function st(e){const t=(e||"").replace(/\D/g,""),l=parseInt(t,10);return Number.isNaN(l)?0:l}function ot({list:e=[],min:t,max:l,step:n,value:a=e[0]||t,disabled:r,onChange:i}){const s=e.length?e.indexOf(a):a,o={backgroundSize:`${(100*(s-t)/(l-t)).toFixed(2)}% 100%`};return p("div",{children:[e.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:e.map(((e,t)=>u("div",{className:"w-2 h-2 rounded-full "+(s<=t||r?"bg-gray":"bg-primary-main")},String(t))))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:o,type:"range",min:t,max:l,step:n,value:s,disabled:r,onInput:t=>{const l=st(t.target?.value),n=e.length?e[l]:l;i&&i(n||0)}})})]})}const ct=x((({className:e,title:t,items:l=[],list:a=[],min:i=(a.length?0:1),max:s=(a.length?a.length-1:100),step:o=1,value:c=a[0]||i,disabled:d=!1,onChange:m})=>{const[h,x]=n(!1),g=r((e=>{m&&m(st(e.target?.value))}),[m]),b=r((()=>{x(!0)}),[]),f=r((()=>{x(!1),m&&m(a.length?dt(a)(c):it(c||0,i,s))}),[m,c]);return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u(de,{size:"text-m",font:"font-light",color:"text-primary-text",children:t}):null,u("input",{className:w("m-0 mt-2 font-sans text-h3 w-full h-14","border border-solid border-gray rounded-md outline-none","p-0 pl-4 box-border","text-primary-text hover:border-primary-hover focus:border-primary-text","disabled:border-gray disabled:bg-main-divider"),value:h?c:rt(c),disabled:d,onInput:g,onFocus:b,onBlur:f}),ot({list:a,min:i,max:s,step:o,disabled:d,value:c,onChange:m})]}),mt(l)]})})),dt=e=>t=>e.reduce(((e,l)=>Math.abs(l-t)<Math.abs(e-t)?l:e)),mt=e=>u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u(de,{size:"text-s-light",color:"text-secondary-text",children:e},String(t))))}),ht=e=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u("label",{children:u(de,{size:"text-m-light",children:"Сумма кредита, ₽"})}),u(ct,{items:lt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"w-1/2",children:[u("label",{children:u(de,{size:"text-m-light",children:"Срок кредита, месяцев"})}),u(ct,{items:nt,min:1,max:180,...e("term")})]})]}),ut=({regions:e,branches:t,field:l})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Ee,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(l("region"),Ce)})}),u("div",{className:"w-1/2",children:u(Ee,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...he(l("department"),Ce)})})]}),pt={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},xt=R({annualRevenue:Ce,inn:Ie,name:Se,phone:Te,region:Ce,department:Ce}),gt=x((({button:e,link:t,onSubmit:l})=>{const n=r((e=>{const{amount:t,term:n,fullName:a,inn:r,name:i,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;B(xt(e))&&l({typeForm:"cred",fullName:a,inn:r,name:i,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${n}/Выручка=${m}`})}),[l]),[a,{field:i,...s}]=$(pt,n),o=P(),c=function(e){const{data:t}=j(e?`/api/v1/branches?regionCode=${e}`:null,tt);return t||et}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),ht(i),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),at(i),u(T,{headingType:"h6",title:"Офис банка",className:"text-center mb-4"}),ut({regions:o,branches:c,field:i}),Xe(e,"mb-4"),u(me,{link:t})]})})),bt={name:"",phone:""},ft=R({name:Se,phone:Te}),vt=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{name:t,phone:l}=e;B(ft(e))&&n({typeForm:"dpst",name:t,phone:l})}),[n]),[,{field:i,...s}]=$(bt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Имя",...he(i("name"),Se)}),u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(i("phone"),Te)})]}),p("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(me,{link:l})}),Xe(t)]})]})})),Nt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,yt=x((({className:e="",image:t,imageClassName:l="",isMobile:n=!1,pathPrefix:a})=>{const r=G();return p("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(Nt).map((({src:e,format:l,media:n},i)=>u("source",{srcSet:kt(r,a)(e),type:Ct(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?wt({...t,src:kt(r,a)(t.src)},l,n):null]})})),wt=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",r=e.alt||e.title,i=l?"m-auto":"m-0";return u("img",{src:e.src,className:`${i} ${t}`,alt:r,title:a,style:n,...e.size})},kt=(e,t)=>l=>l&&!A(l)?X(e)(U(t,l)):l,Ct=e=>e?`image/${String(e)}`:void 0,St=x((({className:e="",image:t,imageClassName:l="",isMobile:n,pathPrefix:a,...r})=>t?.src||t?.icon?t.icon?u(Ve,{className:e,imageClassName:l,iconVersion:t?.iconVersion,name:t.icon,...r}):u(yt,{className:e,imageClassName:l,image:t,isMobile:n,pathPrefix:a}):null)),It=x((({className:e,viewBox:t,fill:l="none",width:n,height:a,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:a,children:r.map((({d:e,fill:t,...l},n)=>u("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),Tt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],$t=x((({className:e,value:t,text:l,disabled:n,isRadio:a,onChange:i})=>{const s=r((e=>{n||(e.preventDefault(),i&&i(!t))}),[i,n,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(It,{paths:Tt,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":Rt(t),t?"border-primary-main":"border-gray",n?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(n)}),t?o:null,l?u("span",{className:"font-sans ml-3 text-l-light",children:l}):null]})})})),Rt=e=>w("rounded border",e?"bg-primary-main":""),Bt=e=>{const t=e("text");return p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u($t,{text:"Валютный контроль",...e("currencyControl")}),u($t,{text:"Документарные операции",...e("documentaryOperations")}),u($t,{text:"Конверсионные операции",...e("conversionOperations")})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},_t=e=>p("div",{children:[p("div",{className:"flex justify-between gap-5",children:[u("div",{className:"w-1/2",children:u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",...he(e("fullName"),Ce)})}),u("div",{className:"w-1/2",children:u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ФИО",...he(e("name"),Se)})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)})}),u("div",{className:"w-1/2",children:u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",...he(e("mail"),Ce)})})]})]}),Mt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},jt=R({fullName:Ce,name:Se,phone:Te,mail:Ce}),Vt=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{fullName:t,name:l,phone:a,mail:r,currencyControl:i,documentaryOperations:s,conversionOperations:o,text:c}=e;B(jt(e))&&n({typeForm:"kved",fullName:t,name:l,phone:a,mail:r,partnerComments:`Валютный контроль=${i}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[n]),[,{field:i,...s}]=$(Mt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),_t(i),u(T,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),Bt(i),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Xe(t,"mr-5"),u(me,{link:l})]}),u(T,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(St,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(St,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),zt=x((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[u(St,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(T,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(de,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),Dt={credit:e=>u(gt,{...e}),acquiring:e=>u(Ge,{...e}),"business-card":e=>u(Qe,{...e}),deposit:e=>u(vt,{...e}),wed:e=>u(Vt,{...e})},Lt={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Pt=x((e=>{const{className:t,title:l,typeForm:a="credit",button:i,link:s,...o}=e,[c,d]=n(""),m=r((async e=>{const t=await Lt.send(e)?"OK":"Fail";return d(t),t}),[]);return u(C,{className:w("font-sans bg-white p-default pb-9",t),...o,children:p("div",{className:"container max-w-[978px]",children:[l?u(T,{headingType:"h3",title:l,className:"text-center mb-8"}):null,Dt[a]({button:i,link:s,onSubmit:m}),c?u(zt,{responseType:c}):null]})})})),Ot=x((({className:e="",title:t,benefitList:l,...n})=>p(C,{className:`p-default flex flex-col items-center ${e}`,...n,children:[t?u(T,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?u("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(At)}):null]}))),At=(e,t)=>{const l=e.description;return p("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?u(St,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black",image:e.icon}):null,e?.icon?.src?u(St,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(T,{headingType:"h6",children:e.label}):null,Et(l)]})]},String(t))},Et=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Ut(e):Ft(e)}):null},Ft=e=>e?.name||null,Ut=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Ht=(e,{className:t="",buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",n?"flex-col gap-2":"gap-4",t),children:e.map(Xt(l))}):null,Xt=(e="")=>(t,l)=>{const{text:n,icon:a,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return n||a?.icon?u(ie,{className:e,appendLeft:Wt({...a,iconVersion:c}),appendRight:Wt({...r,iconVersion:c}),version:i,text:n,...s},l?String(l):""):null},Wt=e=>e?.icon||e?.src?u(St,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Kt={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionStyle:"mt-5"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light",descriptionStyle:"mt-4"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light",descriptionStyle:"mt-4"},M:{title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light",descriptionStyle:"mt-3"},S:{title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light",descriptionStyle:"mt-2"},XS:{title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light",descriptionStyle:"mt-2"}},Gt={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Jt=x((({className:e,title:t,description:l,headlineVersion:n="XL",align:a="text-center",as:r,isPadding:i=!0,isTheme:s=!1,version:o="",...c})=>{const d=Kt[n],m=i?"p-default":"",h={marginTop:d.descriptionStyle};return p(C,{className:w(m,e),version:o,isTheme:s,...c,children:[t?u(T,{className:w("whitespace-pre-wrap",a),...d?.title,as:r||d?.title.as,title:t}):null,l?u(ce,{size:d.descriptionSize,align:a,...h,children:l}):null]})})),Yt=x((e=>{const{className:t="",title:l,description:n,bonusItems:a,...r}=e;return u(C,{className:`p-default pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(Jt,{className:"!p-0",title:l,description:n,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u(de,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-2",children:u(ce,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[Ht(e?.buttons),e.bonusItemContent?.bonusType?qt(e.bonusItemContent):null]})]},String(t)))):null})]})})})),qt=e=>u("div",{children:"count"===e.bonusType?Zt(e):Qt(e)}),Zt=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Qt=e=>e.image?u(St,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,el={left:"text-left",center:"text-center",right:"text-right"},tl=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:a,title:r,...i})=>p(C,{className:`font-sans text-primary-text bg-white p-default flex flex-col text-center ${l}`,...i,children:[u(Jt,{className:"!p-0 mb-8",title:r,description:a,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${el[t]} ${nl(n)}`,children:e.map(ll)}):null]}))),ll=({icon:e,title:t,description:l},n)=>p("div",{className:w("flex flex-col items-center text-h6",l||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(St,{image:e,height:"180",className:"w-auto"}):null,l?u("span",{children:l}):null]},String(n)),nl=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},al=x((e=>{const{title:t,image:l,cardItems:n,button:a}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[l?p("div",{className:"flex justify-center",children:[l?.src?u(St,{className:"mb-5",image:l}):null,l?.icon?u(St,{image:l}):null]}):null,t?u(T,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?u("ul",{children:n.map(((e,t)=>rl(e,String(t))))}):null,Ht([a],{buttonClassName:"mt-6"})]})})),rl=(e,t)=>{const{icon:l,text:n}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?u(St,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider"}):null,l?.src?u(St,{image:l}):null,u("span",{className:"text-xl-light",children:n})]},t)},il=x((({className:e="",title:t,cards:l,...n})=>p(C,{className:`p-default pb-9 ${e}`,...n,children:[u(T,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>u(al,{...e},String(t)))):null})]}))),sl=x((({button:e,className:t,...l})=>u(C,{className:w("!bg-transparent",t),...l,children:Ht([e])}))),ol=e=>{const{itemCount:t,visibleItemCount:l}=e,[a,i]=n(0),s=r((()=>i((e=>Math.min(e+1,t-1)))),[t]),o=r((()=>i((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(l||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const cl=x((({className:e,disabled:t,...l})=>u(ie,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:u(St,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),dl=x((e=>u(cl,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),ml=x((e=>u(cl,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function hl({dec:e,inc:t,canDec:l,canInc:n,btnClass:a,className:r=""}){return l||n?p("div",{children:[l?u(cl,{className:`absolute z-40 ${a[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?u(cl,{className:`absolute z-40 rotate-180 ${a[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const ul=x((({title:e,value:t,postfix:l="",prefix:n,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(de,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(de,{size:"text-h3",children:[n," ",rt(Math.round(t))," ",l]})}:{children:u(de,{size:"text-h3",children:"-"})})]}))),pl=Math.round(23.5),xl={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},gl={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},bl={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},fl={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},vl=x((({rate:e,title:t="Ставка",unit:l,depositeName:n,isShowDepositeName:a,rateBlockClassName:r,fractionDigits:i=2})=>p("div",{children:[u(de,{size:"text-l-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start gradient-color-text",children:[u("span",{className:w("font-mohave text-title-huge pr-6 -mt-4",r),children:String(e.toFixed(i)).replace(".",",")}),l?u("span",{className:"text-7xl",children:l}):null]}),n&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:n}):null]})]}))),Nl=e=>e?u(ce,{size:"text-s-light",color:"text-secondary-text",children:e}):null;function yl({isShowItems:e=!0,step:t=1e3,...l}){const n=[`От ${rt(l.min||0)} ₽`,`До ${rt(l.max||0)} ₽`];return u(ct,{items:e?n:[],step:t,...l})}function wl(e){const{data:t}=j(`/wcms-resources/${e}.json`,D);return t}const kl=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,a=wl(t||"bonus-calculator-data")||gl,[r,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:a,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),r)*(12-i)]})(a,l,n);return{...a,...e,monthBonus:r,yearBonus:i}},Cl=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:n})=>{const[a,{field:r}]=$({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:i,maxSumTravel:s,minSumOther:o,maxSumOther:c,monthBonus:d,yearBonus:m}=kl(a,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[yl({title:"Сумма покупок в категории путешествия, ₽",min:i,max:s,step:500,isShowItems:!1,...r("travelExpenseValue")}),yl({title:"Сумма покупок в остальных категориях, ₽",className:"mt-7",min:o,max:c,step:500,isShowItems:!1,...r("restExpenseValue")})]}),u("div",{children:d>=0?u(vl,{title:"Баллов за месяц",rate:d,rateBlockClassName:"tracking-[-14px]",fractionDigits:0}):null}),p("div",{className:"w-full max-w-[350px]",children:[m>=0?u(ul,{title:"Баллов за год",value:m}):null,Ht(l,{className:"mt-7",isVertical:!0}),Nl(n)]})]})})),Sl=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,Il={horizontal:"gap-10",vertical:"flex-col gap-3"},Tl=x((({items:e,checkedItem:t,onChange:l,orientation:n="horizontal"})=>u("div",{className:`flex ${Il[n]}`,children:e?.map((({id:e,text:n})=>u($t,{isRadio:!0,text:n,value:t===e,onChange:()=>l&&l(e)},String(e))))}))),$l=({items:e,title:t,orientation:l="horizontal",value:n,onChange:a})=>p("div",{children:[t?u("div",{className:"mb-3",children:u(de,{color:"text-secondary-text",font:"font-light",children:t})}):null,u(Tl,{orientation:l,items:e,checkedItem:e[n?0:1].id,onChange:t=>a&&a(t===e[0].id)})]}),Rl=e=>$l({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),Bl=x((({title:e="Ставка"})=>p("div",{children:[u(de,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(Ve,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-[250px] mt-3.5",children:p(ce,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),_l=e=>e,Ml=(e=_l)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),jl=Ml(),Vl=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let l=1;for(;l<t.length;){const[e,n]=t[l-1],[a,r]=t[l];n>=a?t.splice(l-1,2,[e,Math.max(n,r)]):l++}return t},zl=(e=_l)=>Ml((t=>-e(t))),Dl=([e,t],l,n=[])=>l&&l[e]&&l[t]?{[e]:l[e],[t]:l[t]}:Ll([e,t],n),Ll=([e,t],l=[])=>({[e]:l.length?zl()(l.filter((t=>t[e])).map((t=>t[e]))):0,[t]:l.length?Ml()(l.filter((e=>e[t])).map((e=>e[t]))):0}),Pl=(e,[t,l],n)=>e>=n[t]&&e<=n[l],Ol=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Al=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,daysValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a/30)-n):Math.round(n*e*a/365/100)},El=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n,bottomFootnote:a,isShowDepositeName:r})=>{const[i,{field:s}]=$({moneyValue:1e5,daysValue:90,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,isMonthlyInterestPayment:!1}),o=((e,t)=>{const{daysValue:l,moneyValue:n,isPartialWithdrawal:a,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=wl(t||"business-calculator-data"),c=r||a,d=l<90||l>730;if(l<=30)return{...fl,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&Ol(c,e)&&Pl(n,["minSum","maxSum"],e)&&Pl(l,["minDays","maxDays"],e)))||fl,{rate:h}=m,u=Al(h,e),p=n+u,x=o?.rateRows||[fl];return{...m,...Ll(["minSum","maxSum"],x),...Ll(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})(i,t),{income:c,finalSum:d,rate:m,depositeName:h,isShowUnknownRate:x}=o;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[yl({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),(g={title:"Срок вклада, дни",min:o.minDays,max:o.maxDays,...s("daysValue"),value:o.daysValue},u(ct,{className:"mt-7",items:[`От ${Sl(g.min||0)}`,`До ${Sl(g.max||0)}`],step:1,...g})),p("div",{className:"mt-7 flex justify-between",children:[Fl(o,s),Rl({title:"Выплата процентов",orientation:"vertical",...s("isMonthlyInterestPayment")})]})]}),x?u(Bl,{}):u(vl,{rate:m,depositeName:h,isShowDepositeName:r,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(ul,{title:"Доход по вкладу",value:c,postfix:"₽",prefix:"+"}),u(ul,{title:"Сумма в конце срока",value:d,postfix:"₽"}),Ht(l,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:Nl(n)})]})]}),u("div",{className:"mt-5",children:Nl(a)})]});var g})),Fl=(e,t)=>p("div",{children:[u($t,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),u($t,{className:"mt-3",disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal}),u($t,{className:"mt-3",text:"Являюсь малым предприятием",...t("isSmallBusiness"),value:e.isSmallBusiness})]}),Ul=({min:e=0,max:t=0,availableMonths:l,...n})=>u(ct,{className:"mt-7",items:[`От ${Hl(e)}`,`До ${Hl(t)}`],step:1,...l?.length?{list:l}:{min:e,max:t},...n}),Hl=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,Xl=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,r=wl(t||"credit-calculator-data"),s=r?.limitRows?.find((t=>Wl({row:t,userInputParams:e,paramsViewSettings:l}))),o=r?.rateRows?.find((t=>Wl({row:t,userInputParams:e,paramsViewSettings:l})&&Pl(n,["minSum","maxSum"],t)&&Pl(a,["minMonths","maxMonths"],t)))||xl,{rate:c}=o,d=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:a}=t;if(0===e)return 0;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,a)-1))}return Math.round(n/a)+n*(e/1200)})(c,e),m=r?.rateRows||[xl];return i((()=>({...o,...Dl(["minSum","maxSum"],s,m),...Dl(["minMonths","maxMonths"],s,m),...e,monthlyPayment:d})),[e])},Wl=e=>Kl({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Kl({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&Kl({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&Kl({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),Kl=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],Gl=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:a})=>{const[r,{field:i}]=$({isAnnuity:!1,isInsurance:!0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,moneyValue:2e5,monthsValue:pl}),s=Xl(r,t,a);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[yl({title:"Сумма кредита, ₽",step:500,min:s.minSum,max:s.maxSum,...i("moneyValue"),value:s.moneyValue}),Ul({title:"Срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...i("monthsValue"),value:s.monthsValue}),u("div",{className:"mt-7",children:Jl({...s,...a},i)})]}),u(vl,{title:"Ставка",rate:s.rate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(ul,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),(o={orientation:"vertical",...i("isAnnuity")},$l({...o,items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]})),Ht(l,{className:"mt-7",isVertical:!0}),Nl(n)]})]});var o})),Jl=(e,t)=>p("div",{children:[e.isShowSalaryClient?u($t,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowStateEmployee?u($t,{className:"mt-3",text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?u($t,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?u($t,{className:"mt-3",text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),Yl=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,r=wl(t||"deposit-calculator-data"),i=r?.rateRows?.[0]?Ql(r.rateRows[0].minMonths,r.rateRows[0].maxMonths):1,s=!l?.isShowMonthlyInterestPayment,o=!l?.isShowRemoteRegistration,c=r?.rateRows?.find((t=>Zl({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&Zl({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Pl(n,["minSum","maxSum"],t)&&Pl(a||i,["minMonths","maxMonths"],t)))||bl,{rate:d}=c,m=ql(d,e),h=n+m,u=r?.rateRows||[bl];return{...c,...Ll(["minSum","maxSum"],u),...Ll(["minMonths","maxMonths"],u),availableMonths:Vl(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,l=1)=>Array.from({length:Math.abs(t-e)/l+1},((n,a)=>t>=e?e+a*l:e-a*l)))(e,t))),...e,defaultMonth:i,income:m,finalSum:h}},ql=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a)-n):Math.round(n*e*30*a/365/100)},Zl=({row:e,userInputParams:t,paramKey:l,isExclude:n})=>n||t[l]===e[l],Ql=(e,t)=>e+Math.round((t-e)/2),en=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:r})=>{const[i,{field:s}]=$({moneyValue:2e4,monthsValue:0,isMonthlyInterestPayment:!1,isRemoteRegistration:!1}),o=Yl(i,t,r),{defaultMonth:c,income:d,finalSum:m,rate:h}=o,{onChange:x}=s("monthsValue");return a((()=>{x&&x(c)}),[c]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[yl({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),Ul({title:"Срок вклада, месяцев",min:o.minMonths,max:o.maxMonths,availableMonths:o.availableMonths,...s("monthsValue"),value:o.monthsValue}),u("div",{className:"mt-7",children:tn({...o,...r},s)})]}),u(vl,{rate:h,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(ul,{title:"Доход по вкладу",value:d,postfix:"₽",prefix:"+"}),u(ul,{title:"Сумма в конце срока",value:m,postfix:"₽"}),Ht(l,{className:"mt-7",isVertical:!0}),Nl(n)]})]})})),tn=(e,t)=>{return p("div",{className:"flex flex-col gap-y-7",children:[e.isShowMonthlyInterestPayment?Rl({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment}):null,e.isShowRemoteRegistration?(l={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration},$l({...l,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]});var l},ln={CreditCalculatorForm:Gl,DepositCalculatorForm:en,BusinessDepositCalculatorForm:El,BonusCalculatorForm:Cl},nn=(e,t)=>{const l=e?.calcType;if(!l||!(l in ln))return null;const n=ln[l];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(T,{className:"text-center mb-6",title:e.title}):null,u(n,{...e})]})},String(t))},an=x((({className:e="",calculatorTabs:t=[],...l})=>{const a=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=r((e=>o(e)),[]),[d,m]=ol({itemCount:t?.length,visibleItemCount:3});return p(C,{className:w("box-border overflow-hidden relative w-100",e),...l,children:[p("div",{className:"bg-white",children:[a.length>1?rn({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,hl({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(nn):null})]})}));function rn({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const a=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",r=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return p("button",{type:"button",onClick:n,"aria-label":e?.title,className:w("box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]",a),children:[u(St,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:r,children:e?.title}),u("div",{className:i,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const sn=e=>e.replace(/\s/g,""),on=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,cn=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},dn=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),mn=x((({className:e="",value:t="",onChange:l,minValue:n=0,maxValue:a=3e5,...i})=>{const s=r((e=>{const t=on(cn(dn(sn(e))));const r=hn(t,it(Number(t),n,a));l&&l(r)}),[l]),o=r((()=>{var e;l&&l((e=t,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(sn(e))).replace(",",".")))}),[l,t]);return u(ue,{className:e,inputClassName:"w-full",value:t,onChange:s,onBlur:o,...i,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),hn=(e,t)=>Number(e)===t?e:String(t),un=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:a="1500",button:i,...s})=>{const[o,c]=n(""),d=r((e=>c(e)),[]),m=!Number(sn(o)),h=m?ae({version:i?.version}):re({className:"text-white",version:i?.version}),x=J();return p(C,{className:`p-default flex flex-col items-center ${e}`,...s,children:[t?u(T,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,p("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(mn,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:a,label:l}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),pn=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),xn=[];function gn(e,t,{className:l,...n}={}){const{key:a,blockDecorator:r=pn,blocksRegistry:i={},ancestors:s=xn}=t,{type:o}=e;o&&o in i||console.warn(`No block with "${o}" is registered`);const c=o&&i[o];return r({blockClassName:w("scroll-mt-12",l,e.style||"col-span-12"),block:e,ancestors:s,render:({block:l,blockClassName:r})=>{const{content:i}=l;return c?u(c,{className:r,block:e,options:t,...i,...n},a):null}},a)}const bn=[],fn=(e,{key:t,ancestors:l=bn,slotName:n=null,renderProps:a=gn,...r})=>(e||[]).map(((e,i)=>a(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...l||bn,[r.parent,n]]:l})));function vn({children:e,block:t,options:l,renderProps:n}){return e||(t&&l?fn(t.blocks,{...l,parent:t,renderProps:n}):null)}const Nn=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),yn=x((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:a,children:i,onIntersection:s})=>{const o=v(r((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===n),ref:o,children:i})})),wn=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],kn=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:a=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),b=r(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),p&&p(Sn(l))}),[h,p]),f=n>0?a*Number(n)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?Cn(i,f):{},...v?Nn(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:y,ref:t,children:(k=(e,t)=>u(yn,{className:w(c,n?wn[n-1]:"",v?"h-full":""),style:N?Cn(i/4):{},activeIndex:l,idx:t,observerOptions:x,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),Cn=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Sn=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),In={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Tn={"horizontal-list":"w-6","vertical-list":"h-6"},$n=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list",version:a})=>l?u("div",{className:w("flex gap-2",In[n],a?"group":""),...a?{"data-ver":a}:{},children:new Array(l).fill(null).map(((l,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Tn[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(l=>{l!==t&&e?.current&&e.current.children[l]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),Rn=e=>t=>e.scrollWidth/t,Bn=e=>(t,l)=>{e.scrollBy({left:l*Rn(e)(t),behavior:"smooth"})},_n=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const a=s(null),[i,o]=n([]),c=r((e=>{o((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),l&&l(e)}),[e]),[d,m]=i.length?[zl()(i),Ml()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var l;a.current&&(t&&!h?(l=a.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):Bn(a.current)(e,-1))}),[t,e,h]),x=r((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):Bn(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Mn="absolute top-[calc(50%-24px)] z-40",jn="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Vn=x((({scroll:e,arrowsPadded:t,isBlur:l,onScrollLeft:n,onScrollRight:a,hasEdgeBlocks:i,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=i?s>0:c,g=i?s<o-1:d,b=r((()=>{i?(c&&s!==o-1&&m(),n()):m()}),[m,n,i,c,s,o]),f=r((()=>{i?(d&&0!==s&&h(),a()):h()}),[h,a,i,c,s,o]);return p("div",{children:[zn(l,e),x?u(dl,{className:w(Mn,t?"left-8":"left-0"),onClick:b}):null,g?u(ml,{className:w(Mn,t?"right-8":"right-0"),onClick:f}):null]})})),zn=(e,t)=>e?p("div",{children:[t.canScrollLeft?u("div",{className:w(jn,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(jn,"right-0 bg-opacity-to-white")}):null]}):null,Dn=x((({className:e="",itemCount:t,visibleItemCount:l,isBlur:a=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},x=t||h?.length,[g,b]=n(Math.floor((l||0)/2)),f=r((()=>b((e=>e+1))),[]),v=r((()=>b((e=>e-1))),[]),[N,y]=_n({itemCount:x,isCyclic:i}),[k]=y.visibleIndicesRange,S=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(C,{className:w(Ln(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...m,children:p("div",{className:w(Pn(d),"relative max-w-full"),children:[u(kn,{containerRef:N,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:y.handleVisibleIndicesChange,children:vn({...m,renderProps:S?(e,t)=>gn(e,t,{blocksLength:h?.length,activeIndex:g}):gn})}),u(Vn,{scroll:y,isBlur:a,arrowsPadded:s,onScrollLeft:v,onScrollRight:f,hasEdgeBlocks:S,activeIndex:g,itemCount:x}),c?On(N,k,x):null]})})}));Dn.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Ln=e=>e?"p-default":"",Pn=e=>e?"flex justify-center":"",On=(e,t,l)=>u($n,{containerRef:e,activeIndex:t,dotCount:l,listType:"horizontal-list"}),An=x((({title:e,description:t,blocksLength:l=0,activeIndex:n,options:a})=>{const r=Number(a?.key?.split("-").slice(-1)[0])||0;return u(C,{className:"flex h-[485px]",children:u("div",r===n?{className:"relative flex items-center w-full",children:u(Jt,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue",Un(r,l),En(r))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",En(r)),children:u("span",{className:Fn(r),children:e})})})})})),En=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},Fn=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},Un=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",Hn="absolute border border-solid border-gray w-full h-full",Xn={normal:"min-w-[970px]",small:"min-w-[355px]"},Wn=x((({className:e="",button:t,description:l,title:n,carouselVersion:a="normal",version:r=""})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${Xn[a]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${Hn} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${Hn} z-10 top-6 right-8 bg-green`}),u("div",{className:`${Hn} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(Jt,{className:"!p-0",title:n,description:l,headlineVersion:"L",align:"text-left",version:r}),Ht([t],{className:"mt-14"})]})]})}))),Kn={black:"bg-black",white:"bg-white"},Gn=x((({className:e="",title:t,description:l,image:n,price:a,button:r,colors:i,...s})=>p(C,{className:`border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${e}`,...s,children:[n?.src?u(St,{className:"mb-5 flex justify-center",image:n}):null,t?u(T,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?u("div",{className:"mb-4",children:u(ce,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,i?.length?p("div",{className:"flex mb-4 text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(de,{size:"text-s",align:"text-left",font:"font-light",children:"Доступные цвета:"})}),i.map(Jn)]}):null,a?p(de,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Ht([r],{buttonClassName:"mt-5 w-full"})]}))),Jn=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Kn[e]}`},String(t)),Yn=x((({className:e="",href:t,target:l,isRemote:n=!1,children:a})=>{const r=J({isRemote:n})({href:t,target:l});return u(t?"a":"div",{className:w("block",e),...t?r:{},children:a})})),qn=x((({className:e="",icon:t,title:l,description:n,href:a,target:r,...i})=>u(C,{className:w("w-[365px]",e),...i,children:p(Yn,{className:"flex flex-col",href:a,target:r,children:[t?.icon?u(St,{image:t}):null,t?.src?u(St,{image:t}):null,l?u(T,{headingType:"h6",as:"h4",className:"text-left pt-3 mb-2",title:l}):null,n?u("div",{className:"mb-4",children:u(de,{font:"font-light",size:"text-m",color:"text-secondary-text",children:n})}):null]})}))),Zn=x((({className:e="",title:t="",buttons:l,image:n,children:a})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:a}),l?u("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]}))),Qn={1:"flex-col",2:"gap-x-10 flex-wrap"},ea=x((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:n=1,description:a,image:r,title:i,...s})=>{const o=i?u(T,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?u(St,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return u(C,{className:["relative box-border text-left p-9 w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",l].join(" "),...s,children:p(Zn,{title:o,image:c,children:[p("div",{className:"flex justify-between mb-4",children:[a?u("div",{className:"w-1/3",children:u(de,{size:"text-h6",children:a})}):null,e?u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?u("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${Qn[n]}`,children:ta(t,n)}):null]})})})),ta=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(de,{size:(n=t,1===n?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),la="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",na=x((({text:e,href:t="",target:l="",className:n=""})=>{const a=J()({href:t,target:l});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${n}`,children:[p("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(St,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:`${la} mx-1.5 mt-1.5`}),u("div",{className:`${la} mt-3 mr-3`})]}):null})),aa=x((({className:e="",additionalDescription:t,description:l,links:n,title:a,...r})=>p(C,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,...r,children:[p("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[u(Jt,{isPadding:!1,title:a,description:l,as:"h1",align:"text-left"}),t?u(Jt,{className:"pt-6",isPadding:!1,description:t,align:"text-left"}):null]}),n?.length?ra(n):null]}))),ra=e=>{const t=Math.ceil(e.length/10);return u(Dn,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,l)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*l,10*(l+1)).map(((e,t)=>u(na,{className:"m-1",...e},String(t))))},String(l))))})},ia={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},sa=x((({className:e="",isDotted:t=!0,children:l,size:n="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${ia[n]}`})}):null,u("span",{children:l})]}))),oa={S:"text-l-light",M:"text-h6",L:"text-h5"},ca={S:"ml-2",M:"ml-3",L:"ml-4"},da=x((({className:e="",hasIndent:t,isDotted:l,itemClassName:n="",items:a,listItemSize:r="M"})=>a?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${oa[r]} ${t?ca[r]:""} ${e}`,role:"list",children:a.map(((e,t)=>u(sa,{className:n,isDotted:l,size:r,children:e},String(t))))}):null)),ma=x((({additionalDescription:e,align:t="text-center",button:l={},className:n="",description:a,headlineSmallVersion:r="H6",href:i,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...x})=>p(C,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,n),version:u,...x,children:[p(Yn,{className:"p-6",href:i,target:m,children:[ha(s),ua(r,h),pa(a,h),ga(d,o,u),xa(e)]}),Ht([l],{className:w("p-6 pt-0",c?"":"self-center min-w-[158px]"),isVertical:c})]}))),ha=e=>p("div",{className:"flex justify-center",children:[e?.src?u(St,{className:"mb-5",image:e}):null,e?.icon?u(St,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e}):null]}),ua=(e,t)=>t?u("div",{children:u(de,{size:Gt[e],children:t})}):null,pa=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(ce,{size:"text-l",children:e})}):null,xa=e=>e?u("div",{className:"mt-auto",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,ga=(e,t,l="primary")=>e?.length?u(da,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,ba=x((({className:e="",title:t,icon:l,list:n=[],href:a,target:r,...i})=>u(C,{className:w("border border-gray",e),...i,children:p(Yn,{className:"flex",href:a,target:r,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?u(St,{image:l}):null,l?.src?u(St,{image:l}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(T,{className:"mb-3.5",headingType:"h5",title:t}):null,n.length?u("div",{className:"flex flex-col gap-3",children:n?.map(fa)}):null]})]})}))),fa=(e,t)=>p("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),va=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],Na={default:"w-14 h-14",small:"w-12 h-12"},ya=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${Na[t]}`,wa=x((({buttonSize:e="default",rounded:t=!1,icon:l,...n})=>{const{href:a,version:r,text:i=""}=n,{iconMapped:s,label:o}=va.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=ka(l)??s;return u(ie,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",ya(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...n,children:c&&!i?u(St,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),ka=e=>e?.src||e?.icon?e:void 0,Ca=x((({className:e="",media:t,children:l,buttonSize:n})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(wa,{buttonSize:n,...e},String(t))))}),u(de,{size:"text-s-light",color:"text-secondary-text",children:l})]}))),Sa=x((({className:e="",description:t,href:l,icon:n,items:a=[],socialMedia:r=[],target:i,title:s,align:o="text-left",version:c="primary",...d})=>u(C,{className:w("relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),version:c,...d,children:p(Yn,{href:l,target:i,children:[u(Jt,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(da,{className:"flex flex-col gap-2",itemClassName:"text-l-light",items:a}):null,r.length?u(Ca,{className:"pt-10",media:r}):null]}),Ia(n)]})}))),Ia=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(St,{image:e}):null,e?.src?u(St,{image:e}):null]}),Ta=x((e=>{const{__html:t="",richVersion:l=""}=e;return u("div",{className:w(l,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),$a=x((({className:e="",__html:t,richVersion:l="striped",...n})=>u(C,{className:w("p-9 border border-gray h-full min-w-96",e),...n,children:u(Ta,{__html:t,richVersion:l})}))),Ra=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:a,renderFoldButton:i})=>{const[s,o]=n(l),c=r((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Ba=x((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return a((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),_a=e=>e?"p-8 mt-8 pt-20":"p-8 mt-20",Ma=(e,t)=>{const{title:l,description:n,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[l?u("div",{className:"opacity-80",children:u(de,{size:"text-m",color:"text-secondary-text",children:l})}):null,n?u("div",{className:"mt-1",children:u(de,{size:"text-h6",color:"text-primary-text",children:n})}):null,a?.length?u("div",{className:"text-primary-main",children:Ht(a)}):null]},String(t))},ja=x((({className:e="",title:t,icon:l,isHighlighting:n=!1,button:a,cardCells:r=[],...i})=>{const s=r.map(Ma),o=s.slice(0,1),c=s.slice(1);return p(C,{className:w("relative border border-gray flex flex-col",_a(n),e),...i,children:[n?Da():null,Va(l),t?u(T,{className:"text-center pt-2",headingType:"h5",title:t}):null,a?u(ie,{className:"w-full mt-4",...a}):null,r.length?u(Ra,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(Ba,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?za:null}):null]})})),Va=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(St,{image:e}):null}),za=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(Ve,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Da=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(Ve,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(ce,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),La="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Pa="border-gray border-solid border",Oa="border-main-divider border border-t-0 border-x-0",Aa="w-[200px] mr-6",Ea=x((({icon:e,image:t,title:l,link:n})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Pa} ${La}`,role:"columnheader",children:[e&&!t?.src&&u(St,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&u(St,{className:"mb-[18px]",image:t}),l?u(T,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&u("div",{className:"mt-auto w-full",children:u(ie,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),Fa={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Ua=x((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:Fa[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),Ha=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),Xa=x((({colHeaders:e,activeIndex:t})=>p(Ha,{children:[u("div",{className:Aa,role:"columnheader"}),u(Ua,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(Ea,{...e},String(t))))})]}))),Wa=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>u("div",{className:`w-80 box-border flex flex-col ${Pa} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?La:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${Oa} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Ja(e,t,n)))})}))),Ka=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),Ga=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Ja=({label:e,description:t},l,n)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:Ka(n),children:e}):null,t?u("div",{className:Ga(n),children:t}):null]},String(l)),Ya=(e=!1)=>`text-s py-7 ${Oa} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,qa=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:a,isLastRow:r})=>p(Ha,{children:[e?.title?u("div",{className:Ya(r),children:e.title}):null,t?.length?u(Ua,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(Wa,{cell:e,isFirstRow:a,isLastRow:r,isFillGradient:n&&0===t},String(t))))}):null]}))),Za=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:a}=n;return p("div",{className:"relative",children:[e.map(((e,n,{length:a})=>u(qa,{row:e,isFirstRow:0===n,isLastRow:n+1===a,activeIndex:l,isColoredFirstColumn:t},String(n)))),a?hl({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Qa=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:a})=>{const r=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=ol({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[r?.length?u(Xa,{colHeaders:r,activeIndex:o}):null,s?.length?u(Za,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),er=x((({className:e="",title:t,rowHeaders:l,columns:a,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),m=r((()=>d((e=>!e))),[]);return p(C,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[u(T,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(Qa,{columns:a,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?tr({isShowAllRow:c,onClick:m}):null]})})),tr=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:Aa}),u("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),lr=x((({className:e="",contacts:t,info:l,version:n="secondary",...a})=>p(C,{className:`flex p-default ${e}`,version:n,...a,children:[l?.length?nr(l):null,t?.length?nr(t):null]}))),nr=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>ar({column:e,index:t})))}),ar=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},a)=>p("div",{className:"mt-6 first:mt-0",children:[u(Jt,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?u("div",{className:"mt-1.5 opacity-80",children:u(ce,{size:"text-m",font:"font-light",children:l})}):null,n?u(ie,{className:"mt-6",...n}):null]},String(a))))},`col-${String(t)}`):null,rr=e=>"Image"===e?.errorContentType&&e?.image?u(St,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,ir=x((({className:e="",title:t,subtitle:l,error:n,button:a,...r})=>{return p(C,{className:w("flex flex-col justify-center items-center",(i=a?.text,i?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),e),version:"transparent",...r,children:[u("div",{className:"flex justify-center py-20",children:rr(n)}),t?u(T,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?u("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,a?.text?u(ie,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var i}));var sr;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(sr||(sr={}));const or={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},cr=e=>e?hr.format(e):"",dr=(e,t)=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:cr(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:cr(t)})]}),mr=(e,t="")=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:cr(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),hr=new Intl.NumberFormat("ru",{style:"currency",currency:sr.RUB}),ur=e=>u("th",{className:"pl-11",children:u(de,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:e})}),pr=x((({className:e="",currencies:t=[],actuality:l="",officeName:n="",...a})=>{const r=xr(t,4);return p(C,{className:w("font-sans text-primary-text py-10 bg-white",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between mx-10 mb-8",children:[u(T,{headingType:"h4",title:"Курс обмена валют в "+n,className:"whitespace-pre-wrap text-h4 mb-5"}),u("div",{className:"pl-11",children:u(de,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:l})})]}),u("div",{className:"flex flex-row ml-8 mr-14 pt-4 text-left",children:r.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(de,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),ur("Купить"),ur("Продать"),ur("Лучшая покупка"),ur("Лучшая продажа")]})}),u("tbody",{children:r.map((e=>(({title:e,buyPrice:t,buyDifference:l,sellPrice:n,sellDifference:a,buyOfficeName:r,sellOfficeName:i})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(St,{image:{icon:or[e]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:e})]})}),dr(t,l),dr(n,a),mr(t,r),mr(n,i)]},e))(e)))})]}):null})]})})),xr=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var gr;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(gr||(gr={}));const br=new Intl.NumberFormat("ru",{style:"currency",currency:gr.RUB}),fr=e=>e?br.format(e):"",vr="text-left text-m-light text-secondary-text",Nr=`${vr} pl-11`,yr={USD:"DollarIcon",EUR:"EuroIcon"},wr=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:vr,children:"Валюта"}),u("th",{className:Nr,children:"Купить"}),u("th",{className:Nr,children:"Продать"})]})}),u("tbody",{children:t.map(kr)})]}))),kr=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[t?u(St,{image:{icon:yr[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:fr(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:fr(e?.buyExchangeRate)})]},t)},Cr=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(St,{image:{icon:"GpsIcon"},width:"24",height:"24"}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Sr=(e,t,l)=>{const n=Number(Ir(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},Ir=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Tr=e=>{return(t=[[e=>e.value!==gr.RUB&&e.oppositeValue!==gr.RUB,()=>e.handleConvert(e.value,gr.RUB)],[e=>e.value===gr.RUB&&e.oppositeValue===gr.RUB,()=>e.handleConvert(e.value,gr.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function $r(e){const{placeholder:t,rates:l,selected:n,value:a,setValue:r,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return p("div",{className:"relative flex",children:[u(ue,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:r}),s.length?u(Le,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Rr=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:a})=>{const[i,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||gr.RUB,selectBuy:l?.[0]?.currency?.currency||gr.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[$r({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:Br(i,o,l),value:i.inputSell,setValue:e=>Mr(o,l)(e,i.selectSell,i.selectBuy)}),$r({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:_r(i,o,t),value:i.inputBuy,setValue:e=>jr(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?u(ie,{className:"py-4 mr-1",version:a?.version,...a,children:a.text}):null]})})),Br=(e,t,l)=>n=>{t({selectSell:n}),Tr({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,a=e.selectBuy)=>{Mr(t,l)(e.inputSell,n,a)}})},_r=(e,t,l)=>n=>{t({selectBuy:n}),Tr({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,a=e.selectSell)=>jr(t,l)(e.inputBuy,n,a)})},Mr=(e,t)=>(l,n,a)=>{e({inputSell:Ir(l),selectBuy:a});const r=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;r&&e({inputBuy:String(Sr(l,r,n===gr.RUB)||"")})},jr=(e,t)=>(l,n,a)=>{e({inputBuy:Ir(l),selectSell:a});const r=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;r&&e({inputSell:String(Sr(l,r,n===gr.RUB)||"")})};const Vr=async e=>{const t=await zr(),l=t?.code||"000";return{region:t,exchangeRates:await Dr(e,l)}},zr=async()=>{try{return await D("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Dr=async(e,t)=>{try{return await D(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Lr=x((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:a}=function(){const{data:e}=j("/api/v1/exchangerates",Vr);return e||{}}(),r=Pr(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:gr.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:gr.RUB}}),u(C,{className:`p-9 box-border min-h-80 ${e}`,...n,children:u(Zn,{title:u(T,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:p("div",{className:"flex",children:[p("div",{className:"mr-14 pt-4",children:[r?u(wr,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(Cr,{address:a?.address})]}),r.length&&i.length&&s.length?u(Rr,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Pr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],Or=x((({className:e="",label:t,icon:l,dataTheme:n="",disabled:a=!1,onClick:r})=>p("button",{className:w("flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:a,"data-theme":n,children:[u("span",{className:"text-h4 pr-3",children:t}),l?u(St,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Ar=({isUnfolded:e,onToggle:t})=>u(Or,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Er=["ArrowDownIcon","ArrowUpIcon"],Fr="grid grid-cols-12 gap-1 border-box",Ur=x((({label:e="",filtrationState:t={},topItemsCount:l=0,block:n,notFound:a,...r})=>{const i=n?.blocks?.filter((e=>((e,t)=>Object.entries(e).map((([t,l])=>Array.isArray(l)?((e,t)=>l=>void 0===t[e]||t[e]?.every((t=>l[e]?.includes(t))))(t,e):((e,t)=>l=>void 0===t[e]||t[e]===l[e])(t,e))).every((e=>e(t))))(t,e.content||{})))||[],[s,o]=l>0?[i.slice(0,l),i.slice(l)]:[i,[]];return p("div",{children:[u("div",{className:w(i.length?"hidden":"block"),children:a?Hr(a):null}),p("div",{className:w(i.length?"":"hidden"),children:[u("div",{className:w("mb-1",Fr),children:fn(s,{...r.options,parent:n})}),u(Ra,{renderFoldableSection:({isUnfolded:e})=>u(Ba,{className:w(Fr,e?"mb-1":""),isUnfolded:e,children:fn(o,{...r.options,parent:n})}),renderFoldButton:({isUnfolded:t,onToggle:n})=>u(Or,{className:w(l<1?"hidden":""),disabled:!o?.length,label:e,icon:Er[Number(t)],dataTheme:r.options?.page?.colorPalette,onClick:n})})]})]})}));function Hr({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-2",children:u(ce,{align:"text-center",children:u(de,{size:"text-h4",children:e})})}):null,t?u(ce,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const Xr=x((({value:e,onChange:t,items:l=[],multiple:n})=>l.map((l=>u(Ue,{text:l.title,value:[e].flatMap((e=>e)).includes(l.value),onChange:()=>(l=>{if(n){const n=e?.includes(l);t&&t(n?e?.filter((e=>e!==l)):[...e||[],l])}else t&&t(e===l?void 0:l)})(l.value),type:n?"checkbox":"radio"},l.value))))),Wr=(e,t)=>l=>{const n=e[l],a=n?.type;return"array"===a?Kr(l,t)(n):null},Kr=(e,t)=>l=>{const n=l?.items?.enum?.map(((e,t)=>({value:e,title:l?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[l?.title?u("div",{className:"mb-4",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:l.title})}):null,u(Xr,{items:n,multiple:!0,...t(e)})]},e)},Gr={},Jr=x((({className:e,filtrationSchema:t={},resetButton:l,...n})=>{const[a,{field:r,reset:i}]=$(Gr);return p(C,{className:w(e),version:"transparent",...n,children:[p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[u("div",{className:"flex gap-11",children:Object.keys(t).map(Wr(t,r))}),l?u("div",{children:u(ie,{className:"w-72",onClick:i,...l})}):null]}),u(Ur,{filtrationState:a,...n})]})}));function Yr(e,t={}){const{data:l}=j(`/wcms-resources/${e}.json`,D,{fallback:t});return l||{}}Jr.childrenTypes=["ProductTile"],Jr.childSchema=e=>e?.filtrationSchema||{};const qr={"bg-white":"color",transparent:"white"},Zr={"bg-white":"text-primary-main",transparent:"text-white"},Qr=(e,t,l)=>u(St,t?.src?{image:t,className:Zr[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:qr[e]},className:Zr[e],width:l?.width,height:l?.height}),ei={"bg-white":"text-primary-text",transparent:"text-white"},ti=(e,t,l)=>u("span",{className:`${ei[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),li=x((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:a,bgColor:r="bg-white",showTitle:i=!0})=>p("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:a?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[Qr(r,l?.image,{width:"40",height:"45"}),i?ti(n||l?.title,r):null]}))),ni=x((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(St,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function ai(e){throw new Error(e)}function ri({onOpen:e,onClose:t}={}){a((()=>f.subscribe("dialog",(l=>{switch(l.type){case"open":e&&e(l);break;case"close":t&&t();break;default:ai(l)}}))),[e,t])}function ii(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const si=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:n,s2Matches:a}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),n=new Array(e.length),a=new Array(t.length);let r=0;for(let i=0;i<e.length;i++){const s=Math.max(0,i-l),o=Math.min(i+l,t.length-1);for(let l=s;l<=o;l++)n[i]||a[l]||e[i]!==t[l]||(r++,n[i]=!0,a[l]=!0)}return{m:r,s1Matches:n,s2Matches:a}}(e,t);if(0===l)return 0;const r=function(e,t,{s1Matches:l,s2Matches:n}){let a=0;for(let r=0,i=0;r<e.length;r++){if(!l[r])continue;let s=i;for(;s<t.length;s++)if(n[s]){i=s+1;break}e[r]!==t[s]&&a++}return a}(e,t,{s1Matches:n,s2Matches:a}),i=(l/e.length+l/t.length+(l-r/2)/l)/3,s=i>.7?.1*function(e,t){let l=0;for(;e[l]===t[l]&&l<4;)l++;return l}(e,t):0;return i+s*(1-i)};const oi=(e,t)=>(l,n)=>{for(const[a,r]of n)l.set(a,e(l.get(a)||t,r));return l},ci=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),di=e=>t=>e.map((([e,l])=>[si(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>hi(t,e))).reduce(oi(Math.max,0),new Map),mi=e=>t=>{return ii(t,t.map((({title:e})=>e)).map((e=>t=>{const l=ci(t||"");return l.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>jl(l.map(si(e)))))):0})(e))).sort((n=([,e])=>e,l=(e,t)=>n(e)-n(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,n},hi=(e,t)=>new Map(e.map((e=>[e,t]))),ui=({basePathList:e=["/"],initialQuery:t="",wasOpened:l})=>{const[r,s]=n(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=i((()=>e.map((e=>l?e:null))),[l,...e]),{data:c}=j(o,pi),[d,m]=n(null);return((e,t,l=300)=>{a((()=>{const t=setTimeout(e,l);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:l,dictionary:n}=t||{};if(!(e&&l?.length&&n&&Object.keys(n).length))return[];const a=ci(e);if(!a.length)return[];const r=Object.entries(n),i=[...a.map(di(r)).reduce(oi(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>l[e]));return mi(a)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},pi=async(...e)=>(await Promise.allSettled(e.map((e=>z(U(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),xi=x((({className:e,isOpened:t,head:l,children:n,onClose:r})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&r&&r()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[r]),t?u("div",{className:w("fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(ni,{className:"absolute top-10 -right-12",onClick:r}),l]}),n]})}):null)));function gi(e,t=!1){const[l,{setTrue:a,setFalse:i}]=_e(t),[o,c]=n({id:e}),d=s(l);d.current||=l;ri({onOpen:r((t=>{t.id===e?(c(t),a()):i()}),[e]),onClose:i});const m=r((()=>{i(),f.fire("dialog",{type:"close"})}),[]);return{...o,isOpened:l,wasOpened:d.current,onClose:m}}const bi=x((({className:e,topItems:t})=>{const l=J({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(l).map(fi)})})),fi=(e,t)=>{const{text:l,items:n,href:a,target:r,onClick:i}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:r||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>u(vi,{...e,basePath:a,index:t},String(t))))]},String(t))},vi=x((({text:e,index:t,basePath:l,...n})=>{const a=J({isRemote:!(!c.BASE_PATH||!l)&&!c.BASE_PATH.startsWith(l),basePath:l}),{href:r,target:i,onClick:s}=a(n);return u("a",{className:w("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:r,target:i||"_self",onClick:s,children:e||`Раздел ${t}`})})),Ni=x((({className:e,isMobile:t,value:l,autoFocus:n,onChange:a,onFocus:i})=>{const s=r((e=>{a&&a(e.target?.value||"")}),[a]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(St,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",t?"":"h-full"),value:l,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:n,onChange:s,onFocus:i})]})})),yi="search",wi=x((({topItems:e})=>{const t=gi(yi),l=e?.map((e=>e.href||"/")),[n,r]=ui({basePathList:l,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>ki(e)(n)),[e,n]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(xi,{...t,head:u(Ni,{className:"my-5",autoFocus:!0,...r}),children:u(bi,{topItems:s})})})),ki=e=>t=>e?.length&&t?.length?ii(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:U("/",t)})))}))):[];const Ci=x((({className:e,isMobile:t})=>{const[l,a]=n(""),i=r((()=>a("")),[]);ri({onClose:i});const{open:s}=O(yi),o=r((e=>{a(e),Si(e)&&s(e)}),[]);return p("div",{className:e,children:[u(Ni,{isMobile:t,value:l,onChange:o}),t?u(ni,{className:"absolute top-2 right-3",onClick:i}):null]})})),Si=e=>e&&e.length>=3,Ii=x((e=>u(Ci,{...e}))),Ti=x((({className:e="",items:t,hasButton:l})=>p("div",{className:e,children:[t?.length?t.map($i):null,l?u(ie,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),$i=(e,t)=>{const{type:l,text:n,description:a}=e;return p("div",{className:"mb-4",children:[u("div",{children:Ri(l,n)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:a})]},String(t))},Ri=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Bi(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Bi=e=>e.replaceAll(/\D/g,""),_i=x((({className:e="",index:t,text:l,...n})=>{const a=J(),{href:r,target:i,onClick:s}=a(n);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:l||`Документ ${t}`})})),Mi=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(_i,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),ji=x((({className:e="",index:t,...l})=>{const n=J({isRemote:!0}),{href:a,target:r,text:i,onClick:s}=n(l);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:r,onClick:s,children:i||`Документ ${t}`})})),Vi=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-5",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>u(ji,{index:t,...e},String(t))))}):null]}))),zi="w-[204px]",Di=x((({className:e="",...t})=>{const l=t.options?.page?.fallback,n=Yr(c.SITEMAP||"sitemap",l),{documents:a,relatedEnterprises:r,contacts:i,socialMedia:s,mobileApps:o,logo:d}=Yr(c.FOOTER||"footer",l);return p(C,{tag:"footer",className:`p-9 ${e}`,...t,children:[p("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[u(li,{className:zi,logo:d}),u(Ii,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[u(Ti,{items:i,hasButton:!0}),u(Ca,{media:s,children:"Соцсети"}),u(Ca,{className:"mt-6",media:o,children:"Мобильное приложение"})]}),u(bi,{className:"flex-grow",topItems:n?.topItems})]}),u(Mi,{className:"mt-[98px]",links:r}),u(Vi,{links:a})]})})),Li=x((({className:e="",title:t,description:l,calendar:n,...a})=>p(C,{className:`p-default ${e}`,...a,children:[u(Jt,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),n?Pi(n):null]}))),Pi=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Oi(e,t)))}),u("div",{className:"flex w-full",children:l.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:Ai(e)}),p("div",{className:"text-s-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Oi=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Ai=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(St,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Ei=864e5;function Fi(e,t,l=globalThis?.localStorage){const n=r((async(...n)=>{const a=`async:${e}`,r=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<Ei?t:void 0}(l.getItem(a));if(r)return r;const i=await t(...n);return l.setItem(a,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return j(e,n)}const Ui=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},Hi=e=>({href:t})=>F(A(t)?e.href:e.pathname).startsWith(F(t));const Xi=x((({className:e,searchTerm:t,onSearch:l})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),Wi="location",Ki=x((({currentLocation:e,onChangeLocation:t,foreignOffices:l})=>{const a=gi(Wi),[i,s]=n(""),o=Ji(function(){const{data:e}=j("/api/v1/regions",D);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;for(const n of e){const e=t(n),a=l.get(e)||[];l.set(e,[...a,n])}return l})(o,Gi),d=r((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(xi,{...a,head:p("div",{children:[u(Yi,{currentLocation:e,onChangeLocation:d}),u(Xi,{onSearch:s,searchTerm:i,className:"mb-7"})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&si(e.toLowerCase())(i.toLowerCase())>=.8)).map(Zi(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(qi(d))}),u(Qi,{foreignOffices:l})]})})),Gi=e=>e.name?.charAt(0)||"",Ji=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Yi=x((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(de,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(de,{color:"text-primary-main",children:e.name})})]}):null)),qi=e=>([t,l])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(de,{size:"text-h6",children:t})}),l.map(Zi(e))]},t),Zi=e=>t=>u("div",{className:"mb-1",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Qi=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-7 pt-7",children:[u("div",{className:"mb-4",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(es,{...e},String(t))))})]}):null)),es=x((({icon:e,...t})=>{const l=J(),{text:n,target:a,href:r,onClick:i}=l(t);return p("div",{className:"flex gap-x-3",children:[e?u(St,{pathPrefix:"/wcms-resources/",image:e}):null,n?u("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:n}):null]})})),ts=x((({className:e="",active:t,flat:l,children:n,...a})=>{const r=J({isRemote:!0}),{href:i,target:s,text:o,onClick:c}=r(a);return u("a",{className:w(ls(t,l),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:ns(t,l),children:o||n})})})),ls=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),ns=(e=!1,t=!1)=>w("font-sans text-s-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),as={default:"w-6 h-6",large:"w-12 h-12"},rs=x((({className:e,isRounded:t,buttonSize:l="default",isGrayBg:n=!1,disabled:a,ariaLabel:r,image:i,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",n?"p-3 rounded-full":"p-0 bg-inherit",n&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${as[l]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":r,onClick:s,children:u(St,{image:i,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),is=x((({className:e,version:t,locationName:l,officesLink:n})=>{const a="transparent"===t?"white":"black",{open:i}=O(Wi),s=r((()=>i()),[]),{open:o}=O(yi),c=r((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(ts,{flat:!0,href:"#",text:l,onClick:s}),n?u(ts,{flat:!0,href:n,text:"Офисы и банкоматы"}):null,u(rs,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:c})]})})),ss=x((({className:e="",items:t,activeItem:l})=>{const a=J(),[i,s]=n(!1),o=r((()=>s((e=>!e))),[]),c=Me(r((()=>s(!1)),[]));return p("div",{className:w(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:n,...r}=e;return u("a",{className:w("text-l-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...a(r),children:n},e.href||String(t))}))})]})})),os=x((({className:e="",active:t,dataItemName:l,children:n,...a})=>{const r=J(),{href:i,target:s,text:o,onClick:c}=r(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:i,target:s,"data-item-name":l,onClick:c,children:[u("span",{className:cs(t),children:o||n}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),cs=(e=!1)=>w("font-sans text-l-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),ds=x((({observerOptions:e,onVisibilityChange:t,children:l,className:n,...a})=>{const i=v(r((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:i,className:n,children:u(os,{...a,children:l})})})),ms=e=>globalThis[e];function hs(e,t){const[l,i]=n(),s=r((()=>i(ms(e))),[e]);return a((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!ms(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const us={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},ps=x((e=>{const[t,{setTrue:l}]=_e();return t?u(xs,{...e}):gs({...e,onClick:l})})),xs=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),hs("chatbot",us[e])})(e),gs(t)))),gs=({className:e,iconVersion:t,onClick:l})=>u(rs,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l,buttonSize:"large",isGrayBg:!0}),bs={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},fs=x((({version:e,internetBankUrl:t})=>t?u(ie,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",bs["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),vs=x((({subItems:e=[],version:t,internetBankUrl:l})=>{const a="transparent"===t?"white":"black",r=(e=>(t=[])=>{const l=t?.filter(Hi(e));return l?.length?Ml((e=>e.href?.length||0))(l):void 0})(G())(e),[o,d]=n(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=i((()=>e.map(((e,t)=>e=>{d(e?Ns(t):ys(t))}))),[e]);return p("nav",{className:"relative mt-3 flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-3 mt-2",children:e.map(((e,t)=>u(ds,{className:w("ml-8 first:ml-0",o-1<t?"invisible":""),active:e===r,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(ss,{className:"relative w-auto z-40",items:m,activeItem:r}):null,c.CHAT_BOT?u(ps,{className:"ml-9",iconVersion:a,chat:c.CHAT_BOT}):null,u(fs,{version:t,internetBankUrl:l})]})})),Ns=e=>t=>Math.max(t,e+1),ys=e=>t=>Math.min(t,e),ws={"bg-white":"primary",transparent:"transparent"},ks=x((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:i=ws[e],...s})=>{const o=G(),{topItems:d,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g,internetBankUrl:b}=Yr(c.SITEMAP||"sitemap",s.options?.page?.fallback),f=d?.find((e=>Hi(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(o)),[v,N]=function(e="Москва"){const t=Ui(),[l,i]=n(t?.region??{name:e}),{data:s}=Fi("/api/v1/region",D);return a((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[])]}(h);return p(C,{tag:"header",className:w("pt-6 px-20",l&&f?.items?.length?"pb-4":"pb-5",t),version:i,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(li,{className:"mr-8",bgColor:e,logo:m}),d?.map(((e,t)=>u(ts,{active:e===f,...e},String(t)))),u(is,{version:i,className:"ml-auto",locationName:v.name,officesLink:g})]}),u("div",{className:w("mt-6 h-px bg-main-divider","transparent"===i?"opacity-30":"")}),l&&f?.items?.length?u(vs,{subItems:f.items,version:i,internetBankUrl:b}):null]}),u(wi,{topItems:d}),u(Ki,{currentLocation:v,foreignOffices:x,onChangeLocation:N})]})})),Cs={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},Ss=x((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",isTheme:a=!1,...r})=>u(C,{className:w("relative","grid grid-cols-12",l?"p-default":"",Cs[t],e),version:n,isTheme:a,...r,children:vn(r)})));Ss.childrenTypes={exclude:["HorizontalLayout"]};const Is=x((e=>{const{className:t,image:l,...n}=e;return u(C,{className:t,...n,children:u(St,{image:l})})})),Ts=x((({className:e="",cards:t=[],button:l})=>{const[a,i]=n(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=ol({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?$s({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,hl({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(ie,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function $s({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const a=460*e,r=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-12",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return p("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(St,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?Rs("страховая сумма",e.sum):null,e?.fee?Rs("страховой взнос",e.fee):null]}),Bs(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function Rs(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[rt(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Bs(e){return e?u(St,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const _s=x((({className:e="",title:t,insuranceTabs:l=[],button:a,...i})=>{const[s,o]=n(0),c=r((e=>o(e)),[]);return p(C,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?u(T,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?u("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Ms({insuranceTabs:l,button:a})})]})})),Ms=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(Ts,{button:t,cards:e},String(l)))):null};function js(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const Vs={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},zs={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Ds=x((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:a,investmentColumns:r,...i}=e,s=r?[...r]:[];return a&&s.unshift(a),u(C,{className:`px-9 py-12 ${t}`,...i,children:p("div",{className:"container text-m-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[js(u("div",{className:"w-px h-4 bg-gray"}))(s.map(Ls)),u("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),u("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(As)})]}):null,l?.length?u(da,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),Ls=(e,t,l)=>{const n=1===t,a=t===l.length-1;return u("div",{className:`${Ps(n,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Os)}):null},`column_${t}`)},Ps=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Os=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${zs[l]} ${Vs[n]} ${"XS"===l?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},As=(e,t,l)=>{const n=0===t,a=t===l.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${a?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Es=x((({doc:e,icon:t})=>{const{text:l,fileSize:n,...a}=e;return p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...a,children:[t,l?p(de,{size:"text-l",font:"font-light",children:[l,u(de,{color:"text-secondary-text",children:a?.href&&Fs(Us(a.href),n)})]}):null]})})),Fs=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Us=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Hs={double:"flex-wrap",single:"flex-col"},Xs=x((({className:e="",title:t,description:l,align:n="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(C,{className:w("p-default",e),...s,children:[u(Jt,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2"}),a?.length?u("div",{className:w("mt-8 flex gap-6",Hs[i]),role:"list",children:a.map(((e,t)=>u("div",{className:"double"===i?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(Es,{doc:e,icon:r?u(St,{className:"min-w-6 min-h-6",image:r,width:"24",height:"24"}):null})},String(t))))}):null]}))),Ws=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function Ks(e=""){const t=Ws(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Gs=x((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:a="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===a?"p-3.5 min-w-[120px]":"min-w-[92px]";return p(C,{className:`flex justify-between p-default box-border relative min-h-80 ${Ks(e)} ${e}`,version:a,...d,children:[p(Zn,{className:"z-10",title:t?u(T,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${el[o]}`}):null,buttons:Ht(n,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[Ys(c),p("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?u("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:u(St,{className:"w-fit",image:l})}):null,Js(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(St,{image:i})}):null]})})),Js=e=>e?.length?u(da,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Ys=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,qs=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}];function Zs(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(r),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Qs={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},eo=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Qs).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),to={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},lo=(e,t,l)=>p("div",{className:`${Object.values(to).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(Ve,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),no={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},ao=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(no).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(Ve,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),ro={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},io=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(ro).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(Ve,{name:l,width:"20",height:"16"})})})),so={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},oo=x((({points:e,className:t="",zoom:l=5,showSearchField:r=!1})=>{const i=s(null),o=hs("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=n(),[h,x]=n(uo(qs)),g=co(e);if(a((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),Zs(o,i.current,h)}))}),[o,i,h]),a((()=>{if(i.current&&h&&o){const e=h.length<1?uo(qs):h;Zs(o,i.current,e)}}),[i,h,o]),!o)return null;const b=d?"z-[100000]":"z-10";return p("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?lo(qs,0,(e=>{if(e){const t=uo(e);x(t)}})):eo(g)}),u("div",{className:`${Object.values(so).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(Ve,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[u(io,{yandexMaps:i}),u(io,{yandexMaps:i,direction:"out"})]}),ao(i.current,o,`right-2 top-80 ${b}`)]})})),co=e=>[ho(mo(e,0)),ho(mo(e,1))],mo=(e,t)=>e.map((e=>e[t])),ho=e=>e.reduce(((e,t)=>e+t))/e.length,uo=e=>e?e.map((e=>e.coords)):null,po=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],xo=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},go=({icon:e,title:t,distance:l,time:n},a)=>p("div",{className:"flex mr-4",children:[u(Ve,{name:e,width:"16",height:"16",className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${a}`),bo=({title:e,status:t,workTime:l,lunchHour:n,description:a},r)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?u("div",{children:l}):null]}),t&&n?fo(n):null,a?u("div",{className:"pb-1 text-s-light text-secondary-text",children:a}):null]},`day${r}`),fo=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:u("div",{children:e})}),vo={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function No(e){return e?z(e,{method:"GET"}):{}}const yo=x((({className:e=""})=>{const t=function(e){const{data:t}=j(e?`/api/v1/branches?regionCode=${e}`:void 0,No);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),vo}("000"),{name:l,address:n,gpsLatitude:a,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=a&&r?[a,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:h,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),k=w>0?y[w-1]:y[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:l}),xo(k)]}),p("div",{className:"flex text-l-light pt-4",children:[u(Ve,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),n]}),u("div",{className:"flex pt-4",children:po.map(go)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(oo,{points:[N],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(bo)})]})]})})),wo=x((({className:e="",title:t,servicesList:l,...n})=>p(C,{className:`p-8 flex flex-col ${e}`,...n,children:[t?u(T,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?u("ul",{className:"list-none m-0 p-0",children:l.map(ko)}):null]}))),ko=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(St,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Co=x((({text:e,size:t,align:l,font:n,children:a,...r})=>u(C,{...r,children:u(ce,{size:t,align:l,font:n,children:e||a})}))),So=x((e=>{const{className:t="",icon:l,label:n,description:a,version:r="primary",benefitsVersion:i="normal"}=e;return p("div",{className:`flex gap-5 ${a?"items-start":"items-center"} ${t}`,children:[l?u("div",{className:Io(r,i),children:u(St,{className:"w-6 h-6",image:{...l,iconVersion:l.iconVersion||i}})}):null,p("div",{className:"gap-0.5",children:[n?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:n}):null,a?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:a}):null]})]})}));function Io(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const To=e=>(t,l)=>{const{type:n}=t;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return u(So,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));case"rte":return u(Ta,{__html:t.__html});default:ai(t)}},$o=x((({className:e="",title:t,description:l,image:n,benefits:a,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>p(C,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[u(Jt,{className:"!p-0",title:t,description:l,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?u(St,{className:s?"order-2":"",image:n}):null,p("div",{className:"w-[558px] m-auto",children:[a?.length?u("div",{className:"flex flex-col gap-4",children:a.map(To(o))}):null,Ro(Number(r),Number(i))]})]})]})));function Ro(e,t){return e||t?p("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?Bo("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Bo("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Bo(e,t=0,l=!1){return p("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[u("span",{className:"text-secondary-text text-l-light",children:e}),p("span",{className:"text-primary-main text-h6",children:[rt(t)," ₽"]})]})}function _o(e=""){const t=Ws(e);return t<=4?"S":t<=8?"M":"L"}function Mo(e=""){const t=Ws(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const jo=x((({className:e,title:t,description:l="Блок в разработке...",...n})=>p(C,{className:w("p-9 box-border",e,Mo(e),Ks(e)),...n,children:[u(Jt,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:_o(e)}),u("figure",{className:"m-0 min-w-[80%]",children:Vo()})]}))),Vo=(e=3)=>Do(100,e).map((e=>Math.floor(e))).map(zo),zo=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Do=(e,t)=>[e].concat(t>0?Do(e/1.618,t-1):[]),Lo=x((({className:e="",children:t,...l})=>{const n=J(),{text:a,href:r,target:i,onClick:s}=n(l);return r?u("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:u("span",{className:e,children:a||t})}):u("span",{className:e,children:a||t})})),Po=(e="primary",t="normal")=>({icon:l,label:n,description:a},r)=>u(So,{icon:l,label:n,description:a,version:e,benefitsVersion:t},String(r)),Oo=x((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:a=3,benefits:r,benefitsVersion:i,buttons:s,image:o,__html:c,items:d,version:m="primary",isDotted:h=!0,textBlockClassName:x="",directionRight:g=!0})=>{const b=r?.filter((e=>e.label))?.length,f=Ao(a);return p("div",{className:w("flex grow justify-between items-stretch h-full",e),children:[o?.src?u(St,{className:w("mt-[-50px]",g?"order-2":""),image:o}):null,p("div",{className:w("flex flex-col",x),children:[u(Jt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:l,align:"text-left"}),p(Zn,{buttons:Ht(s),children:[b?u("div",{className:f,children:r?.map(Po(m,i))}):null,c?u("div",{className:"mt-5",children:u(Ta,{__html:c})}):null,d?.length?u(da,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",isDotted:h}):null]})]})]})})),Ao=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Eo(e,t,l){const{text:n,href:a,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:w("flex items-center",l),children:[u(ie,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:a,target:r,children:u(St,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i}})}),n?u(ie,{version:"link",text:n,href:a,target:r,ariaLabel:n}):null]})}const Fo="text-secondary-text group-data-secondary:text-white/80",Uo=x((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:a="primary",...r}=e,i="primary"===a?a:"white";return p(C,{className:w("overflow-hidden p-default flex flex-col box-border min-h-[454px]",t),version:a,...r,children:[n?.text?Eo(n,i):null,l?.length?u("div",{className:"text-xs-light mb-6",children:js(u("span",{className:w("mx-2",Fo),children:"/"}))(l.map(((e,t)=>u(Lo,{className:Fo,...e},String(t)))))}):null,u(Oo,{className:"mt-10",version:a,...r})]})})),Ho=x((({className:e="",slides:t=[],...l})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=n(0),c=r((e=>o(e)),[]);return p(C,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,...l,children:[u("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){return u("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:u("div",{className:"flex grow",children:u(Oo,{className:"pl-12 z-10 group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...l},t)))}),u("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){const a=l?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":"min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur",r=l?"text-primary-text !text-h6 p-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",i=l?"text-secondary-text text-l-light":"text-m-light text-secondary-text group-data-secondary:text-white/80";return u("button",{type:"button",onClick:n,"aria-label":e?.title,className:`relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${a}`,children:p("div",{className:"border-0 px-6",children:[u("div",{className:`last:pb-0 ${r}`,children:e?.title}),u("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))})]})}));function Xo(e,t){if(!e)return null;return u("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:u(ce,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const Wo=(e,t)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return[u(de,{size:"text-h6",children:e.label},`label-${t}`),u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return u("div",{className:"col-span-2",children:u(Ta,{__html:e.__html})});default:ai(e)}};function Ko(e,t){return e?.src?u(St,{className:w("absolute",t?"right-0":"left-0","bottom-0"),image:e}):null}const Go=x((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:a,benefits:r=[],buttons:i,image:s,directionRight:o=!0,...c})=>p(C,{className:w("overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between",Mo(e),e),...c,children:[p("div",{className:w("flex flex-col",o?"":"items-end"),children:[u(Jt,{className:w("!p-0 !bg-transparent z-10",t||n?"mb-3.5":""),title:t,description:n,headlineVersion:l,as:"h2",align:"text-left"}),Jo(r,s),Xo(a,s)]}),Ht(i,{className:w("mt-5 text-l",o?"":"justify-end")}),Ko(s,o)]})));function Jo(e,t){if(!e.length)return null;return u("div",{className:w("z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline",t?.src?"max-w-[calc(100%-186px)]":"100%"),children:e.length?e.map(Wo):null})}const Yo=x((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,as:a,buttons:r=[],...i})=>u(C,{className:w("p-9 box-border",e,Mo(e),Ks(e)),...i,children:u(Zn,{title:t?u(Jt,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:_o(e),align:"text-left",as:a||"h2"}):null,buttons:Ht(r),children:p("div",{className:"mt-1.5",children:[l?u("div",{className:"text-s mb-2",children:qo(l)}):null,u("div",{className:"text-l",children:n})]})})})));function qo(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Zo=x((e=>{const{__html:t,richVersion:l,...n}=e;return u(C,{...n,children:u(Ta,{__html:t,richVersion:l})})})),Qo=x((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:a="primary",...r})=>u(C,{className:`w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,tag:"div",version:"transparent",...r,children:u(Ra,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>u(Ba,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:vn(r)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>ec({version:a,label:t,isUnfolded:e,onToggle:l})})})));Qo.childrenTypes={exclude:["RollupItem"]};const ec=({version:e,label:t,isUnfolded:l,onToggle:n})=>{const a=t||(l?"Скрыть":"Развернуть");return"primary"===e?tc({label:a,icon:l?"MinusIcon":"PlusIcon",onToggle:n}):u(Or,{label:a,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:n})},tc=({label:e,icon:t,onToggle:l})=>p("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:l,children:[u(de,{size:"text-xl",font:"font-medium",children:e}),t?u(Ve,{name:t,width:"24",height:"24"}):null]}),lc=[];const nc=async e=>await z(e,{method:"GET"})||lc,ac=x((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:a="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return u(Le,{options:s,label:i,placeholder:a||n,onChange:e=>r(e.key),value:o})})),rc=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:a,onSelectedBranch:r})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(ac,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(ac,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),ic=x((({name:e,text:t,value:l,checked:n,onChange:a,className:r})=>u("div",{className:r,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),sc=x((()=>{const[e,t]=n("option2"),l=r((e=>t(e)),[]);return p("div",{children:[u(ic,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),u(ic,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),oc=["От 1 дня","До 365 дней"],cc=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),u(ct,{min:1,max:365,value:e,items:oc,onChange:t})]}))),dc=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:a,onSelectedBoxSize:r})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(ac,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(ac,{data:n,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),mc=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:a,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(rc,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:hc(c)}),u(cc,{days:a,setDays:e=>c({days:e})}),u(dc,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:uc(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(sc,{}),u(ie,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),hc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},uc=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},pc=x((({days:e,tariffs:t=[]})=>{const l=gc(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[xc("Аренда за",e,"mr-11"),xc("Цена",l+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(St,{image:{icon:"PackA4Icon"},width:"290",height:"257"}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),xc=(e,t,l="")=>p("div",{className:l,children:[u("div",{className:"text-m-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),gc=(e,t)=>{const l=bc(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},bc=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},fc=(e,t)=>e.find((e=>e.branchCode===t)),vc=x((e=>{const{regions:t,data:l,branches:n,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,r]);const s=fc(n,l.selectedBranch),o=Nc(s?.safeBoxCaseVolumes),c=yc(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=wc(c,l.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(mc,{...l,regions:t,onClick:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:r}),u(pc,{days:l.days,tariffs:d})]})})),Nc=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],yc=(e,t)=>e?.find((e=>e.volume===t)),wc=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,kc=x((({title:e,footnote:t,className:l="",...a})=>{const[i,s]=n(!1),o=r((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=P(),h=Cc(c.selectedRegion,m),x=function(e){const{data:t}=j(e?`/api/v1/safeboxes?regionCode=${e}`:null,nc);return t||lc}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=fc(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return p(C,{className:l,...a,children:[p("div",{className:"px-8 py-12",children:[e?u(T,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,u(vc,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?u(oo,{points:b,className:"h-[640px]"}):null]})})),Cc=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Sc=e=>Boolean(e?.icon||e?.src),Ic=({styleMap:e,isMainButton:t,version:l})=>(n,a,r)=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",Tc(r.length)),children:[p("div",{className:w(o?.text?"mb-8":"","text-center"),children:[i?u("div",{className:"mb-2",children:u(de,{size:"text-h6",children:i})}):null,p("div",{className:"flex flex-col items-center",children:[s?u("div",{className:e.description,children:s}):null,u(da,{className:w(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(ie,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(a))},Tc=e=>e<5?"w-[276px]":"w-[210px]",$c={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Rc=x((({className:e="",showLines:t=!0,steps:l=[],buttons:n,size:a="normal",version:r="primary",stepVersion:i="gray",title:s,...o})=>{const c=l.length>3,d=$c,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(l.length),x=Boolean(n?.every((e=>e?.text)));return p(C,{className:w("box-border py-12",c?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e),version:r,...o,children:[s?u(T,{headingType:"h4",className:"max-w-[752px] text-center mb-9",title:s}):null,l?.length?p("div",{className:"box-border",children:[u("div",{className:w("flex items-center",h),children:js(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(l.map(Bc(d,a,i)))}),u("div",{className:w("flex justify-between mt-4",c?"gap-x-3":"gap-x-[101px]"),children:l.map((g={styleMap:d,isMainButton:x,version:r},(e,t,l)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return Ic(g)(e,t,l);case"rte":return u("div",{className:w("text-center",Tc(l.length)),children:u(Ta,{__html:e.__html})},String(t));default:return null}}))})]}):null,Ht(n,{className:"mt-8"})]});var g})),Bc=(e,t,l)=>({icon:n},a)=>{const r="secondary"===l?"group-data-primary:text-white":"text-secondary-text",i="secondary"===l?"white":"color";return u(C,{className:`${"normal"===t?"h-[100px] w-[100px]":"h-[63px] w-[63px]"} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`,version:l,children:Sc(n)?u(St,{image:{...n,iconVersion:n.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===l?e.iconText:r),children:a+1})},String(a))},_c=x((({className:e="",gap:t=14,padding:l=16,showDots:n=!0,minHeight:a,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=_n({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===s?"relative h-full":""),children:[u(kn,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:a,children:r}),n?u($n,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),Mc=x((({listType:e,showDots:t,options:l,version:n,...a})=>u(C,{version:n,...a,children:u(_c,{listType:e,showDots:t,version:n,children:vn({...a,options:l})})})));Mc.childrenTypes={exclude:["SwipeListControlBlock"]};const jc="h-12 flex-1 flex items-center justify-center cursor-pointer",Vc="font-sans text-m text-center",zc="text-white",Dc="text-secondary-text group-hover/btn:text-primary-main",Lc="text-primary-main",Pc={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${jc} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${jc} group/btn bg-white`},default:{active:`${jc} bg-primary-main text-white whitespace-nowrap`,default:`${jc} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Oc={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${jc} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${jc} group/btn bg-white`},default:{active:`${jc} bg-primary-main text-white`,default:`${jc} group/btn bg-white`}},text:{scrollable:{active:`${Vc} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${Vc} ${Dc}`},default:{active:`${Vc} text-white`,default:`${Vc} ${Dc}`}}},Ac=(e,t,l)=>{const n=t?"active":"default";return Pc[e][l?"scrollable":"default"][n]},Ec=(e,t,l)=>{const n=t?"active":"default";return Oc[e][l?"scrollable":"default"][n]},Fc=x((e=>{const{tab:t,currentTab:l,onClick:n,isScrollable:a=!1}=e,r="link"===l?.type&&l.href===t.href,i=J()(t);return u("a",{role:"tab",className:Ec("link",r,a),target:t.target,href:i.href,onClick:e=>{i.onClick(e),n(t)},children:u("span",{className:Ec("text",r,a),children:t.text})})})),Uc=(e,t,l)=>e?u("h3",{className:l?`${Vc} ${t?Lc:Dc}`:`${Vc} ${t?zc:Dc}`,children:e}):null,Hc=(e,t,l)=>e&&t?u("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(l?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,Xc=({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:Ac("div",s,a),role:"tab","aria-selected":s,onClick:()=>n(r),children:p("div",{className:`flex flex-1 items-center justify-center ${Ac("text",s,a)}`,children:[Uc(r.title,s,a),Hc(l,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a})(r,i);case"link":return u(Fc,{tab:r,currentTab:t,isScrollable:a,onClick:n},String(i));default:ai(s)}return null},Wc=x((e=>{const{tabs:t,onClick:l,currentTab:n,page:a,showCounter:r}=e,[i,s]=_n({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(kn,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(Xc({onClick:l,currentTab:n,showCounter:r,page:a,isScrollable:!0}))})}),s.canScrollLeft?u(dl,{className:"absolute z-40 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(ml,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),Kc=x((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=n(l?l[0]:void 0);a((()=>{l&&l[0]&&Gc(l[0])}),[]),a((()=>{"group"===d?.type&&f.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{Gc(e),m(e)}),[]);return u(C,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?u(Wc,{tabs:l,onClick:h,currentTab:d,showCounter:i,...c}):l?.map(Xc({onClick:h,currentTab:d,showCounter:i,...c}))})})),Gc=e=>{"group"===e.type&&f.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&f.fire("tab",{type:e.type,label:e.href})},Jc=x((({isOpen:e,onClick:t})=>p(ie,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),u(Ve,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20"})]}))),Yc={Buttons:({buttons:e})=>Ht(e),Img:({image:e})=>e?.src?u(St,{image:e}):null,List:({isDotted:e,...t})=>u(da,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:a})=>e?u(Jc,{isOpen:a,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},qc=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);a((()=>{t===i&&r||m(!0)}),[r,i]);return p("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?u("div",{className:"h-5"}):null,Zc({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},Zc=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in Yc))return null;return u(Yc[l],{...t,...n})},Qc=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(qc({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),ed=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=ol({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(td(l)),hl({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),td=e=>(t,l)=>{if(!t?.length)return null;const[n,...a]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?u("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:i,style:{transform:`translateX(-${r}px)`},children:a?.map(((t,l)=>p("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?ld(t.cols,e):null]},`row${l}`)))})})]},String(l))},ld=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,nd=x((({activeTabIndex:e,items:t})=>{const[l,a]=n({}),i=r((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(a),children:[t.title,u(St,{image:{icon:l[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:u("div",{className:"relative",children:u(ed,{rows:t.rowsData})})})]},a)}))})})),ad=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>p("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?u(ie,{href:t,version:"secondary",target:"_blank",appendLeft:u(Ve,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function rd(e){const t=await fetch(e);return await t.json()}const id=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:a}=function(e){const{data:t}=j(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),rd);return t||{}}(e),[i,s]=n(0),o=r((e=>s(e)),[]),c=a?.[i]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(ad,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),u(nd,{activeTabIndex:i,items:c}),u(Jc,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(Jc,{onClick:l,isOpen:!0})]})})),sd=x((({children:e,tableInner:t,onHideContentClick:l})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(id,{...t,onClick:l})}):null]}))),od=x((({row:{header:e,data:t},activeIndex:l,rowIdx:a,...i})=>{const[s,o]=n(void 0),c=r((e=>o(e)),[]),[d,m]=n(void 0),h=r((e=>m(e)),[]);return p(sd,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[u("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(St,{className:"mr-3.5 max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?u(Ua,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(Qc,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...i},String(t))))}):null]})})),cd=x((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:a,hiddenRowsNum:r=0,...i})=>{const s=a?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=ol({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(od,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[h.slice(0,-r),h.slice(-r)]:[h,[]];return p(C,{className:`p-default overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[dd({title:t,description:l}),md(l),r>0?u(Ra,{renderFoldableSection:({isUnfolded:e})=>p(hd,{controls:m,children:[x,u(Ba,{isUnfolded:e,children:g})]}),renderFoldButton:Ar}):u(hd,{controls:m,children:h})]})}));function dd({title:e,description:t}){return e?u(T,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function md(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const hd=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,hl({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),ud=x((({className:e="",title:t,description:l,iconVersion:n,image:a,__html:r,items:i=[],...s})=>p(C,{className:w("px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===n?u("div",{className:"mt-1",children:pd()}):null,"big"===n?xd(a):null,p("div",{className:"flex flex-col w-fit gap-3",children:[t?u(de,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:t}):null,l?gd(l):null,i?.length?bd(i,!0):null,r?u(Ta,{__html:r}):null]})]}))),pd=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),xd=e=>e?.src?u(St,{className:"h-fit",image:e}):null,gd=e=>u(ce,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),bd=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(de,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),fd=x((e=>{const{tags:t,className:l=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(vd)}):null})),vd=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),Nd=x((({title:e,headingType:t="h3",__html:l,items:n,buttons:a,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,directionRight:m=!0,...h})=>p(C,{className:w("flex grow justify-between items-stretch h-full p-9 pr-3 box-border",Mo(o),Ks(o),o),...h,children:[r?.src?u(St,{className:w("mt-auto ml-7",m?"order-2":""),image:r}):null,u(Zn,{title:e?u(T,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:Ht(a,{className:"mt-8",buttonClassName:"min-w-[158px]"}),children:p("div",{children:[l?u("div",{className:"max-w-[600px] mt-2.5",children:u(Ta,{__html:l})}):null,d,u(da,{className:"mt-2.5",itemClassName:"mb-1.5",items:n,isDotted:i,listItemSize:s}),c?.length?u(fd,{tags:c,className:"mt-5"}):null]})})]}))),yd={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},wd=x((({className:e="",gap:t="",align:l="stretch",isPadding:n=!1,isInnerPadding:a=!0,version:r="transparent",isTheme:i=!1,...s})=>{const o=a?"":"!p-0";return u(C,{className:w("relative","flex flex-col [&>*]:max-w-full",n?"p-default":"",Cs[t],l&&yd[l],e),version:r,isTheme:i,...s,children:vn({...s,renderProps:(e,t)=>gn(e,t,{className:o})})})}));wd.childrenTypes=[];const kd=e=>Ws(e)<10?"py-6 px-11":"py-12 px-32",Cd=x((({className:e,title:t,url:l,previewImg:n,...a})=>{const r=G();return p(C,{className:w(kd(e),e),...a,children:[u(Jt,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:X(r)(n?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:X(r)(l)})}):null]})})),Sd=x((({address:e,email:t,telephone:l,button:n,className:a="",__html:r,icon:i,title:s,version:o="primary",...c})=>p(C,{className:w("box-border text-left p-9",a),version:o,...c,children:[p("div",{className:"w-full flex justify-between",children:[s?u(T,{headingType:"h4",as:"h3",className:"mb-6",title:s}):null,Id(i)]}),p("div",{className:"w-full",children:[r?Td(r):null,$d("Адрес",e,"GeolocationIcon"),$d("Телефон",l,"PhoneIcon"),$d("E-mail",t,"MailIcon"),n?.text?Ht([n],{className:"mb-6"}):null]})]}))),Id=e=>p("div",{className:"self-end",children:[e?.src?u(St,{image:e}):null,e?.icon?u(St,{image:e}):null]}),Td=e=>u("div",{className:"border-b border-main-divider pb-5 my-5",children:u(Ta,{__html:e})}),$d=(e,t,l)=>p("div",{className:"flex mb-4",children:[u(Ve,{className:"pr-4",iconVersion:"black",name:l,width:"24",height:"24"}),p("div",{className:"flex flex-col first:pb-1",children:[u(de,{size:"text-m-light",children:e}),t?u(de,{size:"text-h6",color:"text-green",children:t}):null]})]}),Rd={ApplicationForm:Pt,BenefitsBlock:Ot,Bonus:Yt,BonusBenefitsBlock:tl,BusinessBlock:il,ButtonBlock:sl,Calculator:an,CardTransfer:un,Carousel:Dn,CarouselBankHistoryCard:An,CarouselCard:Wn,CarouselCatalogCard:Gn,CarouselEventCard:qn,CarouselInvestmentCard:ea,CarouselLinks:aa,CarouselProductCard:ma,CarouselProgramsCard:ba,CarouselRecommendationCard:Sa,CarouselRichTextCard:$a,CarouselTariffsCard:ja,ComparisonTable:er,ContactsBlock:lr,ErrorBlock:ir,ExchangeRateTile:Lr,Filtration:Jr,Footer:Di,GracePeriod:Li,Header:ks,Headline:Jt,HorizontalLayout:Ss,ImgBlock:Is,InsuranceAmountBlock:_s,InvestmentInfo:Ds,LinkDocs:Xs,MobileAppTile:Gs,OfficeMap:yo,OfficeServicesBlock:wo,ParagraphBlock:Co,PictureText:$o,Placeholder:jo,ProductBlock:Uo,ProductGallery:Ho,ProductTile:Go,PromoTile:Yo,RichTextBlock:Zo,RollupItem:Qo,SafeDepositRental:kc,StepsBlock:Rc,SwipeListControlBlock:Mc,Tabs:Kc,TariffsTable:cd,TextBlock:ud,Tile:Nd,VerticalLayout:wd,Video:Cd,ExchangeRateOffice:pr,RepresentativeOfficeInfo:Sd};const Bd=["Header","Footer"],_d=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Md(e=globalThis){const t=s(new Map);a((()=>y.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),a((()=>{const l=((e,t=600)=>{let l;const n=(...a)=>{n.dispose(),l=setTimeout((()=>{e(...a)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{!function(e){const t=`#${l=e?.anchor,l?.replace("#","")||""}`;var l;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Bd.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?zl(_d)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const jd="cookieClose",Vd=x((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:l,onClose:n}=gi("cookie",!globalThis.localStorage?.getItem(jd)),a=r((()=>{globalThis.localStorage?.setItem(jd,"true"),n&&n()}),[n]);return l?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"flex-1",children:p(ce,{size:"text-s-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(Yn,{isRemote:!0,className:w(zd(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(Yn,{isRemote:!0,className:w(zd(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"w-24 flex justify-end",children:u(ni,{className:"bg-main-gray rounded-md",onClick:a})})]})}):null})),zd=e=>["inline mx-1",e?"text-green-dark":""],Dd=h();const Ld=x((({className:e,onClick:t,ariaLabel:l})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:Pd()}))),Pd=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Od=x((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return a((()=>{(async()=>{const[t]=await Dd.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{l(await Dd.like(e))}),[e]),dislike:r((async()=>{l(await Dd.dislike(e))}),[e])}}(G().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(Ld,{onClick:K(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Ld,{onClick:K(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Ad=x((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:a={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:l,blockDecorator:n,parent:a};Md();const[m,{setTrue:h,setFalse:x}]=_e();return ri({onOpen:h,onClose:x}),p("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:fn(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[fn(i,d),s?.footer?fn(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Od,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(Vd,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));Ad.childrenTypes=[],Ad.slots=()=>["header","footer"];e.Blocks=Rd,e.ContentPage=Ad,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=K,e.joinList=js,e.packageVersion="0.10.7",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=H,e.useRouter=G,Object.defineProperty(e,"__esModule",{value:!0})}));
|