-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchunk-QZ7N5CDX.js
More file actions
1 lines (1 loc) · 2.95 KB
/
Copy pathchunk-QZ7N5CDX.js
File metadata and controls
1 lines (1 loc) · 2.95 KB
1
import{b as I}from"./chunk-FFGJMO62.js";import{b as V}from"./chunk-XRBZUWDJ.js";import{a as j,b as F}from"./chunk-LJRBPGSW.js";import{Aa as w,Ba as S,Ca as A,Da as a,Ea as s,Fa as M,Ga as p,Ha as _,I as h,Ja as g,Ka as T,La as l,O as C,P as u,Ta as D,U as y,Ua as m,Va as v,ca as n,fb as b,l as x,la as E,ma as N,ra as c,sb as k,va as o,zb as O}from"./chunk-UJIEDWPF.js";function R(e,i){if(e&1&&M(0,"i"),e&2){let t=l(2);S("el-alert__icon ",t.nelDescription?"is-big":""," el-icon-",t.nelType,"")}}function q(e,i){if(e&1&&(p(0),m(1),_()),e&2){let t=l(2);n(),v(t.nelTitle)}}function z(e,i){if(e&1&&(p(0),m(1),_()),e&2){let t=l(3);n(),v(t.nelDescription)}}function G(e,i){if(e&1&&(a(0,"p",8),c(1,z,2,1,"ng-container",5),s()),e&2){let t=l(2);n(),o("stringTemplate",t.nelDescription)}}function H(e,i){if(e&1){let t=g();a(0,"i",10),T("click",function(){C(t);let d=l(3);return u(d.close())}),s()}}function J(e,i){if(e&1){let t=g();a(0,"i",11),T("click",function(){C(t);let d=l(3);return u(d.close())}),m(1,"\u77E5\u9053\u4E86"),s()}}function K(e,i){if(e&1&&(p(0),c(1,H,1,0,"i",9)(2,J,2,0,"ng-template",null,0,b),_()),e&2){let t=D(3),r=l(2);n(),o("ngIf",!r.nelCloseText)("ngIfElse",t)}}function L(e,i){if(e&1&&(a(0,"div",2),c(1,R,1,4,"i",3),a(2,"div",4)(3,"span"),c(4,q,2,1,"ng-container",5),s(),c(5,G,2,1,"p",6)(6,K,4,2,"ng-container",7),s()()),e&2){let t=l();A("el-alert el-alert--",t.nelType," is-",t.nelEffect," ",t.nelCenter?"is-center":"",""),n(),o("ngIf",t.nelShowIcon),n(2),w("el-alert__title ",t.nelDescription?"is-bold":"",""),n(),o("stringTemplate",t.nelTitle),n(),o("ngIf",t.nelDescription),n(),o("ngIf",t.nelClosable)}}var f=class e{constructor(){this.nelType="info",this.nelEffect="light",this.nelClosable=!0,this.nelCloseText=null,this.nelShowIcon=!1,this.nelCenter=!1,this.nelOnClose=new y,this.hide=!1}close(){this.nelOnClose.emit(!0),this.hide=!0}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=E({type:e,selectors:[["nel-alert"]],inputs:{nelTitle:"nelTitle",nelType:"nelType",nelEffect:"nelEffect",nelClosable:"nelClosable",nelCloseText:"nelCloseText",nelShowIcon:"nelShowIcon",nelCenter:"nelCenter",nelDescription:"nelDescription"},outputs:{nelOnClose:"nelOnClose"},standalone:!1,decls:1,vars:1,consts:[["closeTextTpl",""],["role","alert",3,"class",4,"ngIf"],["role","alert"],[3,"class",4,"ngIf"],[1,"el-alert__content"],[4,"stringTemplate"],["class","el-alert__description",4,"ngIf"],[4,"ngIf"],[1,"el-alert__description"],["class","el-alert__closebtn el-icon-close",3,"click",4,"ngIf","ngIfElse"],[1,"el-alert__closebtn","el-icon-close",3,"click"],[1,"el-alert__closebtn","is-customed",3,"click"]],template:function(t,r){t&1&&c(0,L,7,12,"div",1),t&2&&o("ngIf",!r.hide)},dependencies:[k,j],encapsulation:2})}};x([I()],f.prototype,"nelShowIcon",void 0);x([I()],f.prototype,"nelCenter",void 0);var re=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=N({type:e})}static{this.\u0275inj=h({imports:[O,V,F]})}}return e})();export{f as a,re as b};