"use strict";var core=require("@gem-sdk/core");const getWrapperClass=e=>{let{typeOfOption:r,optionTypo:p,optionTypography:o,variantKey:l,soldOutMarkLine:t,available:s}=e,g="color"===r,a=`${core.composeTypographyClassName(p,o)}`,c=core.cls({...l&&{[l]:!0},[a]:!0,"gp-p-[4px]":g,"before:gp-absolute before:gp-top-[50%] before:gp-z-1 before:gp-block before:gp-w-full before:-gp-rotate-45 before:gp-border-t before:gp-border-[#A1A1A1] before:gp-bg-[#333]":t&&!s&&!g}),f=`gp-relative gp-flex gp-cursor-pointer gp-items-center gp-justify-center gp-text-center option-value-wrapper gp-overflow-hidden gp-w-full gp-h-full data-[disabled='disabled']:gp-pointer-events-none data-[disabled='disabled']:!gp-cursor-not-allowed
         data-[hidden='false']:gp-flex`,i=`${f} ${c}`.trim();return core.composeClasses(i)},getWrapperTextClass=(e,r)=>{let p=core.cls({"color gp-line-clamp-2 gp-flex gp-h-full gp-w-full gp-items-center gp-justify-center":r,"gp-flex gp-flex-col gp-justify-center gp-items-center gp-gap-[6px":e}),o=`option-value gp-overflow-hidden gp-relative ${p}`.trim();return core.composeClasses(o)},getTextClass=({optionTypo:e,optionTypography:r,isColorType:p,isUploadImageType:o})=>{let l=`${core.composeTypographyClassName(e,r)}`,t=core.cls({"gp-text-center":!0,[l]:!0,"gp-overflow-hidden gp-text-ellipsis gp-px-1":p||o}),s=`${t}`.trim();return core.composeClasses(s)},getColorClass=({soldOutMarkLine:e,available:r})=>{let p=core.cls({"before:gp-absolute before:gp-top-[50%] before:gp-block before:gp-w-full before:gp--rotate-45 before:gp-border":e&&!r}),o=`color gp-relative gp-h-full gp-w-full gp-overflow-hidden gp-min-w-fit gp-flex gp-color-circle ${p}`.trim();return core.composeClasses(o)};exports.getColorClass=getColorClass,exports.getTextClass=getTextClass,exports.getWrapperClass=getWrapperClass,exports.getWrapperTextClass=getWrapperTextClass;
