import{o as R,p as g,s as V}from"./chunk-KADRYNDC.js";import{C as O,j as w,m as Q,p as k,q as A,y as F}from"./chunk-Z5RJRCWC.js";import{Ac as p,Bc as h,Cc as x,Eb as u,Gd as b,Ic as I,Kc as M,Lc as S,Ob as f,Pb as y,Rc as D,Sc as j,Tb as s,ec as a,ic as _,qc as r,rc as c,sc as C,ta as d,tc as T,uc as v,ud as N,zb as o,zd as E}from"./chunk-JSJB5BKT.js";import{e as P}from"./chunk-SZAW6ZBW.js";function z(e,l){if(e&1&&C(0,"span",5),e&2){let t=p(2);a("ngClass",t.icon)}}function B(e,l){if(e&1&&(T(0),s(1,z,1,1,"span",4),v()),e&2){let t=p();o(),a("ngIf",t.icon)}}function G(e,l){}function H(e,l){e&1&&s(0,G,0,0,"ng-template")}function J(e,l){if(e&1&&(r(0,"span",6),s(1,H,1,0,null,7),c()),e&2){let t=p();o(),a("ngTemplateOutlet",t.iconTemplate)}}var $,oe,se,K=P(()=>{O();O();b();b();V();$=["*"];oe=(()=>{class e{cd;get style(){return this._style}set style(t){this._style=t,this.cd.markForCheck()}styleClass;severity;value;icon;rounded;templates;iconTemplate;_style;ngAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"icon":this.iconTemplate=t.template;break}})}constructor(t){this.cd=t}containerClass(){return{"p-tag p-component":!0,[`p-tag-${this.severity}`]:this.severity,"p-tag-rounded":this.rounded}}static \u0275fac=function(n){return new(n||e)(u(N))};static \u0275cmp=f({type:e,selectors:[["p-tag"]],contentQueries:function(n,i,q){if(n&1&&I(q,R,4),n&2){let m;M(m=S())&&(i.templates=m)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",severity:"severity",value:"value",icon:"icon",rounded:[2,"rounded","rounded",E]},standalone:!1,ngContentSelectors:$,decls:6,vars:7,consts:[[3,"ngClass","ngStyle"],[4,"ngIf"],["class","p-tag-icon",4,"ngIf"],[1,"p-tag-value"],["class","p-tag-icon",3,"ngClass",4,"ngIf"],[1,"p-tag-icon",3,"ngClass"],[1,"p-tag-icon"],[4,"ngTemplateOutlet"]],template:function(n,i){n&1&&(h(),r(0,"span",0),x(1),s(2,B,2,1,"ng-container",1)(3,J,2,1,"span",2),r(4,"span",3),D(5),c()()),n&2&&(_(i.styleClass),a("ngClass",i.containerClass())("ngStyle",i.style),o(2),a("ngIf",!i.iconTemplate),o(),a("ngIf",i.iconTemplate),o(2),j(i.value))},dependencies:[w,Q,A,k],styles:[`@layer primeng{.p-tag{display:inline-flex;align-items:center;justify-content:center}.p-tag-icon,.p-tag-value,.p-tag-icon.pi{line-height:1.5}.p-tag.p-tag-rounded{border-radius:10rem}}
`],encapsulation:2,changeDetection:0})}return e})(),se=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=y({type:e});static \u0275inj=d({imports:[F,g,g]})}return e})()});export{oe as a,se as b,K as c};
