import{cls as e,composeTypographyClassName as s}from"@gem-sdk/core";let appendTypoClass=e=>s(e?.typo),createLayoutClasses=(s,p)=>{let o=e("gp-flex gp-items-center",p,{"gp-flex-col":s?.fileUploadLayout==="vertical"});return composeClasses(o)},createIconContentClasses=()=>composeClasses("group-hover:[color:var(--text-hover-color)] gp-file-upload__icon gp-inline-flex gp-items-center gp-justify-center gp-overflow-hidden [&>svg]:!gp-h-[var(--height-desktop)] [&>svg]:!gp-w-full tablet:[&>svg]:!gp-h-[var(--height-tablet)] mobile:[&>svg]:!gp-h-[var(--height-mobile)]"),createTypoClasses=s=>composeClasses(e(appendTypoClass(s),"gp-file-upload__text group-hover:[color:var(--text-hover-color)]")),createContentWidthClasses=()=>composeClasses("gp-flex gp-items-center gp-file-upload__content"),createInputClasses=()=>composeClasses("gp-input_picker gp-block gp-opacity-0 gp-w-0 gp-h-0 gp-top-2/4 gp-left-2/4 -gp-translate-x-1/2 -gp-translate-y-1/2 gp-absolute gp-cursor-pointer gp-p-0"),createWrapContainerClasses=e=>composeClasses(`gp-group gp-cursor-pointer gp-relative gp-flex gp-items-center gp-file-upload_container ${e}`),createPreviewClasses=()=>composeClasses("gp-file_preview gp-flex gp-gap-2 gp-overflow-x-auto gp-whitespace-nowrap gp-mt-2"),createPreviewItemClasses=()=>composeClasses("gp-group gp-file_preview_item gp-file_preview_item_0 gp-hidden gp-rounded-[2.62px] gp-min-h-[104px] gp-relative gp-flex-[0_0_calc((100%_/_4)_-_6px)] gp-min-w-[104px] gp-box-border"),createPreviewRemoveClasses=()=>composeClasses("remove gp-hidden group-hover:!gp-flex"),createMessageClasses=()=>composeClasses("gp-hidden error-message"),composeClasses=e=>e.trim().split(/\s+/).reduce((e,s)=>(e[s]=!0,e),{});export{composeClasses,createContentWidthClasses,createIconContentClasses,createInputClasses,createLayoutClasses,createMessageClasses,createPreviewClasses,createPreviewItemClasses,createPreviewRemoveClasses,createTypoClasses,createWrapContainerClasses};
