"use strict";var e=require("@gem-sdk/core");function t(e){return e.split(" ").reduce((e,t)=>(e[t]=!0,e),{})}const r=t=>{let r=e.composeTypographyClassName(t?.typo);return{...r&&{[r]:!0},...t?.textColor&&{[e.getGlobalColorClass("text",t?.textColor)]:!0},...!t?.textColor&&{[e.getGlobalColorStateClass("text",t?.color)]:!0}}};exports.composeClasses=t,exports.getClasses=({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}}),exports.getContainerClasses=({setting:e})=>{let{excludeFlex:r}=e??{},o="";return r||(o+=" gp-flex"),t(o)},exports.getTextClasses=({styles:e,setting:t,className:o,isEdit:s,disableEdit:p})=>{let{text:l,options:a}=t??{},n="";if(l||p||(n+="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":"";n+=` ${r} ${o}`.trim()}s?(n+="     gp-text gp-cursor-pointer !gp-cursor-default",p||(n+=" gp-p-[2px]"),a?.useState&&(n+=" child-item-text gp-border gp-border-transparent hover:!gp-border-[#3C67FF]")):(n+=" gp-text-instant",a?.disablePointerEvent&&(n+=" gp-pointer-events-none"));let g=n.trim().split(" ").reduce((e,t)=>(e[t]=!0,e),{});return{...o&&{[o]:!0},...r(e),...g}},exports.globalTypoClasses=r;
