import{getStyleBackgroundByDevice as e,getRadiusStyleActiveState as t,getStyleShadow as o,makeStyleResponsive as r,makeStyle as a,getSingleColorVariable as l,getGlobalColorStateStyle as n,handleConvertBorderColor as i,handleConvertBorderWidth as c,handleConvertBorderStyle as d,composeSize as m,makeGlobalSize as b,makeWidth as g}from"@gem-sdk/core";let h=e=>(["--mb","--mb-mobile","--mb-tablet","--d","--d-mobile","--d-tablet"].forEach(t=>{delete e?.[t]}),e),p=e=>b(e?.contentSizePadding),s=(t,o)=>({...h(t),...p(o).gap,...e(t?.backgroundContent),"border-radius":"inherit"}),v=e=>b(e),w=(e,t,o)=>v(o).width["--w"]?v(o).width:r("w",g(e,t)),u=(e,n)=>{let{borderContent:i,backgroundContent:c,roundedContent:d,accordionShadow:m,width:b,fullWidth:g,widthHeightSize:h,iconColor:p,color:s,textColor:v,hasActiveShadow:u}=e??{};return{"--text-hover-color":n?l(v?.active??v?.normal):l(v?.hover??v?.normal),"--icon-expand-hover-color":n?l(s?.active??s?.normal):l(s?.hover??s?.normal),"--icon-expand-active-color":l(s?.active??s?.normal),"--icon-active-color":l(p?.active??p?.normal),"--icon-hover-color":n?l(p?.active??p?.normal):l(p?.hover??p?.normal),...w(b,g,h),...a({bs:i?.border??i?.border,bw:i?.width??i?.width,bc:l(i?.color??i?.color)}),...r("bg",c),...o({value:m,styleAppliedFor:"box-shadow",isEnableShadow:m?.enable||u}),...t({...d,active:{...d||{},radiusType:"custom"}})}},x=e=>b(e),y=e=>a({fd:"left"===e?"row":"row-reverse",jc:"right"===e?"space-between":""}),S=(e,t)=>{let{headerContentPadding:o,widthHeightSize:r,itemHeaderSpacing:b,bgColor:g,headerBorder:h}=e??{},{isShow:p,iconPosition:s}=t??{};return{...o&&x(o).padding,...b?.type||o?{}:m(b?.custom),...v(r).height,...y(s),...p?a({bgc:l(g?.active??g?.normal),bs:h?.active?.border??h?.normal?.border,bw:h?.active?.width??h?.normal?.width,bc:l(h?.active?.color??h?.normal?.color)}):{...n("bgc",g),...d(h),...c(h),...i(h),...n("bgc",g)}}},f=(e,t)=>({...t?a({c:l(e?.active??e?.normal)}):a({c:l(e?.normal)})}),C=(e,t,o)=>{let{color:r}=e??{};return{...a({c:l(t?r?.active??r?.normal??"transparent":r?.normal??"transparent")}),width:`${o??16}px`,height:`${o??16}px`}},I=e=>b(e),$=(e,t)=>({...I(e).gap,...r("jc",t),...r("ta",t)}),R=(e,t)=>{let o=t?`${t}px`:"16px";return{...e,width:o,height:o,"--height":o}},T=e=>({"grid-template-rows":`${+!!e}fr`}),j=()=>({"grid-template-columns":"minmax(auto, 100%)"}),k=e=>b(e)?.padding;export{s as getContainerStyles,S as getDropdownStyles,f as getDropdownTextStyles,$ as getGapStyles,k as getIconGlobalSize,C as getIconRotateStyles,R as getIconStyles,u as getItemContainerStyles,j as getRenderChildrenStyles,T as getTemplateRow};
