import{r as t,h as e,H as a,g as i}from"./p-8e4e97b4.js";import{i as s,o as c,a as o}from"./p-b77b1e1f.js";import"./p-6215e2ae.js";const d=':host{gap:var(--ic-space-xs);padding:var(--ic-space-xs)}:host,.action-area{display:flex;flex-direction:column}.action-area{gap:var(--ic-space-md)}:host ::slotted(svg),:host ::slotted(img){border-radius:var(--ic-space-xxs)}:host(.ic-empty-state-right),:host(.ic-empty-state-right) .action-area{align-items:flex-end;text-align:right}:host(.ic-empty-state-center),:host(.ic-empty-state-center) .action-area{align-items:center;text-align:center}:host(.image-medium) ::slotted(svg),:host(.image-medium) ::slotted(img){height:calc(3 * var(--ic-space-lg)) !important;width:calc(3 * var(--ic-space-lg)) !important}:host(.image-small) ::slotted(svg),:host(.image-small) ::slotted(img){height:var(--ic-space-xxl) !important;width:var(--ic-space-xxl) !important}:host(.image-large) ::slotted(svg),:host(.image-large) ::slotted(img){height:calc(4 * var(--ic-space-xl)) !important;width:calc(4 * var(--ic-space-xl)) !important}::slotted([slot="heading"]),.empty-state-heading{--ic-typography-color:var(--ic-empty-state-title)}::slotted([slot="subheading"]),.empty-state-subheading{--ic-typography-color:var(--ic-empty-state-subtitle)}::slotted([slot="body"]),.empty-state-body{--ic-typography-color:var(--ic-empty-state-body)}';const r=d;const l=class{constructor(e){t(this,e);this.hostMutationObserver=null;this.aligned="left";this.imageSize="medium";this.theme="inherit"}disconnectedCallback(){var t;(t=this.hostMutationObserver)===null||t===void 0?void 0:t.disconnect()}componentDidLoad(){!s(this.el,"heading")&&c([{prop:this.heading,propName:"heading"}],"Empty State");this.hostMutationObserver=new MutationObserver((t=>o(t,["image","actions"],this)));this.hostMutationObserver.observe(this.el,{childList:true})}render(){const{aligned:t,body:i,maxLines:c,heading:o,imageSize:d,subheading:r,theme:l}=this;return e(a,{key:"60295d4ae9099c9e9adf17a6d1b1cb94a061ce1f",class:{[`ic-empty-state-${t}`]:true,[`image-${d}`]:s(this.el,"image"),[`ic-theme-${l}`]:l!=="inherit"}},s(this.el,"image")&&e("slot",{key:"a0ccf1c16408f306d5a1abc34a8b5540be75b986",name:"image"}),e("div",{key:"d1f6a21c75513a3a2f8fdcba4f0a671013709651"},e("slot",{key:"60cc4c4434d29d12f771e65bba5ff09918c904d3",name:"heading"},e("ic-typography",{key:"6ef2441bed80f38f27b8005c89eeec7de0691587",variant:"h4",class:"empty-state-heading"},o)),e("slot",{key:"dae616cdcebd5dacee04547d42b2f77203d5c48a",name:"subheading"},e("ic-typography",{key:"6946d005ecc441b3fee96309fb1c479470c192de",variant:"subtitle-small",class:"empty-state-subheading"},r)),e("slot",{key:"0ab7b57d4f33e7aad6fca48c8036846e7360aad8",name:"body"},e("ic-typography",{key:"ea367e9f5b6d353714d8d05576abffecc63bea2d",maxLines:c,class:"empty-state-body"},i))),s(this.el,"actions")&&e("div",{key:"997a125c580c0dfa6e2191df40745145168ce705",class:"action-area"},e("slot",{key:"34c38c474a502720b659f4b2775869773cfe1f10",name:"actions"})))}get el(){return i(this)}};l.style=r;export{l as ic_empty_state};
//# sourceMappingURL=p-09505807.entry.js.map