"use strict";var e=require("@gem-sdk/core"),t=require("./helpers.js");require("react/jsx-runtime"),require("react");var r=require("../../common/const.js"),o=require("../../hero-banner/common/helpers.js"),n=require("../../helpers.js"),l=require("../settings/configs/translate.js");function s(e){return Object.fromEntries(Object.entries(e||{}).filter(([,e])=>!!e))}exports.getBackdropStyle=e=>{let r={...t.pointerEventStyle(e)};return s(r)},exports.getBodyContentStyle=({setting:r,style:o,uid:i,pageContext:a,type:g="React"})=>{let{fullScreen:p,height:y,background:d}=r??{},u="Liquid"===g?n.getBackgroundTranslated({background:d,uid:i,enableTranslate:!!l.Dialog?.background?.id,pageContext:a,isTranslateVideo:!1}):d,c={...t.getInnerStyle(o),...t.removeHeightPercentForContent(t.heightStyle(p,y)),"border-radius":"inherit",...e.getStyleBackgroundByDevice(u),...e.getGradientBgrStyleByDevice(u,{desktop:!0,tablet:!0,mobile:!0})};return s(c)},exports.getButtonContentStyle=t=>{let{btnBg:r,btnRounded:n,btnColor:l,btnPadding:i,btnWidth:a,btnHeight:g}=t??{},p=a?e.makeStyleResponsive("w",o.getWidth(a)):{},y=g?e.makeStyleResponsive("h",o.getWidth(g)):{},d={...p,...y,...e.getGlobalColorResponsiveStyle("c",{desktop:l}),...e.getGlobalColorResponsiveStyle("bgc",{desktop:r}),...e.getResponsiveStylePadding(i),...e.composeRadius({normal:n})};return s(d)},exports.getContainStyle=()=>{let e={"z-index":r.ELEMENT_Z_INDEX.DIALOG};return s(e)},exports.getDialogContentStyle=({style:r,width:o,height:n,fullScreen:l})=>{let i={...t.getWrapperDialogStyle(r),...t.getBorderStyle(r),...t.getDisplayStyle(r),...e.makeStyleResponsive("w",e.makeWidth(o,l)),...t.heightStyle(l,n)};return s(i)},exports.getOverlayStyle=(r,o,n)=>{let l={...e.makeStyle({op:0==Number(r)?"0":(Number(r)||0)/100}),...e.getGlobalColorResponsiveStyle("bgc",{desktop:o}),...t.getDisplayStyle(n)};return s(l)},exports.getSvgContentStyle=e=>{let t={};return e&&(t={"--height-icon":`${e}`}),s(t)},exports.getWrapperStyle=e=>{let t={"--d":e?.desktop?"contents":"none","--d-tablet":e?.tablet?"contents":"none","--d-mobile":e?.mobile?"contents":"none"};return s(t)};
