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