"use strict";var e=require("@gem-sdk/core"),t=require("./helpers.js");function r(e){return e.split(" ").reduce((e,t)=>(e[t]=!0,e),{})}const o=e=>{let{overlayColor:r}=e??{},o=r?.hover||r?.normal;return o&&"transparent"!==o&&"0%"!=t.getOpacityHover(e)};exports.enableTransitionHover=o,exports.getAdaptiveClasses=()=>r("adaptive-hero-banner"),exports.getAdaptivePictureClasses=()=>r("gp-w-full gp-invisible -gp-z-1"),exports.getBackgroundClasses=(e,t)=>{let o="hero-banner-bg gp-hero-banner-image-background hero-banner-bg-parallax";return t&&(o+=" gp_lazybg"),e&&(o+=" gp-duration-[var(--duration)] group-hover/hero:gp-scale-[var(--scale)] gp-transition-transform"),r(o)},exports.getClasses=({setting:e,builderProps:o,advancedCssClass:l})=>{let g="gp-group/hero gp-flex gp-w-full gp-flex-col gp-self-center gp-transition-colors gp-duration-200 gp-ease-in-out";return l&&(g+=` ${l}`),{...o?.uid&&{[o.uid]:!0},...r(g),...t.getClassAlignBanner(t.getResponsiveSetting(e?.alignBanner||{}))}},exports.getContainBackgroundClasses=()=>r("gp-hero-banner-bg gp-absolute gp-overflow-hidden gp-w-full gp-h-full top-0 left-0"),exports.getContainerClasses=(e,o)=>({...r("gp-relative gp-flex gp-w-full gp-flex-col gp-items-center gp-overflow-hidden hero-banner-container"),...t.getClassContentPosition(t.getContentPosition(e?.layout,o?.contentPosition1Col,o?.contentPosition2Col)||{})}),exports.getHtml5VideoClasses=(e=!1)=>{let t="gp-relative gp-h-full";return e&&(t+=" gp-hidden"),r(t)},exports.getIframeYoutubeClasses=()=>r("gp-inset-0 gp-w-full gp-bg-black gp-h-full !gp-max-w-none"),exports.getLazyBackgroundClasses=e=>{let t="gp-absolute gp-top-0 gp-invisible gp-w-full gp_lazyload gp-h-full gp_lazyforbg";return"tablet"===e&&(t+=" gp_lazybg_tl"),"mobile"===e&&(t+=" gp_lazybg_mb"),r(t)},exports.getLinkClasses=()=>({...r("gp-cursor-pointer gp-h-full")}),exports.getOverlayClasses=l=>{let{overlayColor:g,hoverEffect:a}=l??{},{disableOpacity:n}=t.opacityEnabledData(l),s="gp-absolute gp-inset-0 gp-left-[var(--left)] gp-top-[var(--top)]";return o(l)&&(s+=" gp-transition-all gp-duration-300"),a&&(s+=" group-hover/hero:gp-bg-[color:var(--hvr-bgc,_var(--bgc))] group-hover/hero:gp-opacity-[var(--hvr-op,_var(--op))]"),e.getGlobalColorStateClass("bg",g,n,!a)&&(s+=` ${e.getGlobalColorStateClass("bg",g,n,!a)}`),r(s)},exports.getRowClasses=(e,o)=>{let{sizeSetting:l,background:g}=e??{},{verticalAlign:a}=o??{},n=t.getClassForContentByFitContent(l,g),s=t.getClassForStretchContent(a),p=t.getClassSpaceBetween(o?.layout||{},e?.contentPosition1Col||{}),i=t.getClassSpaceBetweenLeftRight(o?.layout||{}),u=`gp-hero-banner-row ${n}  ${s}`;return{...r(u),...p,...i}},exports.getWrapperYoutubeClasses=e=>{let t="gp-h-full gp-w-full !gp-max-w-none gp-pointer-events-none";return e&&(t+=" gp-pb-[56.25%]"),r(t)};
