import{r as e,h as a,H as t,g as r}from"./p-add854e8.js";import{a as o}from"./p-479b8fc9.js";const n=class{constructor(a){e(this,a),this.activeSlots={header:!1,footer:!1}}connectedCallback(){this._handleSlotChange=this._handleSlotChange.bind(this)}_handleSlotChange(e){const a=o(this.el,e);this.activeSlots=Object.assign(Object.assign({},this.activeSlots),{[e]:a})}render(){return a(t,null,a("div",{class:"rux-card",part:"container"},a("div",{class:{"rux-card__header":!0,hidden:!this.activeSlots.header},part:"header"},a("slot",{name:"header",onSlotchange:()=>this._handleSlotChange("header")})),a("div",{class:"rux-card__body",part:"body"},a("slot",null)),a("div",{class:{"rux-card__footer":!0,hidden:!this.activeSlots.footer},part:"footer"},a("slot",{name:"footer",onSlotchange:()=>this._handleSlotChange("footer")}))))}get el(){return r(this)}};n.style=":host{--card-header-padding:var(--spacing-2, 0.5rem);--card-footer-padding:var(--spacing-2, 0.5rem);--body-padding:var(--card-footer-padding, 0.5rem);display:block}.hidden,:host([hidden]){display:none}.rux-card{border:1px solid var(--card-color-border, #51555b);border-radius:var(--radius-base, 3px);background:var(--color-background-base-default, #101923);box-shadow:var(--shadow-overlay,  0px 4px 4px 1px rgba(0, 0, 0, 0.45))}.rux-card__header{padding:var(--card-header-padding);font-family:var(--font-heading-3-font-family, 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);font-size:var(--font-heading-3-font-size, 1.25rem);font-weight:var(--font-heading-3-font-weight, 500);letter-spacing:var(--font-heading-3-letter-spacing, 0.0015em);line-height:var(--font-heading-3-line-height, calc(24 / 20));box-sizing:border-box;text-align:left}.rux-card__body{padding:var(--body-padding);box-sizing:border-box;font-family:var(--font-body-1-font-family, 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);font-size:var(--font-body-1-font-size, 1rem);font-weight:var(--font-body-1-font-weight, 400);line-height:var(--font-body-1-line-height, calc(24 / 16));letter-spacing:var(--font-body-1-letter-spacing, 0.005em);text-align:left}.rux-card__footer{padding-left:var(--card-footer-padding, 0.5rem);padding-right:var(--card-footer-padding, 0.5rem);padding-top:var(--card-footer-padding, 0.5rem);padding-bottom:var(--card-footer-padding, 0.5rem);box-sizing:border-box;font-family:var(--font-body-1-font-family, 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);font-size:var(--font-body-1-font-size, 1rem);font-weight:var(--font-body-1-font-weight, 400);line-height:var(--font-body-1-line-height, calc(24 / 16));letter-spacing:var(--font-body-1-letter-spacing, 0.005em);text-align:left}";export{n as rux_card}