"use strict";var core=require("@gem-sdk/core"),system=require("@gem-sdk/system");const getStyle=e=>{let t=["mobile","tablet","desktop"],{styles:r,setting:o,style:c,rootStyles:s}=e,{arrowGapToEachSide:a="16"}=o??{},l=core.makeStyleResponsive("h",core.getHeightByShapeGlobalSize(r?.sizeSetting)),g=core.makeStyleWithDefault("w",core.getWidthByShapeGlobalSize(r?.sizeSetting,!0),{desktop:"--g-ct-w",tablet:"--g-ct-w",mobile:"--g-ct-w"}),i=()=>{let e={};return t.forEach(t=>{let c=core.getResponsiveValueByScreen(o?.vertical,t),s=core.getResponsiveValueByScreen(r?.spacing,t),a=c?`--rg${"desktop"!==t?`-${t}`:""}`:`--cg${"desktop"!==t?`-${t}`:""}`;e={...e,[a]:`${s??0}px`}}),e},y=system.createStyle({...c,...l,...g,...core.getBgByDevice({backgroundColor:r?.backgroundColor,backgroundImage:r?.backgroundImage})}),S=system.createStyle({...core.makeContainerWidthOrHeight({vertical:o?.vertical,dotStyle:o?.dotStyle}),gap:a+"px"}),n=system.createStyle({...core.makeStyleResponsive("jc",r?.align),...s}),m=system.createStyle({...i()});return{rootStyleRender:n,wrapperStyleRender:y,wrapperInnerStyle:S,sliderStyle:m}};exports.getStyle=getStyle;
