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