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