import{proxyCustomElement,HTMLElement,h,Host}from"@stencil/core/internal/client";import{c as classnames}from"./index2.js";import{d as defineCustomElement$1}from"./va-icon2.js";const vaTagStatusCss=".usa-sr-only{position:absolute;left:-999em;right:auto}:host(.va-tag-status){display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;gap:var(--vads-spacing-0p5);padding:var(--vads-spacing-2px) var(--vads-spacing-1p5) var(--vads-spacing-2px) var(--vads-spacing-1);border-width:1px;border-style:solid;border-radius:2px}.va-tag-status__icon{color:var(--vads-color-white)}:host(.va-tag-status[status=info]){background:var(--vads-color-info-darker);border-color:var(--vads-color-info-darker)}:host(.va-tag-status[status=success]){background:var(--vads-color-success-darker);border-color:var(--vads-color-success-darker)}:host(.va-tag-status[status=error]){background:var(--vads-color-error-dark);border-color:var(--vads-color-error-dark)}.va-tag-status__text{color:var(--vads-color-white);font-size:var(--vads-font-size-source-sans-normalized);font-weight:var(--font-weight-bold);line-height:1.35}:host(.va-tag-status[status=warning]){background:var(--vads-color-feedback-border-warning-on-dark);border-color:var(--vads-color-warning-darker)}:host(.va-tag-status[status=warning]) .va-tag-status__icon{color:unset}:host(.va-tag-status[status=warning]) .va-tag-status__text{color:var(--vads-color-base)}",VaTagStatusStyle0=vaTagStatusCss,VaTagStatus=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.status="info",this.text=void 0,this.screenReaderText=`Status ${this.status}:`}componentWillLoad(){["info","warning","success","error"].includes(this.status)||(this.status="info")}render(){const{screenReaderText:t,status:a,text:s}=this,e=classnames({"va-tag-status":!0,[`va-tag-status--${a}`]:!0});return h(Host,{key:"630636507344733aecd42435e4cf7a4afd855cf1",class:e,role:"status"},h("va-icon",{key:"bd9207ac95e2d70928b8728bd390f4060d1118ad",icon:{info:"info",warning:"warning",success:"check_circle",error:"error"}[a],size:3,class:"va-tag-status__icon","aria-hidden":"true"}),h("span",{key:"cddebe175f131315cbb5ea7db57f54217941601a",class:"usa-sr-only"},t),h("span",{key:"a5cf13e6372dbf7f3f45745215c251e80d08c9c4",class:"va-tag-status__text"},s))}get el(){return this}static get style(){return VaTagStatusStyle0}},[1,"va-tag-status",{status:[1537],text:[1],screenReaderText:[1,"screen-reader-text"]}]);function defineCustomElement(){"undefined"!=typeof customElements&&["va-tag-status","va-icon"].forEach(t=>{switch(t){case"va-tag-status":customElements.get(t)||customElements.define(t,VaTagStatus);break;case"va-icon":customElements.get(t)||defineCustomElement$1()}})}export{VaTagStatus as V,defineCustomElement as d};