@redneckz/wildless-cms-uni-blocks 0.14.814 → 0.14.816

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 (127) hide show
  1. package/bundle/UniBlock/UniBlock.d.ts +3 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +86 -19
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  6. package/bundle/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  7. package/bundle/model/FormTypeFieldDef.d.ts +1 -1
  8. package/dist/BlockRenderer/renderBlock.js +1 -1
  9. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  10. package/dist/UniBlock/UniBlock.d.ts +3 -1
  11. package/dist/UniBlock/UniBlock.js.map +1 -1
  12. package/dist/components/Blocks.js +2 -0
  13. package/dist/components/Blocks.js.map +1 -1
  14. package/dist/components/Blocks.mobile.js +2 -0
  15. package/dist/components/Blocks.mobile.js.map +1 -1
  16. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  17. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  18. package/dist/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  19. package/dist/components/GalleryLayout/GalleryLayout.js +71 -0
  20. package/dist/components/GalleryLayout/GalleryLayout.js.map +1 -0
  21. package/dist/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  22. package/dist/components/GalleryLayout/GalleryLayoutContent.js +2 -0
  23. package/dist/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
  24. package/dist/model/FormTypeFieldDef.d.ts +1 -1
  25. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +8 -1
  26. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  27. package/dist/ui-kit/BaseTile/BaseTile.js +3 -3
  28. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  29. package/lib/BlockRenderer/renderBlock.js +1 -1
  30. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  31. package/lib/UniBlock/UniBlock.d.ts +3 -1
  32. package/lib/UniBlock/UniBlock.js.map +1 -1
  33. package/lib/common.css +1 -1
  34. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  35. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
  36. package/lib/components/Blocks.js +2 -0
  37. package/lib/components/Blocks.js.map +1 -1
  38. package/lib/components/Blocks.mobile.js +2 -0
  39. package/lib/components/Blocks.mobile.js.map +1 -1
  40. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  41. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  42. package/lib/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  43. package/lib/components/GalleryLayout/GalleryLayout.fixture.d.ts +5 -0
  44. package/lib/components/GalleryLayout/GalleryLayout.js +69 -0
  45. package/lib/components/GalleryLayout/GalleryLayout.js.map +1 -0
  46. package/lib/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  47. package/lib/components/GalleryLayout/GalleryLayoutContent.js +2 -0
  48. package/lib/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
  49. package/lib/model/FormTypeFieldDef.d.ts +1 -1
  50. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -2
  51. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  52. package/lib/ui-kit/BaseTile/BaseTile.js +3 -3
  53. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  54. package/mobile/bundle/UniBlock/UniBlock.d.ts +3 -1
  55. package/mobile/bundle/bundle.umd.js +86 -19
  56. package/mobile/bundle/bundle.umd.min.js +1 -1
  57. package/mobile/bundle/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  58. package/mobile/bundle/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  59. package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
  60. package/mobile/dist/BlockRenderer/renderBlock.js +1 -1
  61. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  62. package/mobile/dist/UniBlock/UniBlock.d.ts +3 -1
  63. package/mobile/dist/UniBlock/UniBlock.js.map +1 -1
  64. package/mobile/dist/components/Blocks.js +2 -0
  65. package/mobile/dist/components/Blocks.js.map +1 -1
  66. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  67. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  68. package/mobile/dist/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  69. package/mobile/dist/components/GalleryLayout/GalleryLayout.js +71 -0
  70. package/mobile/dist/components/GalleryLayout/GalleryLayout.js.map +1 -0
  71. package/mobile/dist/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  72. package/mobile/dist/components/GalleryLayout/GalleryLayoutContent.js +2 -0
  73. package/mobile/dist/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
  74. package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
  75. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +8 -1
  76. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  77. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +3 -3
  78. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  79. package/mobile/lib/BlockRenderer/renderBlock.js +1 -1
  80. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  81. package/mobile/lib/UniBlock/UniBlock.d.ts +3 -1
  82. package/mobile/lib/UniBlock/UniBlock.js.map +1 -1
  83. package/mobile/lib/common.css +1 -1
  84. package/mobile/lib/components/Blocks.js +2 -0
  85. package/mobile/lib/components/Blocks.js.map +1 -1
  86. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
  87. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  88. package/mobile/lib/components/GalleryLayout/GalleryLayout.d.ts +5 -0
  89. package/mobile/lib/components/GalleryLayout/GalleryLayout.js +69 -0
  90. package/mobile/lib/components/GalleryLayout/GalleryLayout.js.map +1 -0
  91. package/mobile/lib/components/GalleryLayout/GalleryLayoutContent.d.ts +14 -0
  92. package/mobile/lib/components/GalleryLayout/GalleryLayoutContent.js +2 -0
  93. package/mobile/lib/components/GalleryLayout/GalleryLayoutContent.js.map +1 -0
  94. package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
  95. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +9 -2
  96. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  97. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +3 -3
  98. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  99. package/mobile/src/BlockRenderer/renderBlock.tsx +3 -3
  100. package/mobile/src/UniBlock/UniBlock.tsx +3 -1
  101. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +87 -0
  102. package/mobile/src/components/Blocks.ts +2 -0
  103. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -0
  104. package/mobile/src/components/GalleryLayout/GalleryLayout.example.json +102 -0
  105. package/mobile/src/components/GalleryLayout/GalleryLayout.tsx +140 -0
  106. package/mobile/src/components/GalleryLayout/GalleryLayout.ui.json +1 -0
  107. package/mobile/src/components/GalleryLayout/GalleryLayoutContent.ts +16 -0
  108. package/mobile/src/model/FormTypeFieldDef.ts +2 -1
  109. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +60 -23
  110. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +11 -7
  111. package/package.json +2 -2
  112. package/src/BlockRenderer/renderBlock.tsx +3 -3
  113. package/src/UniBlock/UniBlock.tsx +3 -1
  114. package/src/components/ApplicationForm/ApplicationForm.example.json +87 -0
  115. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +60 -0
  116. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +60 -0
  117. package/src/components/Blocks.mobile.ts +2 -0
  118. package/src/components/Blocks.ts +2 -0
  119. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -0
  120. package/src/components/GalleryLayout/GalleryLayout.example.json +102 -0
  121. package/src/components/GalleryLayout/GalleryLayout.fixture.tsx +61 -0
  122. package/src/components/GalleryLayout/GalleryLayout.tsx +140 -0
  123. package/src/components/GalleryLayout/GalleryLayout.ui.json +1 -0
  124. package/src/components/GalleryLayout/GalleryLayoutContent.ts +16 -0
  125. package/src/model/FormTypeFieldDef.ts +2 -1
  126. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +60 -23
  127. package/src/ui-kit/BaseTile/BaseTile.tsx +11 -7
