1import{C as R,Wa as I,Xa as O,Ya as B,Za as S,lb as $,nb as x}from"./chunk-5HXFPEER.js";import{$ as h,Fb as c,Ka as z,Na as p,Rb as y,Tb as _,Zb as T,_b as b,dc as M,f as d,ia as C,jc as a,lb as f,lc as P,mc as N,nc as E,pb as u,qb as r,qd as j,ta as m,ua as g,ud as l,wc as w,xb as k,xc as D,yb as v}from"./chunk-ZUWCBCQQ.js";var V=["*"];function A(o,H){if(o&1){let e=M();T(0,"nz-icon",1),a("click",function(t){m(e);let i=P();return g(i.closeTag(t))}),b()}}var F=(()=>{class o{cdr;renderer;elementRef;directionality;isPresetColor=!1;nzMode="default";nzColor;nzChecked=!1;nzBordered=!0;nzOnClose=new c;nzCheckedChange=new c;dir="ltr";destroy$=new d;constructor(e,n,t,i){this.cdr=e,this.renderer=n,this.elementRef=t,this.directionality=i}updateCheckedStatus(){this.nzMode==="checkable"&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(e){this.nzOnClose.emit(e),e.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){let e=this.elementRef.nativeElement,n=new RegExp(`(ant-tag-(?:${[...O,...I].join("|")}))`,"g"),t=e.classList.toString(),i=[],s=n.exec(t);for(;s!==null;)i.push(s[1]),s=n.exec(t);e.classList.remove(...i)}setPresetColor(){let e=this.elementRef.nativeElement;this.clearPresetColor(),this.nzColor?this.isPresetColor=B(this.nzColor)||S(this.nzColor):this.isPresetColor=!1,this.isPresetColor&&e.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe(h(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzColor:n}=e;n&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(n){return new(n||o)(r(j),r(u),r(p),r(R))};static \u0275cmp=k({type:o,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(n,t){n&1&&a("click",function(){return t.updateCheckedStatus()}),n&2&&(w("background-color",t.isPresetColor?"":t.nzColor),D("ant-tag-has-color",t.nzColor&&!t.isPresetColor)("ant-tag-checkable",t.nzMode==="checkable")("ant-tag-checkable-checked",t.nzChecked)("ant-tag-rtl",t.dir==="rtl")("ant-tag-borderless",!t.nzBordered))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",l],nzBordered:[2,"nzBordered","nzBordered",l]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],features:[z],ngContentSelectors:V,decls:2,vars:1,consts:[["nzType","close","tabindex","-1",1,"ant-tag-close-icon"],["nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(n,t){n&1&&(N(),E(0),y(1,A,1,0,"nz-icon",0)),n&2&&(f(),_(t.nzMode==="closeable"?1:-1))},dependencies:[x,$],encapsulation:2,changeDetection:0})}return o})(),oe=(()=>{class o{static \u0275fac=function(n){return new(n||o)};static \u0275mod=v({type:o});static \u0275inj=C({imports:[F]})}return o})();export{F as a,oe as b};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.