import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";import{d as defineCustomElement$2}from"./sc-alert2.js";import{d as defineCustomElement$1}from"./sc-icon2.js";const scDashboardModuleCss=":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:1em;align-items:center;justify-content:space-between}.heading__text{display:grid;flex:1;gap:calc(var(--sc-dashboard-module-spacing, 1em) / 2)}@media screen and (min-width: 720px){.heading{gap:2em}}.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));white-space:nowrap}.heading__description{font-size:var(--sc-font-size-normal);line-height:var(--sc-line-height-dense);opacity:0.85}",ScDashboardModuleStyle0=scDashboardModuleCss,ScDashboardModule=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.heading=void 0,this.error=void 0,this.loading=void 0}render(){return h("div",{key:"61bd62c448499b3fe75a9cc5991a0ee793eacdea",class:"dashboard-module",part:"base"},!!this.error&&h("sc-alert",{key:"c96cb2f11bb2f41e7b5a7d075fc77f6da57358bb",exportparts:"base:error__base, icon:error__icon, text:error__text, title:error__title, message:error__message",open:!!this.error,type:"danger"},h("span",{key:"dfd50cda5bccfaa03080b058556f47b21080174f",slot:"title"},wp.i18n.__("Error","surecart")),this.error),h("div",{key:"4e848c7819afd75a839537384214a8232b0610b9",class:"heading",part:"heading"},h("div",{key:"4459f7080c29de3811c1fa9702868055335f13e7",class:"heading__text",part:"heading-text"},h("div",{key:"90e367413fc8d03aed466728eb2e35b754c4d617",class:"heading__title",part:"heading-title"},h("slot",{key:"c443328ccb7543d2ae9d11dfe59e31057fda0a1b",name:"heading","aria-label":this.heading},this.heading)),h("div",{key:"d647fdc9aa6f0bdc57bd1957ef387211a96f0de5",class:"heading__description",part:"heading-description"},h("slot",{key:"c5b3c8d42146c9ba716f006d8edd4952bf2d8b04",name:"description"}))),h("slot",{key:"b9c04ab9d269cda6e3ca4a815aa215052aecf569",name:"end"})),h("slot",{key:"048b2e4353846ec6575b208f33d5e882c8868308"}))}static get style(){return ScDashboardModuleStyle0}},[1,"sc-dashboard-module",{heading:[1],error:[1],loading:[4]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["sc-dashboard-module","sc-alert","sc-icon"].forEach((e=>{switch(e){case"sc-dashboard-module":customElements.get(e)||customElements.define(e,ScDashboardModule);break;case"sc-alert":customElements.get(e)||defineCustomElement$2();break;case"sc-icon":customElements.get(e)||defineCustomElement$1()}}))}export{ScDashboardModule as S,defineCustomElement as d};