@brunoalz/smartgesti-site-editor 1.0.0 → 1.2.0

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 (219) hide show
  1. package/dist/editor/BlockSelector.d.ts.map +1 -1
  2. package/dist/editor/BlockSelector.js +60 -57
  3. package/dist/editor/BlockSelector.js.map +1 -1
  4. package/dist/editor/LandingPageEditor.d.ts.map +1 -1
  5. package/dist/editor/LandingPageEditor.js +145 -128
  6. package/dist/editor/LandingPageEditor.js.map +1 -1
  7. package/dist/editor/PageTabBar.d.ts +4 -1
  8. package/dist/editor/PageTabBar.d.ts.map +1 -1
  9. package/dist/editor/PageTabBar.js +179 -41
  10. package/dist/editor/PageTabBar.js.map +1 -1
  11. package/dist/editor/PropertyEditor/BlockPropertyEditor.d.ts +2 -0
  12. package/dist/editor/PropertyEditor/BlockPropertyEditor.d.ts.map +1 -1
  13. package/dist/editor/PropertyEditor/BlockPropertyEditor.js +53 -45
  14. package/dist/editor/PropertyEditor/BlockPropertyEditor.js.map +1 -1
  15. package/dist/editor/PropertyEditor/CollapsiblePropertyGroup.d.ts +2 -0
  16. package/dist/editor/PropertyEditor/CollapsiblePropertyGroup.d.ts.map +1 -1
  17. package/dist/editor/PropertyEditor/CollapsiblePropertyGroup.js +47 -33
  18. package/dist/editor/PropertyEditor/CollapsiblePropertyGroup.js.map +1 -1
  19. package/dist/editor/PropertyEditor/VariationSelector.d.ts.map +1 -1
  20. package/dist/editor/PropertyEditor/VariationSelector.js +10 -6
  21. package/dist/editor/PropertyEditor/VariationSelector.js.map +1 -1
  22. package/dist/editor/PropertyEditor/index.js +20 -18
  23. package/dist/editor/PropertyEditor/index.js.map +1 -1
  24. package/dist/editor/PropertyEditor/inputs/CarouselImagesInput.d.ts +16 -0
  25. package/dist/editor/PropertyEditor/inputs/CarouselImagesInput.d.ts.map +1 -0
  26. package/dist/editor/PropertyEditor/inputs/CarouselImagesInput.js +170 -0
  27. package/dist/editor/PropertyEditor/inputs/CarouselImagesInput.js.map +1 -0
  28. package/dist/editor/PropertyEditor/inputs/ImageGridInput.d.ts.map +1 -1
  29. package/dist/editor/PropertyEditor/inputs/ImageGridInput.js +148 -121
  30. package/dist/editor/PropertyEditor/inputs/ImageGridInput.js.map +1 -1
  31. package/dist/editor/PropertyEditor/inputs/index.d.ts +1 -0
  32. package/dist/editor/PropertyEditor/inputs/index.d.ts.map +1 -1
  33. package/dist/editor/PropertyEditor/renderPropertyInput.d.ts.map +1 -1
  34. package/dist/editor/PropertyEditor/renderPropertyInput.js +167 -139
  35. package/dist/editor/PropertyEditor/renderPropertyInput.js.map +1 -1
  36. package/dist/editor/components/CenterPanel.d.ts +9 -1
  37. package/dist/editor/components/CenterPanel.d.ts.map +1 -1
  38. package/dist/editor/components/CenterPanel.js +24 -14
  39. package/dist/editor/components/CenterPanel.js.map +1 -1
  40. package/dist/editor/components/RightPanel.d.ts +5 -0
  41. package/dist/editor/components/RightPanel.d.ts.map +1 -1
  42. package/dist/editor/components/RightPanel.js +18 -12
  43. package/dist/editor/components/RightPanel.js.map +1 -1
  44. package/dist/editor/components/Toolbar.d.ts +3 -0
  45. package/dist/editor/components/Toolbar.d.ts.map +1 -1
  46. package/dist/editor/components/Toolbar.js +54 -35
  47. package/dist/editor/components/Toolbar.js.map +1 -1
  48. package/dist/engine/export/exportHtml.d.ts.map +1 -1
  49. package/dist/engine/export/exportHtml.js +50 -50
  50. package/dist/engine/export/exportHtml.js.map +1 -1
  51. package/dist/engine/export/exporters/sections/BlogPostExporters.d.ts +6 -0
  52. package/dist/engine/export/exporters/sections/BlogPostExporters.d.ts.map +1 -0
  53. package/dist/engine/export/exporters/sections/BlogPostExporters.js +101 -0
  54. package/dist/engine/export/exporters/sections/BlogPostExporters.js.map +1 -0
  55. package/dist/engine/export/exporters/sections/FooterExporter.js +22 -22
  56. package/dist/engine/export/exporters/sections/FooterExporter.js.map +1 -1
  57. package/dist/engine/export/exporters/sections/HeroExporter.d.ts.map +1 -1
  58. package/dist/engine/export/exporters/sections/HeroExporter.js +222 -205
  59. package/dist/engine/export/exporters/sections/HeroExporter.js.map +1 -1
  60. package/dist/engine/export/exporters/sections/MarketingExporters.js +88 -88
  61. package/dist/engine/export/exporters/sections/MarketingExporters.js.map +1 -1
  62. package/dist/engine/export/exporters/sections/NavbarExporter.js +34 -34
  63. package/dist/engine/export/exporters/sections/NavbarExporter.js.map +1 -1
  64. package/dist/engine/export/exporters/sections/index.d.ts.map +1 -1
  65. package/dist/engine/export/exporters/sections/index.js +29 -22
  66. package/dist/engine/export/exporters/sections/index.js.map +1 -1
  67. package/dist/engine/index.d.ts +3 -0
  68. package/dist/engine/index.d.ts.map +1 -1
  69. package/dist/engine/index.js +99 -87
  70. package/dist/engine/index.js.map +1 -1
  71. package/dist/engine/plugins/builtin/blog/index.d.ts +3 -0
  72. package/dist/engine/plugins/builtin/blog/index.d.ts.map +1 -0
  73. package/dist/engine/plugins/builtin/blog/manifest.d.ts +3 -0
  74. package/dist/engine/plugins/builtin/blog/manifest.d.ts.map +1 -0
  75. package/dist/engine/plugins/builtin/blog/manifest.js +273 -0
  76. package/dist/engine/plugins/builtin/blog/manifest.js.map +1 -0
  77. package/dist/engine/plugins/builtin/blog/mockContentProvider.d.ts +7 -0
  78. package/dist/engine/plugins/builtin/blog/mockContentProvider.d.ts.map +1 -0
  79. package/dist/engine/plugins/builtin/blog/mockContentProvider.js +135 -0
  80. package/dist/engine/plugins/builtin/blog/mockContentProvider.js.map +1 -0
  81. package/dist/engine/plugins/contentHydration.d.ts +17 -0
  82. package/dist/engine/plugins/contentHydration.d.ts.map +1 -0
  83. package/dist/engine/plugins/contentHydration.js +121 -0
  84. package/dist/engine/plugins/contentHydration.js.map +1 -0
  85. package/dist/engine/plugins/dynamicPageResolver.d.ts +25 -0
  86. package/dist/engine/plugins/dynamicPageResolver.d.ts.map +1 -0
  87. package/dist/engine/plugins/dynamicPageResolver.js +32 -0
  88. package/dist/engine/plugins/dynamicPageResolver.js.map +1 -0
  89. package/dist/engine/plugins/index.d.ts +11 -0
  90. package/dist/engine/plugins/index.d.ts.map +1 -0
  91. package/dist/engine/plugins/pluginRegistry.d.ts +37 -0
  92. package/dist/engine/plugins/pluginRegistry.d.ts.map +1 -0
  93. package/dist/engine/plugins/pluginRegistry.js +134 -0
  94. package/dist/engine/plugins/pluginRegistry.js.map +1 -0
  95. package/dist/engine/plugins/types.d.ts +180 -0
  96. package/dist/engine/plugins/types.d.ts.map +1 -0
  97. package/dist/engine/presets/heroVariations.d.ts +5 -0
  98. package/dist/engine/presets/heroVariations.d.ts.map +1 -1
  99. package/dist/engine/presets/heroVariations.js +50 -6
  100. package/dist/engine/presets/heroVariations.js.map +1 -1
  101. package/dist/engine/preview/Preview.d.ts +6 -2
  102. package/dist/engine/preview/Preview.d.ts.map +1 -1
  103. package/dist/engine/preview/Preview.js +295 -125
  104. package/dist/engine/preview/Preview.js.map +1 -1
  105. package/dist/engine/registry/blocks/sections/blogPostCard.d.ts +3 -0
  106. package/dist/engine/registry/blocks/sections/blogPostCard.d.ts.map +1 -0
  107. package/dist/engine/registry/blocks/sections/blogPostCard.js +53 -0
  108. package/dist/engine/registry/blocks/sections/blogPostCard.js.map +1 -0
  109. package/dist/engine/registry/blocks/sections/blogPostDetail.d.ts +3 -0
  110. package/dist/engine/registry/blocks/sections/blogPostDetail.d.ts.map +1 -0
  111. package/dist/engine/registry/blocks/sections/blogPostDetail.js +49 -0
  112. package/dist/engine/registry/blocks/sections/blogPostDetail.js.map +1 -0
  113. package/dist/engine/registry/blocks/sections/blogPostGrid.d.ts +3 -0
  114. package/dist/engine/registry/blocks/sections/blogPostGrid.d.ts.map +1 -0
  115. package/dist/engine/registry/blocks/sections/blogPostGrid.js +89 -0
  116. package/dist/engine/registry/blocks/sections/blogPostGrid.js.map +1 -0
  117. package/dist/engine/registry/blocks/sections/hero.d.ts.map +1 -1
  118. package/dist/engine/registry/blocks/sections/hero.js +67 -14
  119. package/dist/engine/registry/blocks/sections/hero.js.map +1 -1
  120. package/dist/engine/registry/blocks/sections/index.d.ts +3 -0
  121. package/dist/engine/registry/blocks/sections/index.d.ts.map +1 -1
  122. package/dist/engine/registry/blocks/sections/navbar.d.ts.map +1 -1
  123. package/dist/engine/registry/blocks/sections/navbar.js +2 -1
  124. package/dist/engine/registry/blocks/sections/navbar.js.map +1 -1
  125. package/dist/engine/registry/registry.d.ts.map +1 -1
  126. package/dist/engine/registry/registry.js +16 -12
  127. package/dist/engine/registry/registry.js.map +1 -1
  128. package/dist/engine/registry/types.d.ts +10 -6
  129. package/dist/engine/registry/types.d.ts.map +1 -1
  130. package/dist/engine/render/renderers/sections/BlogPostCardRenderer.d.ts +3 -0
  131. package/dist/engine/render/renderers/sections/BlogPostCardRenderer.d.ts.map +1 -0
  132. package/dist/engine/render/renderers/sections/BlogPostCardRenderer.js +199 -0
  133. package/dist/engine/render/renderers/sections/BlogPostCardRenderer.js.map +1 -0
  134. package/dist/engine/render/renderers/sections/BlogPostDetailRenderer.d.ts +3 -0
  135. package/dist/engine/render/renderers/sections/BlogPostDetailRenderer.d.ts.map +1 -0
  136. package/dist/engine/render/renderers/sections/BlogPostDetailRenderer.js +293 -0
  137. package/dist/engine/render/renderers/sections/BlogPostDetailRenderer.js.map +1 -0
  138. package/dist/engine/render/renderers/sections/BlogPostGridRenderer.d.ts +3 -0
  139. package/dist/engine/render/renderers/sections/BlogPostGridRenderer.d.ts.map +1 -0
  140. package/dist/engine/render/renderers/sections/BlogPostGridRenderer.js +101 -0
  141. package/dist/engine/render/renderers/sections/BlogPostGridRenderer.js.map +1 -0
  142. package/dist/engine/render/renderers/sections/CtaRenderer.d.ts.map +1 -1
  143. package/dist/engine/render/renderers/sections/CtaRenderer.js +33 -31
  144. package/dist/engine/render/renderers/sections/CtaRenderer.js.map +1 -1
  145. package/dist/engine/render/renderers/sections/FaqItemRenderer.d.ts.map +1 -1
  146. package/dist/engine/render/renderers/sections/FaqItemRenderer.js +7 -6
  147. package/dist/engine/render/renderers/sections/FaqItemRenderer.js.map +1 -1
  148. package/dist/engine/render/renderers/sections/FaqRenderer.js +7 -7
  149. package/dist/engine/render/renderers/sections/FaqRenderer.js.map +1 -1
  150. package/dist/engine/render/renderers/sections/FeatureGridRenderer.d.ts.map +1 -1
  151. package/dist/engine/render/renderers/sections/FeatureGridRenderer.js +19 -18
  152. package/dist/engine/render/renderers/sections/FeatureGridRenderer.js.map +1 -1
  153. package/dist/engine/render/renderers/sections/FeatureRenderer.d.ts.map +1 -1
  154. package/dist/engine/render/renderers/sections/FeatureRenderer.js +5 -4
  155. package/dist/engine/render/renderers/sections/FeatureRenderer.js.map +1 -1
  156. package/dist/engine/render/renderers/sections/FooterRenderer.d.ts.map +1 -1
  157. package/dist/engine/render/renderers/sections/FooterRenderer.js +8 -7
  158. package/dist/engine/render/renderers/sections/FooterRenderer.js.map +1 -1
  159. package/dist/engine/render/renderers/sections/HeroRenderer.d.ts.map +1 -1
  160. package/dist/engine/render/renderers/sections/HeroRenderer.js +295 -218
  161. package/dist/engine/render/renderers/sections/HeroRenderer.js.map +1 -1
  162. package/dist/engine/render/renderers/sections/NavbarRenderer.d.ts.map +1 -1
  163. package/dist/engine/render/renderers/sections/NavbarRenderer.js +23 -22
  164. package/dist/engine/render/renderers/sections/NavbarRenderer.js.map +1 -1
  165. package/dist/engine/render/renderers/sections/PricingCardRenderer.d.ts.map +1 -1
  166. package/dist/engine/render/renderers/sections/PricingCardRenderer.js +7 -6
  167. package/dist/engine/render/renderers/sections/PricingCardRenderer.js.map +1 -1
  168. package/dist/engine/render/renderers/sections/PricingRenderer.js +9 -9
  169. package/dist/engine/render/renderers/sections/PricingRenderer.js.map +1 -1
  170. package/dist/engine/render/renderers/sections/TestimonialGridRenderer.d.ts.map +1 -1
  171. package/dist/engine/render/renderers/sections/TestimonialGridRenderer.js +17 -16
  172. package/dist/engine/render/renderers/sections/TestimonialGridRenderer.js.map +1 -1
  173. package/dist/engine/render/renderers/sections/TestimonialRenderer.d.ts.map +1 -1
  174. package/dist/engine/render/renderers/sections/TestimonialRenderer.js +11 -10
  175. package/dist/engine/render/renderers/sections/TestimonialRenderer.js.map +1 -1
  176. package/dist/engine/render/renderers/sections/index.js +24 -18
  177. package/dist/engine/render/renderers/sections/index.js.map +1 -1
  178. package/dist/engine/schema/siteDocument.d.ts +104 -3
  179. package/dist/engine/schema/siteDocument.d.ts.map +1 -1
  180. package/dist/engine/schema/siteDocument.js.map +1 -1
  181. package/dist/engine/shared/carouselAnimation.d.ts +20 -0
  182. package/dist/engine/shared/carouselAnimation.d.ts.map +1 -0
  183. package/dist/engine/shared/carouselAnimation.js +62 -0
  184. package/dist/engine/shared/carouselAnimation.js.map +1 -0
  185. package/dist/engine/shared/imageGrid/types.d.ts +2 -0
  186. package/dist/engine/shared/imageGrid/types.d.ts.map +1 -1
  187. package/dist/engine/shared/showWhen.d.ts +44 -0
  188. package/dist/engine/shared/showWhen.d.ts.map +1 -0
  189. package/dist/engine/shared/showWhen.js +33 -0
  190. package/dist/engine/shared/showWhen.js.map +1 -0
  191. package/dist/hooks/useEditorState.d.ts +3 -0
  192. package/dist/hooks/useEditorState.d.ts.map +1 -1
  193. package/dist/hooks/useEditorState.js +106 -84
  194. package/dist/hooks/useEditorState.js.map +1 -1
  195. package/dist/index.d.ts +13 -2
  196. package/dist/index.d.ts.map +1 -1
  197. package/dist/index.js +109 -93
  198. package/dist/index.js.map +1 -1
  199. package/dist/shared/templates/escola-blog.d.ts +3 -0
  200. package/dist/shared/templates/escola-blog.d.ts.map +1 -0
  201. package/dist/shared/templates/escola-blog.js +160 -0
  202. package/dist/shared/templates/escola-blog.js.map +1 -0
  203. package/dist/shared/templates/index.d.ts +2 -0
  204. package/dist/shared/templates/index.d.ts.map +1 -1
  205. package/dist/shared/templates/index.js +30 -12
  206. package/dist/shared/templates/index.js.map +1 -1
  207. package/dist/utils/changeDetector.d.ts +2 -1
  208. package/dist/utils/changeDetector.d.ts.map +1 -1
  209. package/dist/utils/changeDetector.js +39 -39
  210. package/dist/utils/changeDetector.js.map +1 -1
  211. package/dist/utils/sharedTemplateToEngine.d.ts +4 -5
  212. package/dist/utils/sharedTemplateToEngine.d.ts.map +1 -1
  213. package/dist/utils/sharedTemplateToEngine.js +14 -87
  214. package/dist/utils/sharedTemplateToEngine.js.map +1 -1
  215. package/dist/viewer/LandingPageViewer.d.ts +13 -6
  216. package/dist/viewer/LandingPageViewer.d.ts.map +1 -1
  217. package/dist/viewer/LandingPageViewer.js +220 -122
  218. package/dist/viewer/LandingPageViewer.js.map +1 -1
  219. package/package.json +3 -2
