UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

3 lines (2 loc) 2.08 kB
import{a as I,j as A}from"./chunk-2QHNXSQY.js";import{Ab as M,Bb as R,Ea as g,Kb as T,Lb as y,Ra as m,Sa as u,X as s,Y as a,aa as o,cb as f,db as p,fa as r,ga as l,mb as b,na as _,nb as h,oa as c,va as d,vb as O,yb as E,zb as N}from"./chunk-LTGI3NYM.js";var C=["*"];function S(t,v){if(t&1){let e=O();b(0,"button",1),E("click",function(){r(e);let n=N();return l(n.close())}),h()}}var G=(()=>{class t{constructor(){this._ngbConfig=o(I),this.dismissible=!0,this.type="warning"}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),D=({classList:t})=>{t.remove("show")},x=(()=>{class t{constructor(){this._config=o(G),this._elementRef=o(d),this._zone=o(c),this.animation=this._config.animation,this.dismissible=this._config.dismissible,this.type=this._config.type,this.closed=new _}close(){let e=A(this._zone,this._elementRef.nativeElement,D,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>this.closed.emit()),e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=m({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert"],hostVars:6,hostBindings:function(i,n){i&2&&(y("alert show"+(n.type?" alert-"+n.type:"")),T("fade",n.animation)("alert-dismissible",n.dismissible))},inputs:{animation:"animation",dismissible:"dismissible",type:"type"},outputs:{closed:"closed"},exportAs:["ngbAlert"],ngContentSelectors:C,decls:2,vars:1,consts:()=>{let e;return e=$localize`:@@ngb.alert.close:Close`,[["type","button","aria-label",e,1,"btn-close"],["type","button","aria-label",e,1,"btn-close",3,"click"]]},template:function(i,n){i&1&&(M(),R(0),f(1,S,1,0,"button",0)),i&2&&(g(),p(n.dismissible?1:-1))},styles:[`ngb-alert{display:block} `],encapsulation:2,changeDetection:0})}}return t})(),z=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=u({type:t})}static{this.\u0275inj=a({})}}return t})();export{x as a,z as b};