"use strict";var core=require("@gem-sdk/core"),helper=require("../../common/helper.js");const SHOPIFY_CHECKBOX_GAP_FALLBACK="9px",composeStyles=e=>core.filterTruthyStyles(e),getWrapperStyles=({styles:e})=>{let{globalSize:t}=e??{},r=core.makeGlobalSize(t);return composeStyles({...r?.width?.["--w"]?r.width:{"--w":"100%"},...r.padding,"--ta":e?.textAlign})},getContainerStyles=({styles:e})=>{let{horizontalSpacing:t}=e??{},r=t??"9px";return{"--w":e?.width,justifyContent:"start",alignItems:"start",gridTemplate:`"checkbox gap label" auto / auto ${r} auto`}},getTextStyle=({styles:e})=>{let{typo:t}=e??{},r={display:"block",maxWidth:"100%",gridArea:"label",overflowWrap:"break-word"};if(!t)return core.filterTruthyStyles({...r});let o={"text-transform":t.textTransform,color:helper.makeTextColor(t.textColor,t.fontWeight),"font-weight":helper.makeFontWeight(t.fontWeight),"font-size":helper.makeFontSize(t.fontSize)};return core.filterTruthyStyles({...r,...o})};exports.getContainerStyles=getContainerStyles,exports.getTextStyle=getTextStyle,exports.getWrapperStyles=getWrapperStyles;
