"use strict";var e=require("@gem-sdk/core");const s=e.composeClasses("gp-overflow-clip gp-group"),o=e.composeClasses("gp-inline-flex"),t=e.composeClasses("gp-flex gp-w-full gp-items-center gp-break-all"),l=e.composeClasses("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");exports.extendClasses=()=>e.composeClasses(e.cls("gp-hidden gp-rotate-90 -gp-rotate-90 gp-rotate-180")),exports.getContainerClasses=(s,o)=>{let t=e.cls("gp-flex gp-flex-col gp-w-full",{"gp-px-[1px]":"edit"===o},s);return e.composeClasses(t)},exports.getContentClasses=s=>e.composeClasses(e.cls(`${s}`,"gp-overflow-hidden",`gp-child-item-${s}`,"gp-accordion-item")),exports.getDropdownClasses=(s,o)=>{let{isShow:t,uniqueId:l,makeIcon:p}=o||{},{itemHeaderSpacing:r,headerContentPadding:g,bgColor:a}=s??{};return e.composeClasses(e.cls("gp-flex gp-accordion-item_header gp-cursor-pointer gp-items-center",p?"gp-gap-[16px]":"",l,`gp-accordion-item-${l}-${o?.index}`,r?.type&&!g?e.genSizeClass(r?.type):"",{[e.getGlobalColorClass("bg",a?.active)]:t,[e.getGlobalColorStateClass("bg",a)]:!t}))},exports.getGapClasses=t,exports.getIconClasses=o,exports.getIconRotateClasses=(s,o)=>{let{isShow:t,iconExpand:l,iconSvg:p,iconCollapse:r}=o||{},{color:g}=s??{};return e.composeClasses(e.cls({"-gp-rotate-90":!0===t&&"plus"!==p&&!l,"gp-rotate-90":!1===t&&!r},"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",t?e.getGlobalColorClass("text",g?.active):e.getGlobalColorStateClass("text",g),t?"gp-text-[var(--icon-expand-active-color)]":""))},exports.getItemContainerClasses=s,exports.getLayoutIconClasses=l,exports.getRenderChildrenClasses=(s,o)=>{let{isShow:t,hasTransitionedIn:l,isMounted:p}=o||{},{itemContentSpacing:r,contentSizePadding:g}=s??{};return e.composeClasses(e.cls("gp-accordion-item_body gp-transition-all gp-grid gp-duration-500 gp-overflow-hidden",{"gp-grid-rows-[1fr]":t?l:p,"gp-grid-rows-[0fr]":t?!l:!p},r?.type&&!g?e.genSizeClass(r?.type):""))};
