"use strict";var core=require("@gem-sdk/core");const getClassContainerLine=({className:e,styles:t,advanced:s})=>{let{align:o}=t??{};return composeClasses(core.cls("gp-flex",{"gp-justify-start":o?.desktop==="left","gp-justify-center":o?.desktop==="center","gp-justify-end":o?.desktop==="right","tablet:gp-justify-start":o?.tablet==="left","tablet:gp-justify-center":o?.tablet==="center","tablet:gp-justify-end":o?.tablet==="right","mobile:gp-justify-start":o?.mobile==="left","mobile:gp-justify-center":o?.mobile==="center","mobile:gp-justify-end":o?.mobile==="right"},e,s?.cssClass))},getClassWrapNotIcon=({className:e,setting:t})=>{let{enableIconText:s}=t??{};return composeClasses(core.cls({"gp-hidden":s?.desktop,"gp-block":!s?.desktop,"tablet:gp-hidden":s?.tablet,"tablet:gp-block":!s?.tablet,"mobile:gp-hidden":s?.mobile,"mobile:gp-block":!s?.mobile},e))},getClassWrapIcon=({className:e,setting:t})=>{let{enableIconText:s}=t??{};return composeClasses(core.cls("gp-items-center",{"gp-hidden":!s?.desktop,"gp-flex":s?.desktop,"tablet:gp-hidden":!s?.tablet,"tablet:gp-flex":s?.tablet,"mobile:gp-hidden":!s?.mobile,"mobile:gp-flex":s?.mobile},e))},getClassIcon=()=>composeClasses(core.cls("gp-inline-flex gp-flex-none gp-items-center gp-justify-center")),getClassText=({styles:e})=>{let t=core.composeTypographyClassName(e?.typo,e?.typography);return composeClasses(core.cls("gp-inline-flex gp-flex-none gp-items-center gp-justify-center",t))},getClassContainerDivider=({className:e,fixedSide:t,config:s})=>composeClasses(core.cls({"gp-hidden":s?.position===t,"gp-flex":s?.position!==t},e));function composeClasses(e){return e.split(" ").reduce((e,t)=>(e[t]=!0,e),{})}exports.getClassContainerDivider=getClassContainerDivider,exports.getClassContainerLine=getClassContainerLine,exports.getClassIcon=getClassIcon,exports.getClassText=getClassText,exports.getClassWrapIcon=getClassWrapIcon,exports.getClassWrapNotIcon=getClassWrapNotIcon;