@@ -168,7 +168,7 @@
168
168
  // Adjusted by decorator block and blockClassName
169
169
  render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
170
170
  const { content } = adjustedBlock;
171
- return BlockComponent ? (jsx(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content, ...extraProps }, key)) : null;
171
+ return BlockComponent ? (jsx(BlockComponent, { ...content, ...extraProps, className: style(adjustedBlockClassName, content?.className), block: block, options: options }, key)) : null;
172
172
  },
173
173
  }, key);
174
174
  }
@@ -629,13 +629,12 @@
629
629
  const handleClick = useCallback(() => router.back(), []);
630
630
  const backwardButtonText = rest.options?.page?.common?.backwardButton;
631
631
  const isBackBtn = backwardButton && !isMobile;
632
- return (jsxs("div", { className: style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [isBackBtn && renderBackwardButton({ version, handleClick, text: backwardButtonText }), title ? jsx("div", { className: "relative h-full", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl w-full', {
632
+ return (jsxs("div", { className: style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className), children: [isBackBtn && renderBackwardButton({ version, handleClick, text: backwardButtonText }), title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex flex-col @xl:flex-row gap-3xl w-full', {
633
633
  'self-start @xl:w-auto': leftImage,
634
634
  }), children: [renderImageContainer(leftImage, { imageAlign, className: 'mx-auto' }), jsxs("div", { className: style('grid gap-3xl items-center md:items-stretch', {
635
635
  '@xl:grid-cols-2 auto-cols-fr': rightImage,
636
636
  grow: !leftImage,
637
- }, 'h-full', //? fix issue https://github.com/redneckz/temp_wcms/issues/1254
638
- 'auto-rows-[max-content_1fr]'), children: [jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] }), renderUnitContainer(renderChildren({ ...rest, extraProps: { className: '@container-normal' } })), renderImageContainer(rightImage, {
637
+ }, 'h-auto'), children: [renderMiddleContent(insetTitle, children), renderUnitContainer(renderChildren({ ...rest, extraProps: { className: '@container-normal' } })), renderImageContainer(rightImage, {
639
638
  className: style('@xl:justify-self-end @xl:col-start-2', {
640
639
  [imageAlwaysOnRightContainerStyle(isImageAlwaysOnRight)]: buttons,
641
640
  'col-start-2 self-center': isImageAlwaysOnRight,
@@ -644,6 +643,7 @@
644
643
  imageAlign,
645
644
  }), buttons ? jsx("div", { className: "self-end", children: buttons }) : null] })] })] }));
646
645
  });