@@ -1,128 +1,134 @@
1
- import { PLACEHOLDER_IMAGE_URL as mt } from "../../../presets/heroVariations.js";
2
- import { escapeHtml as e, resolveHref as Vt, linkTargetAttr as Dt, blockIdAttr as W, dataBlockIdAttr as L } from "../../shared/htmlHelpers.js";
3
- import { generateScopedId as P } from "../../shared/idGenerator.js";
4
- import { imageShadowMap as Q } from "../../../shared/shadowConstants.js";
5
- import { blockGapConfig as Wt, contentPositionMap as Ge } from "../../../shared/layoutConstants.js";
6
- import { generateButtonHoverStyles as Lt, generateButtonOverlayCSS as Pt, getButtonHoverKeyframes as Me } from "../../../shared/hoverEffects/buttonHover.js";
7
- import { mergeTypographyWithDefaults as pt, heroTitleDefaults as Re, heroSubtitleDefaults as Ve, heroDescriptionDefaults as De } from "../../../shared/typography/defaults.js";
8
- import { generateTypographyStyles as $t } from "../../../shared/typography/cssGenerator.js";
9
- import { gridPresetMap as We } from "../../../shared/imageGrid/presets.js";
10
- function Ke(o, X, _, w) {
1
+ import { PLACEHOLDER_IMAGE_URL as yt, CAROUSEL_PLACEHOLDER_IMAGES as Ee } from "../../../presets/heroVariations.js";
2
+ import { escapeHtml as e, resolveHref as Pt, linkTargetAttr as At, blockIdAttr as R, dataBlockIdAttr as L } from "../../shared/htmlHelpers.js";
3
+ import { generateScopedId as D } from "../../shared/idGenerator.js";
4
+ import { generateCarouselCSS as Oe } from "../../../shared/carouselAnimation.js";
5
+ import { imageShadowMap as Vt } from "../../../shared/shadowConstants.js";
6
+ import { blockGapConfig as Wt, contentPositionMap as Pe } from "../../../shared/layoutConstants.js";
7
+ import { generateButtonHoverStyles as Nt, generateButtonOverlayCSS as Ft, getButtonHoverKeyframes as Ae } from "../../../shared/hoverEffects/buttonHover.js";
8
+ import { mergeTypographyWithDefaults as ht, heroTitleDefaults as Ve, heroSubtitleDefaults as We, heroDescriptionDefaults as Ne } from "../../../shared/typography/defaults.js";
9
+ import { generateTypographyStyles as ft } from "../../../shared/typography/cssGenerator.js";
10
+ import { gridPresetMap as Fe } from "../../../shared/imageGrid/presets.js";
11
+ function ro(o, ot, C, S) {
11
12
  const {
12
13
  variation: t,
13
- variant: a = "centered",
14
- title: T,
15
- subtitle: C,
16
- description: g,
17
- primaryButton: l,
18
- secondaryButton: u,
19
- badge: S,
14
+ variant: l = "centered",
15
+ title: E,
16
+ subtitle: B,
17
+ description: p,
18
+ primaryButton: g,
19
+ secondaryButton: x,
20
+ badge: H,
20
21
  align: d = "center",
21
- contentPosition: B = "center",
22
- contentSpacing: A = "default",
23
- blockGap: E = "default",
24
- minHeight: p = "80vh",
25
- image: O,
26
- overlay: H,
27
- overlayColor: f,
28
- background: i,
22
+ contentPosition: k = "center",
23
+ contentSpacing: N = "default",
24
+ blockGap: F = "default",
25
+ minHeight: $ = "80vh",
26
+ image: U,
27
+ overlay: b,
28
+ overlayColor: u,
29
+ background: n,
29
30
  // Typography colors (legacy)
30
- titleColor: m,
31
- subtitleColor: I,
32
- descriptionColor: j,
31
+ titleColor: y,
32
+ subtitleColor: O,
33
+ descriptionColor: P,
33
34
  // Typography config (novo sistema)
34
- titleTypography: At,
35
- subtitleTypography: Et,
36
- descriptionTypography: Ot,
35
+ titleTypography: Ut,
36
+ subtitleTypography: Zt,
37
+ descriptionTypography: qt,
37
38
  // Badge styling
38
- badgeColor: Nt,
39
- badgeTextColor: Ft,
39
+ badgeColor: Jt,
40
+ badgeTextColor: Kt,
40
41
  // Layout
41
- contentMaxWidth: ht = "800px",
42
- paddingY: N,
42
+ contentMaxWidth: it = "800px",
43
+ paddingY: Z,
43
44
  // Image styling
44
- imageRadius: tt = 16,
45
- imageShadow: et = "lg",
46
- imagePosition: yt = "right",
45
+ imageRadius: rt = 16,
46
+ imageShadow: st = "lg",
47
+ imagePosition: vt = "right",
47
48
  // Button size
48
- buttonSize: Zt = "md",
49
+ buttonSize: Yt = "md",
49
50
  // Primary button styling
50
- primaryButtonVariant: qt = "solid",
51
- primaryButtonColor: Jt,
52
- primaryButtonTextColor: Kt,
53
- primaryButtonRadius: Ut = 8,
51
+ primaryButtonVariant: Qt = "solid",
52
+ primaryButtonColor: Xt,
53
+ primaryButtonTextColor: te,
54
+ primaryButtonRadius: ee = 8,
54
55
  // Secondary button styling
55
- secondaryButtonVariant: Yt = "outline",
56
- secondaryButtonColor: Qt,
57
- secondaryButtonTextColor: Xt,
58
- secondaryButtonRadius: te = 8,
56
+ secondaryButtonVariant: oe = "outline",
57
+ secondaryButtonColor: ie,
58
+ secondaryButtonTextColor: re,
59
+ secondaryButtonRadius: se = 8,
59
60
  // Button hover effects
60
- buttonHoverEffect: ee = "scale",
61
- buttonHoverIntensity: oe = 50,
62
- buttonHoverOverlay: re = "none",
63
- buttonHoverIconName: ie = "arrow-right",
61
+ buttonHoverEffect: ne = "scale",
62
+ buttonHoverIntensity: ae = 50,
63
+ buttonHoverOverlay: le = "none",
64
+ buttonHoverIconName: de = "arrow-right",
64
65
  // Decorative
65
- showWave: ne,
66
- waveColor: ut = "rgba(255,255,255,0.1)",
66
+ showWave: ce,
67
+ waveColor: xt = "rgba(255,255,255,0.1)",
67
68
  // Image Grid
68
- imageGridEnabled: se,
69
- imageGridPreset: ft = "four-equal",
70
- imageGridImages: G = [],
71
- imageGridGap: xt = 8
72
- } = o.props, x = O || mt, ot = t === "hero-split" || a === "split", rt = t === "hero-parallax", it = t === "hero-overlay", vt = t === "hero-gradient", ae = t === "hero-minimal", nt = t === "hero-card", bt = (a === "image-bg" || it || rt || nt) && x, _t = bt && H, st = _t || vt || it, at = w?.colors?.primary || "#3b82f6", le = w?.colors?.primaryText || "#ffffff", de = st ? "#ffffff" : "var(--sg-text, #1f2937)", wt = st ? "rgba(255,255,255,0.85)" : "var(--sg-muted-text, #6b7280)", Ct = pt(
73
- At,
74
- { ...Re, color: m }
75
- ), St = pt(
76
- Et,
77
- { ...Ve, color: I }
78
- ), ce = pt(
79
- Ot,
80
- { ...De, color: j }
81
- ), ge = $t(Ct, de), me = $t(St, wt), pe = $t(ce, wt), $e = Nt || at, he = Ft || "#ffffff", ye = Jt || at, ue = Kt || le, Bt = Qt || (st ? "#ffffff" : at), fe = Xt || Bt, M = [
69
+ imageGridEnabled: ge,
70
+ imageGridPreset: bt = "four-equal",
71
+ imageGridImages: A = [],
72
+ imageGridGap: _t = 8,
73
+ // Carousel
74
+ carouselImages: nt,
75
+ carouselInterval: me = 5,
76
+ carouselTransition: Ze = "crossfade"
77
+ } = o.props, _ = U || yt, at = t === "hero-split" || l === "split", lt = t === "hero-parallax", dt = t === "hero-overlay", wt = t === "hero-gradient", pe = t === "hero-minimal", ct = t === "hero-card", q = t === "hero-carousel", Ct = (l === "image-bg" || dt || lt || ct || q) && _, St = Ct && b, gt = St || wt || dt || q, mt = S?.colors?.primary || "#3b82f6", $e = S?.colors?.primaryText || "#ffffff", ue = gt ? "#ffffff" : "var(--sg-text, #1f2937)", Bt = gt ? "rgba(255,255,255,0.85)" : "var(--sg-muted-text, #6b7280)", Ht = ht(
78
+ Ut,
79
+ { ...Ve, color: y }
80
+ ), kt = ht(
81
+ Zt,
82
+ { ...We, color: O }
83
+ ), ye = ht(
84
+ qt,
85
+ { ...Ne, color: P }
86
+ ), he = ft(Ht, ue), fe = ft(kt, Bt), ve = ft(ye, Bt), xe = Jt || mt, be = Kt || "#ffffff", _e = Xt || mt, we = te || $e, zt = ie || (gt ? "#ffffff" : mt), Ce = re || zt, z = [
82
87
  "sg-hero",
83
88
  t ? `sg-hero--${String(t).replace("hero-", "")}` : "",
84
- ot ? "sg-hero--split" : "",
85
- rt ? "sg-hero--parallax" : "",
86
- it ? "sg-hero--overlay" : "",
87
- vt ? "sg-hero--gradient" : "",
88
- ae ? "sg-hero--minimal" : "",
89
- nt ? "sg-hero--card" : ""
89
+ at ? "sg-hero--split" : "",
90
+ lt ? "sg-hero--parallax" : "",
91
+ dt ? "sg-hero--overlay" : "",
92
+ wt ? "sg-hero--gradient" : "",
93
+ pe ? "sg-hero--minimal" : "",
94
+ ct ? "sg-hero--card" : "",
95
+ q ? "sg-hero--carousel" : ""
90
96
  ].filter(Boolean).join(" ");
91
- let k = "";
92
- i ? k = `background: ${i};` : bt && !ot ? (k = `background-image: url(${e(x)}); background-size: cover; background-position: center;`, rt && (k += " background-attachment: fixed;")) : k = "background-color: var(--sg-bg, #fff);";
93
- const lt = N ? `padding: ${N} 2rem;` : "padding: 6rem 2rem;", dt = Ge[B] || "center", Ht = {
97
+ let I = "";
98
+ n ? I = `background: ${n};` : Ct && !at ? (I = `background-image: url(${e(_)}); background-size: cover; background-position: center;`, lt && (I += " background-attachment: fixed;")) : I = "background-color: var(--sg-bg, #fff);";
99
+ const J = Z ? `padding: ${Z} 2rem;` : "padding: 6rem 2rem;", K = Pe[k] || "center", It = {
94
100
  compact: { title: "0.75rem", subtitle: "0.5rem", description: "1.25rem", badge: "1rem", actions: "0.25rem" },
95
101
  default: { title: "1.25rem", subtitle: "1rem", description: "2.5rem", badge: "1.5rem", actions: "0.5rem" },
96
102
  spacious: { title: "2.25rem", subtitle: "2rem", description: "3.5rem", badge: "2.5rem", actions: "1.5rem" }
97
- }, z = Ht[A] || Ht.default, F = Wt[E] || Wt.default, Z = F.justify, R = F.blockMaxWidth, q = F.containerMaxWidth, J = F.gap, xe = f ? `position: absolute; inset: 0; background: ${f}; z-index: 0;` : "position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%); z-index: 0;", K = _t ? `<div class="sg-hero__overlay" style="${xe}"></div>` : "", kt = ne ? `<div style="position: absolute; bottom: 0; left: 0; right: 0; height: 150px; overflow: hidden; z-index: 1;">
103
+ }, T = It[N] || It.default, Y = Wt[F] || Wt.default, Q = Y.justify, V = Y.blockMaxWidth, X = Y.containerMaxWidth, tt = Y.gap, Se = u ? `position: absolute; inset: 0; background: ${u}; z-index: 0;` : "position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%); z-index: 0;", et = St ? `<div class="sg-hero__overlay" style="${Se}"></div>` : "", Tt = ce ? `<div style="position: absolute; bottom: 0; left: 0; right: 0; height: 150px; overflow: hidden; z-index: 1;">
98
104
  <svg viewBox="0 0 1200 120" preserveAspectRatio="none" style="position: absolute; bottom: 0; width: 100%; height: 100%;">
99
- <path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="${ut}" opacity="0.5"/>
100
- <path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="${ut}" opacity="0.3"/>
105
+ <path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="${xt}" opacity="0.5"/>
106
+ <path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="${xt}" opacity="0.3"/>
101
107
  </svg>
102
- </div>` : "", ve = S ? `<span class="sg-hero__badge" style="display: inline-block; padding: 0.5rem 1.25rem; background: ${$e}; color: ${he}; border-radius: 999px; font-size: 0.875rem; font-weight: 600; margin-bottom: ${z.badge};">${e(S)}</span>` : "", be = Ct.fontSize || 48, _e = T ? `<h1 class="sg-hero__title" style="${ge.cssString} font-size: clamp(2rem, 5vw, ${be}px); line-height: 1.1; margin-bottom: ${z.title}; letter-spacing: -0.02em;">${e(T)}</h1>` : "", we = St.fontSize || 24, Ce = C ? `<h2 class="sg-hero__subtitle" style="${me.cssString} font-size: clamp(1.125rem, 2.5vw, ${we}px); line-height: 1.3; margin-bottom: ${z.subtitle};">${e(C)}</h2>` : "", Se = g ? `<p class="sg-hero__description" style="max-width: 650px; margin: ${d === "center" ? `0 auto ${z.description}` : `0 0 ${z.description}`}; ${pe.cssString} line-height: 1.7;">${e(g)}</p>` : "", U = Le({
108
+ </div>` : "", Be = H ? `<span class="sg-hero__badge" data-block-group="Badge" style="display: inline-block; padding: 0.5rem 1.25rem; background: ${xe}; color: ${be}; border-radius: 999px; font-size: 0.875rem; font-weight: 600; margin-bottom: ${T.badge};">${e(H)}</span>` : "", He = Ht.fontSize || 48, jt = E ? `<h1 class="sg-hero__title" style="${he.cssString} font-size: clamp(2rem, 5vw, ${He}px); line-height: 1.1; margin-bottom: ${T.title}; letter-spacing: -0.02em;">${e(E)}</h1>` : "", ke = kt.fontSize || 24, Mt = B ? `<h2 class="sg-hero__subtitle" style="${fe.cssString} font-size: clamp(1.125rem, 2.5vw, ${ke}px); line-height: 1.3; margin-bottom: ${T.subtitle};">${e(B)}</h2>` : "", Gt = p ? `<p class="sg-hero__description" style="max-width: 650px; margin: ${d === "center" ? `0 auto ${T.description}` : `0 0 ${T.description}`}; ${ve.cssString} line-height: 1.7;">${e(p)}</p>` : "", j = Ue({
103
109
  blockId: o.id,
104
- buttonSize: Zt,
105
- primaryButtonVariant: qt,
106
- primaryButtonColor: ye,
107
- primaryButtonTextColor: ue,
108
- primaryButtonRadius: Ut,
109
- secondaryButtonVariant: Yt,
110
- secondaryButtonColor: Bt,
111
- secondaryButtonTextColor: fe,
112
- secondaryButtonRadius: te,
113
- hoverEffect: ee,
114
- hoverIntensity: oe,
115
- hoverOverlay: re,
116
- hoverIconName: ie
117
- }), zt = l ? Vt(l.href || "#", _) : "#", Tt = u ? Vt(u.href || "#", _) : "#", Be = l ? `<a href="${e(zt)}"${Dt(zt, _)} class="sg-hero__btn sg-hero__btn--primary" style="${U.primary}">${e(l.text)}</a>` : "", He = u ? `<a href="${e(Tt)}"${Dt(Tt, _)} class="sg-hero__btn sg-hero__btn--secondary" style="${U.secondary}">${e(u.text)}</a>` : "", ke = l || u ? `<div class="sg-hero__actions" style="display: flex; gap: 1rem; flex-wrap: wrap; justify-content: ${d === "center" ? "center" : "flex-start"}; margin-top: ${z.actions};">${Be}${He}</div>` : "", V = `${ve}${_e}${Ce}${Se}${ke}`, D = U.css ? `<style>${U.css}</style>` : "", It = `this.onerror=null;this.src='${e(mt)}';`, jt = (r, $, v, n, h, s) => {
118
- const c = We[$], y = Q[h] || Q.lg, b = c.positions.map((Gt, Mt) => {
119
- const Rt = r[Mt], Ie = Rt?.src || mt, je = Rt?.alt || `Imagem ${Mt + 1}`;
120
- return `<div class="sg-hero__grid-item" style="grid-column: ${Gt.col}; grid-row: ${Gt.row}; overflow: hidden; border-radius: ${n}px;">
121
- <img src="${e(Ie)}" alt="${e(je)}" style="width: 100%; height: 100%; object-fit: cover; box-shadow: ${y};" onerror="${It}" />
110
+ buttonSize: Yt,
111
+ primaryButtonVariant: Qt,
112
+ primaryButtonColor: _e,
113
+ primaryButtonTextColor: we,
114
+ primaryButtonRadius: ee,
115
+ secondaryButtonVariant: oe,
116
+ secondaryButtonColor: zt,
117
+ secondaryButtonTextColor: Ce,
118
+ secondaryButtonRadius: se,
119
+ hoverEffect: ne,
120
+ hoverIntensity: ae,
121
+ hoverOverlay: le,
122
+ hoverIconName: de
123
+ }), Rt = g ? Pt(g.href || "#", C) : "#", Lt = x ? Pt(x.href || "#", C) : "#", ze = g ? `<a href="${e(Rt)}"${At(Rt, C)} class="sg-hero__btn sg-hero__btn--primary" data-block-group="Botão Primário" style="${j.primary}">${e(g.text)}</a>` : "", Ie = x ? `<a href="${e(Lt)}"${At(Lt, C)} class="sg-hero__btn sg-hero__btn--secondary" data-block-group="Botão Secundário" style="${j.secondary}">${e(x.text)}</a>` : "", Te = g || x ? `<div class="sg-hero__actions" style="display: flex; gap: 1rem; flex-wrap: wrap; justify-content: ${d === "center" ? "center" : "flex-start"}; margin-top: ${T.actions};">${ze}${Ie}</div>` : "", je = jt || Mt || Gt ? `<div data-block-group="Conteúdo">${jt}${Mt}${Gt}</div>` : "", M = `${Be}${je}${Te}`, W = j.css ? `<style>${j.css}</style>` : "", pt = `this.onerror=null;this.src='${e(yt)}';`, Dt = (i, c, h, r, f, s) => {
124
+ const a = Fe[c], m = a.positions.map((w, Et) => {
125
+ const ut = i[Et], Re = ut?.src || yt, Le = ut?.alt || `Imagem ${Et + 1}`, Ot = ut?.scale ?? 1, De = Ot !== 1 ? ` transform: scale(${Ot}); z-index: 1;` : "";
126
+ return `<div class="sg-hero__grid-item" style="grid-column: ${w.col}; grid-row: ${w.row}; overflow: hidden; border-radius: ${r}px;${De}">
127
+ <img src="${e(Re)}" alt="${e(Le)}" style="width: 100%; height: 100%; object-fit: contain; display: block;" onerror="${pt}" />
122
128
  </div>`;
123
- }).join(""), Y = `<div id="${s}" class="sg-hero__image-grid" style="display: grid; grid-template: ${c.gridTemplate}; gap: ${v}px; width: 100%; max-width: 500px; aspect-ratio: 1 / 1;">
124
- ${b}
125
- </div>`, gt = `
129
+ }).join(""), v = `<div id="${s}" class="sg-hero__image-grid" style="display: grid; grid-template: ${a.gridTemplate}; gap: ${h}px; width: 100%; max-width: 500px; aspect-ratio: 1 / 1;">
130
+ ${m}
131
+ </div>`, G = `
126
132
  @media (max-width: 767px) {
127
133
  #${s} {
128
134
  grid-template: auto / 1fr !important;
@@ -135,111 +141,122 @@ function Ke(o, X, _, w) {
135
141
  }
136
142
  }
137
143
  `;
138
- return { html: Y, css: gt };
139
- }, ze = G && G.length > 0 && G.some((r) => r?.src), ct = se && ze;
140
- if (ot && x && !ct) {
141
- const r = P(o.id || "", "hero-split"), $ = yt === "left", v = Q[et] || Q.lg, n = `
144
+ return { html: v, css: G };
145
+ }, Me = A && A.length > 0 && A.some((i) => i?.src), $t = ge && Me;
146
+ if (q) {
147
+ const i = nt && nt.length >= 2 ? nt : Ee, c = D(o.id || "", "hero-carousel"), h = Oe(
148
+ `#${c}`,
149
+ i.length,
150
+ me
151
+ ), r = i.map(
152
+ (G, w) => `<img src="${e(G)}" alt="Slide ${w + 1}" class="sg-carousel__img" ${w === 0 ? 'style="opacity: 1;"' : ""} onerror="${pt}" />`
153
+ ).join(""), f = `<div class="sg-carousel__dots">${i.map(() => '<span class="sg-carousel__dot"></span>').join("")}</div>`, s = u ? `position: absolute; inset: 0; background: ${u}; z-index: 1;` : "position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%); z-index: 1;", a = b ? `<div class="sg-hero__overlay" style="${s}"></div>` : "", m = `<div style="max-width: ${it}; width: 100%; padding: 0 2rem; text-align: ${d}; position: relative; z-index: 2;">${M}</div>`, v = `<style>${h}${j.css ? `
154
+ ` + j.css : ""}</style>`;
155
+ return `<section ${R(o.id)} ${L(o.id)} class="${z}" style="min-height: ${$}; ${J} display: flex; align-items: center; justify-content: ${K}; position: relative; overflow: hidden; background: #000;" data-variation="${e(t || l || "")}">${v}<div id="${c}" style="position: absolute; inset: 0; z-index: 0;">${r}${f}</div>${a}${m}</section>`;
156
+ }
157
+ if (at && _ && !$t) {
158
+ const i = D(o.id || "", "hero-split"), c = vt === "left", h = Vt[st] || Vt.lg, r = `
142
159
  @media (max-width: 1023px) {
143
- #${r} {
160
+ #${i} {
144
161
  grid-template-columns: 1fr !important;
145
162
  gap: 2rem !important;
146
163
  padding: 0 1rem !important;
147
164
  }
148
- #${r} .sg-hero__split-image {
165
+ #${i} .sg-hero__split-image {
149
166
  order: -1;
150
167
  }
151
168
  }
152
- `, h = i ? `background: ${i};` : "background-color: var(--sg-bg, #fff);", s = `width: 100%; max-width: 500px; height: auto; border-radius: ${tt}px; box-shadow: ${v}; object-fit: cover;`, c = `<div class="sg-hero__split-image" style="display: flex; justify-content: center; flex: 0 1 auto; max-width: ${R};"><img src="${e(x)}" alt="${e(T || "")}" class="sg-hero__img" style="${s}" onerror="${It}" /></div>`, y = `<div class="sg-hero__split-content" style="text-align: ${d}; position: relative; z-index: 1; max-width: ${R}; flex: 0 1 auto;">${V}</div>`, b = $ ? `<style>${n}</style><div id="${r}" class="sg-hero__split-inner" style="display: flex; justify-content: ${Z}; gap: ${J}; align-items: center; max-width: ${q}; width: 100%; padding: 0 2rem;">${c}${y}</div>` : `<style>${n}</style><div id="${r}" class="sg-hero__split-inner" style="display: flex; justify-content: ${Z}; gap: ${J}; align-items: center; max-width: ${q}; width: 100%; padding: 0 2rem;">${y}${c}</div>`;
153
- return `<section ${W(o.id)} ${L(o.id)} class="${M}" style="min-height: ${p}; ${lt} display: flex; align-items: center; justify-content: ${dt}; position: relative; overflow: hidden; ${h}" data-variation="${e(t || a || "")}">${D}${b}</section>`;
169
+ `, f = n ? `background: ${n};` : "background-color: var(--sg-bg, #fff);", s = `width: 100%; max-width: 500px; height: auto; border-radius: ${rt}px; box-shadow: ${h}; object-fit: cover;`, a = `<div class="sg-hero__split-image" data-block-group="Mídia" style="display: flex; justify-content: center; flex: 0 1 auto; max-width: ${V};"><img src="${e(_)}" alt="${e(E || "")}" class="sg-hero__img" style="${s}" onerror="${pt}" /></div>`, m = `<div class="sg-hero__split-content" style="text-align: ${d}; position: relative; z-index: 1; max-width: ${V}; flex: 0 1 auto;">${M}</div>`, v = c ? `<style>${r}</style><div id="${i}" class="sg-hero__split-inner" style="display: flex; justify-content: ${Q}; gap: ${tt}; align-items: center; max-width: ${X}; width: 100%; padding: 0 2rem;">${a}${m}</div>` : `<style>${r}</style><div id="${i}" class="sg-hero__split-inner" style="display: flex; justify-content: ${Q}; gap: ${tt}; align-items: center; max-width: ${X}; width: 100%; padding: 0 2rem;">${m}${a}</div>`;
170
+ return `<section ${R(o.id)} ${L(o.id)} class="${z}" style="min-height: ${$}; ${J} display: flex; align-items: center; justify-content: ${K}; position: relative; overflow: hidden; ${f}" data-variation="${e(t || l || "")}">${W}${v}</section>`;
154
171
  }
155
- if (nt && x) {
156
- const r = i || "#ffffff", $ = N ? `${N} 3rem` : "6rem 3rem";
157
- if (ct) {
158
- const n = P(o.id || "", "hero-card-grid"), h = P(o.id || "", "hero-grid"), s = jt(
159
- G,
160
- ft,
161
- xt,
162
- tt,
163
- et,
164
- h
165
- ), c = `<div class="sg-hero__card" style="max-width: 500px; background: ${r}; padding: 2rem; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); position: relative; z-index: 2; text-align: ${d}; flex: 0 1 auto;">${V}</div>`, y = `<div class="sg-hero__grid-wrapper" style="position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; flex: 0 1 auto; max-width: ${R};">${s.html}</div>`, b = `${c}${y}`;
166
- let Y = `
172
+ if (ct && _) {
173
+ const i = n || "#ffffff", c = Z ? `${Z} 3rem` : "6rem 3rem";
174
+ if ($t) {
175
+ const r = D(o.id || "", "hero-card-grid"), f = D(o.id || "", "hero-grid"), s = Dt(
176
+ A,
177
+ bt,
178
+ _t,
179
+ rt,
180
+ st,
181
+ f
182
+ ), a = `<div class="sg-hero__card" style="max-width: 500px; background: ${i}; padding: 2rem; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); position: relative; z-index: 2; text-align: ${d}; flex: 0 1 auto;">${M}</div>`, m = `<div class="sg-hero__grid-wrapper" data-block-group="Mídia" style="position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; flex: 0 1 auto; max-width: ${V};">${s.html}</div>`, v = `${a}${m}`;
183
+ let G = `
167
184
  @media (max-width: 1023px) {
168
- #${n} {
185
+ #${r} {
169
186
  flex-direction: column !important;
170
187
  gap: 2rem !important;
171
188
  }
172
- #${n} .sg-hero__grid-wrapper {
189
+ #${r} .sg-hero__grid-wrapper {
173
190
  order: -1;
174
191
  }
175
192
  }
176
193
  `;
177
- Y += s.css;
178
- const gt = `<style>${Y}</style><div id="${n}" class="sg-hero__card-grid-layout" style="display: flex; width: 100%; max-width: ${q}; align-items: center; justify-content: ${Z}; position: relative; z-index: 2; padding: 0 2rem; gap: ${J};">${b}</div>`;
179
- return `<section ${W(o.id)} ${L(o.id)} class="${M} sg-hero--with-grid" style="min-height: ${p}; padding: ${$}; display: flex; align-items: center; justify-content: center; background-image: url(${e(x)}); background-size: cover; background-position: center; position: relative; overflow: hidden;" data-variation="${e(t || a || "")}">${D}${K}${gt}</section>`;
194
+ G += s.css;
195
+ const w = `<style>${G}</style><div id="${r}" class="sg-hero__card-grid-layout" style="display: flex; width: 100%; max-width: ${X}; align-items: center; justify-content: ${Q}; position: relative; z-index: 2; padding: 0 2rem; gap: ${tt};">${v}</div>`;
196
+ return `<section ${R(o.id)} ${L(o.id)} class="${z} sg-hero--with-grid" style="min-height: ${$}; padding: ${c}; display: flex; align-items: center; justify-content: center; background-image: url(${e(_)}); background-size: cover; background-position: center; position: relative; overflow: hidden;" data-variation="${e(t || l || "")}">${W}${et}${w}</section>`;
180
197
  }
181
- const v = `
182
- <div class="sg-hero__card" style="max-width: ${ht}; width: 100%; background: ${r}; padding: 2rem; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); position: relative; z-index: 2; text-align: ${d};">
183
- ${V}
198
+ const h = `
199
+ <div class="sg-hero__card" style="max-width: ${it}; width: 100%; background: ${i}; padding: 2rem; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); position: relative; z-index: 2; text-align: ${d};">
200
+ ${M}
184
201
  </div>
185
202
  `;
186
- return `<section ${W(o.id)} ${L(o.id)} class="${M}" style="min-height: ${p}; padding: ${$}; display: flex; align-items: center; justify-content: center; background-image: url(${e(x)}); background-size: cover; background-position: center; position: relative; overflow: hidden;" data-variation="${e(t || a || "")}">${D}${K}${v}</section>`;
203
+ return `<section ${R(o.id)} ${L(o.id)} class="${z}" style="min-height: ${$}; padding: ${c}; display: flex; align-items: center; justify-content: center; background-image: url(${e(_)}); background-size: cover; background-position: center; position: relative; overflow: hidden;" data-variation="${e(t || l || "")}">${W}${et}${h}</section>`;
187
204
  }
188
- if (ct) {
189
- const r = P(o.id || "", "hero-grid-layout"), $ = P(o.id || "", "hero-grid"), v = yt === "left", n = jt(
190
- G,
191
- ft,
192
- xt,
193
- tt,
194
- et,
195
- $
196
- ), h = `<div class="sg-hero__grid-wrapper" style="position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; flex: 0 1 auto; max-width: ${R};">${n.html}</div>`, s = `<div class="sg-hero__content-side" style="max-width: ${R}; flex: 0 1 auto; text-align: ${d}; position: relative; z-index: 2;">${V}</div>`;
197
- let c = `
205
+ if ($t) {
206
+ const i = D(o.id || "", "hero-grid-layout"), c = D(o.id || "", "hero-grid"), h = vt === "left", r = Dt(
207
+ A,
208
+ bt,
209
+ _t,
210
+ rt,
211
+ st,
212
+ c
213
+ ), f = `<div class="sg-hero__grid-wrapper" data-block-group="Mídia" style="position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; flex: 1 1 0%; max-width: ${V};">${r.html}</div>`, s = `<div class="sg-hero__content-side" style="max-width: ${V}; flex: 1 1 0%; text-align: ${d}; position: relative; z-index: 2;">${M}</div>`;
214
+ let a = `
198
215
  @media (max-width: 1023px) {
199
- #${r} {
216
+ #${i} {
200
217
  flex-direction: column !important;
201
218
  gap: 2rem !important;
202
219
  }
203
- #${r} .sg-hero__grid-wrapper,
204
- #${r} .sg-hero__content-side {
220
+ #${i} .sg-hero__grid-wrapper,
221
+ #${i} .sg-hero__content-side {
205
222
  max-width: 100% !important;
206
223
  }
207
- #${r} .sg-hero__grid-wrapper {
224
+ #${i} .sg-hero__grid-wrapper {
208
225
  order: -1;
209
226
  }
210
227
  }
211
228
  `;
212
- c += n.css;
213
- const y = v ? `${h}${s}` : `${s}${h}`, b = `<style>${c}</style><div id="${r}" class="sg-hero__grid-layout" style="display: flex; justify-content: ${Z}; gap: ${J}; max-width: ${q}; width: 100%; align-items: center; position: relative; z-index: 2; padding: 0 2rem;">${y}</div>`;
214
- return `<section ${W(o.id)} ${L(o.id)} class="${M} sg-hero--with-grid" style="min-height: ${p}; ${lt} display: flex; align-items: center; justify-content: ${dt}; ${k} position: relative; overflow: hidden;" data-variation="${e(t || a || "")}">${D}${K}${kt}${b}</section>`;
229
+ a += r.css;
230
+ const m = h ? `${f}${s}` : `${s}${f}`, v = `<style>${a}</style><div id="${i}" class="sg-hero__grid-layout" style="display: flex; justify-content: ${Q}; gap: ${tt}; max-width: ${X}; width: 100%; align-items: center; position: relative; z-index: 2; padding: 0 2rem;">${m}</div>`;
231
+ return `<section ${R(o.id)} ${L(o.id)} class="${z} sg-hero--with-grid" style="min-height: ${$}; ${J} display: flex; align-items: center; justify-content: ${K}; ${I} position: relative; overflow: hidden;" data-variation="${e(t || l || "")}">${W}${et}${Tt}${v}</section>`;
215
232
  }
216
- const Te = `<div style="max-width: ${ht}; width: 100%; padding: 0 2rem; text-align: ${d}; position: relative; z-index: 2;">${V}</div>`;
217
- return `<section ${W(o.id)} ${L(o.id)} class="${M}" style="min-height: ${p}; ${lt} display: flex; align-items: center; justify-content: ${dt}; ${k} position: relative; overflow: hidden;" data-variation="${e(t || a || "")}">${D}${K}${kt}${Te}</section>`;
233
+ const Ge = `<div style="max-width: ${it}; width: 100%; padding: 0 2rem; text-align: ${d}; position: relative; z-index: 2;">${M}</div>`;
234
+ return `<section ${R(o.id)} ${L(o.id)} class="${z}" style="min-height: ${$}; ${J} display: flex; align-items: center; justify-content: ${K}; ${I} position: relative; overflow: hidden;" data-variation="${e(t || l || "")}">${W}${et}${Tt}${Ge}</section>`;
218
235
  }
219
- function Le(o) {
236
+ function Ue(o) {
220
237
  const {
221
- blockId: X,
222
- buttonSize: _,
223
- primaryButtonVariant: w,
238
+ blockId: ot,
239
+ buttonSize: C,
240
+ primaryButtonVariant: S,
224
241
  primaryButtonColor: t,
225
- primaryButtonTextColor: a,
226
- primaryButtonRadius: T,
227
- secondaryButtonVariant: C,
228
- secondaryButtonColor: g,
229
- secondaryButtonTextColor: l,
230
- secondaryButtonRadius: u,
231
- hoverEffect: S,
242
+ primaryButtonTextColor: l,
243
+ primaryButtonRadius: E,
244
+ secondaryButtonVariant: B,
245
+ secondaryButtonColor: p,
246
+ secondaryButtonTextColor: g,
247
+ secondaryButtonRadius: x,
248
+ hoverEffect: H,
232
249
  hoverIntensity: d,
233
- hoverOverlay: B,
234
- hoverIconName: A
235
- } = o, E = {
250
+ hoverOverlay: k,
251
+ hoverIconName: N
252
+ } = o, F = {
236
253
  sm: { padding: "0.625rem 1.25rem", fontSize: "0.875rem" },
237
254
  md: { padding: "0.875rem 2rem", fontSize: "1rem" },
238
255
  lg: { padding: "1rem 2.5rem", fontSize: "1.125rem" }
239
- }, p = E[_] || E.md, O = [
240
- `padding: ${p.padding}`,
256
+ }, $ = F[C] || F.md, U = [
257
+ `padding: ${$.padding}`,
241
258
  "font-weight: 600",
242
- `font-size: ${p.fontSize}`,
259
+ `font-size: ${$.fontSize}`,
243
260
  "text-decoration: none",
244
261
  "display: inline-flex",
245
262
  "align-items: center",
@@ -249,66 +266,66 @@ function Le(o) {
249
266
  "position: relative",
250
267
  "overflow: hidden",
251
268
  "cursor: pointer"
252
- ], H = [...O, `border-radius: ${T}px`];
253
- switch (w) {
269
+ ], b = [...U, `border-radius: ${E}px`];
270
+ switch (S) {
254
271
  case "outline":
255
- H.push("background-color: transparent", `border: 2px solid ${t}`, `color: ${t}`);
272
+ b.push("background-color: transparent", `border: 2px solid ${t}`, `color: ${t}`);
256
273
  break;
257
274
  case "ghost":
258
- H.push("background-color: transparent", "border: none", `color: ${t}`);
275
+ b.push("background-color: transparent", "border: none", `color: ${t}`);
259
276
  break;
260
277
  default:
261
- H.push(`background-color: ${t}`, `border: 2px solid ${t}`, `color: ${a}`);
278
+ b.push(`background-color: ${t}`, `border: 2px solid ${t}`, `color: ${l}`);
262
279
  }
263
- const f = [...O, `border-radius: ${u}px`];
264
- switch (C) {
280
+ const u = [...U, `border-radius: ${x}px`];
281
+ switch (B) {
265
282
  case "solid":
266
- f.push(`background-color: ${g}`, `border: 2px solid ${g}`, `color: ${l}`);
283
+ u.push(`background-color: ${p}`, `border: 2px solid ${p}`, `color: ${g}`);
267
284
  break;
268
285
  case "ghost":
269
- f.push("background-color: transparent", "border: none", `color: ${l}`);
286
+ u.push("background-color: transparent", "border: none", `color: ${g}`);
270
287
  break;
271
288
  default:
272
- f.push("background-color: transparent", `border: 2px solid ${g}`, `color: ${l}`);
289
+ u.push("background-color: transparent", `border: 2px solid ${p}`, `color: ${g}`);
273
290
  }
274
- const i = X ? `[data-block-id="${X}"]` : "";
275
- let m = "";
276
- if (S !== "none") {
277
- const I = Lt({
278
- effect: S,
291
+ const n = ot ? `[data-block-id="${ot}"]` : "";
292
+ let y = "";
293
+ if (H !== "none") {
294
+ const O = Nt({
295
+ effect: H,
279
296
  intensity: d,
280
297
  buttonColor: t,
281
- variant: w
282
- }), j = Lt({
283
- effect: S,
298
+ variant: S
299
+ }), P = Nt({
300
+ effect: H,
284
301
  intensity: d,
285
- buttonColor: g,
286
- variant: C
302
+ buttonColor: p,
303
+ variant: B
287
304
  });
288
- I.base && (m += `${i} .sg-hero__btn--primary { ${I.base} }
289
- `), j.base && (m += `${i} .sg-hero__btn--secondary { ${j.base} }
290
- `), m += `
291
- ${i} .sg-hero__btn--primary:hover { ${I.hover} }
292
- ${i} .sg-hero__btn--secondary:hover { ${j.hover} }
293
- `, m += Me();
305
+ O.base && (y += `${n} .sg-hero__btn--primary { ${O.base} }
306
+ `), P.base && (y += `${n} .sg-hero__btn--secondary { ${P.base} }
307
+ `), y += `
308
+ ${n} .sg-hero__btn--primary:hover { ${O.hover} }
309
+ ${n} .sg-hero__btn--secondary:hover { ${P.hover} }
310
+ `, y += Ae();
294
311
  }
295
- return B && B !== "none" && (m += Pt(`${i} .sg-hero__btn--primary`, {
296
- overlay: B,
312
+ return k && k !== "none" && (y += Ft(`${n} .sg-hero__btn--primary`, {
313
+ overlay: k,
297
314
  primaryColor: t,
298
- iconName: A,
299
- textColor: w === "solid" ? a : t
300
- }), m += Pt(`${i} .sg-hero__btn--secondary`, {
301
- overlay: B,
302
- primaryColor: g,
303
- iconName: A,
304
- textColor: C === "solid" ? l : g
315
+ iconName: N,
316
+ textColor: S === "solid" ? l : t
317
+ }), y += Ft(`${n} .sg-hero__btn--secondary`, {
318
+ overlay: k,
319
+ primaryColor: p,
320
+ iconName: N,
321
+ textColor: B === "solid" ? g : p
305
322
  })), {
306
- primary: H.join("; "),
307
- secondary: f.join("; "),
308
- css: m
323
+ primary: b.join("; "),
324
+ secondary: u.join("; "),
325
+ css: y
309
326
  };
310
327
  }
311
328
  export {
312
- Ke as exportHero
329
+ ro as exportHero
313
330
  };
314
331
  //# sourceMappingURL=HeroExporter.js.map