import{p as i,H as t,h as o,d as n,t as e}from"./p-CHfEnK-2.js";import{i as a,d as f,t as r}from"./p-94ZtGp9D.js";import{d as c}from"./p-B5hDbbCP.js";import{d as s}from"./p-CUljqVvL.js";const _=i(class extends t{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow()}get el(){return this}icon;variant="success";linkText;linkHref;linkTarget="_blank";async componentDidLoad(){if(!a(this.el)){const i=f();r("ifx-notification",await i)}}getClassName(){switch(this.variant){case"success":default:return"ifx-notification__wrapper--success";case"locked":return"ifx-notification__wrapper--locked";case"error":return"ifx-notification__wrapper--error";case"neutral":return"ifx-notification__wrapper--neutral"}}render(){return o(n,{key:"639e4e57f82a683329109c5d8d92ca1e1208d53c"},o("div",{key:"6ee39a684b391ba39c76e0d2a97844f7ac80267b",class:"ifx-notification__wrapper "+this.getClassName()},o("div",{key:"423762970fd3da912776ca8544ae07af3093383f",class:"ifx-notification__icon"},o("ifx-icon",{key:"166cd01e6e0949f1b07213ce73d78fe5a64c1877",icon:this.icon})),o("div",{key:"acb811f46e5ff8d6aa7a8e1d476882ab5b800f49",class:"ifx-notification__body"},o("div",{key:"fe2788d80c72477fa933fd31621416675e10c99d",class:"ifx-notification__slot"},o("slot",{key:"49799ed83313157ef21b2cddadb92ac54147ea2d"})),this.linkText&&this.linkHref&&o("div",{key:"20df178bf642167583a9fec45605030ae5941352",class:"ifx-notification__link"},o("ifx-link",{key:"3316fec443320be7a4d893e086c4ca4dd66f1852",href:this.linkHref,target:this.linkTarget},this.linkText,o("ifx-icon",{key:"630a2531e399af39e0c1bfa745605a49c05efa2f",icon:"arrow-right-16"}))))))}static get style(){return".ifx-notification__wrapper{display:flex;flex-direction:row;align-items:center;padding:8px 16px;background-color:#FFFFFF;font-family:var(--ifx-font-family);color:#1D1D1D;border:1px solid #EEEDED}.ifx-notification__wrapper.ifx-notification__wrapper--success{border-left:4px solid #4CA460}.ifx-notification__wrapper.ifx-notification__wrapper--success .ifx-notification__icon{color:#4CA460}.ifx-notification__wrapper.ifx-notification__wrapper--locked{border-left:4px solid #E16B25}.ifx-notification__wrapper.ifx-notification__wrapper--locked .ifx-notification__icon{color:#E16B25}.ifx-notification__wrapper.ifx-notification__wrapper--error{border-left:4px solid #CD002F}.ifx-notification__wrapper.ifx-notification__wrapper--error .ifx-notification__icon{color:#CD002F}.ifx-notification__wrapper.ifx-notification__wrapper--neutral{border-left:4px solid #0A8276}.ifx-notification__wrapper.ifx-notification__wrapper--neutral .ifx-notification__icon{color:#0A8276}.ifx-notification__wrapper .ifx-notification__icon{margin-right:8px;display:flex;align-self:center}.ifx-notification__wrapper .ifx-notification__body{display:flex;flex-direction:row;flex-grow:1;font-size:0.875rem}.ifx-notification__wrapper .ifx-notification__body .ifx-notification__slot{flex-grow:1;display:inline-flex;align-items:center}.ifx-notification__wrapper .ifx-notification__link{font-size:0.875rem}@media (max-width: 576px){.ifx-notification__wrapper .ifx-notification__icon{align-self:flex-start}.ifx-notification__wrapper .ifx-notification__body{flex-direction:column}.ifx-notification__wrapper .ifx-notification__link{margin-top:8px}}"}},[769,"ifx-notification",{icon:[1],variant:[1],linkText:[1,"link-text"],linkHref:[1,"link-href"],linkTarget:[1,"link-target"]}]);function p(){"undefined"!=typeof customElements&&["ifx-notification","ifx-icon","ifx-link"].forEach((i=>{switch(i){case"ifx-notification":customElements.get(e(i))||customElements.define(e(i),_);break;case"ifx-icon":customElements.get(e(i))||c();break;case"ifx-link":customElements.get(e(i))||s()}}))}export{_ as N,p as d}