1import{B as Km,Ct as SM,En as g,Er as rN,Et as Sl,Gt as YC,Jn as jm,Jt as Ym,K as Lm,Kr as xT,Ot as Sy,P as Jb,Pn as hN,Qn as ks,R as Kb,Rn as iN,Ur as wl,Vn as ih,Zt as Zb,_t as Qm,f as C,gt as Qb,hn as ds,k as Hr,n as $M,nn as _l,nt as O,pn as cy,sn as b_,ti as yM,u as BT,ur as nN,vn as eM}from"./chunk-D2EtPz-s.js";import{D as Qr,F as X,_ as Ki,f as Hn,nt as jn,p as Hr$1}from"./chunk-B4BVM7fR.js";var L=` 2 .p-tag { 3 display: inline-flex; 4 align-items: center; 5 justify-content: center; 6 background: dt('tag.primary.background'); 7 color: dt('tag.primary.color'); 8 font-size: dt('tag.font.size'); 9 font-weight: dt('tag.font.weight'); 10 padding: dt('tag.padding'); 11 border-radius: dt('tag.border.radius'); 12 gap: dt('tag.gap'); 13 } 14 15 .p-tag-icon { 16 font-size: dt('tag.icon.size'); 17 width: dt('tag.icon.size'); 18 height: dt('tag.icon.size'); 19 } 20 21 .p-tag-rounded { 22 border-radius: dt('tag.rounded.border.radius'); 23 } 24 25 .p-tag-success { 26 background: dt('tag.success.background'); 27 color: dt('tag.success.color'); 28 } 29 30 .p-tag-info { 31 background: dt('tag.info.background'); 32 color: dt('tag.info.color'); 33 } 34 35 .p-tag-warn { 36 background: dt('tag.warn.background'); 37 color: dt('tag.warn.color'); 38 } 39 40 .p-tag-danger { 41 background: dt('tag.danger.background'); 42 color: dt('tag.danger.color'); 43 } 44 45 .p-tag-secondary { 46 background: dt('tag.secondary.background'); 47 color: dt('tag.secondary.color'); 48 } 49 50 .p-tag-contrast { 51 background: dt('tag.contrast.background'); 52 color: dt('tag.contrast.color'); 53 } 54`;var te={root:({instance:e})=>[`p-tag p-component`,{"p-tag-info":e.severity===`info`,"p-tag-success":e.severity===`success`,"p-tag-warn":e.severity===`warn`,"p-tag-danger":e.severity===`danger`,"p-tag-secondary":e.severity===`secondary`,"p-tag-contrast":e.severity===`contrast`,"p-tag-rounded":e.rounded}],icon:`p-tag-icon`,label:`p-tag-label`};var U=(()=>{class e extends X{name=`tag`;style=L;classes=te;static ɵfac=(()=>{let o;return function(c){return(o||(o=ih(e)))(c||e)}})();static ɵprov=O({token:e,factory:e.ɵfac})}return e})();var W=new C(`TAG_INSTANCE`);var ne=(()=>{class e extends Hr$1{componentName=`Tag`;$pcTag=g(W,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=g(Qr,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}styleClass;severity;value;icon;rounded;iconTemplate;templates;_iconTemplate;_componentStyle=g(U);onAfterContentInit(){this.templates?.forEach(o=>{o.getType()===`icon`&&(this._iconTemplate=o.template)})}get dataP(){return this.cn({rounded:this.rounded,[this.severity]:this.severity})}static ɵfac=(()=>{let o;return function(c){return(o||(o=ih(e)))(c||e)}})();static ɵcmp=(function(){let o=[`icon`],s=[`*`];function c(n,a){if(n&1&&Km(0,`span`,4),n&2){let t=Zb(2);yM(t.cx(`icon`)),Qm(`ngClass`,t.icon)(`pBind`,t.ptm(`icon`))}}function X(n,a){if(n&1&&(Sl(0),jm(1,c,1,4,`span`,3),_l()),n&2){let t=Zb();YC(),Qm(`ngIf`,t.icon)}}function Y(n,a){}function Z(n,a){n&1&&jm(0,Y,0,0,`ng-template`)}function ee(n,a){if(n&1&&(ds(0,`span`,2),jm(1,Z,1,0,null,5),wl()),n&2){let t=Zb();yM(t.cx(`icon`)),Qm(`pBind`,t.ptm(`icon`)),YC(),Qm(`ngTemplateOutlet`,t.iconTemplate||t._iconTemplate)}}return xT({type:e,selectors:[[`p-tag`]],contentQueries:function(a,t,h){if(a&1&&cy(h,o,4)(h,Hn,4),a&2){let g;Jb(g=eM())&&(t.iconTemplate=g.first),Jb(g=eM())&&(t.templates=g)}},hostVars:3,hostBindings:function(a,t){a&2&&(Ym(`data-p`,t.dataP),yM(t.cn(t.cx(`root`),t.styleClass)))},inputs:{styleClass:`styleClass`,severity:`severity`,value:`value`,icon:`icon`,rounded:[2,`rounded`,`rounded`,b_]},features:[$M([U,{provide:W,useExisting:e},{provide:Ki,useExisting:e}]),BT([Qr]),Lm],ngContentSelectors:s,decls:5,vars:6,consts:[[4,`ngIf`],[3,`class`,`pBind`,4,`ngIf`],[3,`pBind`],[3,`class`,`ngClass`,`pBind`,4,`ngIf`],[3,`ngClass`,`pBind`],[4,`ngTemplateOutlet`]],template:function(a,t){a&1&&(Qb(),Kb(0),jm(1,X,2,1,`ng-container`,0)(2,ee,2,4,`span`,1),ds(3,`span`,2),SM(4),wl()),a&2&&(YC(),Qm(`ngIf`,!t.iconTemplate&&!t._iconTemplate),YC(),Qm(`ngIf`,t.iconTemplate||t._iconTemplate),YC(),yM(t.cx(`label`)),Qm(`pBind`,t.ptm(`label`)),YC(),Sy(t.value))},dependencies:[hN,nN,rN,iN,jn,Qr],encapsulation:2})})()}return e})();var Ie=(()=>{class e{static ɵfac=function(s){return new(s||e)};static ɵmod=ks({type:e});static ɵinj=Hr({imports:[ne,jn,jn]})}return e})();export{ne as n,Ie as t};
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.