import{getStyleBgColor as e,makeStyleResponsive as t,getGlobalColorStateStyle as r,makeStyle as l,getSingleColorVariable as a,removeNullUndefined as g,getGlobalColorCSSProp as o}from"@gem-sdk/core";import{makeStyleStateConditionActive as i}from"./helpers.js";let getSpacingStyles=e=>({"--gap-desktop":`${e?.desktop}`,"--gap-tablet":`${e?.tablet??e?.desktop}`,"--gap-mobile":`${e?.mobile??e?.tablet??e?.desktop}`}),getBreadcrumbChildItemStyles=e=>{let{breadcrumbItemIndex:t,lengthOfBreadcrumb:o,appendTypoStyle:m,fontWeight:p,labelColor:d}=e,s=t+1===o;return{...s?{}:r("c",d),...l({c:a(s&&d?.active||d?.normal)}),...g(i("weight",p,s)),...m,...s?g(i("weight",p,s)):{}}},generateBreadcrumbChildIconStyles=(e,t)=>{let r=e?.desktop??0,l=e?.tablet??r,a=e?.mobile??l;return{"--height-desktop":`${r}px`,"--height-tablet":`${l}px`,"--height-mobile":`${a}px`,"--c":o(t)}},getBreadcrumbStyles=(r,l)=>{let{background:a,align:g}=l??{};return{...r,...e(a??{}),...t("jc",g)}};export{generateBreadcrumbChildIconStyles,getBreadcrumbChildItemStyles,getBreadcrumbStyles,getSpacingStyles};
