@redneckz/wildless-cms-uni-blocks 0.14.14 → 0.14.16
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +114 -82
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Depository/DepositoryItem.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/{dist/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts → bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts} +1 -8
- package/bundle/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/bundle/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/model/AlignJustifyStyle.d.ts +2 -0
- package/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/cosmos-static/icons/MagnifierIcon.svg +1 -0
- package/dist/components/ButtonsBlock/ButtonsBlock.js +2 -6
- package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +2 -6
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Depository/DepositoryItem.d.ts +1 -1
- package/dist/components/Depository/DepositoryItem.js +1 -1
- package/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/dist/components/OfficesAtmsMap/AtmsMap.js +39 -0
- package/dist/components/OfficesAtmsMap/AtmsMap.js.map +1 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -60
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +26 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -0
- package/{bundle/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts → dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts} +1 -8
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.js +2 -0
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.js.map +1 -0
- package/dist/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/dist/components/OfficesAtmsMap/OfficesMap.js +27 -0
- package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +17 -0
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/dist/components/OfficesAtmsMap/useAtms.js +15 -0
- package/dist/components/OfficesAtmsMap/useAtms.js.map +1 -0
- package/dist/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/dist/components/OfficesAtmsMap/useOffices.js +15 -0
- package/dist/components/OfficesAtmsMap/useOffices.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +2 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +3 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/AlignJustifyStyle.d.ts +2 -0
- package/dist/model/AlignJustifyStyle.js +8 -0
- package/dist/model/AlignJustifyStyle.js.map +1 -0
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -4
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +6 -6
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +5 -1
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.js +2 -6
- package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +2 -6
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Depository/DepositoryItem.d.ts +1 -1
- package/lib/components/Depository/DepositoryItem.js +1 -1
- package/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/lib/components/OfficesAtmsMap/AtmsMap.js +37 -0
- package/lib/components/OfficesAtmsMap/AtmsMap.js.map +1 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +5 -61
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +24 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -0
- package/lib/components/OfficesAtmsMap/{useOfficesAtmsMap.d.ts → OfficesAtmsMapProps.d.ts} +1 -8
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.js +2 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.js.map +1 -0
- package/lib/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/lib/components/OfficesAtmsMap/OfficesMap.js +25 -0
- package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +14 -0
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/useAtms.js +12 -0
- package/lib/components/OfficesAtmsMap/useAtms.js.map +1 -0
- package/lib/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/useOffices.js +12 -0
- package/lib/components/OfficesAtmsMap/useOffices.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +2 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +3 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/AlignJustifyStyle.d.ts +2 -0
- package/lib/model/AlignJustifyStyle.js +6 -0
- package/lib/model/AlignJustifyStyle.js.map +1 -0
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -4
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +6 -6
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +5 -1
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +26 -24
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Depository/DepositoryItem.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/mobile/bundle/components/OfficesAtmsMap/{useOfficesAtmsMap.d.ts → OfficesAtmsMapProps.d.ts} +1 -8
- package/mobile/bundle/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/mobile/bundle/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/model/AlignJustifyStyle.d.ts +2 -0
- package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js +2 -6
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.d.ts +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.js +1 -1
- package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/mobile/dist/components/OfficesAtmsMap/AtmsMap.js +39 -0
- package/mobile/dist/components/OfficesAtmsMap/AtmsMap.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js +4 -60
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +26 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +83 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.js +2 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +27 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +17 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/mobile/dist/components/OfficesAtmsMap/useAtms.js +15 -0
- package/mobile/dist/components/OfficesAtmsMap/useAtms.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js +15 -0
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +2 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +3 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/AlignJustifyStyle.d.ts +2 -0
- package/mobile/dist/model/AlignJustifyStyle.js +8 -0
- package/mobile/dist/model/AlignJustifyStyle.js.map +1 -0
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -4
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +6 -6
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +5 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js +2 -6
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.d.ts +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.js +1 -1
- package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/AtmsMap.d.ts +6 -0
- package/mobile/lib/components/OfficesAtmsMap/AtmsMap.js +37 -0
- package/mobile/lib/components/OfficesAtmsMap/AtmsMap.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js +5 -61
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +14 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +24 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +83 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.js +2 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.d.ts +4 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +25 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +6 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +14 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/useAtms.d.ts +2 -0
- package/mobile/lib/components/OfficesAtmsMap/useAtms.js +12 -0
- package/mobile/lib/components/OfficesAtmsMap/useAtms.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/useOffices.d.ts +2 -0
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js +12 -0
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +2 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +3 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/AlignJustifyStyle.d.ts +2 -0
- package/mobile/lib/model/AlignJustifyStyle.js +6 -0
- package/mobile/lib/model/AlignJustifyStyle.js.map +1 -0
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -4
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +6 -6
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +5 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.tsx +2 -8
- package/mobile/src/components/Depository/DepositoryItem.tsx +2 -2
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +9 -5
- package/mobile/src/components/OfficesAtmsMap/AtmsMap.tsx +61 -0
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +5 -145
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +97 -0
- package/mobile/src/components/OfficesAtmsMap/{useOfficesAtmsMap.ts → OfficesAtmsMapProps.tsx} +1 -26
- package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +45 -0
- package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +35 -0
- package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/useAtms.ts +20 -0
- package/mobile/src/components/OfficesAtmsMap/useOffices.ts +20 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +3 -1
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/MagnifierIcon.svg +39 -0
- package/mobile/src/model/AlignJustifyStyle.ts +7 -0
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +19 -12
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +11 -6
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -2
- package/mobile/src/ui-kit/Select/SelectPopup.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +6 -1
- package/package.json +2 -2
- package/src/components/ButtonsBlock/ButtonsBlock.tsx +2 -8
- package/src/components/Calculator/Calculator.tsx +2 -7
- package/src/components/Depository/DepositoryItem.tsx +2 -2
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +9 -5
- package/src/components/OfficesAtmsMap/AtmsMap.tsx +61 -0
- package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +5 -145
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +97 -0
- package/src/components/OfficesAtmsMap/{useOfficesAtmsMap.ts → OfficesAtmsMapProps.tsx} +1 -26
- package/src/components/OfficesAtmsMap/OfficesMap.tsx +45 -0
- package/src/components/OfficesAtmsMap/renderAtmCard.tsx +1 -1
- package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +35 -0
- package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +1 -1
- package/src/components/OfficesAtmsMap/useAtms.ts +20 -0
- package/src/components/OfficesAtmsMap/useOffices.ts +20 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +3 -1
- package/src/icons/IconName.ts +5 -5
- package/src/icons/MagnifierIcon.svg +39 -0
- package/src/model/AlignJustifyStyle.ts +7 -0
- package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +19 -12
- package/src/ui-kit/BaseTile/BaseTile.tsx +11 -6
- package/src/ui-kit/Button/ButtonInner.tsx +2 -2
- package/src/ui-kit/Select/SelectPopup.tsx +1 -1
- package/src/ui-kit/YandexMap/YandexMap.tsx +6 -1
- package/bundle/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/dist/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/dist/components/MobileAppTile/renderDescription.js +0 -7
- package/dist/components/MobileAppTile/renderDescription.js.map +0 -1
- package/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js +0 -19
- package/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +0 -1
- package/lib/components/MobileAppTile/renderDescription.d.ts +0 -1
- package/lib/components/MobileAppTile/renderDescription.js +0 -4
- package/lib/components/MobileAppTile/renderDescription.js.map +0 -1
- package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js +0 -16
- package/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +0 -1
- package/mobile/bundle/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/mobile/dist/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/mobile/dist/components/MobileAppTile/renderDescription.js +0 -7
- package/mobile/dist/components/MobileAppTile/renderDescription.js.map +0 -1
- package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +0 -90
- package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js +0 -19
- package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +0 -1
- package/mobile/lib/components/MobileAppTile/renderDescription.d.ts +0 -2
- package/mobile/lib/components/MobileAppTile/renderDescription.js +0 -4
- package/mobile/lib/components/MobileAppTile/renderDescription.js.map +0 -1
- package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.d.ts +0 -90
- package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js +0 -16
- package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMap.js.map +0 -1
- package/mobile/src/components/MobileAppTile/renderDescription.tsx +0 -10
- package/src/components/MobileAppTile/renderDescription.tsx +0 -10
package/bundle/bundle.umd.js
CHANGED
|
@@ -513,10 +513,10 @@
|
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
const REGIONS_URL$1 = '/api/v1/regions';
|
|
516
|
-
const EMPTY_VALUE$
|
|
516
|
+
const EMPTY_VALUE$5 = [];
|
|
517
517
|
function useGetRegions() {
|
|
518
518
|
const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
|
|
519
|
-
return data || EMPTY_VALUE$
|
|
519
|
+
return data || EMPTY_VALUE$5;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
const useDialogManager = () => ({
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
|
|
639
639
|
const ButtonInner = JSX((props) => {
|
|
640
640
|
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
641
|
-
return (jsxs("div", { className: style(getButtonStyle(props), 'flex gap-xs'), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
641
|
+
return (jsxs("div", { className: style(getButtonStyle(props), 'flex gap-xs'), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
642
642
|
});
|
|
643
643
|
const getButtonStyle = (props) => {
|
|
644
644
|
const { version, aboveText, rounded } = props;
|
|
@@ -832,7 +832,7 @@
|
|
|
832
832
|
return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()));
|
|
833
833
|
};
|
|
834
834
|
|
|
835
|
-
const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md
|
|
835
|
+
const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: () => onChange && onChange(option), children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
|
|
836
836
|
|
|
837
837
|
function useSelectPopup({ isOpen, options, value, query, onChange, onClose, }) {
|
|
838
838
|
const popup = usePopupManager();
|
|
@@ -972,14 +972,14 @@
|
|
|
972
972
|
});
|
|
973
973
|
|
|
974
974
|
const BRANCHES_URL = '/api/v1/branches';
|
|
975
|
-
const EMPTY_VALUE$
|
|
975
|
+
const EMPTY_VALUE$4 = [];
|
|
976
976
|
function useBranches(regionCode) {
|
|
977
977
|
const { data } = useAsyncData(regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes$1);
|
|
978
|
-
return data || EMPTY_VALUE$
|
|
978
|
+
return data || EMPTY_VALUE$4;
|
|
979
979
|
}
|
|
980
980
|
const fetchSafeBoxes$1 = async (url) => {
|
|
981
981
|
const result = await fetchJSON(url, { method: 'GET' });
|
|
982
|
-
return result || EMPTY_VALUE$
|
|
982
|
+
return result || EMPTY_VALUE$4;
|
|
983
983
|
};
|
|
984
984
|
|
|
985
985
|
const MIN_CREDIT_AMOUNT = 1000;
|
|
@@ -1124,15 +1124,15 @@
|
|
|
1124
1124
|
return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "@xl:text-center mb-m" }), jsxs("div", { className: "max-w-[560px] m-auto space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between flex-col-reverse @xl:items-center @xl:flex-row max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
|
|
1125
1125
|
});
|
|
1126
1126
|
|
|
1127
|
-
const EMPTY_VALUE$
|
|
1127
|
+
const EMPTY_VALUE$3 = {};
|
|
1128
1128
|
const DEFAULT_FOLDER_NAME = 'wcms-resources';
|
|
1129
1129
|
function useSWRResource(filename, options = {}) {
|
|
1130
|
-
const { fallback = EMPTY_VALUE$
|
|
1130
|
+
const { fallback = EMPTY_VALUE$3, folderName = DEFAULT_FOLDER_NAME, setBasePath = false } = options;
|
|
1131
1131
|
const path = joinPath('/', setBasePath ? projectSettings.BASE_PATH : '', folderName, `${filename}.json`);
|
|
1132
1132
|
const { data } = useAsyncData(filename ? path : null, fetchJSONUnsafe, {
|
|
1133
1133
|
fallback,
|
|
1134
1134
|
});
|
|
1135
|
-
return data || EMPTY_VALUE$
|
|
1135
|
+
return data || EMPTY_VALUE$3;
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
1138
|
const ApplicationFormGrantSupport = JSX((props) => {
|
|
@@ -1298,8 +1298,8 @@
|
|
|
1298
1298
|
const AlignStyles = 'text-center';
|
|
1299
1299
|
|
|
1300
1300
|
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: AlignStyles, title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
|
|
1301
|
-
const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "@sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$
|
|
1302
|
-
const renderDescription$
|
|
1301
|
+
const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "@sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$2(benefit.description)] })) : null] }, String(i)));
|
|
1302
|
+
const renderDescription$2 = (description) => {
|
|
1303
1303
|
const benefitType = description?.benefitType || null;
|
|
1304
1304
|
return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
|
|
1305
1305
|
? renderListBenefit(description)
|
|
@@ -1438,13 +1438,14 @@
|
|
|
1438
1438
|
|
|
1439
1439
|
const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), jsx("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
1440
1440
|
|
|
1441
|
-
const
|
|
1441
|
+
const AlignJustifyStyle = {
|
|
1442
1442
|
start: 'justify-start',
|
|
1443
1443
|
center: 'justify-center',
|
|
1444
1444
|
end: 'justify-end',
|
|
1445
1445
|
};
|
|
1446
|
+
|
|
1446
1447
|
const ButtonsBlock = JSX(({ buttons, className = '', align, ...rest }) => {
|
|
1447
|
-
const alignStyle = align ? style('flex',
|
|
1448
|
+
const alignStyle = align ? style('flex', AlignJustifyStyle[align]) : '';
|
|
1448
1449
|
return (jsx(BlockWrapper, { className: style('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) }));
|
|
1449
1450
|
});
|
|
1450
1451
|
|
|
@@ -2208,11 +2209,6 @@
|
|
|
2208
2209
|
return (jsx("section", { className: "box-border relative bg-white flex shrink-0 self-start basis-full", role: "listitem", children: jsxs("div", { className: "box-border p-4xl w-full space-y-xl", children: [block?.title ? jsx(Heading, { className: "text-center", title: block.title }) : null, jsx(EmbeddedBlock, { ...block })] }) }, String(i)));
|
|
2209
2210
|
};
|
|
2210
2211
|
|
|
2211
|
-
const alignStyleMap = {
|
|
2212
|
-
start: 'justify-start',
|
|
2213
|
-
center: 'justify-center',
|
|
2214
|
-
end: 'justify-end',
|
|
2215
|
-
};
|
|
2216
2212
|
const Calculator = JSX(({ className = '', tabAlign, calculatorTabs = [], ...rest }) => {
|
|
2217
2213
|
const tabsNav = calculatorTabs.map((_) => _.nav || {});
|
|
2218
2214
|
const calculatorBlocks = calculatorTabs.map(({ calculatorBlock }) => calculatorBlock || {});
|
|
@@ -2255,7 +2251,7 @@
|
|
|
2255
2251
|
}
|
|
2256
2252
|
function renderTabs$1({ activeIndex, tabsNav, tabAlign, slideIndexShift, onClick }) {
|
|
2257
2253
|
const CARD_SHIFT = 388;
|
|
2258
|
-
const alignStyle = tabAlign ?
|
|
2254
|
+
const alignStyle = tabAlign ? AlignJustifyStyle[tabAlign] : '';
|
|
2259
2255
|
return (jsxs("div", { children: [jsx("div", { style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, className: "flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000", children: jsx("div", { className: style('w-full flex flex-nowrap items-end gap-xs', alignStyle), children: tabsNav.map((tab, i) => renderNavButton$3({
|
|
2260
2256
|
tab,
|
|
2261
2257
|
i,
|
|
@@ -2624,13 +2620,13 @@
|
|
|
2624
2620
|
center: '@xl:self-center',
|
|
2625
2621
|
end: '@xl:self-end',
|
|
2626
2622
|
};
|
|
2627
|
-
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col-reverse @xl:flex-row justify-around @xl:justify-between items-stretch gap-3xl'), children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow
|
|
2628
|
-
className: style('@xl:justify-self-end @xl:
|
|
2623
|
+
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, isImageAlwaysOnRight = false, isImageSecondary = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col-reverse @xl:flex-row justify-around @xl:justify-between items-stretch gap-3xl'), children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('grid gap-3xl', rightImage ? '@xl:grid-cols-2' : '', leftImage ? '' : 'grow'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderImageContainer(rightImage, {
|
|
2624
|
+
className: style('@xl:justify-self-end @xl:col-start-2', buttons ? rowSpanStyle(isImageAlwaysOnRight) : '', positionStyle(isImageAlwaysOnRight), isImageSecondary ? 'hidden @xl:block' : ''),
|
|
2629
2625
|
imageAlign,
|
|
2630
|
-
}),
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2633
|
-
|
|
2626
|
+
}), renderButtons(buttons)] })] })] })));
|
|
2627
|
+
const rowSpanStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'row-span-2' : '@xl:row-span-2';
|
|
2628
|
+
const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'justify-self-end col-start-2 self-center' : '';
|
|
2629
|
+
const renderButtons = (buttons) => buttons ? jsx("div", { className: "self-end", children: buttons }) : null;
|
|
2634
2630
|
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('shrink-1/2 justify-self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2635
2631
|
|
|
2636
2632
|
const cardStyleMap = {
|
|
@@ -2696,14 +2692,14 @@
|
|
|
2696
2692
|
const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
2697
2693
|
|
|
2698
2694
|
const CarouselProductCard = JSX(({ additionalDescription, align = AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
|
|
2699
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription$
|
|
2695
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription$1(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
|
|
2700
2696
|
className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
|
|
2701
2697
|
isVertical: isButtonFullWidth,
|
|
2702
2698
|
})] }));
|
|
2703
2699
|
});
|
|
2704
2700
|
const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-y-lg justify-center', isImageFullWidth ? 'min-w-full h-full' : '', isTopPosition ? 'order-first' : 'order-last'), children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? (jsx(Img, { className: style(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full'), image: image })) : null] }));
|
|
2705
2701
|
const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
|
|
2706
|
-
const renderDescription$
|
|
2702
|
+
const renderDescription$1 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
|
|
2707
2703
|
const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
|
|
2708
2704
|
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
|
|
2709
2705
|
|
|
@@ -2968,9 +2964,7 @@
|
|
|
2968
2964
|
return (jsx(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
|
|
2969
2965
|
}, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
|
|
2970
2966
|
});
|
|
2971
|
-
|
|
2972
|
-
return (jsx("div", { className: "bg-white py-20", children: jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true }) }));
|
|
2973
|
-
}
|
|
2967
|
+
const renderNotFound = ({ title, description }) => (jsxs("div", { className: "bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center", children: [jsx(Img, { image: { icon: 'MagnifierIcon' }, width: "120", height: "120" }), jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: AlignStyles })] }));
|
|
2974
2968
|
|
|
2975
2969
|
const isEmpty = (v) => v === null ||
|
|
2976
2970
|
v === undefined ||
|
|
@@ -3157,7 +3151,7 @@
|
|
|
3157
3151
|
const formatDate$1 = (date) => date.split('-').reverse().join('.');
|
|
3158
3152
|
|
|
3159
3153
|
const DepositoryItem = ({ title, timestamp = '', publicId }) => {
|
|
3160
|
-
const link = useLink();
|
|
3154
|
+
const link = useLink({ basePath: '/' });
|
|
3161
3155
|
const { href } = link({ href: `/api/v1/depository/${publicId}/file` });
|
|
3162
3156
|
return (jsxs("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [jsx("div", { className: "col-span-2 text-m", children: jsx("span", { children: formatDate$1(timestamp) }) }), jsx("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: jsx("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
|
|
3163
3157
|
};
|
|
@@ -4147,8 +4141,6 @@
|
|
|
4147
4141
|
return (jsx("div", { role: "listitem", children: jsx(LinkDocItem, { text: docBlockDef?.text, target: docBlockDef?.target, href: href, fileSize: fileSize, icon: icon ? jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
|
|
4148
4142
|
};
|
|
4149
4143
|
|
|
4150
|
-
const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-lg pt-3xs", children: jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description }) })) : null;
|
|
4151
|
-
|
|
4152
4144
|
const renderList$1 = (items, listItemSize) => {
|
|
4153
4145
|
return items?.length ? (jsx(List, { items: items, listItemSize: listItemSize, className: "text-l font-light" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
|
|
4154
4146
|
};
|
|
@@ -4156,7 +4148,7 @@
|
|
|
4156
4148
|
const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
4157
4149
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
4158
4150
|
const img = image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null;
|
|
4159
|
-
return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: renderButtonsSection(buttons), children: [
|
|
4151
|
+
return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: renderButtonsSection(buttons, { className: 'flex-wrap' }), children: [description ? (jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [renderList$1(items, listItemSize), qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
4160
4152
|
});
|
|
4161
4153
|
|
|
4162
4154
|
const badgeBgStyleMap = {
|
|
@@ -4398,6 +4390,10 @@
|
|
|
4398
4390
|
useEffect(() => {
|
|
4399
4391
|
if (!map?.current) {
|
|
4400
4392
|
yandexMaps?.ready(() => {
|
|
4393
|
+
// Ready function may be called few times, but must be called once
|
|
4394
|
+
if (map.current) {
|
|
4395
|
+
return;
|
|
4396
|
+
}
|
|
4401
4397
|
map.current = new yandexMaps.Map('map', {
|
|
4402
4398
|
center: pointsCenter,
|
|
4403
4399
|
zoom,
|
|
@@ -4413,7 +4409,7 @@
|
|
|
4413
4409
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
4414
4410
|
}
|
|
4415
4411
|
}
|
|
4416
|
-
}, [yandexMaps, map, points]);
|
|
4412
|
+
}, [yandexMaps, map, points, pointsCenter, zoom]);
|
|
4417
4413
|
if (!yandexMaps) {
|
|
4418
4414
|
return null;
|
|
4419
4415
|
}
|
|
@@ -4437,6 +4433,29 @@
|
|
|
4437
4433
|
const mapByIndex = (arr, index) => arr.map((a) => a[index]);
|
|
4438
4434
|
const getArraySumAndAverage = (arr) => arr.length && arr.reduce((a, b) => a + b) / arr.length;
|
|
4439
4435
|
|
|
4436
|
+
const FILTRATION_LABELS = {
|
|
4437
|
+
safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
|
|
4438
|
+
workingSaturday: 'Открыты по субботам',
|
|
4439
|
+
terminalTypeAtms: 'Банкоматы',
|
|
4440
|
+
terminalTypeTerm: 'Терминалы',
|
|
4441
|
+
workAllTime: 'Круглосуточно',
|
|
4442
|
+
billAcceptorEnable: 'Прием наличных',
|
|
4443
|
+
};
|
|
4444
|
+
const renderFiltrationForm = (filters, { field, reset }) => (jsxs("div", { className: "pb-2xl", children: [filters?.length ? (jsx("div", { className: "flex flex-wrap gap-3xl pb-2xl", children: filters.map((key) => (jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, jsx(Button, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: jsx(Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
|
|
4445
|
+
|
|
4446
|
+
const defaultRenderCard = () => null;
|
|
4447
|
+
const defaultFilterItems = () => [];
|
|
4448
|
+
const OfficesAtmsMapLayout = JSX(({ className, data = [], renderCard = defaultRenderCard, filterItems = defaultFilterItems, initFilterState = {}, descriptionData, title, }) => {
|
|
4449
|
+
const [filtrationState, { field, reset }] = useForm(initFilterState);
|
|
4450
|
+
const filteredItems = filterItems(data, filtrationState);
|
|
4451
|
+
const points = filteredItems
|
|
4452
|
+
.map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
|
|
4453
|
+
.filter((_) => _ && _.length === 2);
|
|
4454
|
+
const lengthItems = filteredItems.length;
|
|
4455
|
+
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "pt-6xl px-6xl", children: [jsxs("div", { className: "flex gap-xs pb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthItems})` })) : null] }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, renderFiltrationForm(Object.keys(initFilterState), { field, reset })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
4456
|
+
});
|
|
4457
|
+
const renderDescriptionBlock$1 = (data) => (jsxs("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [data?.description ? (jsx(Paragraph, { size: "text-l", font: "font-light", children: data.description })) : null, data?.list?.length ? (jsx("div", { className: "flex gap-2xl flex-wrap pt-xs", children: data.list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] }));
|
|
4458
|
+
|
|
4440
4459
|
const colorStyle = {
|
|
4441
4460
|
yellow: { border: 'border-yellow-light', text: 'text-yellow' },
|
|
4442
4461
|
green: { border: 'border-green-light', text: 'text-green-dark' },
|
|
@@ -4477,6 +4496,47 @@
|
|
|
4477
4496
|
const renderInfo = (item, index) => (jsx(CardCell, { ...item }, String(index)));
|
|
4478
4497
|
const capitalizedFirstLetter = (text) => text ? `${text?.charAt(0)?.toUpperCase()}${text?.slice(1)}` : '';
|
|
4479
4498
|
|
|
4499
|
+
const EMPTY_VALUE$2 = [];
|
|
4500
|
+
function useAtms(regionCode) {
|
|
4501
|
+
const { data = EMPTY_VALUE$2 } = useAsyncData(`/api/v1/atms?regionCode=${regionCode}`, fetchMap$1);
|
|
4502
|
+
return data;
|
|
4503
|
+
}
|
|
4504
|
+
const fetchMap$1 = async (url) => {
|
|
4505
|
+
const result = await fetchJSON(url, { method: 'GET' });
|
|
4506
|
+
return result || EMPTY_VALUE$2;
|
|
4507
|
+
};
|
|
4508
|
+
|
|
4509
|
+
const INITIAL_FILTRATION_STATE$1 = {
|
|
4510
|
+
terminalTypeAtms: true,
|
|
4511
|
+
terminalTypeTerm: false,
|
|
4512
|
+
workAllTime: false,
|
|
4513
|
+
billAcceptorEnable: false,
|
|
4514
|
+
};
|
|
4515
|
+
const FILTRATION_PREDICATES$1 = {
|
|
4516
|
+
terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
|
|
4517
|
+
terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
|
|
4518
|
+
workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
|
|
4519
|
+
billAcceptorEnable: (item) => Boolean(item.billAcceptorEnable),
|
|
4520
|
+
};
|
|
4521
|
+
const AtmsMap = JSX(({ data, className }) => {
|
|
4522
|
+
const [currentLocation] = useLocation();
|
|
4523
|
+
const regionCode = currentLocation?.code ?? '000';
|
|
4524
|
+
const officesData = useAtms(regionCode);
|
|
4525
|
+
return (jsx(OfficesAtmsMapLayout, { className: className, filterItems: filterItems$1, data: officesData, initFilterState: INITIAL_FILTRATION_STATE$1, renderCard: renderAtmCard, title: `Банкоматы филиала ${currentLocation?.name}`, descriptionData: data }));
|
|
4526
|
+
});
|
|
4527
|
+
const filterItems$1 = (data, filtrationState) => {
|
|
4528
|
+
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
4529
|
+
const filtersOR = truthyFilters.filter((_) => _.startsWith('terminalType'));
|
|
4530
|
+
const filtersAND = truthyFilters.filter((_) => !filtersOR.includes(_));
|
|
4531
|
+
return data.filter((item) => {
|
|
4532
|
+
const resultAND = filtersAND.every((_) => FILTRATION_PREDICATES$1[_](item));
|
|
4533
|
+
const resultOR = filtersOR.length
|
|
4534
|
+
? filtersOR.some((_) => FILTRATION_PREDICATES$1[_](item))
|
|
4535
|
+
: true;
|
|
4536
|
+
return resultAND && resultOR;
|
|
4537
|
+
});
|
|
4538
|
+
};
|
|
4539
|
+
|
|
4480
4540
|
const WEEKDAY_MAP = [
|
|
4481
4541
|
['Понедельник', 'workingMonday'],
|
|
4482
4542
|
['Вторник', 'workingTuesday'],
|
|
@@ -4515,67 +4575,39 @@
|
|
|
4515
4575
|
};
|
|
4516
4576
|
const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => (jsx(CardCell, { label: title, value: status && workTime ? workTime : '', subText: !status ? 'Выходной' : lunchHour, subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(index)));
|
|
4517
4577
|
|
|
4518
|
-
const MAP_URL = {
|
|
4519
|
-
offices: '/api/v1/branches',
|
|
4520
|
-
atms: '/api/v1/atms',
|
|
4521
|
-
};
|
|
4522
4578
|
const EMPTY_VALUE$1 = [];
|
|
4523
|
-
function
|
|
4524
|
-
const { data } = useAsyncData(
|
|
4525
|
-
return data
|
|
4579
|
+
function useOffices(regionCode) {
|
|
4580
|
+
const { data = EMPTY_VALUE$1 } = useAsyncData(`/api/v1/branches?regionCode=${regionCode}`, fetchMap);
|
|
4581
|
+
return data;
|
|
4526
4582
|
}
|
|
4527
4583
|
const fetchMap = async (url) => {
|
|
4528
4584
|
const result = await fetchJSON(url, { method: 'GET' });
|
|
4529
4585
|
return result || EMPTY_VALUE$1;
|
|
4530
4586
|
};
|
|
4531
4587
|
|
|
4532
|
-
const
|
|
4533
|
-
safeBoxCaseVolumes: false,
|
|
4588
|
+
const INITIAL_FILTRATION_STATE = {
|
|
4589
|
+
//safeBoxCaseVolumes: false, //TODO: temp hide
|
|
4534
4590
|
workingSaturday: false,
|
|
4535
4591
|
};
|
|
4536
|
-
const INITIAL_FILTRATION_ATMS_STATE = {
|
|
4537
|
-
terminalTypeAtms: true,
|
|
4538
|
-
terminalTypeTerm: false,
|
|
4539
|
-
workAllTime: false,
|
|
4540
|
-
billAcceptorEnable: false,
|
|
4541
|
-
};
|
|
4542
|
-
const FILTRATION_LABELS = {
|
|
4543
|
-
safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
|
|
4544
|
-
workingSaturday: 'Открыты по субботам',
|
|
4545
|
-
terminalTypeAtms: 'Банкоматы',
|
|
4546
|
-
terminalTypeTerm: 'Терминалы',
|
|
4547
|
-
workAllTime: 'Круглосуточно',
|
|
4548
|
-
billAcceptorEnable: 'Прием наличных',
|
|
4549
|
-
};
|
|
4550
4592
|
const FILTRATION_PREDICATES = {
|
|
4551
|
-
safeBoxCaseVolumes: (item) => Boolean(item.safeBoxCaseVolumes),
|
|
4593
|
+
//safeBoxCaseVolumes: (item: Branch) => Boolean(item.safeBoxCaseVolumes), //TODO: temp hide
|
|
4552
4594
|
workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
|
|
4553
|
-
terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
|
|
4554
|
-
terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
|
|
4555
|
-
workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
|
|
4556
|
-
billAcceptorEnable: (item) => Boolean(item.billAcceptorEnable),
|
|
4557
4595
|
};
|
|
4558
|
-
const
|
|
4559
|
-
const dataType = data?.dataType ?? 'offices';
|
|
4560
|
-
const initialState = dataType === 'offices' ? INITIAL_FILTRATION_OFFICES_STATE : INITIAL_FILTRATION_ATMS_STATE;
|
|
4561
|
-
const [filtrationState, { field, reset }] = useForm(initialState);
|
|
4596
|
+
const OfficesMap = JSX(({ className }) => {
|
|
4562
4597
|
const [currentLocation] = useLocation();
|
|
4563
|
-
const
|
|
4564
|
-
const
|
|
4565
|
-
|
|
4566
|
-
const lengthOfficesAtms = filteredOfficesAtmsData.length;
|
|
4567
|
-
const points = filteredOfficesAtmsData
|
|
4568
|
-
.map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
|
|
4569
|
-
.filter((_) => _ && _.length === 2);
|
|
4570
|
-
return (jsxs(BlockWrapper, { version: "transparent", className: style('grid grid-cols-12 gap-1', className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "col-span-12 bg-white", children: [jsxs("div", { className: "pt-6xl px-6xl", children: [jsxs("div", { className: "flex gap-2 pb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthOfficesAtms ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthOfficesAtms})` })) : null] }), data && 'description' in data ? renderDescriptionBlock$1(data) : null, renderFiltrationForm(Object.keys(initialState), { field, reset })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard : renderAtmCard)] }));
|
|
4598
|
+
const regionCode = currentLocation?.code ?? '000';
|
|
4599
|
+
const officesData = useOffices(regionCode);
|
|
4600
|
+
return (jsx(OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderOfficeCard, title: `Офисы филиала ${currentLocation?.name}` }));
|
|
4571
4601
|
});
|
|
4572
|
-
const
|
|
4602
|
+
const filterItems = (data, filtrationState) => {
|
|
4573
4603
|
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
4574
|
-
return data.filter((item) => truthyFilters.every((
|
|
4604
|
+
return data.filter((item) => truthyFilters.every((_) => FILTRATION_PREDICATES[_](item)));
|
|
4575
4605
|
};
|
|
4576
|
-
|
|
4577
|
-
const
|
|
4578
|
-
|
|
4606
|
+
|
|
4607
|
+
const OfficesAtmsMap = JSX(({ data, className, ...rest }) => {
|
|
4608
|
+
const dataType = data?.dataType ?? 'offices';
|
|
4609
|
+
return (jsx(BlockWrapper, { version: "transparent", className: style(className), defaultPadding: "p-0", ...rest, children: dataType === 'offices' ? jsx(OfficesMap, {}) : jsx(AtmsMap, { data: data }) }));
|
|
4610
|
+
});
|
|
4579
4611
|
|
|
4580
4612
|
const ParagraphBlock = JSX(({ text, size, align, font, children, ...rest }) => (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(Paragraph, { size: size, align: align, font: font, children: text || children }) })));
|
|
4581
4613
|
|
|
@@ -5451,7 +5483,7 @@
|
|
|
5451
5483
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5452
5484
|
}
|
|
5453
5485
|
|
|
5454
|
-
const packageVersion = "0.14.
|
|
5486
|
+
const packageVersion = "0.14.16";
|
|
5455
5487
|
|
|
5456
5488
|
exports.Blocks = Blocks;
|
|
5457
5489
|
exports.ContentPage = ContentPage;
|