@redneckz/wildless-cms-uni-blocks 0.14.79 → 0.14.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +65 -43
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
- package/bundle/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
- package/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
- package/bundle/components/OfficesAtmsMap/renderDay.d.ts +3 -0
- package/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
- package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
- package/dist/components/OfficesAtmsMap/Badge.js +1 -1
- package/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/dist/components/OfficesAtmsMap/CardRow.js +1 -1
- package/dist/components/OfficesAtmsMap/CardRow.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderAtmCard.js +8 -1
- package/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
- package/dist/components/OfficesAtmsMap/renderCurrency.js +7 -0
- package/dist/components/OfficesAtmsMap/renderCurrency.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +16 -0
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderDay.d.ts +3 -0
- package/dist/components/OfficesAtmsMap/renderDay.js +13 -0
- package/dist/components/OfficesAtmsMap/renderDay.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
- package/dist/components/OfficesAtmsMap/renderFoldButton.js +9 -0
- package/dist/components/OfficesAtmsMap/renderFoldButton.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
- package/dist/components/OfficesAtmsMap/renderOfficeCard.js +36 -26
- package/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +1 -2
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/OfficesAtmsMap/Badge.js +1 -1
- package/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/lib/components/OfficesAtmsMap/CardRow.js +1 -1
- package/lib/components/OfficesAtmsMap/CardRow.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderAtmCard.js +8 -1
- package/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderCurrency.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/renderCurrency.js +4 -0
- package/lib/components/OfficesAtmsMap/renderCurrency.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +13 -0
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderDay.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/renderDay.js +10 -0
- package/lib/components/OfficesAtmsMap/renderDay.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
- package/lib/components/OfficesAtmsMap/renderFoldButton.js +6 -0
- package/lib/components/OfficesAtmsMap/renderFoldButton.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
- package/lib/components/OfficesAtmsMap/renderOfficeCard.js +34 -21
- package/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +1 -2
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +69 -47
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
- package/mobile/bundle/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderDay.d.ts +3 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
- package/mobile/dist/components/OfficesAtmsMap/Badge.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/CardRow.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/CardRow.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js +8 -1
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
- package/mobile/dist/components/OfficesAtmsMap/renderCurrency.js +7 -0
- package/mobile/dist/components/OfficesAtmsMap/renderCurrency.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js +16 -0
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderDay.d.ts +3 -0
- package/mobile/dist/components/OfficesAtmsMap/renderDay.js +13 -0
- package/mobile/dist/components/OfficesAtmsMap/renderDay.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js +9 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFoldButton.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js +36 -26
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +1 -2
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/OfficesAtmsMap/Badge.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/Badge.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/CardRow.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/CardRow.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +3 -3
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js +8 -1
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderCurrency.d.ts +3 -0
- package/mobile/lib/components/OfficesAtmsMap/renderCurrency.js +4 -0
- package/mobile/lib/components/OfficesAtmsMap/renderCurrency.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +3 -0
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js +13 -0
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderDay.d.ts +3 -0
- package/mobile/lib/components/OfficesAtmsMap/renderDay.js +10 -0
- package/mobile/lib/components/OfficesAtmsMap/renderDay.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.d.ts +3 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js +6 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFoldButton.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -4
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js +34 -21
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +1 -2
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/src/components/OfficesAtmsMap/Badge.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/CardRow.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +3 -3
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +2 -2
- package/mobile/src/components/OfficesAtmsMap/renderAtmCard.tsx +29 -10
- package/mobile/src/components/OfficesAtmsMap/renderCurrency.tsx +13 -0
- package/mobile/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +24 -0
- package/mobile/src/components/OfficesAtmsMap/renderDay.tsx +23 -0
- package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/renderFoldButton.tsx +17 -0
- package/mobile/src/components/OfficesAtmsMap/renderOfficeCard.tsx +72 -68
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +0 -4
- package/package.json +1 -1
- package/src/components/OfficesAtmsMap/Badge.tsx +1 -1
- package/src/components/OfficesAtmsMap/CardRow.tsx +1 -1
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +3 -3
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +2 -2
- package/src/components/OfficesAtmsMap/renderAtmCard.tsx +29 -10
- package/src/components/OfficesAtmsMap/renderCurrency.tsx +13 -0
- package/src/components/OfficesAtmsMap/renderCurrentDaySchedule.tsx +24 -0
- package/src/components/OfficesAtmsMap/renderDay.tsx +23 -0
- package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +1 -1
- package/src/components/OfficesAtmsMap/renderFoldButton.tsx +17 -0
- package/src/components/OfficesAtmsMap/renderOfficeCard.tsx +72 -68
- package/src/ui-kit/YandexMap/YandexMap.tsx +0 -4
- package/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/dist/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/dist/ui-kit/YandexMap/renderOpenMap.js +0 -19
- package/dist/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
- package/lib/ui-kit/YandexMap/renderOpenMap.d.ts +0 -1
- package/lib/ui-kit/YandexMap/renderOpenMap.js +0 -16
- package/lib/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
- package/mobile/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js +0 -19
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.d.ts +0 -2
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js +0 -16
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js.map +0 -1
- package/mobile/src/ui-kit/YandexMap/renderOpenMap.tsx +0 -26
- package/src/ui-kit/YandexMap/renderOpenMap.tsx +0 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderOfficeCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderOfficeCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"renderOfficeCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderOfficeCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EA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AAC,KAAK,EAAE,aAAa,EAAE,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,mBAAmB,YAC9E,cAAK,SAAS,EAAC,gDAAgD,YAC5D,gBAAgB,EAAE,GAAG,CAAC,SAAS,CAAC,GAC7B,GACG,GACH,CACX,CAAC,CAAC,CAAC,CACF,MAAC,OAAO,eACN,KAAC,QAAQ,IAAC,KAAK,EAAE,aAAa,EAAE,SAAS,EAAC,QAAQ,YAChD,cAAK,SAAS,EAAC,YAAY,YAAE,gBAAgB,EAAE,GAAG,CAAC,oBAAoB,CAAC,GAAO,GACtE,EACV,sBAAsB,CAAC,gBAAgB,CAAC,IACjC,CACX,EACA,YAAY,EAAE,0BAA0B;gBACvC,CAAC,CAAC,sBAAsB,CAAC,YAAY,EAAE,2BAA2B,CAAC;gBACnE,CAAC,CAAC,IAAI,EACP,YAAY,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CAClC,KAAC,OAAO,IAAC,SAAS,EAAC,WAAW,YAAE,YAAY,EAAE,UAAU,EAAE,GAAG,CAAC,cAAc,CAAC,GAAW,CACzF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -6,7 +6,6 @@ import { useEffect, useRef, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
6
6
|
import { style } from '../../utils/style.js';
|
|
7
7
|
import { Icon } from '../Icon/Icon.js';
|
|
8
8
|
import { renderClusterer } from './renderClusterer.js';
|
|
9
|
-
import { renderOpenMap } from './renderOpenMap.js';
|
|
10
9
|
import { renderUserGeolocation } from './renderUserGeolocation.js';
|
|
11
10
|
import { useYandexMaps } from './useYandexMaps.js';
|
|
12
11
|
import { ZoomButton } from './ZoomButton.js';
|
|
@@ -67,7 +66,7 @@ export const YandexMap = JSX(({ points, className = '', zoom = 5 }) => {
|
|
|
67
66
|
setIsFullScreen(container.isFullscreen());
|
|
68
67
|
};
|
|
69
68
|
const zIndex = isFullScreen ? 'z-[100000]' : 'z-10';
|
|
70
|
-
return (_jsxs("div", { id: "map", className: style(!isFullScreen && 'relative', 'w-full', className), children: [_jsx("div", { className: style(
|
|
69
|
+
return (_jsxs("div", { id: "map", className: style(!isFullScreen && 'relative', 'w-full', className), children: [_jsx("div", { className: style(Object.values(FULLSCREEN_STYLES), zIndex, 'right-2 top-4 bg-white'), onClick: toggleFullscreen, children: _jsx(Icon, { name: "FullScreenIcon", width: "16", height: "16" }) }), _jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [_jsx(ZoomButton, { yandexMaps: map }), _jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map.current, yandexMaps, style('right-2 top-80', zIndex))] }));
|
|
71
70
|
});
|
|
72
71
|
const getCenterPoint = (points) => [
|
|
73
72
|
getArraySumAndAverage(mapByIndex(points, 0)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/YandexMap.tsx"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,cAAc;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/ui-kit/YandexMap/YandexMap.tsx"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,cAAc;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,6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312
|
|
|
313
|
-
const styles$
|
|
313
|
+
const styles$2 = {
|
|
314
314
|
h0: 'text-h0',
|
|
315
315
|
h1: 'text-h1',
|
|
316
316
|
h2: 'text-h2',
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
};
|
|
322
322
|
const Heading = JSX(({ className = '', headingType = 'h3', as = 'h3', title, children }) => {
|
|
323
323
|
const Tag = headingTag(as);
|
|
324
|
-
return (jsx(Tag, { className: style('font-sans m-0', styles$
|
|
324
|
+
return (jsx(Tag, { className: style('font-sans m-0', styles$2[headingType], className), children: title || children }));
|
|
325
325
|
});
|
|
326
326
|
|
|
327
327
|
const Paragraph = JSX(({ children, ...styleProps }) => (jsx("p", { className: style('font-sans', Object.values(styleProps)), children: children })));
|
|
@@ -2778,9 +2778,9 @@
|
|
|
2778
2778
|
if (isSingleTab) {
|
|
2779
2779
|
return renderCalculator(tabs[0]);
|
|
2780
2780
|
}
|
|
2781
|
-
return tabs.map((tab, index) => (jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: index === 0, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCalculator(tab) })), renderFoldButton: renderFoldButton$
|
|
2781
|
+
return tabs.map((tab, index) => (jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: index === 0, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCalculator(tab) })), renderFoldButton: renderFoldButton$3(tab) }, index.toString())));
|
|
2782
2782
|
};
|
|
2783
|
-
const renderFoldButton$
|
|
2783
|
+
const renderFoldButton$3 = (tab) => ({ isUnfolded, onToggle }) => {
|
|
2784
2784
|
const align = tab.nav?.align || 'text-left';
|
|
2785
2785
|
return (jsxs("button", { onClick: onToggle, className: "w-full p-xl bg-primary-main flex items-center border-b border-white", children: [jsx("div", { className: "w-11 h-11 bg-white rounded-md flex justify-center items-center", children: jsx(Icon, { name: tab.nav?.icon?.icon, iconVersion: "color", width: "24", height: "24" }) }), jsxs("div", { className: "flex-1 flex flex-col pl-s", children: [jsx(Text, { align: align, color: "text-white", children: tab.nav?.title }), jsx(Text, { align: align, size: "text-s", color: "text-white", font: "font-light", children: tab.nav?.description })] }), jsx(Icon, { name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', iconVersion: "white", width: "24", height: "24" })] }));
|
|
2786
2786
|
};
|
|
@@ -3119,9 +3119,9 @@
|
|
|
3119
3119
|
const cellsNode = cardCells.map(renderCardInfo);
|
|
3120
3120
|
const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
|
|
3121
3121
|
const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
|
|
3122
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$
|
|
3122
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$2 : null })) : null] }));
|
|
3123
3123
|
});
|
|
3124
|
-
const renderFoldButton$
|
|
3124
|
+
const renderFoldButton$2 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
3125
3125
|
|
|
3126
3126
|
const gradientStyle = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
3127
3127
|
const dividerStyle$1 = 'border-main-divider border-b';
|
|
@@ -3181,7 +3181,7 @@
|
|
|
3181
3181
|
|
|
3182
3182
|
const NotFound = JSX(({ title, description }) => (jsxs("div", { className: "bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center", children: [jsx(Img, { image: { icon: 'MagnifierIcon', iconVersion: 'normal' }, width: "120", height: "120" }), jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: AlignStyles })] })));
|
|
3183
3183
|
|
|
3184
|
-
const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
3184
|
+
const ICONS$1 = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
3185
3185
|
const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs border-box';
|
|
3186
3186
|
const BaseFiltrationInner = JSX(({ label = '', blocksToRender = [], topItemsCount = 0, block, notFound, ...rest }) => {
|
|
3187
3187
|
const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
|
|
@@ -3189,7 +3189,7 @@
|
|
|
3189
3189
|
: [blocksToRender, []];
|
|
3190
3190
|
return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? jsx(NotFound, { ...notFound }) : null }), jsxs("div", { className: style('space-y-2xs', blocksToRender.length ? '' : 'hidden'), children: [jsxs("div", { className: style(resultsGridStyle), children: [renderBlocksList(visibleBlocks, { ...rest.options, parent: block }), isOdd(visibleBlocks.length) ? jsx(AdTile, { className: "col-span-6" }) : null] }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
|
|
3191
3191
|
return (jsxs(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: [renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }), isOdd(hiddenBlocks.length) ? jsx(AdTile, { className: "col-span-6" }) : null] }));
|
|
3192
|
-
}, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
|
|
3192
|
+
}, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS$1[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
|
|
3193
3193
|
});
|
|
3194
3194
|
|
|
3195
3195
|
const isEmpty = (v) => v === null ||
|
|
@@ -3553,7 +3553,7 @@
|
|
|
3553
3553
|
version, ...rest }) => (jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), defaultPadding: "p-0", tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-lg', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren({
|
|
3554
3554
|
...rest,
|
|
3555
3555
|
extraProps: { className: 'w-full', padding: 'p-0' },
|
|
3556
|
-
}) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({
|
|
3556
|
+
}) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton$1({
|
|
3557
3557
|
foldButtonVersion,
|
|
3558
3558
|
label,
|
|
3559
3559
|
labelIcon,
|
|
@@ -3564,7 +3564,7 @@
|
|
|
3564
3564
|
RollupItem.childrenTypes = {
|
|
3565
3565
|
exclude: ['RollupItem'],
|
|
3566
3566
|
};
|
|
3567
|
-
const renderFoldButton = ({ foldButtonVersion, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, onToggle, }) => {
|
|
3567
|
+
const renderFoldButton$1 = ({ foldButtonVersion, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, onToggle, }) => {
|
|
3568
3568
|
const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
|
|
3569
3569
|
const icon = getIconName(isUnfolded);
|
|
3570
3570
|
return foldButtonVersion === 'accordion' ? (jsx(AccordionFoldButton, { label: label, labelIcon: labelIcon, labelIconBgVersion: labelIconBgVersion, icon: icon, onToggle: onToggle })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
@@ -3906,21 +3906,6 @@
|
|
|
3906
3906
|
});
|
|
3907
3907
|
}
|
|
3908
3908
|
|
|
3909
|
-
const styles$2 = {
|
|
3910
|
-
focus: 'focus:border-primary-text focus:border',
|
|
3911
|
-
hover: 'hover:bg-primary-hover',
|
|
3912
|
-
active: 'active:bg-primary-active',
|
|
3913
|
-
border: 'border border-transparent rounded-md',
|
|
3914
|
-
position: 'flex items-center justify-center',
|
|
3915
|
-
font: 'text-center font-sans',
|
|
3916
|
-
};
|
|
3917
|
-
const renderOpenMap = (pointsCenter) => {
|
|
3918
|
-
const getYandexMapUrl = () => {
|
|
3919
|
-
return `https://yandex.ru/maps/?ll=${[pointsCenter[1], pointsCenter[0]]}&z=10&l=map`;
|
|
3920
|
-
};
|
|
3921
|
-
return (jsx("a", { className: `select-none cursor-pointer px-4xl h-12 bg-primary-main text-white ${Object.values(styles$2).join(' ')}`, href: getYandexMapUrl(), target: "_blank", children: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430 \u043A\u0430\u0440\u0442\u0435" }));
|
|
3922
|
-
};
|
|
3923
|
-
|
|
3924
3909
|
const styles$1 = {
|
|
3925
3910
|
focus: 'focus:border-primary-text focus:border',
|
|
3926
3911
|
hover: 'hover:bg-primary-hover',
|
|
@@ -4062,7 +4047,7 @@
|
|
|
4062
4047
|
setIsFullScreen(container.isFullscreen());
|
|
4063
4048
|
};
|
|
4064
4049
|
const zIndex = isFullScreen ? 'z-[100000]' : 'z-10';
|
|
4065
|
-
return (jsxs("div", { id: "map", className: style(!isFullScreen && 'relative', 'w-full', className), children: [jsx("div", { className: style(
|
|
4050
|
+
return (jsxs("div", { id: "map", className: style(!isFullScreen && 'relative', 'w-full', className), children: [jsx("div", { className: style(Object.values(FULLSCREEN_STYLES), zIndex, 'right-2 top-4 bg-white'), onClick: toggleFullscreen, children: jsx(Icon, { name: "FullScreenIcon", width: "16", height: "16" }) }), jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [jsx(ZoomButton, { yandexMaps: map }), jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map.current, yandexMaps, style('right-2 top-80', zIndex))] }));
|
|
4066
4051
|
});
|
|
4067
4052
|
const getCenterPoint = (points) => [
|
|
4068
4053
|
getArraySumAndAverage(mapByIndex(points, 0)),
|
|
@@ -4079,7 +4064,7 @@
|
|
|
4079
4064
|
workAllTime: 'Круглосуточно',
|
|
4080
4065
|
billAcceptorEnable: 'Прием наличных',
|
|
4081
4066
|
};
|
|
4082
|
-
const renderFiltrationForm = (filters, { field, reset }) => (jsxs("div", { className: "pb-2xl", children: [filters?.length ? (jsx("div", { className: "flex flex-wrap gap-3xl pb-2xl", children: filters.map((key) => (jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: jsx(Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
|
|
4067
|
+
const renderFiltrationForm = (filters, { field, reset }) => (jsxs("div", { className: "pb-2xl", children: [filters?.length ? (jsx("div", { className: "flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl", children: filters.map((key) => (jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key))) })) : null, jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0", onClick: reset, text: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440", appendRight: jsx(Icon, { name: "CloseIcon", width: "16", height: "16" }) })] }));
|
|
4083
4068
|
|
|
4084
4069
|
const defaultRenderCard = () => null;
|
|
4085
4070
|
const defaultFilterItems = () => [];
|
|
@@ -4092,7 +4077,7 @@
|
|
|
4092
4077
|
const lengthItems = filteredItems.length;
|
|
4093
4078
|
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "pt-6xl px-6xl", children: [jsxs("div", { className: "flex gap-xs pb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthItems})` })) : null] }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, renderFiltrationForm(Object.keys(initFilterState), { field, reset })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
4094
4079
|
});
|
|
4095
|
-
const renderDescriptionBlock$1 = ({ description, list }) => description || list?.length ? (jsxs("div", { className: "p-xl mb-2xl border border-
|
|
4080
|
+
const renderDescriptionBlock$1 = ({ description, list }) => description || list?.length ? (jsxs("div", { className: "p-xl mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [description ? (jsx(Paragraph, { size: "text-l", font: "font-light", children: description })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pt-xs", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
4096
4081
|
|
|
4097
4082
|
const colorStyle = {
|
|
4098
4083
|
yellow: { border: 'border-yellow-light', text: 'text-yellow' },
|
|
@@ -4100,7 +4085,7 @@
|
|
|
4100
4085
|
gray: { border: 'border-gray', text: 'text-secondary-text' },
|
|
4101
4086
|
red: { border: 'border-error/30', text: 'text-error' },
|
|
4102
4087
|
};
|
|
4103
|
-
const Badge = JSX(({ className, children, color = 'gray' }) => (jsx("div", { className: style('p-s border border-gray rounded-md flex items-center', colorStyle[color].border, className), children: jsx(Text, { size: "text-m", color: colorStyle[color].text, children: children }) })));
|
|
4088
|
+
const Badge = JSX(({ className, children, color = 'gray' }) => (jsx("div", { className: style('p-s sm:border sm:border-gray rounded-md flex items-center', colorStyle[color].border, className), children: jsx(Text, { size: "text-m", color: colorStyle[color].text, children: children }) })));
|
|
4104
4089
|
|
|
4105
4090
|
const CardCell = JSX(({ value, subText, children, ...props }) => {
|
|
4106
4091
|
const textItems = (Array.isArray(value) ? value : value?.split(',') ?? []).filter(Boolean);
|
|
@@ -4112,7 +4097,11 @@
|
|
|
4112
4097
|
const renderCardCell = ({ label, labelSize = 'text-m', textItems, subColor, subText, className, children, }) => (jsxs("div", { className: style('flex gap-2xs flex-col h-full max-w-[300px]', className), children: [label ? (jsx(Text, { color: "text-secondary-text", font: "font-light", size: labelSize, children: label })) : null, children ||
|
|
4113
4098
|
textItems.filter(Boolean).map((text, i) => (jsx(Text, { size: "text-l", children: text.trim() }, String(i)))), subText ? (jsx(Text, { color: subColor, size: "text-m", children: subText })) : null] }));
|
|
4114
4099
|
|
|
4115
|
-
const CardRow = JSX(({ className, children }) => (jsx("div", { className: style('flex border-t border-solid border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
|
|
4100
|
+
const CardRow = JSX(({ className, children }) => (jsx("div", { className: style('sm:flex sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl', className), children: children })));
|
|
4101
|
+
|
|
4102
|
+
const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
4103
|
+
const labels = ['Подробнее', 'Скрыть'];
|
|
4104
|
+
const renderFoldButton = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full py-2xl cursor-pointer text-primary-main flex items-center border-b border-solid border-main-divider", onClick: onToggle, children: [jsx("div", { className: "pr-m", children: labels[Number(isUnfolded)] }), jsx(Icon, { className: "text-primary-text", name: ICONS[Number(isUnfolded)], width: "16", height: "16" })] }));
|
|
4116
4105
|
|
|
4117
4106
|
const renderAtmCard = ({ location, address, billAcceptorType, terminalType, billAcceptorEnable, atmCode = '', atmAccess = '', workTime, }, index) => {
|
|
4118
4107
|
const additionalInfo = [
|
|
@@ -4131,7 +4120,11 @@
|
|
|
4131
4120
|
},
|
|
4132
4121
|
{ label: 'Регистрационный номер', value: atmCode },
|
|
4133
4122
|
];
|
|
4134
|
-
return (jsxs("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [jsxs("div", { className: "flex justify-between", children: [
|
|
4123
|
+
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: capitalizedFirstLetter(location) }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }), jsx(Badge, { color: "green", children: capitalizedFirstLetter(workTime) })] }), jsx("div", { className: "hidden sm:block", children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }), jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
|
|
4124
|
+
return (jsx(FoldableSection, { isUnfolded: isUnfolded, children: jsx(CardRow, { className: "flex-wrap", children: additionalInfo?.map(renderInfo) }) }));
|
|
4125
|
+
},
|
|
4126
|
+
//** TODO: Remove styles with refactoring DefaultFoldButton*/
|
|
4127
|
+
renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle }) })] }, String(index)));
|
|
4135
4128
|
};
|
|
4136
4129
|
const renderInfo = (item, index) => (jsx(CardCell, { ...item }, String(index)));
|
|
4137
4130
|
const capitalizedFirstLetter = (text) => text ? `${text?.charAt(0)?.toUpperCase()}${text?.slice(1)}` : '';
|
|
@@ -4253,20 +4246,9 @@
|
|
|
4253
4246
|
};
|
|
4254
4247
|
const renderAlternativeDay = ({ short, status }, index) => (jsx("div", { className: style('w-9 h-9 rounded-md flex items-center justify-center', status ? 'bg-green-more-light text-green-dark' : 'bg-error/30 text-error'), children: jsx(Text, { size: "text-xs", children: short }) }, String(index)));
|
|
4255
4248
|
|
|
4256
|
-
const currentWeekDayIdx = new Date().getDay();
|
|
4257
|
-
const renderOfficeCard = ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }, index) => {
|
|
4258
|
-
if (!workSchedule) {
|
|
4259
|
-
return null;
|
|
4260
|
-
}
|
|
4261
|
-
const workScheduleWeek = getWorkScheduleWeek(workSchedule);
|
|
4262
|
-
const labelSchedule = workSchedule?.businessScheduleVisibleTag
|
|
4263
|
-
? 'Для физических лиц'
|
|
4264
|
-
: 'Для физических и юридических лиц';
|
|
4265
|
-
return (jsxs("div", { className: "bg-white col-span-12 p-3xl border-green border", children: [jsxs("div", { className: "flex justify-between", children: [jsx(Text, { size: "text-h4", children: name }), renderCurrentDaySchedule(workScheduleWeek)] }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null, jsxs(CardRow, { className: "flex-wrap", children: [jsx(CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), jsx(CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), jsx(CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), jsx(CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), jsx(CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), jsx(CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workSchedule.isMatchesPattern ? (jsx(CardRow, { children: jsx(CardCell, { label: labelSchedule, labelSize: "text-l", className: "w-full max-w-none", children: jsx("div", { className: "flex flex-wrap gap-xs sm:justify-between pt-xs", children: workScheduleWeek?.map(renderDay) }) }) })) : (jsxs(CardRow, { children: [jsx(CardCell, { label: labelSchedule, labelSize: "text-l", children: jsx("div", { className: "flex gap-1", children: workScheduleWeek?.map(renderAlternativeDay) }) }), getScheduleDescription(workScheduleWeek)] })), workSchedule?.businessScheduleVisibleTag
|
|
4266
|
-
? renderBusinessSchedule(workSchedule?.businessScheduleDescription)
|
|
4267
|
-
: null, exchangeRate?.currencies?.length ? (jsx(CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(renderCurrency) })) : null] }, String(index)));
|
|
4268
|
-
};
|
|
4269
4249
|
const renderCurrency = ({ currency, buyExchangeRate, saleExchangeRate }, i) => (jsxs("div", { className: "flex gap-lg h-full", children: [currency?.currency ? jsx(CardCell, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", value: currency.currency }) : null, buyExchangeRate ? jsx(CardCell, { label: "\u041A\u0443\u043F\u0438\u0442\u044C", value: String(buyExchangeRate) }) : null, saleExchangeRate ? jsx(CardCell, { label: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C", value: String(saleExchangeRate) }) : null] }, String(i)));
|
|
4250
|
+
|
|
4251
|
+
const currentWeekDayIdx = new Date().getDay();
|
|
4270
4252
|
//TODO: Add logic time https://github.com/redneckz/wildless-cms-uni-blocks/pull/1549
|
|
4271
4253
|
const renderCurrentDaySchedule = (workScheduleWeek) => {
|
|
4272
4254
|
const [currentWeekDay] = workScheduleWeek?.slice(currentWeekDayIdx - 1) ?? [];
|
|
@@ -4276,13 +4258,53 @@
|
|
|
4276
4258
|
const { lunchHour, status, workTime, hasLunch } = currentWeekDay;
|
|
4277
4259
|
return status ? (jsxs("div", { className: "flex gap-s items-start whitespace-nowrap", children: [workTime ? jsx(Badge, { color: "green", children: workTime }) : null, lunchHour && hasLunch ? jsx(Badge, { color: "yellow", children: `перерыв: ${lunchHour}` }) : null] })) : (jsx(Badge, { color: "red", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }));
|
|
4278
4260
|
};
|
|
4279
|
-
|
|
4280
|
-
const getSubTextLunch = (lunchHour, hasLunch = false, status = false) => {
|
|
4261
|
+
|
|
4262
|
+
const getSubTextLunch = ({ lunchHour, hasLunch = false, status = false }) => {
|
|
4281
4263
|
if (!status) {
|
|
4282
4264
|
return 'Не работает';
|
|
4283
4265
|
}
|
|
4284
4266
|
return lunchHour && hasLunch ? `Перерыв ${lunchHour}` : lunchHour;
|
|
4285
4267
|
};
|
|
4268
|
+
const renderDay = ({ title, status, workTime, lunchHour, hasLunch }, index) => (jsx(CardCell, { label: title, value: status && workTime ? workTime : '', subText: getSubTextLunch({ lunchHour, hasLunch, status }), subColor: !status || hasLunch ? 'text-error' : 'text-green-dark' }, String(index)));
|
|
4269
|
+
|
|
4270
|
+
const renderOfficeCard = ({ name, address, phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }, index) => {
|
|
4271
|
+
if (!workSchedule) {
|
|
4272
|
+
return null;
|
|
4273
|
+
}
|
|
4274
|
+
const workScheduleWeek = getWorkScheduleWeek(workSchedule);
|
|
4275
|
+
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: name }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }), renderCurrentDaySchedule(workScheduleWeek)] }), jsx("div", { className: "hidden sm:block", children: renderCardContent({
|
|
4276
|
+
phone,
|
|
4277
|
+
fax,
|
|
4278
|
+
phoneBusiness,
|
|
4279
|
+
phoneNatural,
|
|
4280
|
+
phoneCallCentre,
|
|
4281
|
+
phoneCurrencyControl,
|
|
4282
|
+
workSchedule,
|
|
4283
|
+
exchangeRate,
|
|
4284
|
+
}) }), jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
|
|
4285
|
+
return (jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCardContent({
|
|
4286
|
+
phone,
|
|
4287
|
+
fax,
|
|
4288
|
+
phoneBusiness,
|
|
4289
|
+
phoneNatural,
|
|
4290
|
+
phoneCallCentre,
|
|
4291
|
+
phoneCurrencyControl,
|
|
4292
|
+
workSchedule,
|
|
4293
|
+
exchangeRate,
|
|
4294
|
+
}) }));
|
|
4295
|
+
},
|
|
4296
|
+
//** TODO: remove styles with refactoring DefaultFoldButton*/
|
|
4297
|
+
renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle }) })] }, String(index)));
|
|
4298
|
+
};
|
|
4299
|
+
const renderCardContent = ({ phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }) => {
|
|
4300
|
+
const workScheduleWeek = getWorkScheduleWeek(workSchedule);
|
|
4301
|
+
const labelSchedule = workSchedule?.businessScheduleVisibleTag
|
|
4302
|
+
? 'Для физических лиц'
|
|
4303
|
+
: 'Для физических и юридических лиц';
|
|
4304
|
+
return (jsxs("div", { children: [jsxs(CardRow, { className: "flex-wrap", children: [jsx(CardCell, { label: "\u0424\u0430\u043A\u0441", value: fax }), jsx(CardCell, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D \u0444\u0438\u043B\u0438\u0430\u043B\u0430", value: phone }), jsx(CardCell, { label: "\u0414\u043B\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0439 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneBusiness }), jsx(CardCell, { label: "\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", value: phoneNatural }), jsx(CardCell, { label: "\u0414\u043B\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u0439 \u043F\u043E \u0432\u0430\u043B\u044E\u0442\u043D\u043E\u043C\u0443 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044E", value: phoneCurrencyControl }), jsx(CardCell, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440", value: phoneCallCentre })] }), workSchedule?.isMatchesPattern ? (jsx(CardRow, { children: jsx(CardCell, { label: labelSchedule, labelSize: "text-l", className: "w-full max-w-none", children: jsx("div", { className: "flex flex-wrap gap-xs sm:justify-between pt-xs", children: workScheduleWeek?.map(renderDay) }) }) })) : (jsxs(CardRow, { children: [jsx(CardCell, { label: labelSchedule, labelSize: "text-l", children: jsx("div", { className: "flex gap-1", children: workScheduleWeek?.map(renderAlternativeDay) }) }), getScheduleDescription(workScheduleWeek)] })), workSchedule?.businessScheduleVisibleTag
|
|
4305
|
+
? renderBusinessSchedule(workSchedule?.businessScheduleDescription)
|
|
4306
|
+
: null, exchangeRate?.currencies?.length ? (jsx(CardRow, { className: "flex-wrap", children: exchangeRate?.currencies?.map(renderCurrency) })) : null] }));
|
|
4307
|
+
};
|
|
4286
4308
|
|
|
4287
4309
|
const EMPTY_VALUE$1 = [];
|
|
4288
4310
|
function useOffices(regionCode) {
|
|
@@ -5398,7 +5420,7 @@
|
|
|
5398
5420
|
|
|
5399
5421
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5400
5422
|
|
|
5401
|
-
const packageVersion = "0.14.
|
|
5423
|
+
const packageVersion = "0.14.80";
|
|
5402
5424
|
|
|
5403
5425
|
exports.Blocks = Blocks;
|
|
5404
5426
|
exports.ContentPage = ContentPage;
|