import{composeClasses as e,cls as t,genSizeClass as o,getGlobalColorStateClass as g,getGlobalColorClass as p}from"@gem-sdk/core";let r=(o,g)=>{let p=t("gp-flex gp-flex-col gp-w-full",{"gp-px-[1px]":"edit"===g},o);return e(p)},i=()=>e(t("gp-hidden gp-rotate-90 -gp-rotate-90 gp-rotate-180")),n=e("gp-overflow-clip gp-group"),l=e("gp-inline-flex"),a=(o,r)=>{let{isShow:i,iconExpand:n,iconSvg:l,iconCollapse:a}=r||{},{color:s}=o??{};return e(t({"-gp-rotate-90":!0===i&&"plus"!==l&&!n,"gp-rotate-90":!1===i&&!a},"group-hover:[color:var(--icon-expand-hover-color)] gp-collapsible-icon gp-accordion-item_icon gp-inline-flex gp-items-center gp-justify-center gp-overflow-hidden gp-transition-all gp-duration-200 [&>svg]:!gp-h-[var(--height-iconCollapseSize)] [&>svg]:!gp-w-full",i?p("text",s?.active):g("text",s),i?"gp-text-[var(--icon-expand-active-color)]":""))},s=(r,i)=>{let{isShow:n,uniqueId:l,makeIcon:a}=i||{},{itemHeaderSpacing:s,headerContentPadding:c,bgColor:d}=r??{};return e(t("gp-flex gp-accordion-item_header gp-cursor-pointer gp-items-center",a?"gp-gap-[16px]":"",l,`gp-accordion-item-${l}-${i?.index}`,s?.type&&!c?o(s?.type):"",{[p("bg",d?.active)]:n,[g("bg",d)]:!n}))},c=o=>e(t(`${o}`,"gp-overflow-hidden",`gp-child-item-${o}`,"gp-accordion-item")),d=e("gp-flex gp-w-full gp-items-center gp-break-all"),f=e("group-hover:[color:var(--icon-hover-color)!important] gp-icon gp-inline-flex header-icon gp-items-center gp-justify-center gp-overflow-hidden [&>svg]:!gp-h-[var(--height-configIconSize)] [&>svg]:!gp-w-full"),v=(g,p)=>{let{isShow:r,hasTransitionedIn:i,isMounted:n}=p||{},{itemContentSpacing:l,contentSizePadding:a}=g??{};return e(t("gp-accordion-item_body gp-transition-all gp-grid gp-duration-500 gp-overflow-hidden",{"gp-grid-rows-[1fr]":r?i:n,"gp-grid-rows-[0fr]":r?!i:!n},l?.type&&!a?o(l?.type):""))};export{i as extendClasses,r as getContainerClasses,c as getContentClasses,s as getDropdownClasses,d as getGapClasses,l as getIconClasses,a as getIconRotateClasses,n as getItemContainerClasses,f as getLayoutIconClasses,v as getRenderChildrenClasses};
