import{h as a}from"./p-083180bf.js";import{c as t}from"./p-cef45012.js";function n(n){const s=t({LabelContainer:{"margin-bottom":"none"===n.labelMargin?n.labelMargin:`var(--sl-spacing-${n.labelMargin})`},SectionContainer:{textAlign:n.textAlign||"left",padding:"none"===n.padding?"0":`var(--sl-spacing-${n.padding})`}}),r=s.toString();return a("div",{class:s.classes.SectionContainer,part:"sqm-base"},a("style",{type:"text/css"},r),a("div",{class:s.classes.LabelContainer,part:"sqm-label"},n.label),n.content)}function s(n,s){const r=t({Container:{boxSizing:"border-box",display:n.display||"grid",flexWrap:n.flexWrap||"wrap","grid-template-columns":"row"===n.direction?`repeat(auto-fill, minmax(${n.minWidth}, auto))`:"100%","grid-gap":`var(--sl-spacing-${n.gap})`,padding:"none"===n.padding?"0":`var(--sl-spacing-${n.padding})`,maxWidth:n.maxWidth,margin:n.center&&"auto",justifyContent:n.justifyContent,backgroundColor:n.backgroundColor||"var(--sqm-portal-background)"}}),o=r.toString();return a("div",{class:r.classes.Container,part:"sqm-base"},a("style",{type:"text/css"},"\n  :host{\n    width: 100%;\n    display: block;\n  }",o),s)}export{s as P,n as a}