"use strict";var e=require("@gem-sdk/core");exports.getColorClass=({soldOutMarkLine:p,available:r})=>{let o=e.cls({"before:gp-absolute before:gp-top-[50%] before:gp-block before:gp-w-full before:gp--rotate-45 before:gp-border":p&&!r}),l=`color gp-relative gp-h-full gp-w-full gp-overflow-hidden gp-min-w-fit gp-flex gp-color-circle ${o}`.trim();return e.composeClasses(l)},exports.getTextClass=({optionTypo:p,optionTypography:r,isColorType:o,isUploadImageType:l})=>{let t=`${e.composeTypographyClassName(p,r)}`,g=e.cls({"gp-text-center":!0,[t]:!0,"gp-overflow-hidden gp-text-ellipsis gp-px-1":o||l}),s=`${g}`.trim();return e.composeClasses(s)},exports.getWrapperClass=p=>{let{typeOfOption:r,optionTypo:o,optionTypography:l,variantKey:t,soldOutMarkLine:g,available:s}=p,a="color"===r,f=`${e.composeTypographyClassName(o,l)}`,i=e.cls({...t&&{[t]:!0},[f]:!0,"gp-p-[4px]":a,"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]":g&&!s&&!a}),c=`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`,b=`${c} ${i}`.trim();return e.composeClasses(b)},exports.getWrapperTextClass=(p,r)=>{let o=e.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":p}),l=`option-value gp-overflow-hidden gp-relative ${o}`.trim();return e.composeClasses(l)};
