@redneckz/wildless-cms-uni-blocks 0.6.17 → 0.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.6.16.js +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +85 -59
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/StepsBlock/renderStepContent.d.ts +2 -2
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +7 -1
- package/bundle/components/TariffsTable/TariffsTableCell.d.ts +8 -2
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -4
- package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
- package/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -1
- package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
- package/bundle/ui-kit/InnerTable/InnerTable.d.ts +1 -0
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +3 -3
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/renderItems.js +1 -4
- package/dist/components/StepsBlock/renderItems.js.map +1 -1
- package/dist/components/StepsBlock/renderStepContent.d.ts +2 -2
- package/dist/components/StepsBlock/renderStepContent.js +13 -8
- package/dist/components/StepsBlock/renderStepContent.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.d.ts +7 -1
- package/dist/components/TariffsTable/EmbeddableCellData.js +4 -11
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.d.ts +8 -2
- package/dist/components/TariffsTable/TariffsTableCell.js +13 -18
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -4
- package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
- package/dist/components/TariffsTable/TariffsTableRenderCell.js +42 -0
- package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
- package/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +6 -2
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.js +2 -8
- package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +4 -3
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.d.ts +1 -0
- package/dist/ui-kit/InnerTable/InnerTable.js +3 -2
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
- package/dist/ui-kit/InnerTable/InnerTableButton.js +2 -6
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +6 -2
- package/lib/components/StepsBlock/StepsBlock.js +3 -3
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/renderItems.js +1 -4
- package/lib/components/StepsBlock/renderItems.js.map +1 -1
- package/lib/components/StepsBlock/renderStepContent.d.ts +2 -2
- package/lib/components/StepsBlock/renderStepContent.js +14 -9
- package/lib/components/StepsBlock/renderStepContent.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.d.ts +7 -1
- package/lib/components/TariffsTable/EmbeddableCellData.js +4 -11
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.d.ts +8 -2
- package/lib/components/TariffsTable/TariffsTableCell.js +14 -19
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -4
- package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
- package/lib/components/TariffsTable/TariffsTableRenderCell.js +39 -0
- package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
- package/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +6 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -8
- package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +4 -3
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.d.ts +1 -0
- package/lib/ui-kit/InnerTable/InnerTable.js +3 -2
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
- package/lib/ui-kit/InnerTable/InnerTableButton.js +2 -6
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +2 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +8 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +3 -4
- package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
- package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +0 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
- package/mobile/bundle/ui-kit/InnerTable/InnerTable.d.ts +1 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderItems.js +1 -4
- package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +2 -2
- package/mobile/dist/components/StepsBlock/renderStepContent.js +13 -8
- package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +8 -2
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +13 -18
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +3 -4
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +42 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
- package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +0 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +6 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +2 -8
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +4 -3
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.d.ts +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +3 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +2 -6
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderItems.js +1 -4
- package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +2 -2
- package/mobile/lib/components/StepsBlock/renderStepContent.js +14 -9
- package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +8 -2
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +14 -19
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +3 -4
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +11 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +39 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -0
- package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +0 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +6 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +3 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +2 -8
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +4 -3
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.d.ts +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +3 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -0
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +2 -6
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +5 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +6 -1
- package/mobile/src/components/StepsBlock/renderItems.tsx +5 -8
- package/mobile/src/components/StepsBlock/renderStepContent.tsx +40 -15
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +39 -45
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +3 -4
- package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +88 -0
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +18 -9
- package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +5 -20
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -1
- package/mobile/src/ui-kit/BlockWrapper.tsx +5 -3
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +13 -4
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +20 -26
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/Radio/Radio.tsx +2 -2
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/package.json +1 -1
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +5 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +6 -1
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +72 -81
- package/src/components/StepsBlock/StepsBlock.tsx +3 -3
- package/src/components/StepsBlock/renderItems.tsx +5 -8
- package/src/components/StepsBlock/renderStepContent.tsx +40 -15
- package/src/components/TariffsTable/EmbeddableCellData.tsx +20 -18
- package/src/components/TariffsTable/TariffsTable.tsx +1 -2
- package/src/components/TariffsTable/TariffsTableCell.tsx +39 -45
- package/src/components/TariffsTable/TariffsTableContent.ts +3 -4
- package/src/components/TariffsTable/TariffsTableRenderCell.tsx +88 -0
- package/src/components/TariffsTable/TariffsTableRow.tsx +18 -9
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +5 -20
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -1
- package/src/ui-kit/BlockWrapper.tsx +5 -3
- package/src/ui-kit/InnerTable/InnerTable.tsx +13 -4
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +20 -26
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/Radio/Radio.tsx +2 -2
- package/src/ui-kit/Select/Select.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAiBpC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,EAAE;IAC9F,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACtF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,UAAU,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IAEzD,eAAe,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAEvC,MAAM,YAAY,GAAG,CAAC,MAAmB,EAAE,EAAE;QAC3C,eAAe,CAAC,MAAM,CAAC,CAAC;QACxB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,YAAY,CAAC,GAAG,CAAC,CAAC;IAErF,SAAS,CAAC,GAAG,EAAE;QACb,eAAe,CAAC,KAAK,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,GAAG,EAAE,UAAU,aAC5C,KAAK,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAiBpC,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,GAAG,EAAE,EAAE,EAAE,EAAE;IAC9F,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACtF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,UAAU,GAAG,MAAM,CAA0B,IAAI,CAAC,CAAC;IAEzD,eAAe,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IAEvC,MAAM,YAAY,GAAG,CAAC,MAAmB,EAAE,EAAE;QAC3C,eAAe,CAAC,MAAM,CAAC,CAAC;QACxB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,MAAM,UAAU,GAAG,CAAC,MAAmB,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,YAAY,CAAC,GAAG,CAAC,CAAC;IAErF,SAAS,CAAC,GAAG,EAAE;QACb,eAAe,CAAC,KAAK,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,CACL,eAAK,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,GAAG,EAAE,UAAU,aAC5C,KAAK,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,6BAA6B,YAAE,KAAK,GAAQ,CAAC,CAAC,CAAC,IAAI,EAC5E,eAAK,SAAS,EAAE,YAAY,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,aACpD,eACE,SAAS,EAAE;cACT,cAAc,CAAC,QAAQ,CAAC,EAAE,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,aAEjC,YAAG,SAAS,EAAC,mEAAmE,YAC7E,YAAY,EAAE,IAAI,IAAI,WAAW,GAChC,EACJ,KAAC,IAAI,IACH,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAE,oBAAoB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE,GAC3D,IACE,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACjB,cAAK,SAAS,EAAE,OAAO,kBAAkB,CAAC,MAAM,CAAC,EAAE,YACjD,cACE,SAAS,EAAE,iHAAiH,YAE3H,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,GACxD,GACF,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,MAAe,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC;AAElF,MAAM,YAAY,GAChB,CACE,YAA2C,EAC3C,MAAe,EACf,UAA4C,EAC5C,EAAE,CACJ,CAAC,MAAmB,EAAE,CAAS,EAAE,EAAE;IACjC,OAAO,CACL,eAEE,OAAO,EAAE,GAAG,EAAE;YACZ,YAAY,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC,EACD,SAAS,EAAC,oEAAoE,aAE9E,eAAM,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,IAAI,GAAQ,EAC9C,KAAC,IAAI,IACH,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAE,CAAC,yBAAyB,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CACvF,GAAG,CACJ,GACD,KAdG,MAAM,CAAC,CAAC,CAAC,CAeV,CACP,CAAC;AACJ,CAAC,CAAC;AAEJ,MAAM,cAAc,GAAG,CAAC,QAAiB,EAAE,EAAE,CAC3C,QAAQ,CAAC,CAAC,CAAC,iEAAiE,CAAC,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -292,6 +292,9 @@
|
|
|
292
292
|
const THRESHOLD_ACCURACY = 100; // Decimals number (100 is for two decimals number, 0.**)
|
|
293
293
|
const THRESHOLD_ARRAY_LENGTH = 18;
|
|
294
294
|
const THRESHOLD_ARRAY_START_VALUE = (THRESHOLD_ACCURACY - THRESHOLD_ARRAY_LENGTH) / THRESHOLD_ACCURACY;
|
|
295
|
+
const OBSERVER_OPTIONS = {
|
|
296
|
+
threshold: new Array(THRESHOLD_ARRAY_LENGTH).fill(0).map(getIntersectionThreshold),
|
|
297
|
+
};
|
|
295
298
|
const BlockWrapper = JSX(({ anchor, className, children, tag = 'section', labels }) => {
|
|
296
299
|
const Tag = tag;
|
|
297
300
|
const [shouldRenderBlock, setShouldRenderBlock] = useState(true);
|
|
@@ -320,9 +323,7 @@
|
|
|
320
323
|
if (!shouldRenderBlock) {
|
|
321
324
|
return null;
|
|
322
325
|
}
|
|
323
|
-
return anchor ? (jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback: observerCallback, observerOptions: {
|
|
324
|
-
threshold: new Array(THRESHOLD_ARRAY_LENGTH).fill(0).map(getIntersectionThreshold),
|
|
325
|
-
}, anchor: anchor, children: children })) : (jsx(Tag, { className: className, children: children }));
|
|
326
|
+
return anchor ? (jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback: observerCallback, observerOptions: OBSERVER_OPTIONS, anchor: anchor, children: children })) : (jsx(Tag, { className: className, children: children }));
|
|
326
327
|
});
|
|
327
328
|
function getIntersectionThreshold(_, i) {
|
|
328
329
|
const value = (i + 1) / THRESHOLD_ACCURACY + THRESHOLD_ARRAY_START_VALUE;
|
|
@@ -1436,7 +1437,7 @@
|
|
|
1436
1437
|
return null;
|
|
1437
1438
|
}
|
|
1438
1439
|
const EmbeddableCellInner = EmbeddableCellData[type];
|
|
1439
|
-
return jsx(EmbeddableCellInner, { context: context, ...rest });
|
|
1440
|
+
return (jsx(EmbeddableCellInner, { context: context, displayTable: () => null, ...rest, isVisible: true }));
|
|
1440
1441
|
};
|
|
1441
1442
|
|
|
1442
1443
|
const TariffsTableHorizontal = JSX(({ tiles, context }) => (jsx(SwipeListControl, { context: context, children: tiles.map((tile, i) => (jsx(TariffsTableTileCell, { tile: tile, context: context }, String(i)))) })));
|
|
@@ -1605,7 +1606,7 @@
|
|
|
1605
1606
|
return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
|
|
1606
1607
|
}
|
|
1607
1608
|
|
|
1608
|
-
const packageVersion = "0.6.
|
|
1609
|
+
const packageVersion = "0.6.19";
|
|
1609
1610
|
|
|
1610
1611
|
exports.Blocks = Blocks;
|
|
1611
1612
|
exports.ContentPage = ContentPage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),r=n("useState"),i=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:r}=await e.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:r,...i}=t||{},l=n?.slots?.default,a=r||l&&l();return e(Object.assign(i,a&&{children:a}),n)}return t.inheritAttrs=!1,t};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=p((e=>{const{tag:t="section",observerCallback:n,observerOptions:r,className:l="",anchor:a=null,children:o}=e,c=s(null);i((()=>{if(!c.current)return;const e=new IntersectionObserver(n,r);return e.observe(c.current),()=>{e.disconnect()}}),[n,r]);return h(t,{ref:c,className:l,id:a,children:o})})),f=100,N=p((({anchor:e,className:t,children:n,tag:l="section",labels:o})=>{const c=l,[d,m]=r(!0),u=s({}),p=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[r]=n;!r.isIntersecting||r.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(g.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),g.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||g.inst.fire("tab",{type:"link",label:e}))})({anchor:e,anchorClickRef:u})),[e]);return i((()=>{const t=g.inst.subscribe("anchorClick",(e=>{m(!0),u.current=e})),n=g.inst.subscribe("tab",(t=>{if("group"===t.type){const n=o?.length||e;m(!t.label||(!n||Boolean(o?.includes(t.label))))}else(n=t.label)&&(globalThis.document.location.hash=n),m(!0);var n}));return()=>{t(),n()}}),[]),d?e?h(b,{tag:l,className:t,observerCallback:p,observerOptions:{threshold:new Array(18).fill(0).map(y)},anchor:e,children:n}):h(c,{className:t,children:n}):null}));function y(e,t){const n=(t+1)/f+.82;return Math.round(n*f)/f}const v={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},w=p((e=>{const{className:t,headingType:n="h3",title:r,as:i="h3"}=e;return h(i,{className:`font-sans font-medium m-0 ${v[n]} ${t||""}`,children:r})})),k=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),$=p((({title:e,description:t,context:n,className:r="",children:i,...l})=>u(N,{context:n,className:`py-6 px-4 font-sans bg-white text-primary-text ${r}`,...l,children:[e?h(w,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5 text-m-light text-center",children:t}):null,h(k,{children:i})]})));$.childrenTypes=["AccordionItem"];const C=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:i})=>{const[a,s]=r(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=i?i({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),S=p((({className:e="",isUnfolded:t,children:n})=>{const r=s(null);return i((()=>{r.current&&(r.current.style.maxHeight=t?`${r.current.scrollHeight}px`:"")}),[t,n?.length]),h("div",{ref:r,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:n})})),T={normal:"text-primary-main",black:"text-black",white:"text-black"},_=p((({className:e="",imageClassName:t="",name:n="",alt:r=`Иконка ${n}`,title:i=r,iconVersion:l="normal",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a?h(j,{className:e,children:u("svg",{className:[I(e,s.width),T[l],t,D(l)].join(" "),...s,"aria-hidden":"true",children:[i?h("title",{children:i}):null,r?h("desc",{children:r}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:r,title:i,...s,"aria-hidden":"true"})})),D=e=>"white"===e?"invert":"",I=(e,t)=>t?`width: ${t}px `:"w-full h-full",j=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function R(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const A=(e,t)=>e.media&&t.media?e.media-t.media:0,L=p((({className:e="",image:t,imageClassName:n="",isMobile:r=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${r?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(A).map((({src:e,format:n,media:r},i)=>h("source",{srcSet:e,type:O(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${i}_${e}`))):null,M(t,n,r)]})})),M=(e,t="",n=!1)=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},i=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:i,style:r,...e.size})};function O(e){return e?`image/${String(e)}`:void 0}const B=p((({className:e="",image:t,imageClassName:n="",isMobile:r,...i})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(_,{className:e,imageClassName:n,iconVersion:R(t),name:l,...i}):null:h(L,{className:e,imageClassName:n,image:t,isMobile:r})})),V=p((e=>h(B,{...e,isMobile:!0}))),P=["PlusIcon","MinusIcon"],F=p((({className:e="",ancestors:t,label:n="",labelIcon:r,isExpanded:i,children:l})=>{const{bordered:a}=function(e,t){const{content:n}=function(e,t){const[,...n]=e||[];return n.reverse().find((e=>!t||t===e?.type))||{}}(e);return n||t}(t,{});return h("li",{className:`${a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h(C,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(S,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:l}),renderFoldButton:({isUnfolded:e,onToggle:t})=>h(E,{className:a?"":"py-[14px] px-0",label:n,icon:P[Number(e)],primaryIcon:r,onClick:t})})})}));F.childrenTypes=[];const E=p((({className:e,icon:t,label:n,primaryIcon:r,onClick:i})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:i,children:[u("span",{className:"text-m-title-xs font-medium pr-2.5 flex group-hover:text-primary-main",children:[r?h(V,{image:r,className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,n]}),h(V,{className:"flex-shrink-0",image:t,width:"24",height:"24",asSVG:!0})]}))),z=p((({children:e,activeIndex:t,indexFraction:n,showDots:r})=>{const i=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return r&&e?.length?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,r)=>h("div",{onClick:i(r),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:G(r,t,n),"aria-hidden":!0},String(r))))}):null})),G=(e,t,n)=>{if(e<t||e>t+1)return;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},H=p((({className:e="",children:t,...n})=>h("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),W=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),J=p((({className:e="",children:t,activeIndex:n,onScroll:r,gap:i=14,padding:l=16})=>h("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...W(l),gap:`${i}px`},role:"list",onScroll:r,children:t?.length?t?.map(((e,t)=>h(H,{style:W(l/4),"aria-current":Boolean(n===t),children:e},String(t)))):h(H,{children:t})}))),U=p((({className:e,children:t,gap:n=14,padding:i=16,showDots:l=!0,onSlideChange:a})=>{const[s,o]=r(0),[c,d]=r(0),m={activeIndex:s,indexFraction:c,showDots:l,children:t};return u("div",{className:e,children:[h(J,{gap:n,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:r,childElementCount:l,scrollWidth:c,children:m}=e?.currentTarget,h=m[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:i,itemWidth:l})=>{const a=r-n;if(2===i)return[[0,a],[a,r]];const s=l+e,o=n-e-t,c=i-2,d=new Array(i).fill(0).map(((e,t)=>0===t||t===c?[t>0?a-o:0,t>0?a:o]:[(t-1)*s+o,t*s+o]));return d[i-1]=[a,r],d})({gap:n,padding:i,clientWidth:r,scrollWidth:c,childElementCount:l,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,i]=t[n];return{index:n,fraction:(e-r)/(i-r)}})(t,u);p!==s&&a&&a(),o(p),d(x)},children:t}),h(z,{...m})]})})),Y={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},K=p((e=>{const{text:t,aboveText:n,appendLeft:r,appendRight:i,version:l="primary"}=e;return u("div",{className:X(e),children:[r?h("div",{className:Y[l],children:r}):null,Q(e)?u("div",{children:[h("div",{className:"text-xs-light text-left",children:n}),h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,i?h("div",{className:Y[l],children:i}):null]})})),X=e=>{const{className:t="",version:n,aboveText:r,rounded:i}=e;if("link"===n)return"";const l="gap-2 "+(r?"py-2.5 px-7":"py-4 px-9");return["group flex items-center justify-center",Q(e)?l:"h-12 w-12",i?"rounded-full":"",t].join(" ")},Q=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Z={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white",link:"text-primary-main"},q={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",white:"bg-white text-primary-text",link:""},ee="w-full text-center font-sans select-none",te=p((({className:e,text:t,aboveText:n,appendLeft:r,href:i,target:l,onClick:a,children:s,disabled:o,rounded:c,version:d="primary",ariaLabel:m,...u})=>{const{appendRight:p,...x}=u,g=s??h(K,{text:t,aboveText:n,appendLeft:r,rounded:c,version:d});return o?h("div",{role:"button","aria-disabled":"true","aria-label":m,tabIndex:-1,className:`inline-block ${ee} ${q[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,children:g}):h("a",{className:`${ee} inline-block cursor-pointer no-underline focus:border focus:border-primary-focus ${Z[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:a,"aria-label":m,role:i?"link":"button",...x,children:g})})),ne=(e=!1)=>e?"text-white":"",re=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),ie=p((({icon:e,image:t,title:n,subtitle:r,isFillGradient:i})=>u("div",{role:"columnheader",children:[e?h(V,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(V,{image:t})}),n?h(w,{headingType:"h4",className:ne(i),title:n}):null,r?h("div",{className:re(i),children:r}):null]}))),le=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(ae(n,t))})}))),ae=(e,t)=>({label:n,description:r},i)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,r?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:r}):null]})]},String(i)),se=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:r,showRow:i,onToggleColumn:l})=>{const a=t?.slice(0,i?t.length:n),s=r?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${r?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(ie,{...e,isFillGradient:r}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(le,{cell:t,rowHeader:e,isFillGradient:r},String(n)))):null,i&&e?.link?h(te,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,oe({onToggleColumn:l,isFillGradient:r,showRow:i})]})})),oe=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),ce=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(w,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(de,{...e})})]})})),de=p((({columns:e,rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:i,orientation:a,context:s})=>{const[o,c]=r(new Array(e?.length||0).fill(!i)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:r},l)=>{return h(se,{context:s,visibleRowLength:i,showRow:o[l],header:r,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l)},String(l));var a}));return"horizontal"===a?h(U,{context:s,onSlideChange:m,children:u}):u})),me=new Map;function he(e,t,{fallback:n}={}){const l=a((()=>ue(e)),[e]),[s,o]=r(),[c,d]=r(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};i((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>me.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function ue(e){return e?Array.isArray(e)?e:e instanceof Function?ue(e()):[e]:[e]}async function pe(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function xe(e={}){const{data:t}=he(`/wcms-resources/${c.SITEMAP||"sitemap"}.json`,pe,{fallback:e});return t||{}}const ge=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:i}=(()=>{const[e,t]=r("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(V,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),i("")},children:h(V,{image:"CloseIcon",width:"24",height:"24"})}):h(te,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),be=p((({className:e=""})=>h(ge,{className:e,isMobile:!0}))),fe=p((({className:e="",documents:t,...n})=>h(N,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ne(t):null})}))),Ne=e=>e.map(((e,t)=>{const{text:n,...r}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...r,children:n||null})},`list_item_${String(t)}`)})),ye={"bg-white":"text-primary-main",transparent:"text-white"},ve={"bg-white":"text-black",transparent:"text-white"},we=p((({className:e="",href:t,children:n,targetBlank:r,bgColor:i="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:r?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(V,{image:{icon:"LogoIcon",iconVersion:ye[i]},className:`${ye[i]} w-10 h-[38px]`,asSVG:!0}),l?h("span",{className:`${ve[i]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),ke=p((({className:e="",title:t="Мобильное приложение",description:n,href:r="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:r?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(we,{className:"w-[33px]",bgColor:"transparent",showTitle:!0})}),u("a",{href:r,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),$e=e=>e?.includes("//"),Ce=e=>(e||"").replace(/\/?\?.*/,""),Se=e=>{if(!e||!$e(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var Te=Object.freeze({__proto__:null,isURL:$e,withoutQuery:Ce,getOrigin:Se,getHash:e=>{if(!e||!$e(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const _e="/mobile",De=(e,t)=>{if(!e)return e;const n=Se(t?.href);return n?e.replace(n,"")||"/":e},Ie=e=>e;function je({router:e,handlerDecorator:t=Ie},n){const r=((e,t)=>{if(!e)return e;const n=De(e,t)||"",r=t?.pathname.startsWith(_e);return r&&!$e(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const i=r&&!$e(r),l=!n.target||"_self"===n.target;i&&l&&(t?.preventDefault(),e.push(r))}),n)}}const Re=p((({className:e="",items:t,hasButton:n,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return u("div",{className:e,children:[t?.length?t.map(Ae):null,n?h(te,{version:"primary",className:"mb-6 w-full",...je({router:i,handlerDecorator:l},{text:"Обратная связь",href:"/",target:"_blank"}),ariaLabel:"Обратная связь"}):null]})})),Ae=(e,t)=>{const{type:n,text:r,description:i}=e;return u("div",{className:"mb-4",children:[h("div",{children:Le(n,r)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:i})]},String(t))},Le=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Me(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},Me=e=>e.replaceAll(/\D/g,""),Oe=p((({className:e="",index:t,text:n,href:r,target:i,onClick:l})=>h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:l,children:n||`Документ ${t}`}))),Be=p((({title:e,links:t,className:n="",context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(Oe,{index:t,className:"text-s",...je({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),Ve=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Pe=p((({href:e,version:t="primary"})=>{const{icon:n,label:r}=Ve.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":r,target:"_blank",rel:"noopener noreferrer",children:n?h(V,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Fe=p((({className:e,media:t,version:n,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>h(Pe,{version:n,...je({router:i,handlerDecorator:l},e)},String(t))))})})),Ee=p((({className:e="",index:t,text:n,href:r,target:i,onClick:l})=>h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:i,onClick:l,children:n||`Документ ${t}`}))),ze=p((({className:e,links:t,context:n})=>{const r=n.useRouter(),{handlerDecorator:i}=n;return u("div",{className:`${e||""}`,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(Ee,{index:t,className:"",...je({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),Ge=p((({className:e="",documents:t,relatedEnterprises:n,contacts:r,socialMedia:i,context:l,horizontalNavigationTitle:a,page:s})=>{const o=s?.fallback,c=xe(o),d=c?.dispositions;return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(Re,{className:"overflow-hidden",items:r,context:l,hasButton:!0}),h(k,{children:c.topItems?.map(((e,t)=>h(F,{context:l,label:e.text,children:h(fe,{context:l,documents:e.items})},String(t))))}),h("div",{children:d?.map(He)}),h(ke,{context:l,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),h(be,{context:l,className:"grow"}),h(Fe,{className:"pb-4",media:i,context:l}),h(Be,{title:a,links:n,context:l}),h(ze,{links:t,context:l})]})})),He=(e,t)=>{const{icon:n,href:r,text:i}=e;return u(te,{version:"link",href:r,className:"flex text-s mb-4 w-6",children:[n?h(V,{className:"pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},We={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Je=p((({context:e,title:t,description:n,cards:r=[],className:i,orientation:l="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[t?h(w,{headingType:"h3",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:n}):null]}),Ue(l,r,e)]})));function Ue(e,t,n){return"horizontal"===e?h(U,{context:n,children:t?.map(Ye)}):h("div",{className:"grid gap-[14px]",children:t?.map(Ye)})}function Ye(e,t){return u("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${We[e.version??"primary"]}`,children:[u("div",{children:[Ke(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Xe(e):null,e.items?.length?Ze(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(te,{className:"mt-3",...n})):null]},t);var n}const Ke=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(V,{className:"mb-3.5",image:e})}):null;function Xe(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const Qe={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function Ze(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,r)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${Qe[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(r))))})}const qe=(e,t,n=((e,t)=>t.startsWith(e)))=>n(Ce(e),(e=>(e||"").replace(_e,""))(Ce($e(e)?t.href:t.pathname))),et=e=>t=>qe(t.href,e),tt=e=>t=>t.items?.some(et(e))||qe(t.href,e)||((e,t)=>Se(e)===Se(t.href))(t.href,e),nt=e=>t=>e?.href===t?.href,rt=(e,t)=>{return(r=e,i=t,(r||[]).map((e=>i?.find(nt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(nt(e))))));var n,r,i},it="absolute left-0 -bottom-3 w-full h-[2px]",lt=p((({className:e="",text:t,href:n,target:r,active:i,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:r,onClick:l,children:[h("span",{className:at(s,i),children:t||a}),i?h("div",{className:st(s,i)}):null]}))),at=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},st=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${it}`:it,ot=o("https://10.80.4.9");const ct=p((({context:e,burgerSubMenu:t,onClick:n,defaultLocation:a="",children:s})=>{const[o,c]=function(e){const[t,n]=r(e);return i((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{ot.getFetcherAddress().then((t=>{const r=t||e;globalThis?.localStorage.setItem("location",r),n(r)}))}),[e])]}(a);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:n,children:h(V,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:c,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(V,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),s,h("div",{className:"mb-7",children:t?.map(dt)}),h(be,{context:e,className:"grow"})]})})),dt=(e,t)=>{const{icon:n,href:r,text:i}=e;return u("a",{href:r,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(V,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:i})]},`headerSubMenu-${t}`)},mt=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(V,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(we,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),ht=p((({className:e="",defaultLocation:t,bgColor:n="bg-white",context:i,topItems:l,page:a})=>{const{handlerDecorator:s}=i,o=i.useRouter(),c=a?.fallback,d=xe(c),m=rt(d.topItems,l).find(tt(o))?.items,p=(e=>(t=[])=>{const n=t?.filter(et(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(o)(m),[x,g]=r(!1),b=()=>g(!x);return u("header",{className:`${n} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(mt,{onClick:b,bgColor:n}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>ut({...je({router:o,handlerDecorator:s},e),active:e===p,bgColor:n},t)))})})]}),x?h(ct,{context:i,onClick:b,burgerSubMenu:d?.dispositions,defaultLocation:t,children:h(k,{children:d.topItems?.map(((e,t)=>h(F,{context:i,label:e.text,children:h(fe,{context:i,documents:e.items})},String(t))))})}):null]})})),ut=(e,t)=>h(lt,{className:"mr-8 whitespace-nowrap text-s",...e},String(t)),pt={left:"text-left",center:"text-center",right:"text-right"},xt={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},gt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:r,image:i,align:l="left"})=>{const a=xt[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(w,{headingType:"h2",className:`${a.text} ${pt[l]}`,title:n}):null,r?h("p",{className:`text-m ${a.description} ${pt[l]}`,children:r}):null,i?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(V,{image:i})})]})})),bt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:r,doc:i,icon:l})=>{const{text:a,fileSize:s,...o}=i;return u("a",{className:e,role:"link",...o,children:[l?h(V,{className:t,image:l,width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:r,children:o?.href&&ft(Nt(o.href),s)})]}):null]})})),ft=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Nt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},yt=p((({className:e="",doc:t,icon:n})=>h(bt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),vt=p((({context:e,hasBorder:t=!0,documents:n,icon:r})=>h(U,{context:e,className:"text-s text-primary-main mt-5",children:n?.length?n.map(((e,n)=>h(yt,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:r},String(n)))):null}))),wt=p((({hasBorder:e=!0,documents:t,icon:n})=>h("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,r)=>h("div",{role:"listitem",children:h(yt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(r)))):null}))),kt=p((({className:e="",context:t,title:n,description:r,icon:i={icon:"DocIconMonoColor"},documents:l,orientation:a="vertical",hasBorder:s=!0})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(gt,{className:"!p-0 "+(r?"gap-2":"gap-5"),title:n,description:r,context:t,align:"center"}),"vertical"===a?h(wt,{hasBorder:s,documents:l,icon:i}):h(vt,{context:t,hasBorder:s,documents:l,icon:i})]}))),$t=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Ct(e=""){const t=$t(e);return t<=4?"S":t<=8?"M":"L"}function St(e=""){const t=$t(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Tt(e=""){const t=$t(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const _t=p((({className:e,context:t,title:n,description:r="Блок в разработке...",...i})=>u(N,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Tt(e)} ${St(e)} `,...i,children:[h(gt,{context:t,className:"!p-0 max-w-[600px]",title:n,description:r,headlineVersion:Ct(e)}),h("figure",{className:"m-0 min-w-[80%]",children:Dt()})]}))),Dt=(e=3)=>jt(100,e).map((e=>Math.floor(e))).map(It),It=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),jt=(e,t)=>[e].concat(t>0?jt(e/1.618,t-1):[]),Rt=p((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:r}=e,i=e.useRouter();return n&&n?.length?h("div",{className:t,children:n.map(((e,t)=>At({button:je({router:i,handlerDecorator:r},e),index:t})))}):null}));function At({button:e,buttonClassName:t,index:n}){const{icon:r,iconRight:i,version:l,...a}=e,s="secondary"===l?"normal":"white",o=Lt({icon:r,iconVersion:s}),c=Lt({icon:i,iconVersion:s});return h(te,{className:t,appendLeft:o,appendRight:c,version:l,...a},n?String(n):"")}const Lt=({icon:e,iconVersion:t})=>{if(!e?.icon&&!e?.src)return null;const n=e?.size?.width?`${e.size.width}`:"24";return h(V,{image:{...e,iconVersion:t},width:n,height:"24",asSVG:!0})},Mt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Ot={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},Bt=p((({className:e="",isDotted:t=!0,children:n,version:r="primary",size:i="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${Mt[r]} ${Ot[i]}`})}):null,h("span",{children:n})]}))),Vt={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Pt={S:"text-l-light",M:"text-h6",L:"text-h5"},Ft={S:"ml-2",M:"ml-3",L:"ml-4"},Et=p((e=>{const{className:t="",hasIndent:n,isDotted:r,itemClassName:i="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${Vt[s]} ${Pt[a]} ${t} ${n?Ft[a]:""}`,role:"list",children:l.map(((e,t)=>h(Bt,{className:`${i} mb-1.5`,isDotted:r,version:s,size:a,children:e},String(t))))}):null})),zt=p((({className:e="",title:t="",children:n,buttons:r,image:i})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:n}),r?h("div",{className:"mt-auto pt-8",children:r}):null]}),i]})]}))),Gt={primary:"text-primary-text",secondary:"text-white"},Ht={primary:"text-secondary-text",secondary:"text-white"},Wt=p((e=>{const{className:t="",icon:n,label:r,description:i,version:l="primary",benefitsVersion:a="normal"}=e,s=i?"items-start":"items-center",o=Ut("white"===a||"secondary"===l,n);return u("div",{className:`flex gap-5 ${s} ${t}`,children:[n?h("div",{className:Jt(l,a),children:h(V,{className:"w-6 h-6",image:{...n,iconVersion:o},asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[r?h("div",{className:`text-h6 ${Gt[l]}`,children:r}):null,i?h("div",{className:`text-m-light ${Ht[l]}`,children:i}):null]})]})}));function Jt(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const Ut=(e,t)=>t?.iconVersion||e?"white":"normal",Yt=(e="primary",t="normal")=>({icon:n,label:r,description:i},l)=>h(Wt,{icon:n,label:r,description:i,version:e,benefitsVersion:t},String(l)),Kt=p((({className:e="",context:t,title:n,headlineVersion:r="L",description:i,benefits:l,benefitsVersion:a="normal",buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,label:p})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[p?Zt(p,d):null,h(gt,{context:t,className:"!p-0 max-w-[600px]",title:n,description:i,bgColorHeadline:d,headlineVersion:r}),u(zt,{context:t,buttons:s?.length?h(Rt,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:l.map(Yt(d,a))}):null,c?.length?h(Et,{className:"mt-3 text-m",items:c,version:d,isDotted:m}):null]})]}),Xt(o)]})));function Xt(e){return e?.src?h(V,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Qt={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},Zt=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${Qt[t]}`,children:e}),qt=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${We[n]} ${t}`,children:h(Kt,{...e})})})),en=p((({block:e,context:t,className:n=""})=>h("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${We[e?.version??"primary"]} ${n}`,role:"listitem",children:h("div",{className:"flex grow",children:h(Kt,{context:t,...e})})}))),tn=p((({className:e,context:t,slides:n=[]})=>{const r=n.map((e=>e.productBlock));return h("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:h(U,{context:t,children:r.map(((e,n)=>h(en,{block:e,context:t},String(n))))})})})),nn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},rn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},ln={normal:"min-h-[70px]",small:"min-h-[50px]"},an={primary:"normal",secondary:"white"},sn=p((({className:e,title:t,description:n,showLines:r=!0,steps:i,size:l="normal",version:a="primary"})=>{const s=nn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(w,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,i?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(on(l,a,r))})}):null]})})),on=(e,t,n)=>(r,i,l)=>{const a=l.length-1===i,s="normal"===e?"ml-[34px]":"ml-6",o=nn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[cn(e,t)(r,i),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${ln[e]}`,children:[r.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:r.label}):null,r.description?h("div",{className:`text-s ${o.description} text-left`,children:r.description}):null]})]})},String(i))},cn=(e,t)=>(n,r)=>{const i=nn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${rn[e]} ${i.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${i.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(V,{image:{...n.icon,iconVersion:an[t]},width:l,height:l,asSVG:!0}):h("span",{children:r+1}))})});var s},dn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},r)=>At({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${r>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`})))}):null,Img:({image:e})=>e?.src?h(V,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(Et,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},mn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(w,{headingType:"h3",className:"font-medium",title:e}):null,t?h(V,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),hn=p((({context:e,tile:t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(mn,{...t.header}),t.data?.length?t.data.map(un(e)):null]}))),un=e=>(t,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,pn(t,e)]},String(n)),pn=(e,t)=>{if(!e)return null;const{tableCellType:n,...r}=e;if(!n||!(n in dn))return null;return h(dn[n],{context:t,...r})},xn=p((({tiles:e,context:t})=>h(U,{context:t,children:e.map(((e,n)=>h(hn,{tile:e,context:t},String(n))))}))),gn=p((({tiles:e,context:t})=>h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(hn,{tile:e,context:t},String(n))))}))),bn=p((({className:e,context:t,title:n,description:r,tariffsColumns:i,rowHeaders:l,orientation:a="vertical"})=>{const s=Nn(i),o=yn(l,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[n?h(w,{headingType:"h2",className:`text-center ${r?"mb-2":"mb-5"}`,title:n}):null,r?h("div",{className:"mb-5 text-center text-m",children:r}):null,o?.length?fn(a,o,t):null]})}));function fn(e,t,n){return h("vertical"===e?gn:xn,{context:n,tiles:t})}const Nn=e=>e?.[0].data?e[0].data:[],yn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),vn={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},wn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:r,image:i,className:l="",items:a,isDotted:s=!0})=>{const o=vn[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===r?kn(o.icon):null,"big"===r?$n(i):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(Et,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function kn(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function $n(e){return e?.src?h(V,{className:"pb-3 mr-auto",image:e}):null}const Cn={Accordion:$,AccordionItem:F,ComparisonTable:ce,Footer:Ge,Gallery:Je,Header:ht,Headline:gt,LinkDocs:kt,LinkList:fe,MobileAppTile:ke,ProductBlock:qt,ProductGallery:tn,StepsBlock:sn,TariffsTable:bn,TextBlock:wn,Placeholder:_t};function Sn(e){return e?e.filter(Boolean).join(" "):""}const Tn=m();const _n=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Dn()}))),Dn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},In=p((({className:e,context:t,...n})=>{const{useRouter:a,handlerDecorator:s=Ie}=t,o=function(e){const[t,n]=r(0);return i((()=>{(async()=>{const[t]=await Tn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Tn.like(e))}),[e]),dislike:l((async()=>{n(await Tn.dislike(e))}),[e])}}(a().pathname);return u(N,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...n,children:[h(_n,{onClick:s(o.like),ariaLabel:"Поставить отметку «лайк»"}),h(_n,{onClick:s(o.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:o.likeCount})]})})),jn=[null],Rn=e=>e;function An(e,t,n=jn){const{key:r,page:i,blockDecorator:l,blocksRegistry:a,context:s}=t,{type:o,blocks:c}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const d=o&&a[o],{renderChild:m=Rn}=d||{},u=c?.length?c.map(((r,i)=>m(An(r,{...t,key:`${t.key}-${i}`},[...n,e]),i))):null;return l({blockClassName:`scroll-mt-12 ${Sn(e.style)}`,block:e,ancestors:n,render:({block:e,blockClassName:t})=>{const{version:l,anchor:a,labels:o,content:c}=e;return d?h(d,{className:t,context:s,page:i,ancestors:n,version:l,anchor:a,labels:o,...c,children:u},r):null}},r)}const Ln=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Mn=p((e=>{const{className:t="",context:n,data:r={}}=e,{style:i,blocks:l,slots:a,likeControl:s,colorPalette:o="pc"}=r,c=function({blocksRegistry:e,data:t,blockDecorator:n,context:r}){return(i,l)=>i.map(((i,a)=>An(i,{key:`${i.type||"#"}-${a}`,blocksRegistry:e,page:t||{},blockDecorator:n||Ln,context:r},l)))}(e);return u("section",{className:`relative ${Sn(i)} ${t}`,"data-theme":o,children:[a?.header?.blocks?.length?h("div",{className:`${Sn(a.header.style)}`,children:c(a.header.blocks,["header"])}):null,l?.length?h("div",{className:"container grid grid-cols-12 gap-1",children:c(l)}):null,s?On(n):null]})}));function On(e){return h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(In,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:e},"LikeControl")})}e.Blocks=Cn,e.ContentPage=Mn,e.DaDataAPI=o,e.LikeAPI=m,e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.packageVersion="0.6.17",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Te,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),r=n("useState"),i=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:r}=await e.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:i}=await e.json();return i||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:r,...i}=t||{},l=n?.slots?.default,a=r||l&&l();return e(Object.assign(i,a&&{children:a}),n)}return t.inheritAttrs=!1,t};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=p((e=>{const{tag:t="section",observerCallback:n,observerOptions:r,className:l="",anchor:a=null,children:o}=e,c=s(null);i((()=>{if(!c.current)return;const e=new IntersectionObserver(n,r);return e.observe(c.current),()=>{e.disconnect()}}),[n,r]);return h(t,{ref:c,className:l,id:a,children:o})})),f=100,N={threshold:new Array(18).fill(0).map((function(e,t){const n=(t+1)/f+.82;return Math.round(n*f)/f}))},y=p((({anchor:e,className:t,children:n,tag:l="section",labels:o})=>{const c=l,[d,m]=r(!0),u=s({}),p=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[r]=n;!r.isIntersecting||r.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(g.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),g.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||g.inst.fire("tab",{type:"link",label:e}))})({anchor:e,anchorClickRef:u})),[e]);return i((()=>{const t=g.inst.subscribe("anchorClick",(e=>{m(!0),u.current=e})),n=g.inst.subscribe("tab",(t=>{if("group"===t.type){const n=o?.length||e;m(!t.label||(!n||Boolean(o?.includes(t.label))))}else(n=t.label)&&(globalThis.document.location.hash=n),m(!0);var n}));return()=>{t(),n()}}),[]),d?e?h(b,{tag:l,className:t,observerCallback:p,observerOptions:N,anchor:e,children:n}):h(c,{className:t,children:n}):null}));const v={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},w=p((e=>{const{className:t,headingType:n="h3",title:r,as:i="h3"}=e;return h(i,{className:`font-sans font-medium m-0 ${v[n]} ${t||""}`,children:r})})),k=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),$=p((({title:e,description:t,context:n,className:r="",children:i,...l})=>u(y,{context:n,className:`py-6 px-4 font-sans bg-white text-primary-text ${r}`,...l,children:[e?h(w,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5 text-m-light text-center",children:t}):null,h(k,{children:i})]})));$.childrenTypes=["AccordionItem"];const C=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:i})=>{const[a,s]=r(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=i?i({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),S=p((({className:e="",isUnfolded:t,children:n})=>{const r=s(null);return i((()=>{r.current&&(r.current.style.maxHeight=t?`${r.current.scrollHeight}px`:"")}),[t,n?.length]),h("div",{ref:r,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:n})})),T={normal:"text-primary-main",black:"text-black",white:"text-black"},_=p((({className:e="",imageClassName:t="",name:n="",alt:r=`Иконка ${n}`,title:i=r,iconVersion:l="normal",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a?h(j,{className:e,children:u("svg",{className:[I(e,s.width),T[l],t,D(l)].join(" "),...s,"aria-hidden":"true",children:[i?h("title",{children:i}):null,r?h("desc",{children:r}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:r,title:i,...s,"aria-hidden":"true"})})),D=e=>"white"===e?"invert":"",I=(e,t)=>t?`width: ${t}px `:"w-full h-full",j=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function R(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const A=(e,t)=>e.media&&t.media?e.media-t.media:0,L=p((({className:e="",image:t,imageClassName:n="",isMobile:r=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${r?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(A).map((({src:e,format:n,media:r},i)=>h("source",{srcSet:e,type:O(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${i}_${e}`))):null,M(t,n,r)]})})),M=(e,t="",n=!1)=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},i=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:i,style:r,...e.size})};function O(e){return e?`image/${String(e)}`:void 0}const V=p((({className:e="",image:t,imageClassName:n="",isMobile:r,...i})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(_,{className:e,imageClassName:n,iconVersion:R(t),name:l,...i}):null:h(L,{className:e,imageClassName:n,image:t,isMobile:r})})),B=p((e=>h(V,{...e,isMobile:!0}))),P=["PlusIcon","MinusIcon"],F=p((({className:e="",ancestors:t,label:n="",labelIcon:r,isExpanded:i,children:l})=>{const{bordered:a}=function(e,t){const{content:n}=function(e,t){const[,...n]=e||[];return n.reverse().find((e=>!t||t===e?.type))||{}}(e);return n||t}(t,{});return h("li",{className:`${a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h(C,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(S,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:l}),renderFoldButton:({isUnfolded:e,onToggle:t})=>h(E,{className:a?"":"py-[14px] px-0",label:n,icon:P[Number(e)],primaryIcon:r,onClick:t})})})}));F.childrenTypes=[];const E=p((({className:e,icon:t,label:n,primaryIcon:r,onClick:i})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:i,children:[u("span",{className:"text-m-title-xs font-medium pr-2.5 flex group-hover:text-primary-main",children:[r?h(B,{image:r,className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,n]}),h(B,{className:"flex-shrink-0",image:t,width:"24",height:"24",asSVG:!0})]}))),z=p((({children:e,activeIndex:t,indexFraction:n,showDots:r})=>{const i=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return r&&e?.length?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,r)=>h("div",{onClick:i(r),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:G(r,t,n),"aria-hidden":!0},String(r))))}):null})),G=(e,t,n)=>{if(e<t||e>t+1)return;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},H=p((({className:e="",children:t,...n})=>h("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),W=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),J=p((({className:e="",children:t,activeIndex:n,onScroll:r,gap:i=14,padding:l=16})=>h("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...W(l),gap:`${i}px`},role:"list",onScroll:r,children:t?.length?t?.map(((e,t)=>h(H,{style:W(l/4),"aria-current":Boolean(n===t),children:e},String(t)))):h(H,{children:t})}))),U=p((({className:e,children:t,gap:n=14,padding:i=16,showDots:l=!0,onSlideChange:a})=>{const[s,o]=r(0),[c,d]=r(0),m={activeIndex:s,indexFraction:c,showDots:l,children:t};return u("div",{className:e,children:[h(J,{gap:n,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:r,childElementCount:l,scrollWidth:c,children:m}=e?.currentTarget,h=m[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:i,itemWidth:l})=>{const a=r-n;if(2===i)return[[0,a],[a,r]];const s=l+e,o=n-e-t,c=i-2,d=new Array(i).fill(0).map(((e,t)=>0===t||t===c?[t>0?a-o:0,t>0?a:o]:[(t-1)*s+o,t*s+o]));return d[i-1]=[a,r],d})({gap:n,padding:i,clientWidth:r,scrollWidth:c,childElementCount:l,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,i]=t[n];return{index:n,fraction:(e-r)/(i-r)}})(t,u);p!==s&&a&&a(),o(p),d(x)},children:t}),h(z,{...m})]})})),Y={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},K=p((e=>{const{text:t,aboveText:n,appendLeft:r,appendRight:i,version:l="primary"}=e;return u("div",{className:X(e),children:[r?h("div",{className:Y[l],children:r}):null,Q(e)?u("div",{children:[h("div",{className:"text-xs-light text-left",children:n}),h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,i?h("div",{className:Y[l],children:i}):null]})})),X=e=>{const{className:t="",version:n,aboveText:r,rounded:i}=e;if("link"===n)return"";const l="gap-2 "+(r?"py-2.5 px-7":"py-4 px-9");return["group flex items-center justify-center",Q(e)?l:"h-12 w-12",i?"rounded-full":"",t].join(" ")},Q=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Z={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white",link:"text-primary-main"},q={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",white:"bg-white text-primary-text",link:""},ee="w-full text-center font-sans select-none",te=p((({className:e,text:t,aboveText:n,appendLeft:r,href:i,target:l,onClick:a,children:s,disabled:o,rounded:c,version:d="primary",ariaLabel:m,...u})=>{const{appendRight:p,...x}=u,g=s??h(K,{text:t,aboveText:n,appendLeft:r,rounded:c,version:d});return o?h("div",{role:"button","aria-disabled":"true","aria-label":m,tabIndex:-1,className:`inline-block ${ee} ${q[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,children:g}):h("a",{className:`${ee} inline-block cursor-pointer no-underline focus:border focus:border-primary-focus ${Z[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:a,"aria-label":m,role:i?"link":"button",...x,children:g})})),ne=(e=!1)=>e?"text-white":"",re=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),ie=p((({icon:e,image:t,title:n,subtitle:r,isFillGradient:i})=>u("div",{role:"columnheader",children:[e?h(B,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(B,{image:t})}),n?h(w,{headingType:"h4",className:ne(i),title:n}):null,r?h("div",{className:re(i),children:r}):null]}))),le=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(ae(n,t))})}))),ae=(e,t)=>({label:n,description:r},i)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,r?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:r}):null]})]},String(i)),se=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:r,showRow:i,onToggleColumn:l})=>{const a=t?.slice(0,i?t.length:n),s=r?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${r?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(ie,{...e,isFillGradient:r}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(le,{cell:t,rowHeader:e,isFillGradient:r},String(n)))):null,i&&e?.link?h(te,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,oe({onToggleColumn:l,isFillGradient:r,showRow:i})]})})),oe=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),ce=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(w,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(de,{...e})})]})})),de=p((({columns:e,rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:i,orientation:a,context:s})=>{const[o,c]=r(new Array(e?.length||0).fill(!i)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:r},l)=>{return h(se,{context:s,visibleRowLength:i,showRow:o[l],header:r,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l)},String(l));var a}));return"horizontal"===a?h(U,{context:s,onSlideChange:m,children:u}):u})),me=new Map;function he(e,t,{fallback:n}={}){const l=a((()=>ue(e)),[e]),[s,o]=r(),[c,d]=r(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};i((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>me.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function ue(e){return e?Array.isArray(e)?e:e instanceof Function?ue(e()):[e]:[e]}async function pe(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function xe(e={}){const{data:t}=he(`/wcms-resources/${c.SITEMAP||"sitemap"}.json`,pe,{fallback:e});return t||{}}const ge=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:i}=(()=>{const[e,t]=r("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(B,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),i("")},children:h(B,{image:"CloseIcon",width:"24",height:"24"})}):h(te,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),be=p((({className:e=""})=>h(ge,{className:e,isMobile:!0}))),fe=p((({className:e="",documents:t,...n})=>h(y,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ne(t):null})}))),Ne=e=>e.map(((e,t)=>{const{text:n,...r}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...r,children:n||null})},`list_item_${String(t)}`)})),ye={"bg-white":"text-primary-main",transparent:"text-white"},ve={"bg-white":"text-black",transparent:"text-white"},we=p((({className:e="",href:t,children:n,targetBlank:r,bgColor:i="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:r?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(B,{image:{icon:"LogoIcon",iconVersion:ye[i]},className:`${ye[i]} w-10 h-[38px]`,asSVG:!0}),l?h("span",{className:`${ve[i]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),ke=p((({className:e="",title:t="Мобильное приложение",description:n,href:r="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:r?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(we,{className:"w-[33px]",bgColor:"transparent",showTitle:!0})}),u("a",{href:r,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),$e=e=>e?.includes("//"),Ce=e=>(e||"").replace(/\/?\?.*/,""),Se=e=>{if(!e||!$e(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var Te=Object.freeze({__proto__:null,isURL:$e,withoutQuery:Ce,getOrigin:Se,getHash:e=>{if(!e||!$e(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const _e="/mobile",De=(e,t)=>{if(!e)return e;const n=Se(t?.href);return n?e.replace(n,"")||"/":e},Ie=e=>e;function je({router:e,handlerDecorator:t=Ie},n){const r=((e,t)=>{if(!e)return e;const n=De(e,t)||"",r=t?.pathname.startsWith(_e);return r&&!$e(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const i=r&&!$e(r),l=!n.target||"_self"===n.target;i&&l&&(t?.preventDefault(),e.push(r))}),n)}}const Re=p((({className:e="",items:t,hasButton:n,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return u("div",{className:e,children:[t?.length?t.map(Ae):null,n?h(te,{version:"primary",className:"mb-6 w-full",...je({router:i,handlerDecorator:l},{text:"Обратная связь",href:"/",target:"_blank"}),ariaLabel:"Обратная связь"}):null]})})),Ae=(e,t)=>{const{type:n,text:r,description:i}=e;return u("div",{className:"mb-4",children:[h("div",{children:Le(n,r)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:i})]},String(t))},Le=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Me(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},Me=e=>e.replaceAll(/\D/g,""),Oe=p((({className:e="",index:t,text:n,href:r,target:i,onClick:l})=>h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:l,children:n||`Документ ${t}`}))),Ve=p((({title:e,links:t,className:n="",context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(Oe,{index:t,className:"text-s",...je({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),Be=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Pe=p((({href:e,version:t="primary"})=>{const{icon:n,label:r}=Be.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":r,target:"_blank",rel:"noopener noreferrer",children:n?h(B,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Fe=p((({className:e,media:t,version:n,context:r})=>{const i=r.useRouter(),{handlerDecorator:l}=r;return h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>h(Pe,{version:n,...je({router:i,handlerDecorator:l},e)},String(t))))})})),Ee=p((({className:e="",index:t,text:n,href:r,target:i,onClick:l})=>h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:i,onClick:l,children:n||`Документ ${t}`}))),ze=p((({className:e,links:t,context:n})=>{const r=n.useRouter(),{handlerDecorator:i}=n;return u("div",{className:`${e||""}`,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(Ee,{index:t,className:"",...je({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),Ge=p((({className:e="",documents:t,relatedEnterprises:n,contacts:r,socialMedia:i,context:l,horizontalNavigationTitle:a,page:s})=>{const o=s?.fallback,c=xe(o),d=c?.dispositions;return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(Re,{className:"overflow-hidden",items:r,context:l,hasButton:!0}),h(k,{children:c.topItems?.map(((e,t)=>h(F,{context:l,label:e.text,children:h(fe,{context:l,documents:e.items})},String(t))))}),h("div",{children:d?.map(He)}),h(ke,{context:l,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),h(be,{context:l,className:"grow"}),h(Fe,{className:"pb-4",media:i,context:l}),h(Ve,{title:a,links:n,context:l}),h(ze,{links:t,context:l})]})})),He=(e,t)=>{const{icon:n,href:r,text:i}=e;return u(te,{version:"link",href:r,className:"flex text-s mb-4 w-6",children:[n?h(B,{className:"pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},We={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Je=p((({context:e,title:t,description:n,cards:r=[],className:i,orientation:l="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[t?h(w,{headingType:"h3",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:n}):null]}),Ue(l,r,e)]})));function Ue(e,t,n){return"horizontal"===e?h(U,{context:n,children:t?.map(Ye)}):h("div",{className:"grid gap-[14px]",children:t?.map(Ye)})}function Ye(e,t){return u("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${We[e.version??"primary"]}`,children:[u("div",{children:[Ke(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Xe(e):null,e.items?.length?Ze(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(te,{className:"mt-3",...n})):null]},t);var n}const Ke=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(B,{className:"mb-3.5",image:e})}):null;function Xe(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const Qe={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function Ze(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,r)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${Qe[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(r))))})}const qe=(e,t,n=((e,t)=>t.startsWith(e)))=>n(Ce(e),(e=>(e||"").replace(_e,""))(Ce($e(e)?t.href:t.pathname))),et=e=>t=>qe(t.href,e),tt=e=>t=>t.items?.some(et(e))||qe(t.href,e)||((e,t)=>Se(e)===Se(t.href))(t.href,e),nt=e=>t=>e?.href===t?.href,rt=(e,t)=>{return(r=e,i=t,(r||[]).map((e=>i?.find(nt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(nt(e))))));var n,r,i},it="absolute left-0 -bottom-3 w-full h-[2px]",lt=p((({className:e="",text:t,href:n,target:r,active:i,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:r,onClick:l,children:[h("span",{className:at(s,i),children:t||a}),i?h("div",{className:st(s,i)}):null]}))),at=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},st=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${it}`:it,ot=o("https://10.80.4.9");const ct=p((({context:e,burgerSubMenu:t,onClick:n,defaultLocation:a="",children:s})=>{const[o,c]=function(e){const[t,n]=r(e);return i((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{ot.getFetcherAddress().then((t=>{const r=t||e;globalThis?.localStorage.setItem("location",r),n(r)}))}),[e])]}(a);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:n,children:h(B,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:c,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(B,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),s,h("div",{className:"mb-7",children:t?.map(dt)}),h(be,{context:e,className:"grow"})]})})),dt=(e,t)=>{const{icon:n,href:r,text:i}=e;return u("a",{href:r,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(B,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:i})]},`headerSubMenu-${t}`)},mt=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(B,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(we,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),ht=p((({className:e="",defaultLocation:t,bgColor:n="bg-white",context:i,topItems:l,page:a})=>{const{handlerDecorator:s}=i,o=i.useRouter(),c=a?.fallback,d=xe(c),m=rt(d.topItems,l).find(tt(o))?.items,p=(e=>(t=[])=>{const n=t?.filter(et(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(o)(m),[x,g]=r(!1),b=()=>g(!x);return u("header",{className:`${n} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(mt,{onClick:b,bgColor:n}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>ut({...je({router:o,handlerDecorator:s},e),active:e===p,bgColor:n},t)))})})]}),x?h(ct,{context:i,onClick:b,burgerSubMenu:d?.dispositions,defaultLocation:t,children:h(k,{children:d.topItems?.map(((e,t)=>h(F,{context:i,label:e.text,children:h(fe,{context:i,documents:e.items})},String(t))))})}):null]})})),ut=(e,t)=>h(lt,{className:"mr-8 whitespace-nowrap text-s",...e},String(t)),pt={left:"text-left",center:"text-center",right:"text-right"},xt={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},gt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:r,image:i,align:l="left"})=>{const a=xt[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(w,{headingType:"h2",className:`${a.text} ${pt[l]}`,title:n}):null,r?h("p",{className:`text-m ${a.description} ${pt[l]}`,children:r}):null,i?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(B,{image:i})})]})})),bt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:r,doc:i,icon:l})=>{const{text:a,fileSize:s,...o}=i;return u("a",{className:e,role:"link",...o,children:[l?h(B,{className:t,image:l,width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:r,children:o?.href&&ft(Nt(o.href),s)})]}):null]})})),ft=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Nt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},yt=p((({className:e="",doc:t,icon:n})=>h(bt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),vt=p((({context:e,hasBorder:t=!0,documents:n,icon:r})=>h(U,{context:e,className:"text-s text-primary-main mt-5",children:n?.length?n.map(((e,n)=>h(yt,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:r},String(n)))):null}))),wt=p((({hasBorder:e=!0,documents:t,icon:n})=>h("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,r)=>h("div",{role:"listitem",children:h(yt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(r)))):null}))),kt=p((({className:e="",context:t,title:n,description:r,icon:i={icon:"DocIconMonoColor"},documents:l,orientation:a="vertical",hasBorder:s=!0})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(gt,{className:"!p-0 "+(r?"gap-2":"gap-5"),title:n,description:r,context:t,align:"center"}),"vertical"===a?h(wt,{hasBorder:s,documents:l,icon:i}):h(vt,{context:t,hasBorder:s,documents:l,icon:i})]}))),$t=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Ct(e=""){const t=$t(e);return t<=4?"S":t<=8?"M":"L"}function St(e=""){const t=$t(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Tt(e=""){const t=$t(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const _t=p((({className:e,context:t,title:n,description:r="Блок в разработке...",...i})=>u(y,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Tt(e)} ${St(e)} `,...i,children:[h(gt,{context:t,className:"!p-0 max-w-[600px]",title:n,description:r,headlineVersion:Ct(e)}),h("figure",{className:"m-0 min-w-[80%]",children:Dt()})]}))),Dt=(e=3)=>jt(100,e).map((e=>Math.floor(e))).map(It),It=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),jt=(e,t)=>[e].concat(t>0?jt(e/1.618,t-1):[]),Rt=p((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:r}=e,i=e.useRouter();return n&&n?.length?h("div",{className:t,children:n.map(((e,t)=>At({button:je({router:i,handlerDecorator:r},e),index:t})))}):null}));function At({button:e,buttonClassName:t,index:n}){const{icon:r,iconRight:i,version:l,...a}=e,s="secondary"===l?"normal":"white",o=Lt({icon:r,iconVersion:s}),c=Lt({icon:i,iconVersion:s});return h(te,{className:t,appendLeft:o,appendRight:c,version:l,...a},n?String(n):"")}const Lt=({icon:e,iconVersion:t})=>{if(!e?.icon&&!e?.src)return null;const n=e?.size?.width?`${e.size.width}`:"24";return h(B,{image:{...e,iconVersion:t},width:n,height:"24",asSVG:!0})},Mt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Ot={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},Vt=p((({className:e="",isDotted:t=!0,children:n,version:r="primary",size:i="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${Mt[r]} ${Ot[i]}`})}):null,h("span",{children:n})]}))),Bt={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Pt={S:"text-l-light",M:"text-h6",L:"text-h5"},Ft={S:"ml-2",M:"ml-3",L:"ml-4"},Et=p((e=>{const{className:t="",hasIndent:n,isDotted:r,itemClassName:i="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${Bt[s]} ${Pt[a]} ${t} ${n?Ft[a]:""}`,role:"list",children:l.map(((e,t)=>h(Vt,{className:`${i} mb-1.5`,isDotted:r,version:s,size:a,children:e},String(t))))}):null})),zt=p((({className:e="",title:t="",children:n,buttons:r,image:i})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:n}),r?h("div",{className:"mt-auto pt-8",children:r}):null]}),i]})]}))),Gt={primary:"text-primary-text",secondary:"text-white"},Ht={primary:"text-secondary-text",secondary:"text-white"},Wt=p((e=>{const{className:t="",icon:n,label:r,description:i,version:l="primary",benefitsVersion:a="normal"}=e,s=i?"items-start":"items-center",o=Ut("white"===a||"secondary"===l,n);return u("div",{className:`flex gap-5 ${s} ${t}`,children:[n?h("div",{className:Jt(l,a),children:h(B,{className:"w-6 h-6",image:{...n,iconVersion:o},asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[r?h("div",{className:`text-h6 ${Gt[l]}`,children:r}):null,i?h("div",{className:`text-m-light ${Ht[l]}`,children:i}):null]})]})}));function Jt(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const Ut=(e,t)=>t?.iconVersion||e?"white":"normal",Yt=(e="primary",t="normal")=>({icon:n,label:r,description:i},l)=>h(Wt,{icon:n,label:r,description:i,version:e,benefitsVersion:t},String(l)),Kt=p((({className:e="",context:t,title:n,headlineVersion:r="L",description:i,benefits:l,benefitsVersion:a="normal",buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,label:p})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[p?Zt(p,d):null,h(gt,{context:t,className:"!p-0 max-w-[600px]",title:n,description:i,bgColorHeadline:d,headlineVersion:r}),u(zt,{context:t,buttons:s?.length?h(Rt,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:l.map(Yt(d,a))}):null,c?.length?h(Et,{className:"mt-3 text-m",items:c,version:d,isDotted:m}):null]})]}),Xt(o)]})));function Xt(e){return e?.src?h(B,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Qt={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},Zt=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${Qt[t]}`,children:e}),qt=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${We[n]} ${t}`,children:h(Kt,{...e})})})),en=p((({block:e,context:t,className:n=""})=>h("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${We[e?.version??"primary"]} ${n}`,role:"listitem",children:h("div",{className:"flex grow",children:h(Kt,{context:t,...e})})}))),tn=p((({className:e,context:t,slides:n=[]})=>{const r=n.map((e=>e.productBlock));return h("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:h(U,{context:t,children:r.map(((e,n)=>h(en,{block:e,context:t},String(n))))})})})),nn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},rn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},ln={normal:"min-h-[70px]",small:"min-h-[50px]"},an={primary:"normal",secondary:"white"},sn=p((({className:e,title:t,description:n,showLines:r=!0,steps:i,size:l="normal",version:a="primary"})=>{const s=nn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(w,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,i?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(on(l,a,r))})}):null]})})),on=(e,t,n)=>(r,i,l)=>{const a=l.length-1===i,s="normal"===e?"ml-[34px]":"ml-6",o=nn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[cn(e,t)(r,i),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${ln[e]}`,children:[r.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:r.label}):null,r.description?h("div",{className:`text-s ${o.description} text-left`,children:r.description}):null]})]})},String(i))},cn=(e,t)=>(n,r)=>{const i=nn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${rn[e]} ${i.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${i.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(B,{image:{...n.icon,iconVersion:an[t]},width:l,height:l,asSVG:!0}):h("span",{children:r+1}))})});var s},dn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},r)=>At({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${r>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`})))}):null,Img:({image:e})=>e?.src?h(B,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(Et,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},mn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(w,{headingType:"h3",className:"font-medium",title:e}):null,t?h(B,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),hn=p((({context:e,tile:t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(mn,{...t.header}),t.data?.length?t.data.map(un(e)):null]}))),un=e=>(t,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,pn(t,e)]},String(n)),pn=(e,t)=>{if(!e)return null;const{tableCellType:n,...r}=e;if(!n||!(n in dn))return null;return h(dn[n],{context:t,displayTable:()=>null,...r,isVisible:!0})},xn=p((({tiles:e,context:t})=>h(U,{context:t,children:e.map(((e,n)=>h(hn,{tile:e,context:t},String(n))))}))),gn=p((({tiles:e,context:t})=>h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(hn,{tile:e,context:t},String(n))))}))),bn=p((({className:e,context:t,title:n,description:r,tariffsColumns:i,rowHeaders:l,orientation:a="vertical"})=>{const s=Nn(i),o=yn(l,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[n?h(w,{headingType:"h2",className:`text-center ${r?"mb-2":"mb-5"}`,title:n}):null,r?h("div",{className:"mb-5 text-center text-m",children:r}):null,o?.length?fn(a,o,t):null]})}));function fn(e,t,n){return h("vertical"===e?gn:xn,{context:n,tiles:t})}const Nn=e=>e?.[0].data?e[0].data:[],yn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),vn={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},wn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:r,image:i,className:l="",items:a,isDotted:s=!0})=>{const o=vn[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===r?kn(o.icon):null,"big"===r?$n(i):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(Et,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function kn(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function $n(e){return e?.src?h(B,{className:"pb-3 mr-auto",image:e}):null}const Cn={Accordion:$,AccordionItem:F,ComparisonTable:ce,Footer:Ge,Gallery:Je,Header:ht,Headline:gt,LinkDocs:kt,LinkList:fe,MobileAppTile:ke,ProductBlock:qt,ProductGallery:tn,StepsBlock:sn,TariffsTable:bn,TextBlock:wn,Placeholder:_t};function Sn(e){return e?e.filter(Boolean).join(" "):""}const Tn=m();const _n=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Dn()}))),Dn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},In=p((({className:e,context:t,...n})=>{const{useRouter:a,handlerDecorator:s=Ie}=t,o=function(e){const[t,n]=r(0);return i((()=>{(async()=>{const[t]=await Tn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Tn.like(e))}),[e]),dislike:l((async()=>{n(await Tn.dislike(e))}),[e])}}(a().pathname);return u(y,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...n,children:[h(_n,{onClick:s(o.like),ariaLabel:"Поставить отметку «лайк»"}),h(_n,{onClick:s(o.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:o.likeCount})]})})),jn=[null],Rn=e=>e;function An(e,t,n=jn){const{key:r,page:i,blockDecorator:l,blocksRegistry:a,context:s}=t,{type:o,blocks:c}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const d=o&&a[o],{renderChild:m=Rn}=d||{},u=c?.length?c.map(((r,i)=>m(An(r,{...t,key:`${t.key}-${i}`},[...n,e]),i))):null;return l({blockClassName:`scroll-mt-12 ${Sn(e.style)}`,block:e,ancestors:n,render:({block:e,blockClassName:t})=>{const{version:l,anchor:a,labels:o,content:c}=e;return d?h(d,{className:t,context:s,page:i,ancestors:n,version:l,anchor:a,labels:o,...c,children:u},r):null}},r)}const Ln=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Mn=p((e=>{const{className:t="",context:n,data:r={}}=e,{style:i,blocks:l,slots:a,likeControl:s,colorPalette:o="pc"}=r,c=function({blocksRegistry:e,data:t,blockDecorator:n,context:r}){return(i,l)=>i.map(((i,a)=>An(i,{key:`${i.type||"#"}-${a}`,blocksRegistry:e,page:t||{},blockDecorator:n||Ln,context:r},l)))}(e);return u("section",{className:`relative ${Sn(i)} ${t}`,"data-theme":o,children:[a?.header?.blocks?.length?h("div",{className:`${Sn(a.header.style)}`,children:c(a.header.blocks,["header"])}):null,l?.length?h("div",{className:"container grid grid-cols-12 gap-1",children:c(l)}):null,s?On(n):null]})}));function On(e){return h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(In,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:e},"LikeControl")})}e.Blocks=Cn,e.ContentPage=Mn,e.DaDataAPI=o,e.LikeAPI=m,e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.packageVersion="0.6.19",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Te,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
2
|
import type { HandlerDecorator, Router } from '../ContentPage/ContentPageContext';
|
|
4
3
|
import type { Step } from './StepsBlockContent';
|
|
5
4
|
import type { StyleType } from './StepsBlockStyleMaps';
|
|
5
|
+
import type { VNode } from '../../model/VNode';
|
|
6
6
|
export declare const renderStepContent: ({ styleMap, isMainButton, version, router, handlerDecorator, }: {
|
|
7
7
|
styleMap: StyleType;
|
|
8
8
|
isMainButton: boolean;
|
|
@@ -11,4 +11,4 @@ export declare const renderStepContent: ({ styleMap, isMainButton, version, rout
|
|
|
11
11
|
handlerDecorator?: HandlerDecorator | undefined;
|
|
12
12
|
}) => (step: Step, i: number, { length }: {
|
|
13
13
|
length: number;
|
|
14
|
-
}) =>
|
|
14
|
+
}) => VNode;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
|
+
import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
2
3
|
import type { CellDef } from './TariffsTableContent';
|
|
3
|
-
export interface
|
|
4
|
+
export interface TariffTableContentProps {
|
|
5
|
+
openTableInnerIdx?: number;
|
|
6
|
+
setOpenTableInnerIdx: (props?: number) => void;
|
|
7
|
+
setTableInner: (props?: TariffsTableInnerContent) => void;
|
|
8
|
+
tableInner?: TariffsTableInnerContent;
|
|
9
|
+
}
|
|
10
|
+
export interface TariffsTableCellProps extends TariffTableContentProps, UniBlockProps {
|
|
4
11
|
rowIdx: number;
|
|
5
12
|
cellIdx: number;
|
|
6
13
|
cells: CellDef[];
|
|
7
|
-
isLastRow: boolean;
|
|
8
14
|
}
|
|
9
15
|
export declare const TariffsTableCell: import("@redneckz/uni-jsx").UNIComponent<TariffsTableCellProps, any, any>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { EmptyOption } from '../../model/EmptyOptionType';
|
|
2
|
-
import type { DescriptionProps, LabelProps } from '../../model/HeadlineType';
|
|
2
|
+
import type { DescriptionProps, LabelProps, TitleProps } from '../../model/HeadlineType';
|
|
3
3
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
4
4
|
import type { ListOrientation } from '../../model/ListOrientation';
|
|
5
5
|
import type { Picture } from '../../model/Picture';
|
|
6
6
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonProps';
|
|
7
|
-
import type { HeadingProps } from '../../ui-kit/Heading/HeadingProps';
|
|
8
7
|
import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
9
8
|
import type { ListProps } from '../../ui-kit/List/ListProps';
|
|
10
9
|
/**
|
|
@@ -38,7 +37,7 @@ export declare type Data = {
|
|
|
38
37
|
/**
|
|
39
38
|
* @title Параметр
|
|
40
39
|
*/
|
|
41
|
-
export declare type TariffsTableRowHeader =
|
|
40
|
+
export declare type TariffsTableRowHeader = TitleProps & {
|
|
42
41
|
/** @default { "format": "webp", "size": { "width": 24, "height": 24 } } */
|
|
43
42
|
icon?: Picture;
|
|
44
43
|
};
|
|
@@ -97,7 +96,7 @@ export interface TariffsTableColumn {
|
|
|
97
96
|
/**
|
|
98
97
|
* @title Таблица тарифов
|
|
99
98
|
*/
|
|
100
|
-
export declare type TariffsTableContent =
|
|
99
|
+
export declare type TariffsTableContent = TitleProps & DescriptionProps & {
|
|
101
100
|
/** @title Колонки */
|
|
102
101
|
tariffsColumns?: TariffsTableColumn[];
|
|
103
102
|
/** @title Параметры */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
3
|
+
import type { TariffTableContentProps } from './TariffsTableCell';
|
|
4
|
+
import type { CellDef } from './TariffsTableContent';
|
|
5
|
+
interface TariffTableCellInnerProps extends TariffTableContentProps {
|
|
6
|
+
cellIdx: number;
|
|
7
|
+
context: ContentPageContext;
|
|
8
|
+
rowIdx: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const renderCellInner: ({ rowIdx, context, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }: TariffTableCellInnerProps) => (cell: CellDef, i: number) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -3,7 +3,6 @@ import type { Data } from './TariffsTableContent';
|
|
|
3
3
|
export interface TariffsTableRowProps extends UniBlockProps {
|
|
4
4
|
row: Data;
|
|
5
5
|
activeCardIndex: number;
|
|
6
|
-
isLastRow: boolean;
|
|
7
6
|
rowIdx: number;
|
|
8
7
|
}
|
|
9
8
|
export declare const TariffsTableRow: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowProps, any, any>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
2
|
import type { VNode } from '../../model/VNode';
|
|
3
|
+
import type { TariffsTableInnerContent } from '../../ui-kit/InnerTable/InnerTableProps';
|
|
3
4
|
export interface TariffsTableRowContainerProps extends UniBlockProps {
|
|
4
5
|
children?: VNode;
|
|
5
|
-
|
|
6
|
+
onHideContentClick: () => void;
|
|
7
|
+
tableInner?: TariffsTableInnerContent;
|
|
6
8
|
}
|
|
7
9
|
export declare const TariffsTableRowContainer: import("@redneckz/uni-jsx").UNIComponent<TariffsTableRowContainerProps, any, any>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
2
|
import type { TariffsTableInnerContent } from './InnerTableProps';
|
|
3
3
|
export interface InnerTableProps extends TariffsTableInnerContent, UniBlockProps {
|
|
4
|
+
onClick: () => void;
|
|
4
5
|
}
|
|
5
6
|
export declare const InnerTable: import("@redneckz/uni-jsx").UNIComponent<InnerTableProps, any, any>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
2
|
import type { TariffsTableInnerEvent } from './InnerTableProps';
|
|
3
3
|
export interface TableInnerButtonProps extends TariffsTableInnerEvent, UniBlockProps {
|
|
4
|
+
onClick?: () => void;
|
|
4
5
|
isOpen?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare const TableInnerButton: import("@redneckz/uni-jsx").UNIComponent<TableInnerButtonProps, any, any>;
|
|
@@ -10,7 +10,7 @@ exports.Bonus = (0, uni_jsx_1.JSX)((props) => {
|
|
|
10
10
|
const { context, className = '', title, description, bonusItems, ...rest } = props;
|
|
11
11
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, context: context, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
|
|
12
12
|
? bonusItems.map((_, i) => {
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "flex-grow w-[49%] border border-gray
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between mr-4", children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-h4", children: _.title }), (0, jsx_runtime_1.jsx)("div", { className: "text-xl-light mt-2 max-w-[488px]", children: _.description })] }), _?.buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: _?.buttons })) : null] }), _.bonusItemContent?.bonusType
|
|
14
14
|
? renderBonusItemContent(_.bonusItemContent)
|
|
15
15
|
: null] }) }, String(i)));
|
|
16
16
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../../src/components/Bonus/Bonus.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,qEAAkE;AAClE,8CAA2C;AAC3C,mDAAgD;AAKnC,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEnF,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,oCAAoC,SAAS,EAAE,EAC1D,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,iCAAK,SAAS,EAAC,WAAW,aACxB,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,QAAQ,GACd,EACF,gCAAK,SAAS,EAAC,4BAA4B,YACxC,UAAU,EAAE,MAAM;wBACjB,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,gCAEE,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../../src/components/Bonus/Bonus.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,qEAAkE;AAClE,8CAA2C;AAC3C,mDAAgD;AAKnC,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEnF,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,oCAAoC,SAAS,EAAE,EAC1D,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,iCAAK,SAAS,EAAC,WAAW,aACxB,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,eAAe,EAAC,GAAG,EACnB,KAAK,EAAC,QAAQ,GACd,EACF,gCAAK,SAAS,EAAC,4BAA4B,YACxC,UAAU,EAAE,MAAM;wBACjB,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,gCAEE,SAAS,EAAC,qFAAqF,YAE/F,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,iCAAK,SAAS,EAAC,oCAAoC,aACjD,4CACE,gCAAK,SAAS,EAAC,SAAS,YAAE,CAAC,CAAC,KAAK,GAAO,EACxC,gCAAK,SAAS,EAAC,kCAAkC,YAAE,CAAC,CAAC,WAAW,GAAO,IACnE,EACL,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CACpB,uBAAC,6BAAa,IAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAI,CACzD,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,CAAC,CAAC,gBAAgB,EAAE,SAAS;4CAC5B,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,gBAAgB,CAAC;4CAC5C,CAAC,CAAC,IAAI,IACJ,IAhBD,MAAM,CAAC,CAAC,CAAC,CAiBV,CACP,CAAC;wBACJ,CAAC,CAAC;wBACJ,CAAC,CAAC,IAAI,GACJ,IACF,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,CAAC,gBAA+C,EAAE,EAAE,CAAC,CAClF,0CACG,gBAAgB,CAAC,SAAS,KAAK,OAAO;QACrC,CAAC,CAAC,gBAAgB,CAAC,gBAAiC,CAAC;QACrD,CAAC,CAAC,gBAAgB,CAAC,gBAAiC,CAAC,GACnD,CACP,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAgB,EAAE,EAAE,CAAC,CAC7C,iCAAK,SAAS,EAAC,yDAAyD,aACrE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CACd,iCAAM,SAAS,EAAC,qGAAqG,YAClH,CAAC,CAAC,UAAU,GACR,CACR,CAAC,CAAC,CAAC,IAAI,EACP,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CACb,iCAAM,SAAS,EAAC,0DAA0D,YACvE,CAAC,CAAC,SAAS,GACP,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,CAAgB,EAAE,EAAE,CAC5C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CACR,uBAAC,SAAG,IAAC,SAAS,EAAE,iDAAiD,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,GAAI,CACtF,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -7,7 +7,7 @@ function renderBackwardButton(button, version, className) {
|
|
|
7
7
|
const { text, href, target, onClick } = button;
|
|
8
8
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
9
9
|
const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion }, asSVG: true }) }), text ? (0, jsx_runtime_1.jsx)("span", { className: "text-m", children: text }) : null] }));
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? (0, jsx_runtime_1.jsx)("span", { className: "text-m", children: text }) : null] }));
|
|
11
11
|
}
|
|
12
12
|
exports.renderBackwardButton = renderBackwardButton;
|
|
13
13
|
//# sourceMappingURL=renderBackwardButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAE3C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAqB,EACrB,SAAiB;IAEjB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC/C,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IAE/D,OAAO,CACL,iCAAK,SAAS,EAAE,oCAAoC,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,aAC/E,uBAAC,eAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,YAEd,uBAAC,SAAG,
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAE3C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAqB,EACrB,SAAiB;IAEjB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC/C,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IAE/D,OAAO,CACL,iCAAK,SAAS,EAAE,oCAAoC,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,aAC/E,uBAAC,eAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,YAEd,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,WAAW,EAAE,YAAY,CAAC,WAAW,IAAI,WAAW,EAAE,EAChF,KAAK,SACL,GACK,EACR,IAAI,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,QAAQ,YAAE,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,IACjD,CACP,CAAC;AACJ,CAAC;AA5BD,oDA4BC"}
|
|
@@ -28,7 +28,7 @@ exports.SafeDepositRental = (0, uni_jsx_1.JSX)(({ title, footnote, context, clas
|
|
|
28
28
|
setShowMap(!showMap);
|
|
29
29
|
};
|
|
30
30
|
const points = (0, utils_1.getCoordinates)((0, utils_1.getBranch)(branches, safeDepositState.selectedBranch) || branches);
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: className, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "font-sans bg-white px-8 py-12", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { title: title, headingType: "h3", as: "h2", className: "mb-2.5 text-center" })) : null, (0, jsx_runtime_1.jsx)(SafeDepositRentalForm_1.SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onShowMapToggle: onShowMapToggle, onChange: handleChangeSafeDepositState }), footnote ? (0, jsx_runtime_1.jsx)("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-[640px]" }) : null] }));
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: className, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "font-sans bg-white px-8 py-12", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { title: title, headingType: "h3", as: "h2", className: "text-primary-text mb-2.5 text-center" })) : null, (0, jsx_runtime_1.jsx)(SafeDepositRentalForm_1.SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onShowMapToggle: onShowMapToggle, onChange: handleChangeSafeDepositState }), footnote ? (0, jsx_runtime_1.jsx)("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-[640px]" }) : null] }));
|
|
32
32
|
});
|
|
33
33
|
const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
|
|
34
34
|
//# sourceMappingURL=SafeDepositRental.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafeDepositRental.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRental.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,2DAAwD;AAExD,4DAAyD;AACzD,0DAAuD;AAEvD,mEAAgE;AAEhE,mDAAwD;AACxD,mCAAoD;AACpD,gEAA6D;AAI7D,MAAM,YAAY,GAAG,EAAE,CAAC;AAEX,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACxD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IACvD,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAyB;QAChF,cAAc,EAAE,EAAE;QAClB,cAAc,EAAE,EAAE;QAClB,kBAAkB,EAAE,EAAE;QACtB,eAAe,EAAE,EAAE;QACnB,IAAI,EAAE,YAAY;KACnB,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEhC,MAAM,cAAc,GAAG,uBAAuB,CAAC,gBAAgB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IAEzF,MAAM,QAAQ,GAAG,IAAA,2BAAY,EAAC,cAAc,CAAC,CAAC;IAE9C,MAAM,4BAA4B,GAAsB,IAAA,mBAAW,EACjE,CAAC,KAAK,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,EAC1E,CAAC,oBAAoB,CAAC,CACvB,CAAC;IAEF,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAc,EAAC,IAAA,iBAAS,EAAC,QAAQ,EAAE,gBAAgB,CAAC,cAAc,CAAC,IAAI,QAAQ,CAAC,CAAC;IAEhG,OAAO,CACL,wBAAC,2BAAY,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,KAAM,IAAI,aAC5D,iCAAK,SAAS,EAAC,+BAA+B,aAC3C,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,
|
|
1
|
+
{"version":3,"file":"SafeDepositRental.js","sourceRoot":"","sources":["../../../src/components/SafeDepositRental/SafeDepositRental.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,2DAAwD;AAExD,4DAAyD;AACzD,0DAAuD;AAEvD,mEAAgE;AAEhE,mDAAwD;AACxD,mCAAoD;AACpD,gEAA6D;AAI7D,MAAM,YAAY,GAAG,EAAE,CAAC;AAEX,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACxD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IACvD,MAAM,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAyB;QAChF,cAAc,EAAE,EAAE;QAClB,cAAc,EAAE,EAAE;QAClB,kBAAkB,EAAE,EAAE;QACtB,eAAe,EAAE,EAAE;QACnB,IAAI,EAAE,YAAY;KACnB,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEhC,MAAM,cAAc,GAAG,uBAAuB,CAAC,gBAAgB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IAEzF,MAAM,QAAQ,GAAG,IAAA,2BAAY,EAAC,cAAc,CAAC,CAAC;IAE9C,MAAM,4BAA4B,GAAsB,IAAA,mBAAW,EACjE,CAAC,KAAK,EAAE,EAAE,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,EAC1E,CAAC,oBAAoB,CAAC,CACvB,CAAC;IAEF,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,MAAM,MAAM,GAAG,IAAA,sBAAc,EAAC,IAAA,iBAAS,EAAC,QAAQ,EAAE,gBAAgB,CAAC,cAAc,CAAC,IAAI,QAAQ,CAAC,CAAC;IAEhG,OAAO,CACL,wBAAC,2BAAY,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,KAAM,IAAI,aAC5D,iCAAK,SAAS,EAAC,+BAA+B,aAC3C,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,KAAK,EAAE,KAAK,EACZ,WAAW,EAAC,IAAI,EAChB,EAAE,EAAC,IAAI,EACP,SAAS,EAAC,sCAAsC,GAChD,CACH,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,6CAAqB,IACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,EAAE,GAAG,gBAAgB,EAAE,cAAc,EAAE,EAC7C,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,4BAA4B,GACtC,EACD,QAAQ,CAAC,CAAC,CAAC,8BAAG,SAAS,EAAC,kCAAkC,YAAE,QAAQ,GAAK,CAAC,CAAC,CAAC,IAAI,IAC7E,EACL,MAAM,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,uBAAC,qBAAS,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,WAAW,GAAG,CAAC,CAAC,CAAC,IAAI,IACzE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,cAAsB,EAAE,OAAkB,EAAE,EAAE,CAC7E,CAAC,cAAc,IAAI,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC"}
|
|
@@ -2,9 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.renderItems = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const List_1 = require("../../ui-kit/List/List");
|
|
5
|
-
const renderItems = ({ items, isDotted = true, version = 'primary', className = '', }) => {
|
|
6
|
-
const listVersion = version === 'primary' ? 'gray' : version;
|
|
7
|
-
return items ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: `mt-4 ${className}`, version: listVersion, items: items, listItemSize: "S", isDotted: isDotted })) : null;
|
|
8
|
-
};
|
|
5
|
+
const renderItems = ({ items, isDotted = true, version = 'primary', className = '', }) => items ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: className, version: version, items: items, listItemSize: "M", isDotted: isDotted })) : null;
|
|
9
6
|
exports.renderItems = renderItems;
|
|
10
7
|
//# sourceMappingURL=renderItems.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderItems.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/renderItems.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAGvC,MAAM,WAAW,GAAG,CAAC,EAC1B,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,OAAO,GAAG,SAAS,EACnB,SAAS,GAAG,EAAE,GAMf,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"renderItems.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/renderItems.tsx"],"names":[],"mappings":";;;AAAA,iDAA8C;AAGvC,MAAM,WAAW,GAAG,CAAC,EAC1B,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,OAAO,GAAG,SAAS,EACnB,SAAS,GAAG,EAAE,GAMf,EAAE,EAAE,CACH,KAAK,CAAC,CAAC,CAAC,CACN,uBAAC,WAAI,IACH,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,YAAY,EAAC,GAAG,EAChB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AAnBE,QAAA,WAAW,eAmBb"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { BlockVersion } from '../../model/BlockVersion';
|
|
3
2
|
import type { HandlerDecorator, Router } from '../ContentPage/ContentPageContext';
|
|
4
3
|
import type { Step } from './StepsBlockContent';
|
|
5
4
|
import type { StyleType } from './StepsBlockStyleMaps';
|
|
5
|
+
import type { VNode } from '../../model/VNode';
|
|
6
6
|
export declare const renderStepContent: ({ styleMap, isMainButton, version, router, handlerDecorator, }: {
|
|
7
7
|
styleMap: StyleType;
|
|
8
8
|
isMainButton: boolean;
|
|
@@ -11,4 +11,4 @@ export declare const renderStepContent: ({ styleMap, isMainButton, version, rout
|
|
|
11
11
|
handlerDecorator?: HandlerDecorator | undefined;
|
|
12
12
|
}) => (step: Step, i: number, { length }: {
|
|
13
13
|
length: number;
|
|
14
|
-
}) =>
|
|
14
|
+
}) => VNode;
|
|
@@ -6,15 +6,20 @@ const renderItems_1 = require("./renderItems");
|
|
|
6
6
|
const useLink_1 = require("../../hooks/useLink");
|
|
7
7
|
const renderStepContent = ({ styleMap, isMainButton, version, router, handlerDecorator, }) => (step, i, { length }) => {
|
|
8
8
|
const { label, description, button, items, isDotted } = step;
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
const contentMarginClass = label && (description || items) ? 'mt-2' : '';
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${getContainerWidth(length)}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: `${button?.text ? 'mb-8' : ''} text-center`, children: [renderStepLabel(label), (0, jsx_runtime_1.jsxs)("div", { className: `${contentMarginClass} flex flex-col items-center`, children: [renderStepDescription({
|
|
11
|
+
description,
|
|
12
|
+
className: styleMap.description,
|
|
13
|
+
}), (0, renderItems_1.renderItems)({
|
|
14
|
+
items,
|
|
15
|
+
isDotted,
|
|
16
|
+
version,
|
|
17
|
+
className: getItemsClasses({ className: 'text-left', description, styleMap }),
|
|
18
|
+
})] })] }), button?.text && !isMainButton ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border py-3 h-12 w-full max-w-[240px] mt-auto", ...(0, useLink_1.useLink)({ router, handlerDecorator }, button), version: version, children: button?.text })) : null] }, String(i)));
|
|
16
19
|
};
|
|
17
20
|
exports.renderStepContent = renderStepContent;
|
|
18
|
-
const renderStepLabel = (label) => label ? (0, jsx_runtime_1.jsx)("div", { className: "text-
|
|
21
|
+
const renderStepLabel = (label) => label ? (0, jsx_runtime_1.jsx)("div", { className: "text-h6", children: label }) : null;
|
|
19
22
|
const renderStepDescription = ({ description, className = '', }) => (description ? (0, jsx_runtime_1.jsx)("div", { className: className, children: description }) : null);
|
|
23
|
+
const getItemsClasses = ({ className, description, styleMap, }) => [description ? styleMap.description : 'text-h6', description ? 'mt-0.5' : '', className].join(' ');
|
|
24
|
+
const getContainerWidth = (length) => (length < 5 ? 'w-[276px]' : 'w-[210px]');
|
|
20
25
|
//# sourceMappingURL=renderStepContent.js.map
|