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