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