"use strict";var core=require("@gem-sdk/core"),helpers=require("./helpers.js");const getClassesWrapper=({builderProps:e,advancedCssClass:s})=>{let t="gp-flex";return e?.uid&&(t+=` ${e?.uid}`),s&&(t+=` ${s}`),{...core.composeClasses(t)}},getContainClasses=({setting:e})=>{let{position:s}=e??{},t="gp-flex ";return helpers.getWrapClassByPositionResponsive(s)&&(t+=` ${helpers.getWrapClassByPositionResponsive(s)}`),{...core.composeClasses(t)}},getTabListClasses=({setting:e})=>{let{position:s}=e??{},t="gp-tab-header-list gp-flex gp-flex-wrap gp-overflow-hidden ";return helpers.getUlClassByPositionResponsive(s)&&(t+=` ${helpers.getUlClassByPositionResponsive(s)}`),{...core.composeClasses(t)}},getItemClasses=({setting:e,isNotLiquid:s,isActive:t,currentDevice:a})=>{let{labelBgColor:o,labelColor:l,position:r,enableActiveEffect:p}=e??{},g="gp-tab-item gp-navs-tab gp-flex gp-cursor-pointer gp-py-2 gp-px-4 gp-whitespace-nowrap";return s&&(t&&p?g+=` ${core.getGlobalColorClass("bg",o?.active)} ${core.getGlobalColorClass("text",l?.active)}`:g+=` ${core.getGlobalColorStateClass("bg",o)} ${core.getGlobalColorStateClass("text",l)}`,a&&r?.[a]&&(g+=` ${r?.[a]}`)),{...core.composeClasses(g)}},getTabParentListClasses=()=>({...core.composeClasses("gp-flex")}),getStyleTagClasses=({panelWidth:e,builderProps:s})=>{let t="",a=helpers.makeStyleLayoutFullWidthResponsive(e,s);return s?.uid&&(t+=` .${s?.uid} .gp-tab-item p {
            word-wrap: break-word;
            white-space: break-spaces;
          }`),a&&(t+=` ${a}`),t},getWrapperContentClasses=()=>({...core.composeClasses("gp-flex gp-flex-1 gp-min-w-0")}),getContainContentClasses=()=>({...core.composeClasses("gp-tab-item-container gp-p-4")}),getTextClasses=()=>({...core.composeClasses("gp-cursor-pointer gp-overflow-hidden gp-whitespace-nowrap !gp-text-inherit")}),getTabItemClasses=({parentUid:e,className:s,isNotLiquid:t,isActive:a})=>{let o="gp-tab-item";return e&&(o+=` gp-child-item-${e}`),s&&(o+=` ${s}`),t&&!a&&(o+=" !gp-hidden"),{...core.composeClasses(o)}};exports.getClassesWrapper=getClassesWrapper,exports.getContainClasses=getContainClasses,exports.getContainContentClasses=getContainContentClasses,exports.getItemClasses=getItemClasses,exports.getStyleTagClasses=getStyleTagClasses,exports.getTabItemClasses=getTabItemClasses,exports.getTabListClasses=getTabListClasses,exports.getTabParentListClasses=getTabParentListClasses,exports.getTextClasses=getTextClasses,exports.getWrapperContentClasses=getWrapperContentClasses;