646
+ const renderMiddleContent = (insetTitle, children) => insetTitle || children ? (jsxs("div", { className: "grow space-y-lg min-w-fit", children: [insetTitle, children] })) : null;
647
647
  const imageAlwaysOnRightContainerStyle = (isImage) => style(isImage ? 'row-span-2' : '@xl:row-span-2');
648
648
  const renderUnitContainer = (childrenBlocks) => childrenBlocks?.length ? (jsx("div", { className: "flex items-start justify-end", children: childrenBlocks })) : null;
649
649
 
@@ -724,8 +724,15 @@
724
724
  const img = image?.src ? jsx(Img, { image: image }) : null;
725
725
  const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
726
726
  const filteredBenefits = benefits?.filter((_) => '__html' in _ || 'label' in _ || 'description' in _);
727
- return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), backwardButton: backwardButton, ...rest, children: jsxs("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? (jsx(RichText, { richVersion: richVersion, __html: __html, isDotted: isDotted, itemSize: RICHTEXT_SIZE[headlineVersion] })) : null, children, priceList?.length ? jsx(PriceList, { priceList: priceList }) : null, renderTags(tags)] }) }));
727
+ return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { title: headline } : { insetTitle: headline }), ...leftOrRightImage(img, directionRight), isImageSecondary: isImageSecondary, imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), backwardButton: backwardButton, ...rest, children: renderChildList(renderBenefits(filteredBenefits, { benefitsVersion, isTabularBenefits }), renderRichText(__html, { richVersion, isDotted, headlineVersion }), children, renderPriceList(priceList), renderTags(tags)) }));
728
728
  });
729
+ const renderBenefits = (benefits, { benefitsVersion, isTabularBenefits, } = {}) => benefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: benefits })) : null;
730
+ const renderRichText = (__html, { richVersion, isDotted, headlineVersion, } = {}) => __html ? (jsx(RichText, { __html: __html, richVersion: richVersion, isDotted: isDotted, itemSize: RICHTEXT_SIZE[headlineVersion ?? 'L'] })) : null;
731
+ const renderPriceList = (priceList) => priceList?.length ? jsx(PriceList, { priceList: priceList }) : null;
732
+ const renderChildList = (...elements) => {
733
+ const cleanElements = elements.filter(Boolean);
734
+ return cleanElements.length ? (jsx("div", { className: "flex flex-col sm:gap-xl gap-4xl", children: cleanElements.map((_, i) => (jsx("div", { children: _ }, String(i)))) })) : null;
735
+ };
729
736
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
730
737
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
731
738
 
@@ -7386,7 +7393,7 @@
7386
7393
  black: 'bg-black',
7387
7394
  white: 'bg-white',
7388
7395
  };
7389
- const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
7396
+ const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align, className: "min-h-24" }), rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
7390
7397
  const renderColorOption = (color, i) => (jsx("figure", { className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
7391
7398
 
7392
7399
  const CarouselLinkButton = JSX(({ icon, ...linkProps }) => {
@@ -9310,6 +9317,77 @@
9310
9317
  return (jsxs(BlockWrapper, { tag: "footer", className: style('grid gap-y-xl p-4xl pb-24 lg:p-xl', className), ...rest, children: [renderLogoSearchBar(), jsxs("div", { className: "flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ", children: [jsx(Sitemap, { navigationItems: navigationItems }), jsx("div", { className: "border-t border-main-divider lg:hidden w-full" }), jsxs("div", { className: style(LEFT_COLUMN_STYLE, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], showButtonText: false, stretched: true, children: _?.title }, String(i)))), otherLinks.map((_, i) => (jsx(Link, { className: "text-s font-light", ..._ }, `${_.href}_${i}`)))] })] }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents, license: license })] }));
9311
9318
  });
9312
9319
 
