import{getStyleBackgroundByDevice as e,getGradientBgrStyleByDevice as t,makeStyleResponsive as l,makeWidth as r,makeStyle as o,getSingleColorVariable as a,getGlobalColorStateStyle as i,handleConvertBorderStyle as n,handleConvertBorderWidth as b,handleConvertBorderColor as c,filterHoverVariables as m}from"@gem-sdk/core";import{filterTruthyStyles as s}from"../../helpers.js";import{getStyleWidthByPositionResponsive as p}from"./helpers.js";let getStyleWrapper=(o,a)=>{let{background:i,containWidth:n,align:b}=o??{},c={...a,...e(i),...t(i,{desktop:!0,tablet:!0,mobile:!0}),...l("w",r(n)),...l("as",b)};return s(c)},getTabListStyle=e=>{let{panelAlign:t}=e??{},r={...l("jc",t),...l("w",{desktop:"100%",tablet:"100%",mobile:"100%"})};return s(r)},getItemStyle=(e,t)=>{let{labelColor:r,labelBgColor:g,borderTab:d,labelAlign:y,enableActiveEffect:S,panelWidth:v,position:h,panelFullWidth:u,labelWidth:w}=e??{},j={},T=!0===S||void 0===S;return j={...j=t&&T?{...l("jc",y),...o({c:a(r?.active??r?.normal),bgc:a(g?.active??g?.normal),bs:d?.active?.border??d?.normal?.border,bw:d?.active?.width??d?.normal?.width,bc:a(d?.active?.color??d?.normal?.color)})}:{...l("jc",y),...i("c",r),...i("bgc",g),...n(d),...b(d),...c(d)},...l("w",p({position:h,panelFullWidth:u,panelWidth:v,labelWidth:w}))},e?.enableHoverEffect||(j=m(j)),s(j)},getTabParentListStyle=e=>{let{panelAlign:t,panelAlignVertical:r}=e??{},o={...l("jc",t),...l("ai",r)};return s(o)},getContainContentStyle=()=>{let e={};return o({w:"100%"})&&(e={...o({w:"100%"})}),s(e)},getTabItemStyle=(e,t)=>{let l={...e,...o({h:"100%",v:t?"visible":"hidden",pos:t?"relative":"absolute"})};return s(l)};export{getContainContentStyle,getItemStyle,getStyleWrapper,getTabItemStyle,getTabListStyle,getTabParentListStyle};
