import{composeTypographyClassName as e,getGlobalColorStateClass as t,getGlobalColorClass as r}from"@gem-sdk/core";let o=({setting:e,advanced:t,builderProps:r})=>({...r?.uid&&{[r.uid]:!0},...e?.options?.customClass?.wrapper&&{[e.options.customClass.wrapper]:!0},...t?.cssClass&&{[t.cssClass]:!0}}),p=({setting:e})=>{let{excludeFlex:t}=e??{},r="";return t||(r+=" gp-flex"),l(r)},s=({styles:e,setting:t,className:r,isEdit:o,disableEdit:p})=>{let{text:s,options:l}=t??{},a="";if(s||p||(a+="gp-relative empty:gp-pl-[2px] after:gp-content-['Your_custom_text_goes_here'] after:gp-absolute after:gp-select-none after:gp-top-0 after:gp-left-[2px] after:gp-w-full after:gp-truncate after:gp-text-black after:gp-opacity-20 "),e?.enableHoverEffect&&e?.underlineLink){let{underlineLink:t}=e,r=t.hover?"hover:gp-underline":"hover:!gp-no-underline",o=t.normal?"gp-underline":"";a+=` ${r} ${o}`.trim()}o?(a+="     gp-text gp-cursor-pointer !gp-cursor-default",p||(a+=" gp-p-[2px]"),l?.useState&&(a+=" child-item-text gp-border gp-border-transparent hover:!gp-border-[#3C67FF]")):(a+=" gp-text-instant",l?.disablePointerEvent&&(a+=" gp-pointer-events-none"));let g=a.trim().split(" ").reduce((e,t)=>(e[t]=!0,e),{});return{...r&&{[r]:!0},...n(e),...g}};function l(e){return e.split(" ").reduce((e,t)=>(e[t]=!0,e),{})}let n=o=>{let p=e(o?.typo);return{...p&&{[p]:!0},...o?.textColor&&{[r("text",o?.textColor)]:!0},...!o?.textColor&&{[t("text",o?.color)]:!0}}};export{l as composeClasses,o as getClasses,p as getContainerClasses,s as getTextClasses,n as globalTypoClasses};