9320
+ const getInnerPadding = (isPadding = false) => isPadding ? {} : { padding: 'p-0' };
9321
+
9322
+ const gapStyles = {
9323
+ XXL: 'gap-6xl',
9324
+ XL: 'gap-5xl',
9325
+ L: 'gap-3xl',
9326
+ M: 'gap-m',
9327
+ S: 'gap-xs',
9328
+ XS: 'gap-2xs',
9329
+ '': '',
9330
+ };
9331
+
9332
+ const MIN_LENGTH_CHILD = 5;
9333
+ const SHORT_TILE_INDEXES = [1, 2, 3, 4];
9334
+ const LINK_SCHEMA = {
9335
+ link: {
9336
+ allOf: [
9337
+ { $ref: `#/definitions/LinkCommonProps` },
9338
+ {
9339
+ type: 'object',
9340
+ properties: {
9341
+ data: {
9342
+ type: 'array',
9343
+ items: { $ref: '#/definitions/AspectsDef' },
9344
+ title: 'Дополнительные атрибуты',
9345
+ },
9346
+ },
9347
+ },
9348
+ ],
9349
+ title: 'Ссылка',
9350
+ required: ['href'],
9351
+ },
9352
+ };
9353
+ const GalleryLayout = UniBlock(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, ...rest }) => (jsx(BlockWrapper, { className: style('grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-4 lg:auto-rows-fr', gapStyles[gap], className), padding: padding, version: version, isTheme: isTheme, ...rest, children: renderChildren({
9354
+ ...rest,
9355
+ renderProps: getRenderProps({ isInnerPadding, isCardBorder }),
9356
+ }) })), {
9357
+ childrenTypes: ['ProductBlock'],
9358
+ childSchema: () => LINK_SCHEMA,
9359
+ allowRemoveChild: (slot) => (slot?.blocks ?? []).length > MIN_LENGTH_CHILD,
9360
+ });
9361
+ const getRenderProps = ({ isInnerPadding, isCardBorder, }) => (childBlock, childOptions, i) => renderBlock$1(childBlock, {
9362
+ ...childOptions,
9363
+ blockDecorator: blockDecoratorWrapper(childOptions.blockDecorator, i),
9364
+ }, {
9365
+ className: style('w-full', getBorderStyle(isCardBorder)),
9366
+ ...getInnerPadding(isInnerPadding),
9367
+ });
9368
+ const blockDecoratorWrapper = (blockDecorator, idx = 0) => (props, i) => blockDecorator?.({
9369
+ ...props,
9370
+ render: (renderProps) => productBlockDecorator(idx)({ ...props, ...renderProps }, i),
9371
+ }, `wrap_${i}`) ?? productBlockDecorator(idx)(props, i);
9372
+ const productBlockDecorator = (idx) => ({ blockClassName, block, render }, i) => (jsx(LinkWrapper, { ...block.content?.link, className: getChildStyle(idx), children: render({
9373
+ blockClassName: style(blockClassName, 'h-full'),
9374
+ block: modifyBlock(block, idx),
9375
+ }) }, i));
9376
+ const getChildStyle = (index) => SHORT_TILE_INDEXES.includes(index)
9377
+ ? 'lg:col-span-1 lg:row-span-1'
9378
+ : 'lg:col-span-2 lg:row-span-2';
9379
+ const modifyBlock = (block, i) => {
9380
+ const content = { ...block.content };
9381
+ if (SHORT_TILE_INDEXES.includes(i)) {
9382
+ delete content.description;
9383
+ delete content.benefits;
9384
+ }
9385
+ if (content.link?.href) {
9386
+ delete content.buttons;
9387
+ }
9388
+ return { ...block, content };
9389
+ };
9390
+
9313
9391
  const GrantSupport = UniBlock(({ className, title, button, regionSource, data, ...rest }) => {
9314
9392
  const [region, setRegion] = useState({ key: '' });
9315
9393
  const regions = regionSource?.regions ?? [];
@@ -9428,18 +9506,6 @@
9428
9506
  return (jsx(BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: jsx("div", { className: "container px-lg py-2xs box-border", children: jsx(HeaderTop, { bgColor: bgColor, logo: logoProps, alwaysShowLogo: alwaysShowLogo, internetBankButton: internetBankButton, version: version, backwardButton: backwardButton, ...rest }) }) }));
9429
9507
  });
9430
9508
 
9431
- const getInnerPadding = (isPadding = false) => isPadding ? {} : { padding: 'p-0' };
9432
-
9433
- const gapStyles = {
9434
- XXL: 'gap-6xl',
9435
- XL: 'gap-5xl',
9436
- L: 'gap-3xl',
9437
- M: 'gap-m',
9438
- S: 'gap-xs',
9439
- XS: 'gap-2xs',
9440
- '': '',
9441
- };
9442
-
9443
9509
  const VerticalLayout = UniBlock(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, image, ...rest }) => {
9444
9510
  const router = useRouter();
9445
9511
  return (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], image?.src ? 'bg-right-bottom bg-no-repeat' : '', className), ...(image?.src
@@ -10660,6 +10726,7 @@
10660
10726
  ErrorBlock,
10661
10727
  ExchangeRateTile,
10662
10728
  Footer,
10729
+ GalleryLayout,
10663
10730
  GrantSupport,
10664
10731
  Header,
10665
10732
  Headline,
@@ -10807,7 +10874,7 @@
10807
10874
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10808
10875
  });
10809
10876
 
10810
- const packageVersion = "0.14.813";
10877
+ const packageVersion = "0.14.815";
10811
10878
 
10812
10879
  exports.Blocks = Blocks;
10813
10880
  exports.ContentPage = ContentPage;