import{getGlobalColorClass as e}from"@gem-sdk/core";function composeClasses(e){return e.split(" ").reduce((e,s)=>(e[s]=!0,e),{})}let getContentClasses=({isLiquid:e,autoHideWhenTimeout:s})=>{let t="gp-flex gp-flex-wrap gp-w-max gp-relative ";return e&&s&&(t+=" !gp-hidden"),{...composeClasses(t)}},getWrapperClasses=e=>{let s="gp-flex";return e&&(s+=` ${e}`),{...composeClasses(s)}},getDateClasses=e=>{let s="gp-flex-1 gp-text-center gp-min-w-max !gp-max-w-max";return e||(s+=" gp-content-center"),{...composeClasses(s)}},getTextFrontClasses=s=>{let t="gp-countdown-number",{colorNumber:p}=s||{};return e("text",p)&&(t+=` ${e("text",p)}`),{...composeClasses(t)}},getTextBackClasses=(s,t)=>{let p="",{colorLabel:g}=s||{};return e("text",g)&&(p+=` ${e("text",g)}`),t||(p+=" gp-hidden"),{...composeClasses(p)}},getLinkClasses=()=>({...composeClasses("gp-absolute gp-inset-0 gp-z-1 gp-pointer-events-none")}),getTextExpireClasses=()=>({...composeClasses("gp-flex gp-h-12 gp-items-center gp-justify-center gp-bg-[#d6d6d6] gp-opacity-70")});export{getContentClasses,getDateClasses,getLinkClasses,getTextBackClasses,getTextExpireClasses,getTextFrontClasses,getWrapperClasses};
