@redneckz/wildless-cms-uni-blocks 0.11.2 → 0.11.3
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/bin/migration-scripts/0.11.1.js +34 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +76 -56
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/bundle/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/bundle/components/CarouselCard/titleSize.d.ts +1 -0
- package/bundle/components/CarouselCard/titleSize.mobile.d.ts +1 -0
- package/bundle/components/Footer/Contacts.d.ts +2 -2
- package/bundle/components/Footer/FooterContent.d.ts +9 -1
- package/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/bundle/components/PictureText/positionStyle.d.ts +1 -0
- package/bundle/components/PictureText/positionStyle.mobile.d.ts +1 -0
- package/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/bundle/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
- package/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
- package/bundle/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
- package/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/bundle/components/RollupItem/renderRoundedIcon.d.ts +3 -0
- package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
- package/bundle/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
- package/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/bundle/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
- package/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
- package/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/Blocks.js +2 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +6 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js +1 -1
- package/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/{mobile/dist/components/ButtonBlock/ButtonBlock.js → dist/components/ButtonsBlock/ButtonsBlock.js} +3 -3
- package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
- package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
- package/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +9 -7
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/dist/components/CarouselCard/getCardWidth.js +18 -0
- package/dist/components/CarouselCard/getCardWidth.js.map +1 -0
- package/dist/components/CarouselCard/titleSize.d.ts +1 -0
- package/dist/components/CarouselCard/titleSize.js +4 -0
- package/dist/components/CarouselCard/titleSize.js.map +1 -0
- package/dist/components/CarouselCard/titleSize.mobile.d.ts +1 -0
- package/dist/components/CarouselCard/titleSize.mobile.js +4 -0
- package/dist/components/CarouselCard/titleSize.mobile.js.map +1 -0
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/Footer/Contacts.d.ts +2 -2
- package/dist/components/Footer/Contacts.js +4 -5
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +9 -1
- package/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/dist/components/PictureText/PictureText.js +5 -11
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/positionStyle.d.ts +1 -0
- package/dist/components/PictureText/positionStyle.js +4 -0
- package/dist/components/PictureText/positionStyle.js.map +1 -0
- package/dist/components/PictureText/positionStyle.mobile.d.ts +1 -0
- package/dist/components/PictureText/positionStyle.mobile.js +4 -0
- package/dist/components/PictureText/positionStyle.mobile.js.map +1 -0
- package/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
- package/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
- package/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/dist/components/PictureText/styleInsuranceSum.js +4 -0
- package/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
- package/dist/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
- package/dist/components/PictureText/styleInsuranceSum.mobile.js +4 -0
- package/dist/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
- package/dist/components/PictureText/styleValueBlock.d.ts +2 -0
- package/dist/components/PictureText/styleValueBlock.js +5 -0
- package/dist/components/PictureText/styleValueBlock.js.map +1 -0
- package/dist/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
- package/dist/components/PictureText/styleValueBlock.mobile.js +5 -0
- package/dist/components/PictureText/styleValueBlock.mobile.js.map +1 -0
- package/dist/components/RollupItem/RollupItem.js +14 -9
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/dist/components/RollupItem/renderRoundedIcon.d.ts +3 -0
- package/dist/components/RollupItem/renderRoundedIcon.js +5 -0
- package/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
- package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +4 -0
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js +7 -0
- package/dist/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js +4 -0
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
- package/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/labelSize.js +4 -0
- package/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
- package/dist/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js +4 -0
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
- package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +8 -3
- package/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/dist/ui-kit/Icon/RoundedIcon.js +5 -1
- package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/Blocks.js +2 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +6 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/lib/components/ButtonsBlock/ButtonsBlock.fixture.mobile.d.ts +6 -0
- package/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
- package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
- package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
- package/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
- package/lib/components/CardTransfer/CardTransfer.fixture.mobile.d.ts +6 -0
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +8 -0
- package/lib/components/CarouselCard/CarouselCard.js +9 -7
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/lib/components/CarouselCard/getCardWidth.js +15 -0
- package/lib/components/CarouselCard/getCardWidth.js.map +1 -0
- package/lib/components/CarouselCard/titleSize.d.ts +1 -0
- package/lib/components/CarouselCard/titleSize.js +2 -0
- package/lib/components/CarouselCard/titleSize.js.map +1 -0
- package/lib/components/CarouselCard/titleSize.mobile.d.ts +1 -0
- package/lib/components/CarouselCard/titleSize.mobile.js +2 -0
- package/lib/components/CarouselCard/titleSize.mobile.js.map +1 -0
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/Footer/Contacts.d.ts +2 -2
- package/lib/components/Footer/Contacts.js +4 -5
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +9 -1
- package/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/lib/components/PictureText/PictureText.fixture.mobile.d.ts +14 -0
- package/lib/components/PictureText/PictureText.js +5 -11
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/positionStyle.d.ts +1 -0
- package/lib/components/PictureText/positionStyle.js +2 -0
- package/lib/components/PictureText/positionStyle.js.map +1 -0
- package/lib/components/PictureText/positionStyle.mobile.d.ts +1 -0
- package/lib/components/PictureText/positionStyle.mobile.js +2 -0
- package/lib/components/PictureText/positionStyle.mobile.js.map +1 -0
- package/lib/components/PictureText/renderBenefit.d.ts +0 -1
- package/lib/components/PictureText/renderInsuranceSumMonth.d.ts +1 -0
- package/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
- package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
- package/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/lib/components/PictureText/styleInsuranceSum.js +2 -0
- package/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
- package/lib/components/PictureText/styleInsuranceSum.mobile.d.ts +1 -0
- package/lib/components/PictureText/styleInsuranceSum.mobile.js +2 -0
- package/lib/components/PictureText/styleInsuranceSum.mobile.js.map +1 -0
- package/lib/components/PictureText/styleValueBlock.d.ts +2 -0
- package/lib/components/PictureText/styleValueBlock.js +3 -0
- package/lib/components/PictureText/styleValueBlock.js.map +1 -0
- package/lib/components/PictureText/styleValueBlock.mobile.d.ts +2 -0
- package/lib/components/PictureText/styleValueBlock.mobile.js +3 -0
- package/lib/components/PictureText/styleValueBlock.mobile.js.map +1 -0
- package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +1 -0
- package/lib/components/RollupItem/RollupItem.js +14 -9
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/lib/components/RollupItem/renderRoundedIcon.d.ts +3 -0
- package/lib/components/RollupItem/renderRoundedIcon.js +2 -0
- package/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
- package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +3 -0
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js +4 -0
- package/lib/components/RollupItem/renderRoundedIcon.mobile.js.map +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js +2 -0
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js.map +1 -0
- package/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/labelSize.js +2 -0
- package/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
- package/lib/ui-kit/BenefitItem/labelSize.mobile.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js +2 -0
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js.map +1 -0
- package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +8 -3
- package/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/lib/ui-kit/Icon/RoundedIcon.js +5 -1
- package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +542 -378
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/mobile/bundle/components/CarouselCard/titleSize.d.ts +1 -0
- package/mobile/bundle/components/Footer/Contacts.d.ts +2 -2
- package/mobile/bundle/components/Footer/FooterContent.d.ts +9 -1
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/bundle/components/PictureText/positionStyle.d.ts +1 -0
- package/mobile/bundle/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/mobile/bundle/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/mobile/bundle/components/PictureText/styleValueBlock.d.ts +2 -0
- package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +8 -3
- package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/Blocks.js +6 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/{dist/components/ButtonBlock/ButtonBlock.js → mobile/dist/components/ButtonsBlock/ButtonsBlock.js} +3 -3
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
- package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/mobile/dist/components/{ButtonBlock/ButtonBlockContent.js → ButtonsBlock/ButtonsBlockContent.js} +1 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +9 -7
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/mobile/dist/components/CarouselCard/getCardWidth.js +18 -0
- package/mobile/dist/components/CarouselCard/getCardWidth.js.map +1 -0
- package/mobile/dist/components/CarouselCard/titleSize.d.ts +1 -0
- package/mobile/dist/components/CarouselCard/titleSize.js +4 -0
- package/mobile/dist/components/CarouselCard/titleSize.js.map +1 -0
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.d.ts +2 -2
- package/mobile/dist/components/Footer/Contacts.js +4 -5
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +9 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/dist/components/PictureText/PictureText.js +5 -11
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/positionStyle.d.ts +1 -0
- package/mobile/dist/components/PictureText/positionStyle.js +4 -0
- package/mobile/dist/components/PictureText/positionStyle.js.map +1 -0
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +15 -0
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
- package/mobile/dist/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/mobile/dist/components/PictureText/styleInsuranceSum.js +4 -0
- package/mobile/dist/components/PictureText/styleInsuranceSum.js.map +1 -0
- package/mobile/dist/components/PictureText/styleValueBlock.d.ts +2 -0
- package/mobile/dist/components/PictureText/styleValueBlock.js +5 -0
- package/mobile/dist/components/PictureText/styleValueBlock.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +14 -9
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +4 -0
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js +7 -0
- package/mobile/dist/components/RollupItem/renderRoundedIcon.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +12 -11
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js +4 -0
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js.map +1 -0
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +8 -3
- package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js +5 -1
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/Blocks.js +6 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.d.ts +6 -0
- package/mobile/lib/components/{ButtonBlock/ButtonBlock.js → ButtonsBlock/ButtonsBlock.js} +2 -2
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -0
- package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +8 -0
- package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js +2 -0
- package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.js.map +1 -0
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +9 -7
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/getCardWidth.d.ts +1 -0
- package/mobile/lib/components/CarouselCard/getCardWidth.js +15 -0
- package/mobile/lib/components/CarouselCard/getCardWidth.js.map +1 -0
- package/mobile/lib/components/CarouselCard/titleSize.d.ts +1 -0
- package/mobile/lib/components/CarouselCard/titleSize.js +2 -0
- package/mobile/lib/components/CarouselCard/titleSize.js.map +1 -0
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.d.ts +2 -2
- package/mobile/lib/components/Footer/Contacts.js +4 -5
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +9 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +2 -2
- package/mobile/lib/components/PictureText/PictureText.js +5 -11
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/positionStyle.d.ts +1 -0
- package/mobile/lib/components/PictureText/positionStyle.js +2 -0
- package/mobile/lib/components/PictureText/positionStyle.js.map +1 -0
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.d.ts +2 -0
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +12 -0
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -0
- package/mobile/lib/components/PictureText/styleInsuranceSum.d.ts +1 -0
- package/mobile/lib/components/PictureText/styleInsuranceSum.js +2 -0
- package/mobile/lib/components/PictureText/styleInsuranceSum.js.map +1 -0
- package/mobile/lib/components/PictureText/styleValueBlock.d.ts +2 -0
- package/mobile/lib/components/PictureText/styleValueBlock.js +3 -0
- package/mobile/lib/components/PictureText/styleValueBlock.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +14 -9
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +4 -2
- package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +4 -0
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js +4 -0
- package/mobile/lib/components/RollupItem/renderRoundedIcon.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +12 -11
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/labelSize.d.ts +1 -0
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js +2 -0
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js.map +1 -0
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +8 -3
- package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +5 -1
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js +5 -1
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +6 -0
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +1 -1
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
- package/mobile/src/components/{ButtonBlock/ButtonBlock.tsx → ButtonsBlock/ButtonsBlock.tsx} +4 -4
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
- package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +9 -3
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +16 -12
- package/mobile/src/components/CarouselCard/getCardWidth.tsx +16 -0
- package/mobile/src/components/CarouselCard/titleSize.tsx +1 -0
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
- package/mobile/src/components/Footer/Contacts.tsx +20 -12
- package/mobile/src/components/Footer/FooterContent.ts +10 -1
- package/mobile/src/components/Footer/FooterDataProps.ts +2 -2
- package/mobile/src/components/PictureText/PictureText.tsx +13 -27
- package/mobile/src/components/PictureText/positionStyle.tsx +1 -0
- package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
- package/mobile/src/components/PictureText/styleInsuranceSum.tsx +1 -0
- package/mobile/src/components/PictureText/styleValueBlock.tsx +2 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +25 -18
- package/mobile/src/components/RollupItem/RollupItem.ui.json +7 -1
- package/mobile/src/components/RollupItem/RollupItemContent.ts +4 -2
- package/mobile/src/components/RollupItem/renderRoundedIcon.tsx +7 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
- package/mobile/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
- package/mobile/src/ui-kit/Icon/IconProps.ts +9 -4
- package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
- package/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +6 -0
- package/src/components/Blocks.ts +2 -2
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/BusinessBlock/BusinessCard.tsx +1 -1
- package/src/components/ButtonsBlock/ButtonsBlock.example.json +14 -0
- package/src/components/ButtonsBlock/ButtonsBlock.fixture.mobile.tsx +26 -0
- package/src/components/ButtonsBlock/ButtonsBlock.fixture.tsx +26 -0
- package/src/components/{ButtonBlock/ButtonBlock.tsx → ButtonsBlock/ButtonsBlock.tsx} +4 -4
- package/src/components/ButtonsBlock/ButtonsBlock.ui.json +14 -0
- package/src/components/ButtonsBlock/ButtonsBlockContent.ts +9 -0
- package/src/components/CardTransfer/CardTransfer.fixture.mobile.tsx +18 -0
- package/src/components/CardTransfer/CardTransfer.tsx +9 -3
- package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +28 -0
- package/src/components/CarouselCard/CarouselCard.tsx +16 -12
- package/src/components/CarouselCard/getCardWidth.tsx +16 -0
- package/src/components/CarouselCard/titleSize.mobile.tsx +1 -0
- package/src/components/CarouselCard/titleSize.tsx +1 -0
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -3
- package/src/components/Footer/Contacts.tsx +20 -12
- package/src/components/Footer/FooterContent.ts +10 -1
- package/src/components/Footer/FooterDataProps.ts +2 -2
- package/src/components/PictureText/PictureText.fixture.mobile.tsx +122 -0
- package/src/components/PictureText/PictureText.tsx +13 -27
- package/src/components/PictureText/positionStyle.mobile.tsx +1 -0
- package/src/components/PictureText/positionStyle.tsx +1 -0
- package/src/components/PictureText/renderInsuranceSumMonth.tsx +28 -0
- package/src/components/PictureText/styleInsuranceSum.mobile.tsx +1 -0
- package/src/components/PictureText/styleInsuranceSum.tsx +1 -0
- package/src/components/PictureText/styleValueBlock.mobile.tsx +2 -0
- package/src/components/PictureText/styleValueBlock.tsx +2 -0
- package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +15 -0
- package/src/components/RollupItem/RollupItem.tsx +25 -18
- package/src/components/RollupItem/RollupItem.ui.json +7 -1
- package/src/components/RollupItem/RollupItemContent.ts +4 -2
- package/src/components/RollupItem/renderRoundedIcon.mobile.tsx +7 -0
- package/src/components/RollupItem/renderRoundedIcon.tsx +4 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +26 -22
- package/src/ui-kit/BenefitItem/borderRadius.mobile.tsx +1 -0
- package/src/ui-kit/BenefitItem/labelSize.mobile.tsx +1 -0
- package/src/ui-kit/BenefitItem/labelSize.tsx +1 -0
- package/src/ui-kit/Button/renderButtonsSection.tsx +8 -2
- package/src/ui-kit/Icon/IconProps.ts +9 -4
- package/src/ui-kit/Icon/RoundedIcon.tsx +18 -6
- package/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
- package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
- package/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
- package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
- package/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
- package/mobile/bundle/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/mobile/dist/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +0 -1
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
- package/mobile/lib/components/ButtonBlock/ButtonBlock.d.ts +0 -6
- package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +0 -1
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +0 -8
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js +0 -2
- package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js.map +0 -1
- package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
- package/mobile/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
- package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
- package/src/components/ButtonBlock/ButtonBlock.example.json +0 -12
- package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +0 -19
- package/src/components/ButtonBlock/ButtonBlock.ui.json +0 -12
- package/src/components/ButtonBlock/ButtonBlockContent.ts +0 -9
- /package/lib/components/{ButtonBlock/ButtonBlock.fixture.d.ts → ButtonsBlock/ButtonsBlock.fixture.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { LinkCommonProps, LinkProps } from '../../model/LinkProps';
|
|
2
2
|
import type { Picture } from '../../model/Picture';
|
|
3
3
|
import type { SitemapData } from '../../services/sitemap/SitemapData';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ContactGroup, SubMenuItem } from './FooterContent';
|
|
5
5
|
export interface FooterDataProps extends SitemapData {
|
|
6
6
|
documents?: LinkProps[];
|
|
7
7
|
relatedEnterprises?: LinkProps[];
|
|
8
|
-
contacts?:
|
|
8
|
+
contacts?: ContactGroup[];
|
|
9
9
|
socialMedia?: LinkCommonProps[];
|
|
10
10
|
mobileApps?: LinkCommonProps[];
|
|
11
11
|
horizontalNavigationTitle?: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '../../setup-fixture';
|
|
3
|
+
import type { PictureTextContent } from './PictureTextContent';
|
|
4
|
+
export declare const PICTURE_TEXT: PictureTextContent;
|
|
5
|
+
export declare const INSURANCE_TEXT: PictureTextContent;
|
|
6
|
+
export declare const BENEFITS_HTML_TEXT: PictureTextContent;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
default: JSX.Element;
|
|
9
|
+
secondary: JSX.Element;
|
|
10
|
+
'insurance sum': JSX.Element;
|
|
11
|
+
'insurance monthPay': JSX.Element;
|
|
12
|
+
'benefits as html': JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -2,17 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
4
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
5
|
-
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat.js';
|
|
6
5
|
import { Headline } from '../Headline/Headline.js';
|
|
7
6
|
import { renderBenefit } from './renderBenefit.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
function renderValueBlock(title, sum = 0, isAnotherBlock = false) {
|
|
15
|
-
const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
|
|
16
|
-
return (_jsxs("div", { className: `flex justify-between items-center gap-2 w-full whitespace-pre ${widthStyle}`, children: [_jsx("span", { className: "text-secondary-text text-l-light", children: title }), _jsxs("span", { className: "text-primary-main text-h6", children: [toLocalNumberFormat(2)(sum), " \u20BD"] })] }));
|
|
17
|
-
}
|
|
7
|
+
import { style } from '../../utils/style.js';
|
|
8
|
+
import { positionStyle } from './positionStyle.js';
|
|
9
|
+
import { renderInsuranceSumMonth } from './renderInsuranceSumMonth.js';
|
|
10
|
+
export const PictureText = JSX(({ className = '', title, description, image, benefits, sum, monthLimit, directionRight = false, version = 'primary', ...rest }) => (_jsxs(BlockWrapper, { className: style('relative p-default', className), version: version, ...rest, children: [_jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M" // TODO: Сверить с макетом после влития мобильных правок Headline (DRAFT)
|
|
11
|
+
, align: "text-left" }), _jsxs("div", { className: style('flex mt-6', positionStyle), children: [image?.src ? _jsx(Img, { className: directionRight ? 'order-2' : '', image: image }) : null, _jsxs("div", { children: [benefits?.length ? (_jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit(version)) })) : null, renderInsuranceSumMonth(Number(sum), Number(monthLimit))] })] })] })));
|
|
18
12
|
//# sourceMappingURL=PictureText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PictureText.js","sourceRoot":"","sources":["../../../src/components/PictureText/PictureText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,s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F,IACO,CAChB,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const positionStyle = "justify-center items-center gap-32";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positionStyle.js","sourceRoot":"","sources":["../../../src/components/PictureText/positionStyle.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const positionStyle = "justify-end flex-col-reverse gap-4";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positionStyle.mobile.js","sourceRoot":"","sources":["../../../src/components/PictureText/positionStyle.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,oCAAoC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
2
|
import type { ComplexBenefitProps } from '../../ui-kit/BenefitItem/BenefitItemProps';
|
|
4
3
|
export declare const renderBenefit: (version: BlockVersion) => (benefit: ComplexBenefitProps, i: number) => JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const renderInsuranceSumMonth: (sum?: number, monthLimit?: number) => JSX.Element | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
3
|
+
import { style } from '../../utils/style.js';
|
|
4
|
+
import { styleInsuranceSum } from './styleInsuranceSum.js';
|
|
5
|
+
import { toLocalNumberFormat } from '../../utils/toLocalNumberFormat.js';
|
|
6
|
+
import { styleValueBlock, styleValueBlockText } from './styleValueBlock.js';
|
|
7
|
+
export const renderInsuranceSumMonth = (sum = 0, monthLimit = 0) => sum || monthLimit ? (_jsxs("div", { className: style('flex mt-6', styleInsuranceSum), children: [sum > 0 ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null, monthLimit > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit, Boolean(sum)) : null] })) : null;
|
|
8
|
+
const renderValueBlock = (title, sum = 0, isAnotherBlock = false) => {
|
|
9
|
+
const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
|
|
10
|
+
return (_jsxs("div", { className: style(`flex w-full whitespace-pre`, styleValueBlock, widthStyle), children: [_jsx(Text, { font: "font-light", size: "text-l", children: title }), _jsxs(Text, { size: "text-h6", color: styleValueBlockText, children: [toLocalNumberFormat(2)(sum), " \u20BD"] })] }));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=renderInsuranceSumMonth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderInsuranceSumMonth.js","sourceRoot":"","sources":["../../../src/components/PictureText/renderInsuranceSumMonth.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAG,GAAG,CAAC,EAAE,UAAU,GAAG,CAAC,EAAE,EAAE,CACjE,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAClB,eAAK,SAAS,EAAE,KAAK,CAAC,WAAW,EAAE,iBAAiB,CAAC,aAClD,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAC/E,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IACrF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AAEX,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,GAAG,GAAG,CAAC,EAAE,cAAc,GAAG,KAAK,EAAE,EAAE;IAC1E,MAAM,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;IAEvD,OAAO,CACL,eAAK,SAAS,EAAE,KAAK,CAAC,4BAA4B,EAAE,eAAe,EAAE,UAAU,CAAC,aAC9E,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,IAAI,EAAC,QAAQ,YAClC,KAAK,GACD,EACP,MAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,mBAAmB,aAC5C,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,eACvB,IACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styleInsuranceSum = "bg-main-divider rounded-md px-5 py-4 gap-6";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleInsuranceSum.js","sourceRoot":"","sources":["../../../src/components/PictureText/styleInsuranceSum.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,4CAA4C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styleInsuranceSum = "flex-col gap-2";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleInsuranceSum.mobile.js","sourceRoot":"","sources":["../../../src/components/PictureText/styleInsuranceSum.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleValueBlock.js","sourceRoot":"","sources":["../../../src/components/PictureText/styleValueBlock.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,oCAAoC,CAAC;AACpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleValueBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/PictureText/styleValueBlock.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,gBAAgB,CAAC;AAChD,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { DefaultFoldButton } from '../../ui-kit/Foldable/DefaultFoldButton.js';
|
|
|
6
6
|
import { Foldable } from '../../ui-kit/Foldable/Foldable.js';
|
|
7
7
|
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection.js';
|
|
8
8
|
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
9
|
-
import {
|
|
9
|
+
import { renderRoundedIcon } from './renderRoundedIcon.js';
|
|
10
10
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
11
11
|
import { style } from '../../utils/style.js';
|
|
12
12
|
import { foldableSectionStyles } from './foldableSectionStyles.js';
|
|
@@ -14,25 +14,30 @@ import { getIconName } from './getIconName.js';
|
|
|
14
14
|
import { labelSize } from './labelSize.js';
|
|
15
15
|
import { rollupIconVersion } from './rollupIconVersion.js';
|
|
16
16
|
import { rollupItemStyles } from './rollupItemStyles.js';
|
|
17
|
-
export const RollupItem = JSX(({ className = '', label = 'Развернуть', labelIcon, isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => {
|
|
18
|
-
return (_jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), tag: "div", version: "transparent", ...rest, children: _jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (_jsx(FoldableSection, { className: style('gap-5 [&>*]:p-0', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({
|
|
17
|
+
export const RollupItem = JSX(({ className = '', label = 'Развернуть', labelIcon, labelIconBgVersion, isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => {
|
|
18
|
+
return (_jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), tag: "div", version: "transparent", ...rest, children: _jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (_jsx(FoldableSection, { className: style('gap-5 [&>*]:p-0', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({
|
|
19
|
+
version,
|
|
20
|
+
label,
|
|
21
|
+
labelIcon,
|
|
22
|
+
labelIconBgVersion,
|
|
23
|
+
isUnfolded,
|
|
24
|
+
onToggle,
|
|
25
|
+
}) }) }));
|
|
19
26
|
});
|
|
20
27
|
RollupItem.childrenTypes = {
|
|
21
28
|
exclude: ['RollupItem'],
|
|
22
29
|
};
|
|
23
|
-
const renderFoldButton = ({ version, label: defaultLabel, labelIcon, isUnfolded, onToggle, }) => {
|
|
30
|
+
const renderFoldButton = ({ version, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, onToggle, }) => {
|
|
24
31
|
const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
|
|
25
32
|
return version === 'primary' ? (renderPrimaryFoldButton({
|
|
26
33
|
label,
|
|
27
34
|
labelIcon,
|
|
35
|
+
labelIconBgVersion,
|
|
28
36
|
icon: getIconName(isUnfolded),
|
|
29
37
|
onToggle,
|
|
30
38
|
})) : (_jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
31
39
|
};
|
|
32
|
-
const renderPrimaryFoldButton = ({ label, icon, onToggle, labelIcon }) => {
|
|
33
|
-
|
|
34
|
-
const iconHeight = String(labelIcon?.size?.height || 24);
|
|
35
|
-
const iconName = labelIcon?.icon;
|
|
36
|
-
return (_jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full cursor-pointer group/button', iconName ? 'py-2' : 'py-5'), onClick: onToggle, children: [_jsxs("div", { className: "flex items-center group-hover/button:text-primary-main", children: [iconName ? (_jsx(RoundedIcon, { name: iconName, width: iconWidth, height: iconHeight, iconVersion: labelIcon?.iconVersion })) : null, label ? (_jsx(Text, { size: labelSize, font: "font-normal", children: label })) : null] }), icon ? _jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
|
|
40
|
+
const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
|
|
41
|
+
return (_jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full cursor-pointer group/button', labelIcon?.icon ? 'py-2' : 'py-5'), onClick: onToggle, children: [_jsxs("div", { className: "flex items-center group-hover/button:text-primary-main", children: [renderRoundedIcon(labelIcon, labelIconBgVersion), label ? (_jsx(Text, { size: labelSize, font: "font-normal", children: label })) : null] }), icon ? _jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
|
|
37
42
|
};
|
|
38
43
|
//# sourceMappingURL=RollupItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RollupItem.js","sourceRoot":"","sources":["../../../src/components/RollupItem/RollupItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIpE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO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E,KAAK,EACZ,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAClD,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAUF,MAAM,uBAAuB,GAAG,CAAC,EAC/B,KAAK,EACL,kBAAkB,EAClB,IAAI,EACJ,QAAQ,EACR,SAAS,GACc,EAAE,EAAE;IAC3B,OAAO,CACL,kBACE,SAAS,EAAE,KAAK,CACd,sGAAsG,EACtG,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAClC,EACD,OAAO,EAAE,QAAQ,aAEjB,eAAK,SAAS,EAAC,wDAAwD,aACpE,iBAAiB,CAAC,SAAS,EAAE,kBAAkB,CAAC,EAChD,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,IAAI,IAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAC,aAAa,YACtC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,IAAI,CAAC,CAAC,CAAC,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IACnF,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { LabelProps } from '../../model/HeadlineType';
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Picture } from '../../model/Picture';
|
|
4
|
+
import type { IconBgVersion } from '../../ui-kit/Icon/IconProps';
|
|
4
5
|
/**
|
|
5
6
|
* @title Сворачивающаяся секция
|
|
6
7
|
*/
|
|
@@ -9,5 +10,6 @@ export declare type RollupItemContent = UniBlockContent & LabelProps & {
|
|
|
9
10
|
isExpanded?: boolean;
|
|
10
11
|
/** @title Кнопка сверху */
|
|
11
12
|
isFoldButtonOnTop?: boolean;
|
|
12
|
-
labelIcon?:
|
|
13
|
+
labelIcon?: Picture;
|
|
14
|
+
labelIconBgVersion?: IconBgVersion;
|
|
13
15
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderRoundedIcon.js","sourceRoot":"","sources":["../../../src/components/RollupItem/renderRoundedIcon.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAc,EAAE,aAA6B,EAAE,EAAE,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { RoundedIcon } from '../../ui-kit/Icon/RoundedIcon.js';
|
|
3
|
+
export const renderRoundedIcon = (icon, iconBgVersion) => (_jsx(RoundedIcon, { ...icon, iconBgVersion: iconBgVersion }));
|
|
4
|
+
//# sourceMappingURL=renderRoundedIcon.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderRoundedIcon.mobile.js","sourceRoot":"","sources":["../../../src/components/RollupItem/renderRoundedIcon.mobile.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,IAAc,EAAE,aAA6B,EAAE,EAAE,CAAC,CAClF,KAAC,WAAW,OAAK,IAAI,EAAE,aAAa,EAAE,aAAa,GAAI,CACxD,CAAC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { style } from '../../utils/style.js';
|
|
4
3
|
import { Img } from '../Img/Img.js';
|
|
4
|
+
import { style } from '../../utils/style.js';
|
|
5
|
+
import { labelSize } from './labelSize.js';
|
|
5
6
|
import { Paragraph } from '../Paragraph/Paragraph.js';
|
|
6
7
|
import { Text } from '../Text/Text.js';
|
|
7
|
-
export const BenefitItem = JSX((
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return
|
|
8
|
+
export const BenefitItem = JSX((props) => {
|
|
9
|
+
const { className = '', icon, label, description, benefitsVersion = 'normal' } = props;
|
|
10
|
+
const listItemAlign = description ? 'items-start' : 'items-center';
|
|
11
|
+
return (_jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (_jsx("div", { className: getBenefitIconBgStyle(benefitsVersion), children: _jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, _jsxs("div", { className: "gap-0.5", children: [label ? (_jsx(Text, { color: "text-primary-text group-data-secondary:text-white", size: labelSize, children: label })) : null, description ? (_jsx(Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description })) : null] })] }));
|
|
12
|
+
});
|
|
13
|
+
function getBenefitIconBgStyle(benefitsVersion) {
|
|
14
|
+
const bgColorStyle = benefitsVersion === 'normal'
|
|
15
|
+
? 'bg-secondary-light text-primary-main'
|
|
16
|
+
: 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black';
|
|
17
|
+
return style('w-12 h-12 min-w-12 p-2.5 box-border flex items-center justify-center rounded-icon', bgColorStyle);
|
|
17
18
|
}
|
|
18
19
|
//# sourceMappingURL=BenefitItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BenefitItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/BenefitItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"BenefitItem.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/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,CACb,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAED,SAAS,qBAAqB,CAAC,eAA4B;IACnD,MAAM,YAAY,GAClB,eAAe,KAAK,QAAQ;QAC5B,CAAC,CAAC,sCAAsC;QACxC,CAAC,CAAC,6FAA6F,CAAC;IAEhG,OAAO,KAAK,CACZ,mFAAmF,EACnF,YAAY,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const borderRadius = "rounded-md";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borderRadius.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/borderRadius.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const labelSize = "text-h6";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labelSize.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/labelSize.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const labelSize = "text-l";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labelSize.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/BenefitItem/labelSize.mobile.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC"}
|
|
@@ -2,12 +2,12 @@ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { style } from '../../utils/style.js';
|
|
3
3
|
import { Img } from '../Img/Img.js';
|
|
4
4
|
import { Button } from './Button.js';
|
|
5
|
-
export const renderButtonsSection = (buttons, { className = '', buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (_jsx("div", { className: style('flex', isVertical ? 'flex-col gap-2' : 'flex-wrap gap-4', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
|
|
5
|
+
export const renderButtonsSection = (buttons, { className = '', buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (_jsx("div", { className: style('flex', isVertical ? 'flex-col gap-2 justify-items-stretch' : 'flex-wrap gap-4', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
|
|
6
6
|
const renderButton = (buttonClassName = '') => (button, index) => {
|
|
7
7
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
8
8
|
const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
|
|
9
9
|
const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
|
|
10
|
-
return text || icon?.icon ? (_jsx(Button, { className: buttonClassName, appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
10
|
+
return text || icon?.icon ? (_jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
11
11
|
};
|
|
12
12
|
const DEFAULT_ICON_W = 24;
|
|
13
13
|
const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (_jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderButtonsSection.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/renderButtonsSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,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|
export type { IconName };
|
|
4
|
+
/**
|
|
5
|
+
* @title Цвет фона иконки
|
|
6
|
+
* @enumNames [
|
|
7
|
+
* "Основной",
|
|
8
|
+
* "Второстепенный",
|
|
9
|
+
* "Второстепенный светлый"
|
|
10
|
+
* ]
|
|
11
|
+
*/
|
|
4
12
|
export declare type IconBgVersion = 'primary' | 'secondary' | 'secondary-light';
|
|
5
13
|
export interface IconCompatibilityFields {
|
|
6
14
|
/** @title Альтернативный текст (alt) */
|
|
@@ -18,6 +26,3 @@ export declare type IconProps = IconCompatibilityFields & {
|
|
|
18
26
|
name?: IconName;
|
|
19
27
|
iconVersion?: IconVersion;
|
|
20
28
|
};
|
|
21
|
-
export interface RoundedIconProps extends IconProps {
|
|
22
|
-
iconBgVersion?: IconBgVersion;
|
|
23
|
-
}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IconBgVersion } from './IconProps';
|
|
2
|
+
import type { Picture } from '../../model/Picture';
|
|
3
|
+
export interface RoundedIconProps extends Picture {
|
|
4
|
+
iconBgVersion?: IconBgVersion;
|
|
5
|
+
}
|
|
2
6
|
export declare const RoundedIcon: import("@redneckz/uni-jsx").UNIComponent<RoundedIconProps, any, any>;
|
|
@@ -7,5 +7,9 @@ const iconBgStyles = {
|
|
|
7
7
|
secondary: 'bg-white/30',
|
|
8
8
|
'secondary-light': 'bg-secondary-light',
|
|
9
9
|
};
|
|
10
|
-
export const RoundedIcon = JSX(({ iconBgVersion = 'primary',
|
|
10
|
+
export const RoundedIcon = JSX(({ iconBgVersion = 'primary', size, icon, ...rest }) => {
|
|
11
|
+
const width = String(size?.width || 24);
|
|
12
|
+
const height = String(size?.height || 24);
|
|
13
|
+
return icon ? (_jsx("div", { className: style('rounded-icon p-2.5 mr-3', iconBgStyles[iconBgVersion]), children: _jsx(Icon, { ...rest, width: width, height: height, name: icon }) })) : null;
|
|
14
|
+
});
|
|
11
15
|
//# sourceMappingURL=RoundedIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoundedIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/RoundedIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"RoundedIcon.js","sourceRoot":"","sources":["../../../src/ui-kit/Icon/RoundedIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO1C,MAAM,YAAY,GAAkC;IAClD,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,aAAa;IACxB,iBAAiB,EAAE,oBAAoB;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAC5B,CAAC,EAAE,aAAa,GAAG,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACrD,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;IACxC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;IAE1C,OAAO,IAAI,CAAC,CAAC,CAAC,CACZ,cAAK,SAAS,EAAE,KAAK,CAAC,yBAAyB,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC,YAC3E,KAAC,IAAI,OAAK,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAI,GACxD,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CACF,CAAC"}
|