import{composeTypographyClassName as e,cls as s,getGlobalColorClass as t}from"@gem-sdk/core";let getClassContainerCollectionDes=({setting:o})=>{let r=e(o?.typo,o?.typography);return composeClasses(s("gp-relative p-description-wrapper gp-p-description-text gp-break-words safari:[&_p]:gp-inline safari:[&_p]:after:gp-whitespace-pre",r,t("text",o?.color),"data-[browser=safari]:after:gp-content-[' '] data-[browser=safari]:after:gp-absolute data-[browser=safari]:after:gp-left-0 data-[browser=safari]:after:gp-right-0 data-[browser=safari]:after:gp-bottom-0 data-[browser=safari]:after:gp-w-full data-[browser=safari]:after:gp-h-1/2 data-[browser=safari]:after:gp-bg-gradient-to-t data-[browser=safari]:after:gp-from-white"))},getClassEmptyCollectionDes=()=>composeClasses(s("gp-p-2 gp-text-center gp-text-sm gp-font-semibold gp-text-gray-500 gp-py-2 !gp-text-center")),getClassButtonViewMore=({setting:o})=>{let r=e(o?.typo,o?.typography);return composeClasses(s("p-description-show-more","gp-mt-4 hover:gp-opacity-80 gp-transition-all gp-w-full gp-items-center",r,t("text",o?.showMoreColor)))},getDescriptionClasses=({advanced:e})=>composeClasses(s("gp-collection-description",e?.cssClass)),getShowMoreIconClasses=()=>composeClasses(s("gp-show-more-icon gp-ml-1 gp-flex gp-items-center")),getShowMoreTextClasses=()=>composeClasses(s("gp-show-more-text")),getClassPreBuilt=()=>composeClasses(s("gp-rotate-180 gp-hidden")),composeClasses=e=>e.trim().split(/\s+/).reduce((e,s)=>(e[s]=!0,e),{});export{getClassButtonViewMore,getClassContainerCollectionDes,getClassEmptyCollectionDes,getClassPreBuilt,getDescriptionClasses,getShowMoreIconClasses,getShowMoreTextClasses};
