@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.
- package/dist/editor/BlockSelector.d.ts.map +1 -1
- package/dist/editor/BlockSelector.js +60 -57
- package/dist/editor/BlockSelector.js.map +1 -1
- package/dist/editor/LandingPageEditor.d.ts.map +1 -1
- package/dist/editor/LandingPageEditor.js +145 -128
- package/dist/editor/LandingPageEditor.js.map +1 -1
- package/dist/editor/PageTabBar.d.ts +4 -1
- package/dist/editor/PageTabBar.d.ts.map +1 -1
- package/dist/editor/PageTabBar.js +179 -41
- package/dist/editor/PageTabBar.js.map +1 -1
- package/dist/editor/PropertyEditor/BlockPropertyEditor.d.ts +2 -0
- package/dist/editor/PropertyEditor/BlockPropertyEditor.d.ts.map +1 -1
- package/dist/editor/PropertyEditor/BlockPropertyEditor.js +53 -45
- package/dist/editor/PropertyEditor/BlockPropertyEditor.js.map +1 -1
- package/dist/editor/PropertyEditor/CollapsiblePropertyGroup.d.ts +2 -0
- package/dist/editor/PropertyEditor/CollapsiblePropertyGroup.d.ts.map +1 -1
- package/dist/editor/PropertyEditor/CollapsiblePropertyGroup.js +47 -33
- package/dist/editor/PropertyEditor/CollapsiblePropertyGroup.js.map +1 -1
- package/dist/editor/PropertyEditor/VariationSelector.d.ts.map +1 -1
- package/dist/editor/PropertyEditor/VariationSelector.js +10 -6
- package/dist/editor/PropertyEditor/VariationSelector.js.map +1 -1
- package/dist/editor/PropertyEditor/index.js +20 -18
- package/dist/editor/PropertyEditor/index.js.map +1 -1
- package/dist/editor/PropertyEditor/inputs/CarouselImagesInput.d.ts +16 -0
- package/dist/editor/PropertyEditor/inputs/CarouselImagesInput.d.ts.map +1 -0
- package/dist/editor/PropertyEditor/inputs/CarouselImagesInput.js +170 -0
- package/dist/editor/PropertyEditor/inputs/CarouselImagesInput.js.map +1 -0
- package/dist/editor/PropertyEditor/inputs/ImageGridInput.d.ts.map +1 -1
- package/dist/editor/PropertyEditor/inputs/ImageGridInput.js +148 -121
- package/dist/editor/PropertyEditor/inputs/ImageGridInput.js.map +1 -1
- package/dist/editor/PropertyEditor/inputs/index.d.ts +1 -0
- package/dist/editor/PropertyEditor/inputs/index.d.ts.map +1 -1
- package/dist/editor/PropertyEditor/renderPropertyInput.d.ts.map +1 -1
- package/dist/editor/PropertyEditor/renderPropertyInput.js +167 -139
- package/dist/editor/PropertyEditor/renderPropertyInput.js.map +1 -1
- package/dist/editor/components/CenterPanel.d.ts +9 -1
- package/dist/editor/components/CenterPanel.d.ts.map +1 -1
- package/dist/editor/components/CenterPanel.js +24 -14
- package/dist/editor/components/CenterPanel.js.map +1 -1
- package/dist/editor/components/RightPanel.d.ts +5 -0
- package/dist/editor/components/RightPanel.d.ts.map +1 -1
- package/dist/editor/components/RightPanel.js +18 -12
- package/dist/editor/components/RightPanel.js.map +1 -1
- package/dist/editor/components/Toolbar.d.ts +3 -0
- package/dist/editor/components/Toolbar.d.ts.map +1 -1
- package/dist/editor/components/Toolbar.js +54 -35
- package/dist/editor/components/Toolbar.js.map +1 -1
- package/dist/engine/export/exportHtml.d.ts.map +1 -1
- package/dist/engine/export/exportHtml.js +50 -50
- package/dist/engine/export/exportHtml.js.map +1 -1
- package/dist/engine/export/exporters/sections/BlogPostExporters.d.ts +6 -0
- package/dist/engine/export/exporters/sections/BlogPostExporters.d.ts.map +1 -0
- package/dist/engine/export/exporters/sections/BlogPostExporters.js +101 -0
- package/dist/engine/export/exporters/sections/BlogPostExporters.js.map +1 -0
- package/dist/engine/export/exporters/sections/FooterExporter.js +22 -22
- package/dist/engine/export/exporters/sections/FooterExporter.js.map +1 -1
- package/dist/engine/export/exporters/sections/HeroExporter.d.ts.map +1 -1
- package/dist/engine/export/exporters/sections/HeroExporter.js +222 -205
- package/dist/engine/export/exporters/sections/HeroExporter.js.map +1 -1
- package/dist/engine/export/exporters/sections/MarketingExporters.js +88 -88
- package/dist/engine/export/exporters/sections/MarketingExporters.js.map +1 -1
- package/dist/engine/export/exporters/sections/NavbarExporter.js +34 -34
- package/dist/engine/export/exporters/sections/NavbarExporter.js.map +1 -1
- package/dist/engine/export/exporters/sections/index.d.ts.map +1 -1
- package/dist/engine/export/exporters/sections/index.js +29 -22
- package/dist/engine/export/exporters/sections/index.js.map +1 -1
- package/dist/engine/index.d.ts +3 -0
- package/dist/engine/index.d.ts.map +1 -1
- package/dist/engine/index.js +99 -87
- package/dist/engine/index.js.map +1 -1
- package/dist/engine/plugins/builtin/blog/index.d.ts +3 -0
- package/dist/engine/plugins/builtin/blog/index.d.ts.map +1 -0
- package/dist/engine/plugins/builtin/blog/manifest.d.ts +3 -0
- package/dist/engine/plugins/builtin/blog/manifest.d.ts.map +1 -0
- package/dist/engine/plugins/builtin/blog/manifest.js +273 -0
- package/dist/engine/plugins/builtin/blog/manifest.js.map +1 -0
- package/dist/engine/plugins/builtin/blog/mockContentProvider.d.ts +7 -0
- package/dist/engine/plugins/builtin/blog/mockContentProvider.d.ts.map +1 -0
- package/dist/engine/plugins/builtin/blog/mockContentProvider.js +135 -0
- package/dist/engine/plugins/builtin/blog/mockContentProvider.js.map +1 -0
- package/dist/engine/plugins/contentHydration.d.ts +17 -0
- package/dist/engine/plugins/contentHydration.d.ts.map +1 -0
- package/dist/engine/plugins/contentHydration.js +121 -0
- package/dist/engine/plugins/contentHydration.js.map +1 -0
- package/dist/engine/plugins/dynamicPageResolver.d.ts +25 -0
- package/dist/engine/plugins/dynamicPageResolver.d.ts.map +1 -0
- package/dist/engine/plugins/dynamicPageResolver.js +32 -0
- package/dist/engine/plugins/dynamicPageResolver.js.map +1 -0
- package/dist/engine/plugins/index.d.ts +11 -0
- package/dist/engine/plugins/index.d.ts.map +1 -0
- package/dist/engine/plugins/pluginRegistry.d.ts +37 -0
- package/dist/engine/plugins/pluginRegistry.d.ts.map +1 -0
- package/dist/engine/plugins/pluginRegistry.js +134 -0
- package/dist/engine/plugins/pluginRegistry.js.map +1 -0
- package/dist/engine/plugins/types.d.ts +180 -0
- package/dist/engine/plugins/types.d.ts.map +1 -0
- package/dist/engine/presets/heroVariations.d.ts +5 -0
- package/dist/engine/presets/heroVariations.d.ts.map +1 -1
- package/dist/engine/presets/heroVariations.js +50 -6
- package/dist/engine/presets/heroVariations.js.map +1 -1
- package/dist/engine/preview/Preview.d.ts +6 -2
- package/dist/engine/preview/Preview.d.ts.map +1 -1
- package/dist/engine/preview/Preview.js +295 -125
- package/dist/engine/preview/Preview.js.map +1 -1
- package/dist/engine/registry/blocks/sections/blogPostCard.d.ts +3 -0
- package/dist/engine/registry/blocks/sections/blogPostCard.d.ts.map +1 -0
- package/dist/engine/registry/blocks/sections/blogPostCard.js +53 -0
- package/dist/engine/registry/blocks/sections/blogPostCard.js.map +1 -0
- package/dist/engine/registry/blocks/sections/blogPostDetail.d.ts +3 -0
- package/dist/engine/registry/blocks/sections/blogPostDetail.d.ts.map +1 -0
- package/dist/engine/registry/blocks/sections/blogPostDetail.js +49 -0
- package/dist/engine/registry/blocks/sections/blogPostDetail.js.map +1 -0
- package/dist/engine/registry/blocks/sections/blogPostGrid.d.ts +3 -0
- package/dist/engine/registry/blocks/sections/blogPostGrid.d.ts.map +1 -0
- package/dist/engine/registry/blocks/sections/blogPostGrid.js +89 -0
- package/dist/engine/registry/blocks/sections/blogPostGrid.js.map +1 -0
- package/dist/engine/registry/blocks/sections/hero.d.ts.map +1 -1
- package/dist/engine/registry/blocks/sections/hero.js +67 -14
- package/dist/engine/registry/blocks/sections/hero.js.map +1 -1
- package/dist/engine/registry/blocks/sections/index.d.ts +3 -0
- package/dist/engine/registry/blocks/sections/index.d.ts.map +1 -1
- package/dist/engine/registry/blocks/sections/navbar.d.ts.map +1 -1
- package/dist/engine/registry/blocks/sections/navbar.js +2 -1
- package/dist/engine/registry/blocks/sections/navbar.js.map +1 -1
- package/dist/engine/registry/registry.d.ts.map +1 -1
- package/dist/engine/registry/registry.js +16 -12
- package/dist/engine/registry/registry.js.map +1 -1
- package/dist/engine/registry/types.d.ts +10 -6
- package/dist/engine/registry/types.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/BlogPostCardRenderer.d.ts +3 -0
- package/dist/engine/render/renderers/sections/BlogPostCardRenderer.d.ts.map +1 -0
- package/dist/engine/render/renderers/sections/BlogPostCardRenderer.js +199 -0
- package/dist/engine/render/renderers/sections/BlogPostCardRenderer.js.map +1 -0
- package/dist/engine/render/renderers/sections/BlogPostDetailRenderer.d.ts +3 -0
- package/dist/engine/render/renderers/sections/BlogPostDetailRenderer.d.ts.map +1 -0
- package/dist/engine/render/renderers/sections/BlogPostDetailRenderer.js +293 -0
- package/dist/engine/render/renderers/sections/BlogPostDetailRenderer.js.map +1 -0
- package/dist/engine/render/renderers/sections/BlogPostGridRenderer.d.ts +3 -0
- package/dist/engine/render/renderers/sections/BlogPostGridRenderer.d.ts.map +1 -0
- package/dist/engine/render/renderers/sections/BlogPostGridRenderer.js +101 -0
- package/dist/engine/render/renderers/sections/BlogPostGridRenderer.js.map +1 -0
- package/dist/engine/render/renderers/sections/CtaRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/CtaRenderer.js +33 -31
- package/dist/engine/render/renderers/sections/CtaRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/FaqItemRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/FaqItemRenderer.js +7 -6
- package/dist/engine/render/renderers/sections/FaqItemRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/FaqRenderer.js +7 -7
- package/dist/engine/render/renderers/sections/FaqRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/FeatureGridRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/FeatureGridRenderer.js +19 -18
- package/dist/engine/render/renderers/sections/FeatureGridRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/FeatureRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/FeatureRenderer.js +5 -4
- package/dist/engine/render/renderers/sections/FeatureRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/FooterRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/FooterRenderer.js +8 -7
- package/dist/engine/render/renderers/sections/FooterRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/HeroRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/HeroRenderer.js +295 -218
- package/dist/engine/render/renderers/sections/HeroRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/NavbarRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/NavbarRenderer.js +23 -22
- package/dist/engine/render/renderers/sections/NavbarRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/PricingCardRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/PricingCardRenderer.js +7 -6
- package/dist/engine/render/renderers/sections/PricingCardRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/PricingRenderer.js +9 -9
- package/dist/engine/render/renderers/sections/PricingRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/TestimonialGridRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/TestimonialGridRenderer.js +17 -16
- package/dist/engine/render/renderers/sections/TestimonialGridRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/TestimonialRenderer.d.ts.map +1 -1
- package/dist/engine/render/renderers/sections/TestimonialRenderer.js +11 -10
- package/dist/engine/render/renderers/sections/TestimonialRenderer.js.map +1 -1
- package/dist/engine/render/renderers/sections/index.js +24 -18
- package/dist/engine/render/renderers/sections/index.js.map +1 -1
- package/dist/engine/schema/siteDocument.d.ts +104 -3
- package/dist/engine/schema/siteDocument.d.ts.map +1 -1
- package/dist/engine/schema/siteDocument.js.map +1 -1
- package/dist/engine/shared/carouselAnimation.d.ts +20 -0
- package/dist/engine/shared/carouselAnimation.d.ts.map +1 -0
- package/dist/engine/shared/carouselAnimation.js +62 -0
- package/dist/engine/shared/carouselAnimation.js.map +1 -0
- package/dist/engine/shared/imageGrid/types.d.ts +2 -0
- package/dist/engine/shared/imageGrid/types.d.ts.map +1 -1
- package/dist/engine/shared/showWhen.d.ts +44 -0
- package/dist/engine/shared/showWhen.d.ts.map +1 -0
- package/dist/engine/shared/showWhen.js +33 -0
- package/dist/engine/shared/showWhen.js.map +1 -0
- package/dist/hooks/useEditorState.d.ts +3 -0
- package/dist/hooks/useEditorState.d.ts.map +1 -1
- package/dist/hooks/useEditorState.js +106 -84
- package/dist/hooks/useEditorState.js.map +1 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +109 -93
- package/dist/index.js.map +1 -1
- package/dist/shared/templates/escola-blog.d.ts +3 -0
- package/dist/shared/templates/escola-blog.d.ts.map +1 -0
- package/dist/shared/templates/escola-blog.js +160 -0
- package/dist/shared/templates/escola-blog.js.map +1 -0
- package/dist/shared/templates/index.d.ts +2 -0
- package/dist/shared/templates/index.d.ts.map +1 -1
- package/dist/shared/templates/index.js +30 -12
- package/dist/shared/templates/index.js.map +1 -1
- package/dist/utils/changeDetector.d.ts +2 -1
- package/dist/utils/changeDetector.d.ts.map +1 -1
- package/dist/utils/changeDetector.js +39 -39
- package/dist/utils/changeDetector.js.map +1 -1
- package/dist/utils/sharedTemplateToEngine.d.ts +4 -5
- package/dist/utils/sharedTemplateToEngine.d.ts.map +1 -1
- package/dist/utils/sharedTemplateToEngine.js +14 -87
- package/dist/utils/sharedTemplateToEngine.js.map +1 -1
- package/dist/viewer/LandingPageViewer.d.ts +13 -6
- package/dist/viewer/LandingPageViewer.d.ts.map +1 -1
- package/dist/viewer/LandingPageViewer.js +220 -122
- package/dist/viewer/LandingPageViewer.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,128 +1,134 @@
|
|
|
1
|
-
import { PLACEHOLDER_IMAGE_URL as
|
|
2
|
-
import { escapeHtml as e, resolveHref as
|
|
3
|
-
import { generateScopedId as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
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:
|
|
14
|
-
title:
|
|
15
|
-
subtitle:
|
|
16
|
-
description:
|
|
17
|
-
primaryButton:
|
|
18
|
-
secondaryButton:
|
|
19
|
-
badge:
|
|
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:
|
|
22
|
-
contentSpacing:
|
|
23
|
-
blockGap:
|
|
24
|
-
minHeight:
|
|
25
|
-
image:
|
|
26
|
-
overlay:
|
|
27
|
-
overlayColor:
|
|
28
|
-
background:
|
|
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:
|
|
31
|
-
subtitleColor:
|
|
32
|
-
descriptionColor:
|
|
31
|
+
titleColor: y,
|
|
32
|
+
subtitleColor: O,
|
|
33
|
+
descriptionColor: P,
|
|
33
34
|
// Typography config (novo sistema)
|
|
34
|
-
titleTypography:
|
|
35
|
-
subtitleTypography:
|
|
36
|
-
descriptionTypography:
|
|
35
|
+
titleTypography: Ut,
|
|
36
|
+
subtitleTypography: Zt,
|
|
37
|
+
descriptionTypography: qt,
|
|
37
38
|
// Badge styling
|
|
38
|
-
badgeColor:
|
|
39
|
-
badgeTextColor:
|
|
39
|
+
badgeColor: Jt,
|
|
40
|
+
badgeTextColor: Kt,
|
|
40
41
|
// Layout
|
|
41
|
-
contentMaxWidth:
|
|
42
|
-
paddingY:
|
|
42
|
+
contentMaxWidth: it = "800px",
|
|
43
|
+
paddingY: Z,
|
|
43
44
|
// Image styling
|
|
44
|
-
imageRadius:
|
|
45
|
-
imageShadow:
|
|
46
|
-
imagePosition:
|
|
45
|
+
imageRadius: rt = 16,
|
|
46
|
+
imageShadow: st = "lg",
|
|
47
|
+
imagePosition: vt = "right",
|
|
47
48
|
// Button size
|
|
48
|
-
buttonSize:
|
|
49
|
+
buttonSize: Yt = "md",
|
|
49
50
|
// Primary button styling
|
|
50
|
-
primaryButtonVariant:
|
|
51
|
-
primaryButtonColor:
|
|
52
|
-
primaryButtonTextColor:
|
|
53
|
-
primaryButtonRadius:
|
|
51
|
+
primaryButtonVariant: Qt = "solid",
|
|
52
|
+
primaryButtonColor: Xt,
|
|
53
|
+
primaryButtonTextColor: te,
|
|
54
|
+
primaryButtonRadius: ee = 8,
|
|
54
55
|
// Secondary button styling
|
|
55
|
-
secondaryButtonVariant:
|
|
56
|
-
secondaryButtonColor:
|
|
57
|
-
secondaryButtonTextColor:
|
|
58
|
-
secondaryButtonRadius:
|
|
56
|
+
secondaryButtonVariant: oe = "outline",
|
|
57
|
+
secondaryButtonColor: ie,
|
|
58
|
+
secondaryButtonTextColor: re,
|
|
59
|
+
secondaryButtonRadius: se = 8,
|
|
59
60
|
// Button hover effects
|
|
60
|
-
buttonHoverEffect:
|
|
61
|
-
buttonHoverIntensity:
|
|
62
|
-
buttonHoverOverlay:
|
|
63
|
-
buttonHoverIconName:
|
|
61
|
+
buttonHoverEffect: ne = "scale",
|
|
62
|
+
buttonHoverIntensity: ae = 50,
|
|
63
|
+
buttonHoverOverlay: le = "none",
|
|
64
|
+
buttonHoverIconName: de = "arrow-right",
|
|
64
65
|
// Decorative
|
|
65
|
-
showWave:
|
|
66
|
-
waveColor:
|
|
66
|
+
showWave: ce,
|
|
67
|
+
waveColor: xt = "rgba(255,255,255,0.1)",
|
|
67
68
|
// Image Grid
|
|
68
|
-
imageGridEnabled:
|
|
69
|
-
imageGridPreset:
|
|
70
|
-
imageGridImages:
|
|
71
|
-
imageGridGap:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
|
92
|
-
|
|
93
|
-
const
|
|
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
|
-
},
|
|
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="${
|
|
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="${
|
|
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>` : "",
|
|
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:
|
|
105
|
-
primaryButtonVariant:
|
|
106
|
-
primaryButtonColor:
|
|
107
|
-
primaryButtonTextColor:
|
|
108
|
-
primaryButtonRadius:
|
|
109
|
-
secondaryButtonVariant:
|
|
110
|
-
secondaryButtonColor:
|
|
111
|
-
secondaryButtonTextColor:
|
|
112
|
-
secondaryButtonRadius:
|
|
113
|
-
hoverEffect:
|
|
114
|
-
hoverIntensity:
|
|
115
|
-
hoverOverlay:
|
|
116
|
-
hoverIconName:
|
|
117
|
-
}),
|
|
118
|
-
const
|
|
119
|
-
const
|
|
120
|
-
return `<div class="sg-hero__grid-item" style="grid-column: ${
|
|
121
|
-
<img src="${e(
|
|
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(""),
|
|
124
|
-
${
|
|
125
|
-
</div>`,
|
|
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:
|
|
139
|
-
},
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
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
|
-
#${
|
|
160
|
+
#${i} {
|
|
144
161
|
grid-template-columns: 1fr !important;
|
|
145
162
|
gap: 2rem !important;
|
|
146
163
|
padding: 0 1rem !important;
|
|
147
164
|
}
|
|
148
|
-
#${
|
|
165
|
+
#${i} .sg-hero__split-image {
|
|
149
166
|
order: -1;
|
|
150
167
|
}
|
|
151
168
|
}
|
|
152
|
-
`,
|
|
153
|
-
return `<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 (
|
|
156
|
-
const
|
|
157
|
-
if (
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
),
|
|
166
|
-
let
|
|
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
|
-
#${
|
|
185
|
+
#${r} {
|
|
169
186
|
flex-direction: column !important;
|
|
170
187
|
gap: 2rem !important;
|
|
171
188
|
}
|
|
172
|
-
#${
|
|
189
|
+
#${r} .sg-hero__grid-wrapper {
|
|
173
190
|
order: -1;
|
|
174
191
|
}
|
|
175
192
|
}
|
|
176
193
|
`;
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
return `<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
|
|
182
|
-
<div class="sg-hero__card" style="max-width: ${
|
|
183
|
-
${
|
|
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 ${
|
|
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 (
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
),
|
|
197
|
-
let
|
|
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
|
-
#${
|
|
216
|
+
#${i} {
|
|
200
217
|
flex-direction: column !important;
|
|
201
218
|
gap: 2rem !important;
|
|
202
219
|
}
|
|
203
|
-
#${
|
|
204
|
-
#${
|
|
220
|
+
#${i} .sg-hero__grid-wrapper,
|
|
221
|
+
#${i} .sg-hero__content-side {
|
|
205
222
|
max-width: 100% !important;
|
|
206
223
|
}
|
|
207
|
-
#${
|
|
224
|
+
#${i} .sg-hero__grid-wrapper {
|
|
208
225
|
order: -1;
|
|
209
226
|
}
|
|
210
227
|
}
|
|
211
228
|
`;
|
|
212
|
-
|
|
213
|
-
const
|
|
214
|
-
return `<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
|
|
217
|
-
return `<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
|
|
236
|
+
function Ue(o) {
|
|
220
237
|
const {
|
|
221
|
-
blockId:
|
|
222
|
-
buttonSize:
|
|
223
|
-
primaryButtonVariant:
|
|
238
|
+
blockId: ot,
|
|
239
|
+
buttonSize: C,
|
|
240
|
+
primaryButtonVariant: S,
|
|
224
241
|
primaryButtonColor: t,
|
|
225
|
-
primaryButtonTextColor:
|
|
226
|
-
primaryButtonRadius:
|
|
227
|
-
secondaryButtonVariant:
|
|
228
|
-
secondaryButtonColor:
|
|
229
|
-
secondaryButtonTextColor:
|
|
230
|
-
secondaryButtonRadius:
|
|
231
|
-
hoverEffect:
|
|
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:
|
|
234
|
-
hoverIconName:
|
|
235
|
-
} = o,
|
|
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
|
-
},
|
|
240
|
-
`padding: ${
|
|
256
|
+
}, $ = F[C] || F.md, U = [
|
|
257
|
+
`padding: ${$.padding}`,
|
|
241
258
|
"font-weight: 600",
|
|
242
|
-
`font-size: ${
|
|
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
|
-
],
|
|
253
|
-
switch (
|
|
269
|
+
], b = [...U, `border-radius: ${E}px`];
|
|
270
|
+
switch (S) {
|
|
254
271
|
case "outline":
|
|
255
|
-
|
|
272
|
+
b.push("background-color: transparent", `border: 2px solid ${t}`, `color: ${t}`);
|
|
256
273
|
break;
|
|
257
274
|
case "ghost":
|
|
258
|
-
|
|
275
|
+
b.push("background-color: transparent", "border: none", `color: ${t}`);
|
|
259
276
|
break;
|
|
260
277
|
default:
|
|
261
|
-
|
|
278
|
+
b.push(`background-color: ${t}`, `border: 2px solid ${t}`, `color: ${l}`);
|
|
262
279
|
}
|
|
263
|
-
const
|
|
264
|
-
switch (
|
|
280
|
+
const u = [...U, `border-radius: ${x}px`];
|
|
281
|
+
switch (B) {
|
|
265
282
|
case "solid":
|
|
266
|
-
|
|
283
|
+
u.push(`background-color: ${p}`, `border: 2px solid ${p}`, `color: ${g}`);
|
|
267
284
|
break;
|
|
268
285
|
case "ghost":
|
|
269
|
-
|
|
286
|
+
u.push("background-color: transparent", "border: none", `color: ${g}`);
|
|
270
287
|
break;
|
|
271
288
|
default:
|
|
272
|
-
|
|
289
|
+
u.push("background-color: transparent", `border: 2px solid ${p}`, `color: ${g}`);
|
|
273
290
|
}
|
|
274
|
-
const
|
|
275
|
-
let
|
|
276
|
-
if (
|
|
277
|
-
const
|
|
278
|
-
effect:
|
|
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:
|
|
282
|
-
}),
|
|
283
|
-
effect:
|
|
298
|
+
variant: S
|
|
299
|
+
}), P = Nt({
|
|
300
|
+
effect: H,
|
|
284
301
|
intensity: d,
|
|
285
|
-
buttonColor:
|
|
286
|
-
variant:
|
|
302
|
+
buttonColor: p,
|
|
303
|
+
variant: B
|
|
287
304
|
});
|
|
288
|
-
|
|
289
|
-
`),
|
|
290
|
-
`),
|
|
291
|
-
${
|
|
292
|
-
${
|
|
293
|
-
`,
|
|
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
|
|
296
|
-
overlay:
|
|
312
|
+
return k && k !== "none" && (y += Ft(`${n} .sg-hero__btn--primary`, {
|
|
313
|
+
overlay: k,
|
|
297
314
|
primaryColor: t,
|
|
298
|
-
iconName:
|
|
299
|
-
textColor:
|
|
300
|
-
}),
|
|
301
|
-
overlay:
|
|
302
|
-
primaryColor:
|
|
303
|
-
iconName:
|
|
304
|
-
textColor:
|
|
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:
|
|
307
|
-
secondary:
|
|
308
|
-
css:
|
|
323
|
+
primary: b.join("; "),
|
|
324
|
+
secondary: u.join("; "),
|
|
325
|
+
css: y
|
|
309
326
|
};
|
|
310
327
|
}
|
|
311
328
|
export {
|
|
312
|
-
|
|
329
|
+
ro as exportHero
|
|
313
330
|
};
|
|
314
331
|
//# sourceMappingURL=HeroExporter.js.map
|