import{a as q,d as U,m as R,n as A,o as B,p as H,s as V}from"./chunk-KADRYNDC.js";import{C as w,j as O,m as Q,p as k,q as D,y as N}from"./chunk-Z5RJRCWC.js";import{Ac as m,Bc as F,Cc as f,Eb as I,Gd as j,Ic as u,Kc as _,Lc as g,Ob as S,Pb as x,Rc as y,Tb as l,Tc as C,Xa as v,Ya as b,dc as E,ec as i,ic as M,qc as p,rc as c,ta as T,vc as s,zb as a}from"./chunk-JSJB5BKT.js";import{e as P}from"./chunk-SZAW6ZBW.js";function J(e,o){e&1&&s(0)}function K(e,o){if(e&1&&(p(0,"div",8),f(1,1),l(2,J,1,0,"ng-container",6),c()),e&2){let t=m();a(2),i("ngTemplateOutlet",t.headerTemplate)}}function L(e,o){e&1&&s(0)}function W(e,o){if(e&1&&(p(0,"div",9),y(1),l(2,L,1,0,"ng-container",6),c()),e&2){let t=m();a(),C(" ",t.header," "),a(),i("ngTemplateOutlet",t.titleTemplate)}}function X(e,o){e&1&&s(0)}function Y(e,o){if(e&1&&(p(0,"div",10),y(1),l(2,X,1,0,"ng-container",6),c()),e&2){let t=m();a(),C(" ",t.subheader," "),a(),i("ngTemplateOutlet",t.subtitleTemplate)}}function Z(e,o){e&1&&s(0)}function $(e,o){e&1&&s(0)}function ee(e,o){if(e&1&&(p(0,"div",11),f(1,2),l(2,$,1,0,"ng-container",6),c()),e&2){let t=m();a(2),i("ngTemplateOutlet",t.footerTemplate)}}var z,G,_e,ge,te=P(()=>{w();w();j();j();V();U();z=["*",[["p-header"]],[["p-footer"]]],G=["*","p-header","p-footer"];_e=(()=>{class e{el;header;subheader;set style(t){q.equals(this._style(),t)||this._style.set(t)}styleClass;headerFacet;footerFacet;templates;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_style=b(null);constructor(t){this.el=t}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this.headerTemplate=t.template;break;case"title":this.titleTemplate=t.template;break;case"subtitle":this.subtitleTemplate=t.template;break;case"content":this.contentTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;default:this.contentTemplate=t.template;break}})}getBlockableElement(){return this.el.nativeElement.children[0]}static \u0275fac=function(r){return new(r||e)(I(v))};static \u0275cmp=S({type:e,selectors:[["p-card"]],contentQueries:function(r,n,h){if(r&1&&(u(h,R,5),u(h,A,5),u(h,B,4)),r&2){let d;_(d=g())&&(n.headerFacet=d.first),_(d=g())&&(n.footerFacet=d.first),_(d=g())&&(n.templates=d)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},standalone:!1,ngContentSelectors:G,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(r,n){r&1&&(F(z),p(0,"div",0),l(1,K,3,1,"div",1),p(2,"div",2),l(3,W,3,2,"div",3)(4,Y,3,2,"div",4),p(5,"div",5),f(6),l(7,Z,1,0,"ng-container",6),c(),l(8,ee,3,1,"div",7),c()()),r&2&&(M(n.styleClass),i("ngClass","p-card p-component")("ngStyle",n._style()),E("data-pc-name","card"),a(),i("ngIf",n.headerFacet||n.headerTemplate),a(2),i("ngIf",n.header||n.titleTemplate),a(),i("ngIf",n.subheader||n.subtitleTemplate),a(3),i("ngTemplateOutlet",n.contentTemplate),a(),i("ngIf",n.footerFacet||n.footerTemplate))},dependencies:[O,Q,D,k],styles:[`@layer primeng{.p-card-header img{width:100%}}
`],encapsulation:2,changeDetection:0})}return e})(),ge=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=x({type:e});static \u0275inj=T({imports:[N,H]})}return e})()});export{_e as a,ge as b,te as c};
