1import{ej as P}from"./chunk-JWTTV2TH.js";import"./chunk-HKNOB5YZ.js";import{v as j,w,y as G,za as O}from"./chunk-WFKL35DD.js";import"./chunk-2CBKXUP7.js";import{$c as L,fa as H}from"./chunk-DM3NC7AB.js";import{$b as S,Ac as B,Bc as c,Bd as D,Cc as s,Dc as p,Ee as $,Fa as b,Hd as u,Id as y,Jb as i,Oe as h,Rc as m,Wb as _,ac as E,ed as x,fc as M,gd as f,ta as A,uc as a,ve as F,w as T,wc as r,x as v,yc as I,zc as N}from"./chunk-WVBH4ZDA.js";import{a as l,b as g}from"./chunk-YDOXD4O3.js";var R=(t,n)=>[t,n];function X(t,n){if(t&1&&(s(0,"h4",2),x(1),p()),t&2){let e=m();i(),f(" ",e.cardHeader," ")}}function U(t,n){if(t&1&&(s(0,"div",3),x(1),p()),t&2){let e=m();i(),f(" ",e.cardBody," ")}}function q(t,n){}function z(t,n){if(t&1&&M(0,q,0,0,"ng-template",6),t&2){let e=m(2).$implicit;c("cxComponentWrapper",e)}}function J(t,n){if(t&1&&(s(0,"div",5),a(1,z,1,1,null,6),p()),t&2){let e=m().$implicit;i(),r(e?1:-1)}}function K(t,n){if(t&1&&a(0,J,2,1,"div",5),t&2){let e=n.$index,o=m(2);r(e<(o.gridAmount==="THREE"?3:o.gridAmount==="SIX"?6:o.gridAmount==="NINE"?9:0)?0:-1)}}function Q(t,n){t&1&&N(0,K,1,1,null,null,I),t&2&&B(n)}function V(t,n){if(t&1&&(s(0,"div",0)(1,"div",1),a(2,X,2,1,"h4",2),a(3,U,2,1,"div",3),s(4,"div",4),a(5,Q,2,0),u(6,"async"),p()()()),t&2){let e,o=n,d=m();i(),c("ngClass",D(7,R,d.getBgClass(o.bannerColor),d.getGridAmount(o.gridAmount))),i(),r(o.cardHeader?2:-1),i(),r(o.cardBody?3:-1),i(),c("ngClass",o.cardTextAlignment==="LEFT"?" text-left-aligned":""),i(),r((e=y(6,5,d.components$))?5:-1,e)}}var C=class t{constructor(n,e){this.component=n;this.cmsService=e;this.cardComponents=[];this.components$=this.component.data$.pipe(A(n=>v(n?.cardComponents.split(" ").map(e=>this.cmsService.getComponentData(e).pipe(T(o=>{if(o)return o.flexType||(o=g(l({},o),{flexType:o.typeCode})),l({},o)}))))))}getBgClass(n){return n?.length>0&&P[n]||""}getGridAmount(n){return{THREE:"three-cards",SIX:"six-cards",NINE:"nine-cards"}[n]||""}static{this.\u0275fac=function(e){return new(e||t)(_(j),_(L))}}static{this.\u0275cmp=S({type:t,selectors:[["app-amor-text-cards"]],standalone:!1,decls:2,vars:3,consts:[[1,"amor-container","se-component"],[1,"amor-text-cards",3,"ngClass"],[1,"amor-text-cards-header","header-display-4"],[1,"amor-text-cards-body","body-two"],[1,"text-cards-container",3,"ngClass"],[1,"amor-text-card"],[3,"cxComponentWrapper"]],template:function(e,o){if(e&1&&(a(0,V,7,10,"div",0),u(1,"async")),e&2){let d;r((d=y(1,1,o.component.data$))?0:-1,d)}},dependencies:[F,w,$],encapsulation:2})}};var k=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=E({type:t})}static{this.\u0275inj=b({providers:[H({cmsComponents:{AmorTextCardsComponent:{component:C}}})],imports:[h,G,O]})}};export{k as AmorTextCardsModule};
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.