"use strict";var e=require("@gem-sdk/core"),t=require("../../helpers.js"),l=require("./helpers.js"),r=require("../settings/configs/translate.js");exports.getContainContentStyle=()=>{let l={};return e.makeStyle({w:"100%"})&&(l={...e.makeStyle({w:"100%"})}),t.filterTruthyStyles(l)},exports.getItemStyle=(r,a)=>{let{labelColor:o,labelBgColor:i,borderTab:s,labelAlign:n,enableActiveEffect:y,panelWidth:S,position:d,labelWidth:b}=r??{},g={};return g={...g=a&&(!0===y||void 0===y)?{...e.makeStyleResponsive("jc",n),...e.makeStyle({c:e.getSingleColorVariable(o?.active??o?.normal),bgc:e.getSingleColorVariable(i?.active??i?.normal),bs:s?.active?.border??s?.normal?.border,bw:s?.active?.width??s?.normal?.width,bc:e.getSingleColorVariable(s?.active?.color??s?.normal?.color)})}:{...e.makeStyleResponsive("jc",n),...e.getGlobalColorStateStyle("c",o),...e.getGlobalColorStateStyle("bgc",i),...e.handleConvertBorderStyle(s),...e.handleConvertBorderWidth(s),...e.handleConvertBorderColor(s)},...e.makeStyleResponsive("w",l.getStyleWidthByPositionResponsive({position:d,panelWidth:S,labelWidth:b}))},r?.enableHoverEffect||(g=e.filterHoverVariables(g)),t.filterTruthyStyles(g)},exports.getStyleWrapper=({setting:l,style:a,uid:o,pageContext:i,type:s="React"})=>{let{background:n,containWidth:y,align:S}=l??{},d="Liquid"===s?t.getBackgroundTranslated({background:n,uid:o,enableTranslate:!!r.Tabs?.background?.id,pageContext:i,isTranslateVideo:!1}):n,b={...a,...e.getStyleBackgroundByDevice(d),...e.getGradientBgrStyleByDevice(d,{desktop:!0,tablet:!0,mobile:!0}),...e.makeStyleResponsive("w",e.makeWidth(y)),...e.makeStyleResponsive("as",S)};return t.filterTruthyStyles(b)},exports.getTabItemStyle=(l,r)=>{let a={...l,...e.makeStyle({h:"100%",v:r?"visible":"hidden",pos:r?"relative":"absolute"})};return t.filterTruthyStyles(a)},exports.getTabListStyle=l=>{let{panelAlign:r}=l??{},a={...e.makeStyleResponsive("jc",r),...e.makeStyleResponsive("w",{desktop:"100%",tablet:"100%",mobile:"100%"})};return t.filterTruthyStyles(a)},exports.getTabParentListStyle=l=>{let{panelAlign:r,panelAlignVertical:a}=l??{},o={...e.makeStyleResponsive("jc",r),...e.makeStyleResponsive("ai",a)};return t.filterTruthyStyles(o)};
