"use strict";var core=require("@gem-sdk/core"),helpers=require("../../helpers.js"),translate=require("../settings/configs/translate.js");const filterStyles=e=>{let t=["--mb","--mb-mobile","--mb-tablet"];return t.forEach(t=>{delete e?.[t]}),e||{}},getContainerStyles=({style:e,styles:t,extraData:o,uid:r,type:s="React",pageContext:l})=>{let{align:i,background:a,globalSize:n}=t||{},c=core.makeGlobalSize(n||{desktop:{width:"100%"}}),g="Liquid"===s?helpers.getBackgroundTranslated({background:a,uid:r,enableTranslate:!!translate.IconList?.background?.id,pageContext:l??{},isTranslateVideo:!1}):a,d={...e,...o?.advancedClasses,...c.width,...core.makeStyleResponsive("ta",i),...core.getStyleBackgroundByDevice(g,{liquid:o?.isLiquid}),...core.getGradientBgrStyleByDevice(g)};return o?.isLiquid?d:filterStyles(d)},getWrapperStyles=e=>{let{alignWrapper:t}=e||{};return{...core.makeStyleResponsive("jc",t)}},getItemStyles=e=>{let t=core.makeGlobalSize(e?.itemPadding);return{...t.padding,...core.getResponsiveStyleShadowWithoutState(e?.itemBoxShadow,"box-shadow",e?.itemBoxShadow),...core.composeRadiusResponsive(e?.itemRounded),...core.composeBorderResponsive(e?.itemBorder),...core.getGlobalColorResponsiveStyle("bgc",e?.itemBackgroundColor),...core.getGlobalColorResponsiveStyle("bgi",e?.itemBackgroundColor),...core.makeStyleResponsive("cg",e?.horizontalSpacing)}},getUlStyles=e=>({...core.makeStyleResponsive("gg",e?.verticalSpacing)});exports.getContainerStyles=getContainerStyles,exports.getItemStyles=getItemStyles,exports.getUlStyles=getUlStyles,exports.getWrapperStyles=getWrapperStyles;
