"use strict";var core=require("@gem-sdk/core"),helpers=require("./helpers.js");const 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:r,appendTypoStyle:l,fontWeight:o,labelColor:a}=e,c=t+1===r;return{...c?{}:core.getGlobalColorStateStyle("c",a),...core.makeStyle({c:core.getSingleColorVariable(c&&a?.active||a?.normal)}),...core.removeNullUndefined(helpers.makeStyleStateConditionActive("weight",o,c)),...l,...c?core.removeNullUndefined(helpers.makeStyleStateConditionActive("weight",o,c)):{}}},generateBreadcrumbChildIconStyles=(e,t)=>{let r=e?.desktop??0,l=e?.tablet??r,o=e?.mobile??l;return{"--height-desktop":`${r}px`,"--height-tablet":`${l}px`,"--height-mobile":`${o}px`,"--c":core.getGlobalColorCSSProp(t)}},getBreadcrumbStyles=(e,t)=>{let{background:r,align:l}=t??{};return{...e,...core.getStyleBgColor(r??{}),...core.makeStyleResponsive("jc",l)}};exports.generateBreadcrumbChildIconStyles=generateBreadcrumbChildIconStyles,exports.getBreadcrumbChildItemStyles=getBreadcrumbChildItemStyles,exports.getBreadcrumbStyles=getBreadcrumbStyles,exports.getSpacingStyles=getSpacingStyles;
