import{r as a,h as s,g as e}from"./p-b891c2f1.js";import{o as t}from"./p-494248b1.js";import{_ as i}from"./p-684c85b4.js";import"./p-aafd8ea4.js";import"./p-112455b1.js";const r=class{constructor(s){a(this,s)}componentWillLoad(){this.handleSlotChange()}handleSlotChange(){this.hasTitleSlot=!!this.el.querySelector('[slot="title"]')}render(){return s("div",{part:"base",class:{card:!0,"card--borderless":this.borderless,"card--no-padding":this.noPadding}},s("slot",null))}get el(){return e(this)}};t(r,["loading"],!1),r.style=":host{display:block;--overflow:visible}.card{font-family:var(--sc-font-sans);overflow:var(--overflow)}.card:not(.card--borderless){padding:var(--sc-spacing-large);background:var(--sc-color-white);border:1px solid var(--sc-color-gray-300);border-radius:var(--sc-input-border-radius-medium);box-shadow:var(--sc-shadow-small)}.card:not(.card--borderless).card--no-padding{padding:0}.title--divider{display:none}.card--has-title-slot .card--title{font-weight:var(--sc-font-weight-bold);line-height:var(--sc-line-height-dense)}.card--has-title-slot .title--divider{display:block}::slotted(*){margin-bottom:var(--sc-form-row-spacing)}::slotted(*:first-child){margin-top:0}::slotted(*:last-child){margin-bottom:0 !important}";const o=class{constructor(s){a(this,s)}render(){return s("div",{class:"dashboard-module"},!!this.error&&s("sc-alert",{open:!!this.error,type:"danger"},s("span",{slot:"title"},i("Error","surecart")),this.error),s("div",{class:"heading"},s("div",{class:"heading__text"},s("div",{class:"heading__title",part:"heading-title"},s("slot",{name:"heading"},this.heading)),s("div",{class:"heading__description",part:"heading-description"},s("slot",{name:"description"}))),s("slot",{name:"end"})),s("slot",null))}};o.style=":host{display:block;position:relative}.dashboard-module{display:grid;gap:var(--sc-dashboard-module-spacing, 1em)}.heading{font-family:var(--sc-font-sans);display:flex;flex-wrap:wrap;gap:2em;align-items:center;justify-content:space-between}.heading__text{display:grid;flex:1;gap:calc(var(--sc-dashboard-module-spacing, 1em) / 2)}.heading__title{font-size:var(--sc-dashbaord-module-heading-size, var(--sc-font-size-x-large));font-weight:var(--sc-dashbaord-module-heading-weight, var(--sc-font-weight-bold));line-height:var(--sc-dashbaord-module-heading-line-height, var(--sc-line-height-dense))}.heading__description{font-size:var(--sc-font-size-normal);line-height:var(--sc-line-height-dense);color:var(--sc-color-gray-500)}";export{r as sc_card,o as sc_dashboard_module}