"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["19695"],{38962:function(t,e,i){i.r(e);var o,r,n,s,a=i(26520),l=i(72153),c=i(44734),d=i(43080),p=i(69683),u=i(6454),h=(i(28706),i(40445)),v=i(96196),y=i(77845),g=i(94333),m=i(1087),f=(i(26300),i(67094),{info:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z",warning:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16",error:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",success:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),A=function(t){function e(){var t;(0,c.A)(this,e);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return(t=(0,p.A)(this,e,[].concat(o))).title="",t.alertType="info",t.dismissable=!1,t.narrow=!1,t}return(0,u.A)(e,t),(0,d.A)(e,[{key:"render",value:function(){return(0,v.qy)(o||(o=(0,l.A)([' <div class="issue-type ','" role="alert"> <div class="icon ','"> <slot name="icon"> <ha-svg-icon .path="','"></ha-svg-icon> </slot> </div> <div class="','"> <div class="main-content"> ',' <slot></slot> </div> <div class="action"> <slot name="action"> '," </slot> </div> </div> </div> "])),(0,g.H)((0,a.A)({},this.alertType,!0)),this.title?"":"no-title",f[this.alertType],(0,g.H)({content:!0,narrow:this.narrow}),this.title?(0,v.qy)(r||(r=(0,l.A)(['<div class="title">',"</div>"])),this.title):v.s6,this.dismissable?(0,v.qy)(n||(n=(0,l.A)(['<ha-icon-button @click="','" label="Dismiss alert" .path="','"></ha-icon-button>'])),this._dismissClicked,"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"):v.s6)}},{key:"_dismissClicked",value:function(){(0,m.r)(this,"alert-dismissed-clicked")}}])}(v.WF);A.styles=(0,v.AH)(s||(s=(0,l.A)(['.issue-type{position:relative;padding:8px;display:flex}.icon{height:var(--ha-alert-icon-size,24px);width:var(--ha-alert-icon-size,24px)}.issue-type::after{position:absolute;top:0;right:0;bottom:0;left:0;opacity:.12;pointer-events:none;content:"";border-radius:var(--ha-border-radius-sm)}.icon.no-title{align-self:center}.content{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:var(--float-start)}.content.narrow{flex-direction:column;align-items:flex-end}.action{z-index:1;width:min-content;--mdc-theme-primary:var(--primary-text-color)}.main-content{overflow-wrap:anywhere;word-break:break-word;line-height:normal;margin-left:8px;margin-right:0;margin-inline-start:8px;margin-inline-end:8px}.title{margin-top:2px;font-weight:var(--ha-font-weight-bold)}.action ha-icon-button{--mdc-theme-primary:var(--primary-text-color);--mdc-icon-button-size:36px}.issue-type.info>.icon{color:var(--info-color)}.issue-type.info::after{background-color:var(--info-color)}.issue-type.warning>.icon{color:var(--warning-color)}.issue-type.warning::after{background-color:var(--warning-color)}.issue-type.error>.icon{color:var(--error-color)}.issue-type.error::after{background-color:var(--error-color)}.issue-type.success>.icon{color:var(--success-color)}.issue-type.success::after{background-color:var(--success-color)}:host ::slotted(ul){margin:0;padding-inline-start:20px}']))),(0,h.Cg)([(0,y.MZ)()],A.prototype,"title",void 0),(0,h.Cg)([(0,y.MZ)({attribute:"alert-type"})],A.prototype,"alertType",void 0),(0,h.Cg)([(0,y.MZ)({type:Boolean})],A.prototype,"dismissable",void 0),(0,h.Cg)([(0,y.MZ)({type:Boolean})],A.prototype,"narrow",void 0),A=(0,h.Cg)([(0,y.EM)("ha-alert")],A)}}]);
//# sourceMappingURL=19695.9d768077f08550c0.js.map