@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VNode } from '../../model/VNode';
|
|
2
|
+
import type { AtmsDef } from './OfficesAtmsMapContent';
|
|
3
|
+
import type { Atm, Branch } from './OfficesAtmsMapProps';
|
|
4
|
+
export declare type InitFilterState = Record<string, boolean>;
|
|
5
|
+
export interface OfficesAtmsMapLayoutProps<T> {
|
|
6
|
+
className?: string;
|
|
7
|
+
data?: T[];
|
|
8
|
+
renderCard?: (item: T, index: number) => VNode;
|
|
9
|
+
filterItems?: (data: T[], filtrationState: InitFilterState) => T[];
|
|
10
|
+
initFilterState?: InitFilterState;
|
|
11
|
+
descriptionData?: AtmsDef;
|
|
12
|
+
title?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<Branch | Atm>, any, any>;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { IconName } from '../../icons/IconName';
|
|
2
|
-
declare const MAP_URL: {
|
|
3
|
-
offices: string;
|
|
4
|
-
atms: string;
|
|
5
|
-
};
|
|
6
|
-
export declare type DataType = keyof typeof MAP_URL;
|
|
1
|
+
import type { IconName } from '../../icons/IconName';
|
|
7
2
|
export interface Currency {
|
|
8
3
|
buyExchangeRate?: number;
|
|
9
4
|
saleExchangeRate?: number;
|
|
@@ -86,5 +81,3 @@ export interface Atm {
|
|
|
86
81
|
gpsLatitude?: number;
|
|
87
82
|
gpsLongitude?: number;
|
|
88
83
|
}
|
|
89
|
-
export declare function useOfficesAtmsMap(regionCode?: string, type?: DataType): Branch[] | Atm[];
|
|
90
|
-
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Atm } from './
|
|
2
|
+
import type { Atm } from './OfficesAtmsMapProps';
|
|
3
3
|
export declare const renderAtmCard: ({ location, address, billAcceptorType, terminalType, billAcceptorEnable, atmCode, atmAccess, workTime, }: Atm, index: number) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Branch, Currency, WorkScheduleWeek } from './
|
|
2
|
+
import type { Branch, Currency, WorkScheduleWeek } from './OfficesAtmsMapProps';
|
|
3
3
|
export declare const renderOfficeCard: ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }: Branch, index: number) => JSX.Element;
|
|
4
4
|
export declare const renderCurrency: ({ currency, buyExchangeRate, saleExchangeRate }: Currency, i: number) => JSX.Element;
|
|
5
5
|
export declare const renderCurrentDaySchedule: (workScheduleWeek?: WorkScheduleWeek) => JSX.Element | null;
|
|
@@ -70,6 +70,7 @@ export declare enum IconMap {
|
|
|
70
70
|
JCBIcon = "JCBIcon",
|
|
71
71
|
LogoIcon = "LogoIcon",
|
|
72
72
|
LoupeIcon = "LoupeIcon",
|
|
73
|
+
MagnifierIcon = "MagnifierIcon",
|
|
73
74
|
MailIcon = "MailIcon",
|
|
74
75
|
MapMarkerClusterIcon = "MapMarkerClusterIcon",
|
|
75
76
|
MapMarkerSingleIcon = "MapMarkerSingleIcon",
|
|
@@ -196,6 +197,7 @@ export declare enum IconTitleMap {
|
|
|
196
197
|
JCBIcon = "JCB",
|
|
197
198
|
LogoIcon = "Logo",
|
|
198
199
|
LoupeIcon = "\u041B\u0443\u043F\u0430",
|
|
200
|
+
MagnifierIcon = "MagnifierIcon",
|
|
199
201
|
MailIcon = "E-mail",
|
|
200
202
|
MapMarkerClusterIcon = "\u041C\u0430\u0440\u043A\u0435\u0440 \u043A\u0430\u0440\u0442\u044B",
|
|
201
203
|
MapMarkerSingleIcon = "\u041C\u0430\u0440\u043A\u0435\u0440 \u043A\u0430\u0440\u0442\u044B \u0420\u0421\u0425\u0411",
|
|
@@ -256,7 +258,7 @@ export declare enum IconTitleMap {
|
|
|
256
258
|
* @title Иконка
|
|
257
259
|
* @enumNames [
|
|
258
260
|
* "",
|
|
259
|
-
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'Белорусский флаг', 'BriefcaseIcon', 'Портфель', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Отправление карты', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Инвестиции', 'Деньги внутри кошелька', 'Стрелка \'Влево\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Монеты', 'Кресло', 'Здание суда', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Сердцебеение', 'Ипотека', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'Иконка Развёрнутая карта', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Нотификация', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Лого «Rutube»', 'Сейф', 'Безопасность', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»', 'Конвертирование'
|
|
261
|
+
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'Белорусский флаг', 'BriefcaseIcon', 'Портфель', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Отправление карты', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Инвестиции', 'Деньги внутри кошелька', 'Стрелка \'Влево\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Монеты', 'Кресло', 'Здание суда', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Сердцебеение', 'Ипотека', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'MagnifierIcon', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'Иконка Развёрнутая карта', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Нотификация', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Лого «Rutube»', 'Сейф', 'Безопасность', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»', 'Конвертирование'
|
|
260
262
|
* ]
|
|
261
263
|
*/
|
|
262
|
-
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownSolidIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowTopRightIcon' | 'ArrowUpIcon' | 'ArrowUpSolidIcon' | 'AtmIcon' | 'BagIcon' | 'BankIcon' | 'BelarusianFlag' | 'BriefcaseIcon' | 'BriefcaseIcon2' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardSendIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartIcon' | 'ChartSquareIcon' | 'ChevronLeftIcon' | 'CinemaIcon' | 'ClientIcon' | 'ClockIcon' | 'CloseIcon' | 'CoinIcon' | 'ComfortableCompIcon' | 'CourtHouseIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HeartTickIcon' | 'HouseIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MailIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MapOpenedIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'NotificationBingIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PercentIcon' | 'PersonalCardIcon' | 'PhoneIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'ResponseFailIcon' | 'ResponseOKIcon' | 'RoundRubleIcon' | 'RutubeIcon' | 'SafeIcon' | 'SecurityCardIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon' | 'YoutubeIcon' | 'СonvertСardIcon';
|
|
264
|
+
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownSolidIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowTopRightIcon' | 'ArrowUpIcon' | 'ArrowUpSolidIcon' | 'AtmIcon' | 'BagIcon' | 'BankIcon' | 'BelarusianFlag' | 'BriefcaseIcon' | 'BriefcaseIcon2' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardSendIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartIcon' | 'ChartSquareIcon' | 'ChevronLeftIcon' | 'CinemaIcon' | 'ClientIcon' | 'ClockIcon' | 'CloseIcon' | 'CoinIcon' | 'ComfortableCompIcon' | 'CourtHouseIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HeartTickIcon' | 'HouseIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MagnifierIcon' | 'MailIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MapOpenedIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'NotificationBingIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PercentIcon' | 'PersonalCardIcon' | 'PhoneIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'ResponseFailIcon' | 'ResponseOKIcon' | 'RoundRubleIcon' | 'RutubeIcon' | 'SafeIcon' | 'SecurityCardIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon' | 'YoutubeIcon' | 'СonvertСardIcon';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseFiltrationInnerContent } from './BaseFiltrationContent';
|
|
2
|
-
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
1
|
import type { BlockDef } from '../../model/ContentPageDef';
|
|
2
|
+
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
3
|
+
import { BaseFiltrationInnerContent } from './BaseFiltrationContent';
|
|
4
4
|
interface BaseFiltrationInnerProps extends BaseFiltrationInnerContent, UniBlockProps {
|
|
5
5
|
blocksToRender?: BlockDef[];
|
|
6
6
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="icon" width="120" height="120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M112.003 107.466c0-.371-.261-.742-.767-1.094-4.664-2.325-19.489-4.005-37.053-4.005-21.316 0-38.603 2.501-38.603 5.568 0 .371.261.742.767 1.094 4.68 2.324 19.489 4.004 37.053 4.004 21.316 0 38.603-2.5 38.603-5.567Z" fill="#39486D"/><path d="M112.003 107.466c0-.371-.261-.742-.767-1.094-4.664-2.325-19.489-4.005-37.053-4.005-21.316 0-38.603 2.501-38.603 5.568 0 .371.261.742.767 1.094 4.68 2.324 19.489 4.004 37.053 4.004 21.316 0 38.603-2.5 38.603-5.567Z" fill="url(#paint0_linear_28863_229544)"/><mask id="mask0_28863_229544" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="9" y="16" width="88" height="84"><path d="m95.828 91.95-18.06-18.06c5.862-7.02 9.057-16.354 8-26.436C84.037 31.035 70.703 17.8 54.273 16.18a35.925 35.925 0 0 0-3.592-.165h-6.116c-20.661 0-37.18 17.74-35.119 38.832C11.078 71.487 24.6 84.908 41.25 86.429c1.124.1 2.248.144 3.35.144h5.873c5.896.033 11.428-1.411 16.32-3.934l16.11 16.11a3.916 3.916 0 0 0 2.612 1.135h6.37a3.875 3.875 0 0 0 2.666-1.135l1.267-1.267a3.894 3.894 0 0 0 .011-5.532ZM25.007 51.289c0-13.147 9.884-23.968 22.611-25.477 12.739 1.51 22.612 12.33 22.612 25.477 0 13.146-9.884 23.967-22.612 25.476-12.727-1.51-22.611-12.33-22.611-25.476Z" fill="#fff"/></mask><g mask="url(#mask0_28863_229544)"><path d="m95.828 91.95-18.06-18.06c5.862-7.02 9.057-16.354 8-26.436C84.037 31.035 70.703 17.8 54.273 16.18a35.925 35.925 0 0 0-3.592-.165h-6.116c-20.661 0-37.18 17.74-35.119 38.832C11.078 71.487 24.6 84.908 41.25 86.429c1.124.1 2.248.144 3.35.144h5.873c5.896.033 11.428-1.411 16.32-3.934l16.11 16.11a3.916 3.916 0 0 0 2.612 1.135h6.37a3.874 3.874 0 0 0 2.666-1.135l1.267-1.267a3.894 3.894 0 0 0 .011-5.532ZM22.007 54.289c0-13.147 12.884-26.968 25.611-28.477 12.739 1.51 22.612 12.33 22.612 25.477 0 13.146-9.884 23.967-22.612 25.476-12.727-1.51-25.611-9.33-25.611-22.476Z" fill="#4A864C"/></g><mask id="mask1_28863_229544" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="9" y="16" width="82" height="84"><path d="m89.713 91.947-18.06-18.06c5.862-7.02 9.057-16.354 8-26.436-1.742-16.419-15.064-29.653-31.494-31.273C25.856 13.974 7.277 32.553 9.45 54.845c1.63 16.639 15.15 30.06 31.801 31.581 8.672.794 16.76-1.576 23.284-6.06l18.38 18.38a3.903 3.903 0 0 0 5.532 0l1.267-1.267a3.904 3.904 0 0 0 0-5.532ZM18.892 51.286c0-14.182 11.493-25.676 25.675-25.676s25.675 11.494 25.675 25.676c0 14.181-11.493 25.675-25.675 25.675S18.892 65.467 18.892 51.286Z" fill="#fff"/></mask><g mask="url(#mask1_28863_229544)"><path d="m89.713 91.947-18.06-18.06c5.862-7.02 9.057-16.354 8-26.436-1.742-16.419-15.064-29.653-31.494-31.273C25.856 13.974 7.277 32.553 9.45 54.845c1.63 16.639 15.15 30.06 31.801 31.581 8.672.794 16.76-1.576 23.284-6.06l18.38 18.38a3.903 3.903 0 0 0 5.532 0l1.267-1.267a3.904 3.904 0 0 0 0-5.532ZM18.892 51.286c0-14.182 11.493-25.676 25.675-25.676s25.675 11.494 25.675 25.676c0 14.181-11.493 25.675-25.675 25.675S18.892 65.467 18.892 51.286Z" fill="#C4D7D8"/><path d="m89.713 91.947-18.06-18.06c5.862-7.02 9.057-16.354 8-26.436-1.742-16.419-15.064-29.653-31.494-31.273C25.856 13.974 7.277 32.553 9.45 54.845c1.63 16.639 15.15 30.06 31.801 31.581 8.672.794 16.76-1.576 23.284-6.06l18.38 18.38a3.903 3.903 0 0 0 5.532 0l1.267-1.267a3.904 3.904 0 0 0 0-5.532ZM18.892 51.286c0-14.182 11.493-25.676 25.675-25.676s25.675 11.494 25.675 25.676c0 14.181-11.493 25.675-25.675 25.675S18.892 65.467 18.892 51.286Z" fill="url(#paint1_linear_28863_229544)"/><path d="M10.286 56.674c-2.182-22.292 16.408-40.87 38.71-38.667 12.21 1.201 22.69 8.827 27.99 19.394-4.97-11.504-15.934-19.945-28.827-21.223C25.856 13.974 7.277 32.553 9.45 54.845c.418 4.308 1.652 8.386 3.514 12.121-1.388-3.229-2.325-6.678-2.677-10.292Z" fill="#fff"/><path d="M65.425 36.367c3.02 4.21 4.816 9.356 4.816 14.92 0 14.182-11.493 25.676-25.675 25.676-7.868 0-14.91-3.549-19.615-9.125 4.661 6.502 12.254 10.755 20.86 10.755 14.182 0 25.675-11.493 25.675-25.675a25.539 25.539 0 0 0-6.06-16.55ZM85.657 96.763c-.342 0-.694-.132-.959-.386l-10.17-9.928a1.373 1.373 0 0 1-.023-1.94c.53-.54 1.4-.55 1.94-.021l10.17 9.928c.54.529.551 1.4.023 1.94a1.377 1.377 0 0 1-.981.407Z" fill="#fff"/></g><path d="M29.005 62.638c0-14.182 11.493-25.675 25.675-25.675 4.837 0 9.366 1.344 13.234 3.67-3.846-8.42-12.11-14.392-21.83-14.965-13.465.793-24.143 11.956-24.143 25.62 0 7.405 3.14 14.072 8.155 18.766a25.741 25.741 0 0 1-1.091-7.416Z" fill="#fff"/><path d="M29.005 62.638c0-14.182 11.493-25.675 25.675-25.675 4.837 0 9.366 1.344 13.234 3.67-3.846-8.42-12.11-14.392-21.83-14.965-13.465.793-24.143 11.956-24.143 25.62 0 7.405 3.14 14.072 8.155 18.766a25.741 25.741 0 0 1-1.091-7.416Z" fill="url(#paint2_linear_28863_229544)"/><defs><linearGradient id="paint0_linear_28863_229544" x1="112.003" y1="107.7" x2="35.58" y2="107.7" gradientUnits="userSpaceOnUse"><stop stop-color="#0057D6"/><stop offset=".31" stop-color="#0057D6" stop-opacity="0"/><stop offset=".666" stop-color="#C2E5B1" stop-opacity="0"/><stop offset="1" stop-color="#C2E6B1"/></linearGradient><linearGradient id="paint1_linear_28863_229544" x1="90.862" y1="99.895" x2="21.021" y2="24.555" gradientUnits="userSpaceOnUse"><stop stop-color="#7DC15D"/><stop offset="1" stop-color="#7DC15D" stop-opacity="0"/></linearGradient><linearGradient id="paint2_linear_28863_229544" x1="33.023" y1="28.448" x2="40.793" y2="67.299" gradientUnits="userSpaceOnUse"><stop stop-color="#C2E5B1"/><stop offset=".309" stop-color="#FEFFCF"/><stop offset="1" stop-color="#FEFFCF" stop-opacity="0"/></linearGradient></defs></svg>
|
|
@@ -2,16 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.ButtonsBlock = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const AlignJustifyStyle_1 = require("../../model/AlignJustifyStyle");
|
|
5
6
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
7
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
7
8
|
const style_1 = require("../../utils/style");
|
|
8
|
-
const alignStyleMap = {
|
|
9
|
-
start: 'justify-start',
|
|
10
|
-
center: 'justify-center',
|
|
11
|
-
end: 'justify-end',
|
|
12
|
-
};
|
|
13
9
|
exports.ButtonsBlock = (0, uni_jsx_1.JSX)(({ buttons, className = '', align, ...rest }) => {
|
|
14
|
-
const alignStyle = align ? (0, style_1.style)('flex',
|
|
10
|
+
const alignStyle = align ? (0, style_1.style)('flex', AlignJustifyStyle_1.AlignJustifyStyle[align]) : '';
|
|
15
11
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: (0, renderButtonsSection_1.renderButtonsSection)(buttons) }));
|
|
16
12
|
});
|
|
17
13
|
//# sourceMappingURL=ButtonsBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonsBlock.js","sourceRoot":"","sources":["../../../src/components/ButtonsBlock/ButtonsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ButtonsBlock.js","sourceRoot":"","sources":["../../../src/components/ButtonsBlock/ButtonsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAElE,4DAAyD;AACzD,mFAAgF;AAChF,6CAA0C;AAK7B,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC9C,MAAM,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,IAAA,aAAK,EAAC,MAAM,EAAE,qCAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAExE,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,iBAAiB,EAAE,UAAU,EAAE,SAAS,CAAC,EAC1D,cAAc,EAAC,KAAK,KAChB,IAAI,YAEP,IAAA,2CAAoB,EAAC,OAAO,CAAC,GACjB,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -4,16 +4,12 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
6
|
const useCarouselControls_1 = require("../../hooks/useCarouselControls");
|
|
7
|
+
const AlignJustifyStyle_1 = require("../../model/AlignJustifyStyle");
|
|
7
8
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
8
9
|
const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
|
|
9
10
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
11
|
const style_1 = require("../../utils/style");
|
|
11
12
|
const renderCalculatorBlock_1 = require("./renderCalculatorBlock");
|
|
12
|
-
const alignStyleMap = {
|
|
13
|
-
start: 'justify-start',
|
|
14
|
-
center: 'justify-center',
|
|
15
|
-
end: 'justify-end',
|
|
16
|
-
};
|
|
17
13
|
exports.Calculator = (0, uni_jsx_1.JSX)(({ className = '', tabAlign, calculatorTabs = [], ...rest }) => {
|
|
18
14
|
const tabsNav = calculatorTabs.map((_) => _.nav || {});
|
|
19
15
|
const calculatorBlocks = calculatorTabs.map(({ calculatorBlock }) => calculatorBlock || {});
|
|
@@ -56,7 +52,7 @@ function renderNavButton({ tab, i, isActive, onClick }) {
|
|
|
56
52
|
}
|
|
57
53
|
function renderTabs({ activeIndex, tabsNav, tabAlign, slideIndexShift, onClick }) {
|
|
58
54
|
const CARD_SHIFT = 388;
|
|
59
|
-
const alignStyle = tabAlign ?
|
|
55
|
+
const alignStyle = tabAlign ? AlignJustifyStyle_1.AlignJustifyStyle[tabAlign] : '';
|
|
60
56
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.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: (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('w-full flex flex-nowrap items-end gap-xs', alignStyle), children: tabsNav.map((tab, i) => renderNavButton({
|
|
61
57
|
tab,
|
|
62
58
|
i,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calculator.js","sourceRoot":"","sources":["../../../src/components/Calculator/Calculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,yEAAsE;
|
|
1
|
+
{"version":3,"file":"Calculator.js","sourceRoot":"","sources":["../../../src/components/Calculator/Calculator.tsx"],"names":[],"mappings":";;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/jsx-runtime");
|
|
|
4
4
|
const useLink_1 = require("../../hooks/useLink");
|
|
5
5
|
const formatDate_1 = require("../../utils/formatDate");
|
|
6
6
|
const DepositoryItem = ({ title, timestamp = '', publicId }) => {
|
|
7
|
-
const link = (0, useLink_1.useLink)();
|
|
7
|
+
const link = (0, useLink_1.useLink)({ basePath: '/' });
|
|
8
8
|
const { href } = link({ href: `/api/v1/depository/${publicId}/file` });
|
|
9
9
|
return ((0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [(0, jsx_runtime_1.jsx)("div", { className: "col-span-2 text-m", children: (0, jsx_runtime_1.jsx)("span", { children: (0, formatDate_1.formatDate)(timestamp) }) }), (0, jsx_runtime_1.jsx)("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: (0, jsx_runtime_1.jsx)("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositoryItem.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryItem.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,uDAAoD;AAG7C,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACxF,MAAM,IAAI,GAAG,IAAA,iBAAO,
|
|
1
|
+
{"version":3,"file":"DepositoryItem.js","sourceRoot":"","sources":["../../../src/components/Depository/DepositoryItem.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,uDAAoD;AAG7C,MAAM,cAAc,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACxF,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;IACxC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,sBAAsB,QAAQ,OAAO,EAAE,CAAC,CAAC;IAEvE,OAAO,CACL,iCAAK,SAAS,EAAC,gEAAgE,aAC7E,gCAAK,SAAS,EAAC,mBAAmB,YAChC,2CAAO,IAAA,uBAAU,EAAC,SAAS,CAAC,GAAQ,GAChC,EACN,gCAAK,SAAS,EAAC,+CAA+C,YAC5D,8BAAG,IAAI,EAAE,IAAI,EAAE,QAAQ,sBAAY,4CAAS,YACzC,KAAK,GACJ,GACA,KAR6E,QAAQ,CASvF,CACP,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,cAAc,kBAgBzB"}
|
|
@@ -20,7 +20,7 @@ exports.Footer = (0, uni_jsx_1.JSX)(({ className, ...rest }) => {
|
|
|
20
20
|
const fallback = rest.options?.page?.fallback;
|
|
21
21
|
const { topItems } = (0, useSitemap_1.useSitemap)(fallback);
|
|
22
22
|
const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.FOOTER || 'footer', { fallback });
|
|
23
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl", ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(RollupItem_1.RollupItem, { label: item?.text, labelIcon: item?.icon, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { items: item.items, basePath: (0, appendSlash_1.appendSlash)(item.href) }) }, String(i)))) }), (0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-xl", children: [(0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents })] }));
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl pb-24", ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(RollupItem_1.RollupItem, { label: item?.text, labelIcon: item?.icon, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { items: item.items, basePath: (0, appendSlash_1.appendSlash)(item.href) }) }, String(i)))) }), (0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-xl", children: [(0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents })] }));
|
|
24
24
|
});
|
|
25
25
|
const renderButton = ({ href = '/', text }, i) => {
|
|
26
26
|
const { label } = (0, findIconByHref_1.findIconByHref)(href);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AACxD,+DAA4D;AAE5D,kEAA+D;AAC/D,4DAAyD;AACzD,uDAAoD;AACpD,iDAA8C;AAC9C,yDAAsD;AACtD,yDAAsD;AACtD,yCAAsC;AAGtC,iEAA8D;AAC9D,yCAAsC;AACtC,+CAA4C;AAC5C,uDAAoD;AACpD,qDAAkD;AAErC,QAAA,MAAM,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;IAC9C,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,uBAAU,EAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,EACJ,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,UAAU,EACV,yBAAyB,EACzB,SAAS,GACV,GAAG,IAAA,+BAAc,EAAkB,iCAAe,CAAC,MAAM,IAAI,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEtF,OAAO,CACL,wBAAC,2BAAY,IAAC,GAAG,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,EAAE,cAAc,EAAC,
|
|
1
|
+
{"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AACxD,+DAA4D;AAE5D,kEAA+D;AAC/D,4DAAyD;AACzD,uDAAoD;A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K,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,2DAEpD,EACd,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,oIAE1D,EACP,gCAAK,SAAS,EAAC,OAAO,YAAE,UAAU,EAAE,GAAG,CAAC,YAAY,CAAC,GAAO,IACxD,EACN,uBAAC,2CAAoB,IACnB,SAAS,EAAC,oCAAoC,EAC9C,KAAK,EAAE,yBAAyB,EAChC,KAAK,EAAE,kBAAkB,GACzB,EACF,uBAAC,iCAAe,IAAC,KAAK,EAAE,SAAS,GAAI,IACxB,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,GAAG,GAAG,EAAE,IAAI,EAAa,EAAE,CAAS,EAAE,EAAE;IAClE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAC;IAEvC,OAAO,CACL,uBAAC,eAAM,IAEL,SAAS,EAAC,cAAc,EACxB,IAAI,EAAE,IAAI,IAAI,KAAK,EACnB,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,IALV,MAAM,CAAC,CAAC,CAAC,CAMd,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -7,12 +7,12 @@ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
|
7
7
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
8
8
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
9
9
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
10
11
|
const style_1 = require("../../utils/style");
|
|
11
|
-
const renderDescription_1 = require("./renderDescription");
|
|
12
12
|
const renderList_1 = require("./renderList");
|
|
13
13
|
exports.MobileAppTile = (0, uni_jsx_1.JSX)(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
14
14
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
15
15
|
const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "hidden lg:block", image: image }) : null;
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: (0, style_1.style)('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons), children: [(0,
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: (0, style_1.style)('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'flex-wrap' }), children: [description ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [(0, renderList_1.renderList)(items, listItemSize), qr?.src ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-fit", image: qr }) })) : null, image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=MobileAppTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,6CAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6DAA0D;AAC1D,4DAAyD;AACzD,mFAAgF;AAChF,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,6CAA0C;AAE1C,6CAA0C;AAI7B,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,GAAG,WAAW,EACnB,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,WAAW,GAAG,IAAI,EAClB,KAAK,EACL,KAAK,EACL,YAAY,EACZ,EAAE,EACF,KAAK,GAAG,sBAAsB,EAC9B,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,cAAc,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC;IAE7E,MAAM,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAElF,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,SAAS,CAAC,EACvC,OAAO,EAA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time_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useLocation_1 = require("../../hooks/useLocation");
|
|
6
|
+
const OfficesAtmsMapLayout_1 = require("./OfficesAtmsMapLayout");
|
|
7
|
+
const renderAtmCard_1 = require("./renderAtmCard");
|
|
8
|
+
const useAtms_1 = require("./useAtms");
|
|
9
|
+
const INITIAL_FILTRATION_STATE = {
|
|
10
|
+
terminalTypeAtms: true,
|
|
11
|
+
terminalTypeTerm: false,
|
|
12
|
+
workAllTime: false,
|
|
13
|
+
billAcceptorEnable: false,
|
|
14
|
+
};
|
|
15
|
+
const FILTRATION_PREDICATES = {
|
|
16
|
+
terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
|
|
17
|
+
terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
|
|
18
|
+
workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
|
|
19
|
+
billAcceptorEnable: (item) => Boolean(item.billAcceptorEnable),
|
|
20
|
+
};
|
|
21
|
+
exports.AtmsMap = (0, uni_jsx_1.JSX)(({ data, className }) => {
|
|
22
|
+
const [currentLocation] = (0, useLocation_1.useLocation)();
|
|
23
|
+
const regionCode = currentLocation?.code ?? '000';
|
|
24
|
+
const officesData = (0, useAtms_1.useAtms)(regionCode);
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(OfficesAtmsMapLayout_1.OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderAtmCard_1.renderAtmCard, title: `Банкоматы филиала ${currentLocation?.name}`, descriptionData: data }));
|
|
26
|
+
});
|
|
27
|
+
const filterItems = (data, filtrationState) => {
|
|
28
|
+
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
29
|
+
const filtersOR = truthyFilters.filter((_) => _.startsWith('terminalType'));
|
|
30
|
+
const filtersAND = truthyFilters.filter((_) => !filtersOR.includes(_));
|
|
31
|
+
return data.filter((item) => {
|
|
32
|
+
const resultAND = filtersAND.every((_) => FILTRATION_PREDICATES[_](item));
|
|
33
|
+
const resultOR = filtersOR.length
|
|
34
|
+
? filtersOR.some((_) => FILTRATION_PREDICATES[_](item))
|
|
35
|
+
: true;
|
|
36
|
+
return resultAND && resultOR;
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=AtmsMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/AtmsMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AAEtD,iEAA8D;AAE9D,mDAAgD;AAChD,uCAAoC;AAEpC,MAAM,wBAAwB,GAAG;IAC/B,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,KAAK;IACvB,WAAW,EAAE,KAAK;IAClB,kBAAkB,EAAE,KAAK;CAC1B,CAAC;AAEF,MAAM,qBAAqB,GAAG;IAC5B,gBAAgB,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,UAAU;IAChF,gBAAgB,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,UAAU;IAChF,WAAW,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,eAAe;IAC5E,kBAAkB,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC;CACpE,CAAC;AAOW,QAAA,OAAO,GAAG,IAAA,aAAG,EAAe,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE;IAC/D,MAAM,CAAC,eAAe,CAAC,GAAG,IAAA,yBAAW,GAAE,CAAC;IAExC,MAAM,U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IAAI,CAAC;QAET,OAAO,SAAS,IAAI,QAAQ,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -2,68 +2,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.OfficesAtmsMap = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const useForm_1 = require("../../hooks/useForm");
|
|
7
|
-
const useLocation_1 = require("../../hooks/useLocation");
|
|
8
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
9
|
-
const Button_1 = require("../../ui-kit/Button/Button");
|
|
10
|
-
const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
|
|
11
|
-
const ClientOnly_1 = require("../../ui-kit/ClientOnly");
|
|
12
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
13
|
-
const Icon_1 = require("../../ui-kit/Icon/Icon");
|
|
14
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
15
|
-
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
16
|
-
const Text_1 = require("../../ui-kit/Text/Text");
|
|
17
|
-
const YandexMap_1 = require("../../ui-kit/YandexMap/YandexMap");
|
|
18
6
|
const style_1 = require("../../utils/style");
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const INITIAL_FILTRATION_OFFICES_STATE = {
|
|
23
|
-
safeBoxCaseVolumes: false,
|
|
24
|
-
workingSaturday: false,
|
|
25
|
-
};
|
|
26
|
-
const INITIAL_FILTRATION_ATMS_STATE = {
|
|
27
|
-
terminalTypeAtms: true,
|
|
28
|
-
terminalTypeTerm: false,
|
|
29
|
-
workAllTime: false,
|
|
30
|
-
billAcceptorEnable: false,
|
|
31
|
-
};
|
|
32
|
-
const FILTRATION_LABELS = {
|
|
33
|
-
safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
|
|
34
|
-
workingSaturday: 'Открыты по субботам',
|
|
35
|
-
terminalTypeAtms: 'Банкоматы',
|
|
36
|
-
terminalTypeTerm: 'Терминалы',
|
|
37
|
-
workAllTime: 'Круглосуточно',
|
|
38
|
-
billAcceptorEnable: 'Прием наличных',
|
|
39
|
-
};
|
|
40
|
-
const FILTRATION_PREDICATES = {
|
|
41
|
-
safeBoxCaseVolumes: (item) => Boolean(item.safeBoxCaseVolumes),
|
|
42
|
-
workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
|
|
43
|
-
terminalTypeAtms: (item) => item.terminalType?.toLowerCase() === 'банкомат',
|
|
44
|
-
terminalTypeTerm: (item) => item.terminalType?.toLowerCase() === 'терминал',
|
|
45
|
-
workAllTime: (item) => item.workTime?.toLowerCase() === 'круглосуточно',
|
|
46
|
-
billAcceptorEnable: (item) => Boolean(item.billAcceptorEnable),
|
|
47
|
-
};
|
|
48
|
-
exports.OfficesAtmsMap = (0, uni_jsx_1.JSX)(({ data, className = '', ...rest }) => {
|
|
7
|
+
const AtmsMap_1 = require("./AtmsMap");
|
|
8
|
+
const OfficesMap_1 = require("./OfficesMap");
|
|
9
|
+
exports.OfficesAtmsMap = (0, uni_jsx_1.JSX)(({ data, className, ...rest }) => {
|
|
49
10
|
const dataType = data?.dataType ?? 'offices';
|
|
50
|
-
|
|
51
|
-
const [filtrationState, { field, reset }] = (0, useForm_1.useForm)(initialState);
|
|
52
|
-
const [currentLocation] = (0, useLocation_1.useLocation)();
|
|
53
|
-
const [regionCode, title] = (0, hooks_1.useMemo)(() => [currentLocation?.code || '000', getTitle(currentLocation?.name, dataType)], [currentLocation, dataType]);
|
|
54
|
-
const officesAtmsData = (0, useOfficesAtmsMap_1.useOfficesAtmsMap)(regionCode, dataType);
|
|
55
|
-
const filteredOfficesAtmsData = filterOfficesAtms(officesAtmsData, filtrationState);
|
|
56
|
-
const lengthOfficesAtms = filteredOfficesAtmsData.length;
|
|
57
|
-
const points = filteredOfficesAtmsData
|
|
58
|
-
.map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
|
|
59
|
-
.filter((_) => _ && _.length === 2);
|
|
60
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { version: "transparent", className: (0, style_1.style)('grid grid-cols-12 gap-1', className), defaultPadding: "p-0", ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "col-span-12 bg-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "pt-6xl px-6xl", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-2 pb-2xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", children: title }), lengthOfficesAtms ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthOfficesAtms})` })) : null] }), data && 'description' in data ? renderDescriptionBlock(data) : null, renderFiltrationForm(Object.keys(initialState), { field, reset })] }), (0, jsx_runtime_1.jsx)("div", { className: "h-[600px]", children: (0, jsx_runtime_1.jsx)(ClientOnly_1.ClientOnly, { children: (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-full" }) }) })] }), filteredOfficesAtmsData.map(dataType === 'offices' ? renderOfficeCard_1.renderOfficeCard : renderAtmCard_1.renderAtmCard)] }));
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { version: "transparent", className: (0, style_1.style)(className), defaultPadding: "p-0", ...rest, children: dataType === 'offices' ? (0, jsx_runtime_1.jsx)(OfficesMap_1.OfficesMap, {}) : (0, jsx_runtime_1.jsx)(AtmsMap_1.AtmsMap, { data: data }) }));
|
|
61
12
|
});
|
|
62
|
-
const filterOfficesAtms = (data, filtrationState) => {
|
|
63
|
-
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
64
|
-
return data.filter((item) => truthyFilters.every((filterName) => FILTRATION_PREDICATES[filterName](item)));
|
|
65
|
-
};
|
|
66
|
-
const getTitle = (name = '', dataType = 'offices') => dataType === 'offices' ? `Офисы филиала ${name}` : `Банкоматы филиала ${name}`;
|
|
67
|
-
const renderFiltrationForm = (filters, { field, reset }) => ((0, jsx_runtime_1.jsxs)("div", { className: "pb-2xl", children: [filters?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap gap-3xl pb-2xl", children: filters.map((key) => ((0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, (0, jsx_runtime_1.jsx)(Button_1.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: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
|
|
68
|
-
const renderDescriptionBlock = ({ description, list }) => ((0, jsx_runtime_1.jsxs)("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [(0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", font: "font-light", children: description }), list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-2xl flex-wrap pt-xs", children: list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] }));
|
|
69
13
|
//# sourceMappingURL=OfficesAtmsMap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfficesAtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"OfficesAtmsMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,6CAA0C;AAC1C,uCAAoC;AAEpC,6CAA0C;AAI7B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACtF,MAAM,QAAQ,GAAG,IAAI,EAAE,QAAQ,IAAI,SAAS,CAAC;IAE7C,OAAO,CACL,uBAAC,2BAAY,IAAC,OAAO,EAAC,aAAa,EAAC,SAAS,EAAE,IAAA,aAAK,EAAC,SAAS,CAAC,EAAE,cAAc,EAAC,KAAK,KAAK,IAAI,YAC3F,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,uBAAC,uBAAU,KAAG,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,IAAI,EAAE,IAAe,GAAI,GAChE,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VNode } from '../../model/VNode';
|
|
2
|
+
import type { AtmsDef } from './OfficesAtmsMapContent';
|
|
3
|
+
import type { Atm, Branch } from './OfficesAtmsMapProps';
|
|
4
|
+
export declare type InitFilterState = Record<string, boolean>;
|
|
5
|
+
export interface OfficesAtmsMapLayoutProps<T> {
|
|
6
|
+
className?: string;
|
|
7
|
+
data?: T[];
|
|
8
|
+
renderCard?: (item: T, index: number) => VNode;
|
|
9
|
+
filterItems?: (data: T[], filtrationState: InitFilterState) => T[];
|
|
10
|
+
initFilterState?: InitFilterState;
|
|
11
|
+
descriptionData?: AtmsDef;
|
|
12
|
+
title?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<Branch | Atm>, any, any>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.OfficesAtmsMapLayout = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const useForm_1 = require("../../hooks/useForm");
|
|
6
|
+
const ClientOnly_1 = require("../../ui-kit/ClientOnly");
|
|
7
|
+
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
8
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
9
|
+
const Paragraph_1 = require("../../ui-kit/Paragraph/Paragraph");
|
|
10
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
11
|
+
const YandexMap_1 = require("../../ui-kit/YandexMap/YandexMap");
|
|
12
|
+
const style_1 = require("../../utils/style");
|
|
13
|
+
const renderFiltrationForm_1 = require("./renderFiltrationForm");
|
|
14
|
+
const defaultRenderCard = () => null;
|
|
15
|
+
const defaultFilterItems = () => [];
|
|
16
|
+
exports.OfficesAtmsMapLayout = (0, uni_jsx_1.JSX)(({ className, data = [], renderCard = defaultRenderCard, filterItems = defaultFilterItems, initFilterState = {}, descriptionData, title, }) => {
|
|
17
|
+
const [filtrationState, { field, reset }] = (0, useForm_1.useForm)(initFilterState);
|
|
18
|
+
const filteredItems = filterItems(data, filtrationState);
|
|
19
|
+
const points = filteredItems
|
|
20
|
+
.map((_) => [_.gpsLatitude, _.gpsLongitude].filter(Boolean))
|
|
21
|
+
.filter((_) => _ && _.length === 2);
|
|
22
|
+
const lengthItems = filteredItems.length;
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('space-y-1', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "bg-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "pt-6xl px-6xl", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs pb-2xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", children: title }), lengthItems ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthItems})` })) : null] }), descriptionData ? renderDescriptionBlock(descriptionData) : null, (0, renderFiltrationForm_1.renderFiltrationForm)(Object.keys(initFilterState), { field, reset })] }), (0, jsx_runtime_1.jsx)("div", { className: "h-[600px]", children: (0, jsx_runtime_1.jsx)(ClientOnly_1.ClientOnly, { children: (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
24
|
+
});
|
|
25
|
+
const renderDescriptionBlock = (data) => ((0, jsx_runtime_1.jsxs)("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [data?.description ? ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-l", font: "font-light", children: data.description })) : null, data?.list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-2xl flex-wrap pt-xs", children: data.list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] }));
|
|
26
|
+
//# sourceMappingURL=OfficesAtmsMapLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfficesAtmsMapLayout.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,wDAAqD;AACrD,0DAAuD;AACvD,8CAA2C;AAC3C,gEAA6D;AAC7D,iDAA8C;AAC9C,gEAA6D;AAC7D,6CAA0C;AAG1C,iEAA8D;AAE9D,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;AACrC,MAAM,kBAAkB,GAAG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conName';
|
|
2
|
-
declare const MAP_URL: {
|
|
3
|
-
offices: string;
|
|
4
|
-
atms: string;
|
|
5
|
-
};
|
|
6
|
-
export declare type DataType = keyof typeof MAP_URL;
|
|
1
|
+
import type { IconName } from '../../icons/IconName';
|
|
7
2
|
export interface Currency {
|
|
8
3
|
buyExchangeRate?: number;
|
|
9
4
|
saleExchangeRate?: number;
|
|
@@ -86,5 +81,3 @@ export interface Atm {
|
|
|
86
81
|
gpsLatitude?: number;
|
|
87
82
|
gpsLongitude?: number;
|
|
88
83
|
}
|
|
89
|
-
export declare function useOfficesAtmsMap(regionCode?: string, type?: DataType): Branch[] | Atm[];
|
|
90
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OfficesAtmsMapProps.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx"],"names":[],"mappings":""}
|