@redneckz/wildless-cms-uni-blocks 0.14.217 → 0.14.219

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.
Files changed (89) hide show
  1. package/bundle/bundle.umd.js +61 -11
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -0
  4. package/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +3 -1
  5. package/bundle/hooks/useLocation.d.ts +1 -0
  6. package/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  7. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +18 -1
  8. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  9. package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -0
  10. package/dist/components/OfficesAtmsMap/OfficesMap.js +14 -2
  11. package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  12. package/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +3 -1
  13. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +24 -2
  14. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  15. package/dist/components/SafeDepositRental/utils.js +3 -1
  16. package/dist/components/SafeDepositRental/utils.js.map +1 -1
  17. package/dist/hooks/useLocation.d.ts +1 -0
  18. package/dist/hooks/useLocation.js.map +1 -1
  19. package/dist/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  20. package/dist/ui-kit/LocationDialog/LocationDialog.js +4 -2
  21. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  22. package/lib/common.css +1 -1
  23. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +19 -2
  24. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  25. package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -0
  26. package/lib/components/OfficesAtmsMap/OfficesMap.js +14 -2
  27. package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  28. package/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +3 -1
  29. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +22 -1
  30. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  31. package/lib/components/SafeDepositRental/utils.js +3 -1
  32. package/lib/components/SafeDepositRental/utils.js.map +1 -1
  33. package/lib/hooks/useLocation.d.ts +1 -0
  34. package/lib/hooks/useLocation.js.map +1 -1
  35. package/lib/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  36. package/lib/ui-kit/LocationDialog/LocationDialog.js +4 -2
  37. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  38. package/mobile/bundle/bundle.umd.js +65 -15
  39. package/mobile/bundle/bundle.umd.min.js +1 -1
  40. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -0
  41. package/mobile/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +3 -1
  42. package/mobile/bundle/hooks/useLocation.d.ts +1 -0
  43. package/mobile/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  44. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +18 -1
  45. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  46. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -0
  47. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +14 -2
  48. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  49. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +3 -1
  50. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +24 -2
  51. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  52. package/mobile/dist/components/SafeDepositRental/utils.js +3 -1
  53. package/mobile/dist/components/SafeDepositRental/utils.js.map +1 -1
  54. package/mobile/dist/hooks/useLocation.d.ts +1 -0
  55. package/mobile/dist/hooks/useLocation.js.map +1 -1
  56. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  57. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +4 -2
  58. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  59. package/mobile/lib/common.css +1 -1
  60. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +19 -2
  61. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  62. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +7 -0
  63. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +14 -2
  64. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  65. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +3 -1
  66. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +22 -1
  67. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  68. package/mobile/lib/components/SafeDepositRental/utils.js +3 -1
  69. package/mobile/lib/components/SafeDepositRental/utils.js.map +1 -1
  70. package/mobile/lib/hooks/useLocation.d.ts +1 -0
  71. package/mobile/lib/hooks/useLocation.js.map +1 -1
  72. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  73. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +4 -2
  74. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  75. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +56 -2
  76. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +7 -0
  77. package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +15 -2
  78. package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +73 -17
  79. package/mobile/src/components/SafeDepositRental/utils.ts +4 -1
  80. package/mobile/src/hooks/useLocation.ts +1 -0
  81. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +63 -52
  82. package/package.json +1 -1
  83. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +56 -2
  84. package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +7 -0
  85. package/src/components/OfficesAtmsMap/OfficesMap.tsx +15 -2
  86. package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +73 -17
  87. package/src/components/SafeDepositRental/utils.ts +4 -1
  88. package/src/hooks/useLocation.ts +1 -0
  89. package/src/ui-kit/LocationDialog/LocationDialog.tsx +63 -52
@@ -3203,9 +3203,9 @@
3203
3203
  const [visibleCells, hiddenCells] = visibleCellsCount > 0
3204
3204
  ? [cellsNode.slice(0, visibleCellsCount), cellsNode.slice(visibleCellsCount)]
3205
3205
  : [cellsNode, []];
3206
- 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?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$2 : null })) : (jsx("div", { children: visibleCells }))] }));
3206
+ 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?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$3 : null })) : (jsx("div", { children: visibleCells }))] }));
3207
3207
  });
3208
- const renderFoldButton$2 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, type: "button", children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
3208
+ const renderFoldButton$3 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, type: "button", children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
3209
3209
 
