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