3210
3210
  const gradientStyle = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
3211
3211
  const borderStyle = 'border-gray border-solid border';
@@ -4127,7 +4127,7 @@
4127
4127
  });
4128
4128
 
4129
4129
  const SEARCH_TERM_MIN_LENGTH = 3;
4130
- const LocationDialog = JSX(({ foreignOffices, defaultLocation }) => {
4130
+ const LocationDialog = JSX(({ foreignOffices, defaultLocation, officesLink }) => {
4131
4131
  const [currentLocation, selectCurrentLocation] = useLocation(defaultLocation);
4132
4132
  const [query, setQuery] = useState('');
4133
4133
  const regions = cleanUpRegions(useRegions()).sort((a, b) => a.name.localeCompare(b.name));
@@ -4137,7 +4137,8 @@
4137
4137
  selectCurrentLocation(region);
4138
4138
  close();
4139
4139
  }, []);
4140
- return (jsxs(Dialog, { className: "pb-20", head: jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { type: "button", onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
4140
+ const currentOfficeHref = `${officesLink}/${currentLocation.slug}`;
4141
+ return (jsxs(Dialog, { className: "pb-20", head: jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx(LinkButton, { href: currentOfficeHref, onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
4141
4142
  .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
4142
4143
  .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-1 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
4143
4144
  });
@@ -4772,11 +4773,31 @@
4772
4773
  terminalTypeTerm: 'Терминалы',
4773
4774
  workAllTime: 'Круглосуточно',
4774
4775
  billAcceptorEnable: 'Прием наличных',
4776
+ premiumService: 'Премиальное обслуживание',
4777
+ privateBanking: 'Услуга Private banking',
4778
+ sellingCoins: 'Продажа монет из драгоценных металлов',
4779
+ buyingCoins: 'Покупка монет из драгоценных металлов',
4780
+ bullionOperations: 'Операции со слитками',
4781
+ preciousMetalsOperations: 'Операции с драгоценными металлами',
4782
+ transferringDataToBiometricSystem: 'Передача фото и голоса в Единую биометрическую систему',
4783
+ };
4784
+ const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
4785
+ const renderFiltrationForm = (filters, { field, reset }, visibleFiltersNum = 3) => {
4786
+ const filtersCheckbox = (filters || []).map((key) => (jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key)));
4787
+ const [visibleFilters, hiddenFilters] = visibleFiltersNum > 0
4788
+ ? [filtersCheckbox.slice(0, visibleFiltersNum), filtersCheckbox.slice(visibleFiltersNum)]
4789
+ : [filtersCheckbox, []];
4790
+ return (jsx("div", { children: filters?.length ? (jsx("div", { children: hiddenFilters.length > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] })), renderFoldButton: renderFoldButton$2(reset) })) : (jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters })) })) : null }));
4791
+ };
4792
+ const renderFoldButton$2 = (reset) => ({ isUnfolded, onToggle }) => {
4793
+ const labels = ['Больше фильтров', 'Меньше фильтров'];
4794
+ const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
4795
+ return (jsxs("div", { className: "flex", children: [jsx(LinkButton, { version: "transparent", className: "text-secondary-text [&>*]:p-0 mr-lg", appendRight: jsx(Icon, { name: icons[Number(isUnfolded)], width: "16", height: "16" }), text: labels[Number(isUnfolded)], onClick: onToggle }), 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" }) })] }));
4775
4796
  };
4776
- 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" }) })] }));
4777
4797
 
4778
4798
  const defaultEmptyFunction = () => void 0;
4779
4799
  const defaultFilterItems = () => [];
4800
+ const filtersVisibleStyles = (activeButton) => activeButton === 'all' ? 'block' : 'hidden';
4780
4801
  const OfficesAtmsMapLayout = JSX(({ className, data = [], renderCard = defaultEmptyFunction, filterItems = defaultFilterItems, getBalloon = defaultEmptyFunction, initFilterState = {}, descriptionData, title, }) => {
4781
4802
  const [filtrationState, { field, reset }] = useForm(initFilterState);
4782
4803
  const [filteredItems, points, lengthItems] = useMemo(() => {
@@ -4789,8 +4810,23 @@
4789
4810
  .filter((_) => _.coords && _.coords.length === 2);
4790
4811
  return [_filteredItems, _points, _filteredItems.length];
4791
4812
  }, [data, filtrationState]);
4792
- return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-6xl pb-0", children: [jsxs("div", { className: "flex flex-col sm:flex-row gap-xs mb-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)] }));
4793
- });
4813
+ const [activeButton, setActiveButton] = useState('all');
4814
+ return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-6xl pb-0", children: [jsxs("div", { className: "flex flex-col sm:flex-row gap-xs mb-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, renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-2xl', filtersVisibleStyles(activeButton)), children: 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)] }));
4815
+ });
4816
+ const renderButtonsGroup = (data, activeButton, setActiveButton) => {
4817
+ const allButtonVersion = activeButton === 'all' ? 'primary' : 'secondary';
4818
+ const businessButtonVersion = activeButton === 'business' ? 'primary' : 'secondary';
4819
+ const handleOnClick = (e, key, branches) => {
4820
+ if (e.currentTarget === e.target && key === 'business') {
4821
+ branches.filter((branch) => branch.workSchedule &&
4822
+ branch.workSchedule.businessScheduleVisibleTag &&
4823
+ !branch.workSchedule.businessScheduleDescription);
4824
+ }
4825
+ setActiveButton(key);
4826
+ return branches;
4827
+ };
4828
+ return (jsxs("div", { className: "flex pb-lg", children: [jsx(Button, { className: "mr-m", "data-id": "all", onClick: (e) => handleOnClick(e, 'all', data), version: allButtonVersion, children: "\u0414\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" }), jsx(Button, { "data-id": "business", onClick: (e) => handleOnClick(e, 'business', data), version: businessButtonVersion, children: "\u0414\u043B\u044F \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" })] }));
4829
+ };
4794
4830
  const renderDescriptionBlock$1 = ({ __html, list }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", 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;
4795
4831
 
4796
4832
  const colorStyle = {
@@ -5064,12 +5100,24 @@
5064
5100
  };
5065
5101
 
5066
5102
  const INITIAL_FILTRATION_STATE = {
5067
- //safeBoxCaseVolumes: false, //TODO: temp hide
5068
5103
  workingSaturday: false,
5104
+ premiumService: false,
5105
+ privateBanking: false,
5106
+ sellingCoins: false,
5107
+ buyingCoins: false,
5108
+ bullionOperations: false,
5109
+ preciousMetalsOperations: false,
5110
+ transferringDataToBiometricSystem: false,
5069
5111
  };
5070
5112
  const FILTRATION_PREDICATES = {
5071
- //safeBoxCaseVolumes: (item: Branch) => Boolean(item.safeBoxCaseVolumes), //TODO: temp hide
5072
5113
  workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
5114
+ premiumService: (item) => Boolean(item.workSchedule?.premiumService),
5115
+ privateBanking: (item) => Boolean(item.workSchedule?.privateBanking),
5116
+ sellingCoins: (item) => Boolean(item.workSchedule?.sellingCoins),
5117
+ buyingCoins: (item) => Boolean(item.workSchedule?.buyingCoins),
5118
+ bullionOperations: (item) => Boolean(item.workSchedule?.bullionOperations),
5119
+ preciousMetalsOperations: (item) => Boolean(item.workSchedule?.preciousMetalsOperations),
5120
+ transferringDataToBiometricSystem: (item) => Boolean(item.workSchedule?.transferringDataToBiometricSystem),
5073
5121
  };
5074
5122
  const OfficesMap = JSX(({ className }) => {
5075
5123
  const [currentLocation] = useLocation();
@@ -5224,10 +5272,12 @@
5224
5272
  };
5225
5273
 
5226
5274
  const getCoordinates = (data) => {
5275
+ const getBalloon = () => void 0;
5227
5276
  if (Array.isArray(data)) {
5228
5277
  return data
5229
5278
  .map((_) => ({
5230
- coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
5279
+ coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)].filter(Boolean),
5280
+ content: getBalloon(),
5231
5281
  }))
5232
5282
  .filter((_) => _.coords && _.coords.length === 2);
5233
5283
  }
@@ -5961,7 +6011,7 @@
5961
6011
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
5962
6012
  });
5963
6013
 
5964
- const packageVersion = "0.14.216";
6014
+ const packageVersion = "0.14.218";
5965
6015
 
5966
6016
  exports.Blocks = Blocks;
5967
6017
  exports.ContentPage = ContentPage;