1import{a as ie}from"./chunk-IHFEPL7Q.js";import{a as ee}from"./chunk-PBIV4YWX.js";import{a as ne}from"./chunk-D2YVKR62.js";import{a as te}from"./chunk-X42WS3QT.js";import"./chunk-UEE7DFF5.js";import"./chunk-SBZRMRFI.js";import{c as x}from"./chunk-VWIFQUFK.js";import{a as W}from"./chunk-CGVGCYTP.js";import{a as J}from"./chunk-7QSQH44D.js";import{a as q}from"./chunk-63AFCMXB.js";import{a as Z}from"./chunk-6SQUI5RL.js";import"./chunk-FNKCSJ2W.js";import"./chunk-NBCYNH3F.js";import"./chunk-35KNJDM3.js";import{e as Q}from"./chunk-ICF6KCOZ.js";import"./chunk-RVWYYRQD.js";import{a as Y}from"./chunk-WG2N6DNQ.js";import"./chunk-VG5YGNY5.js";import{D as X}from"./chunk-OGUNFBL3.js";import"./chunk-GSBPI73C.js";import"./chunk-MDFI7MM2.js";import"./chunk-QXPBSCBE.js";import{m as z,o as G,r as K,s as f}from"./chunk-46TIY27H.js";import{Gc as p,Hc as C,Ia as N,Ic as H,Ja as g,Ob as s,Oc as V,Qb as m,Sb as F,Tb as B,Ub as D,Vb as l,Wb as r,Wc as b,Xb as a,Xc as $,Yb as c,Yc as j,Zc as U,ac as R,bc as w,ea as T,eb as L,fc as M,hb as i,lc as A,m as k,oa as v,qc as E,sb as _,sc as d,ta as O,ua as y,w as S,wb as h,x as P}from"./chunk-ZKNABTT2.js";var de=["app-condolence-item",""];function se(n,u){if(n&1&&(r(0,"span",3),p(1),c(2,"br"),a()),n&2){let e=d();i(),C(e.section.attributes.location);}}function me(n,u){if(n&1&&(r(0,"span",4),p(1),c(2,"br"),a()),n&2){let e=d();i(),C(e.section.attributes.country);}}var oe=(()=>{class n extends Q{static ɵfac=(()=>{let e;return function(t){return(e||(e=g(n)))(t||n);};})();static ɵcmp=_({type:n,selectors:[["section","app-condolence-item",""]],features:[h],attrs:de,decls:11,vars:9,consts:[["kb-heading",""],["kb-html","",3,"html"],[1,"name"],[1,"location"],[1,"country"],[1,"date"]],template:function(o,t){o&1&&(r(0,"h2",0),p(1),a(),c(2,"div",1),r(3,"span",2),p(4),c(5,"br"),a(),s(6,se,3,1,"span",3),s(7,me,3,1,"span",4),r(8,"span",5),p(9),b(10,"date"),a()),o&2&&(i(),C(t.section.attributes.headline),i(),l("html",t.section.attributes.text),i(2),C(t.section.attributes.firstName+" "+t.section.attributes.lastName),i(2),m(t.section.attributes.location?6:-1),i(),m(t.section.attributes.country?7:-1),i(2),C(j(10,6,t.section.attributes.date,"longDate")));},dependencies:[f,x,G],styles:[`[_nghost-%COMP%]{padding:var(--kb-gap--inner-column) var(--kb-gap--inner-row);border:.25rem solid var(--kb-color--on-background)} 2/*# sourceMappingURL=condolence-item.component-SLIQUOI2.css.map */`],changeDetection:0});}return n;})();var pe=["app-condolence",""];function ue(n,u){if(n&1&&c(0,"a",1),n&2){let e=d();l("id",e.anchor);}}function Ce(n,u){if(n&1&&(r(0,"div"),c(1,"img",13),a()),n&2){let e=d();i(),l("src",V(e.isLightOn()?e.attributes.candleImageOn:e.attributes.candleImageOff),L);}}function be(n,u){if(n&1){let e=M();r(0,"button",14),E("click",function(){O(e);let t=d();return y(t.setLightOn());}),p(1),a();}if(n&2){let e=d();i(),H(" ",e.attributes.boxBottonText," ");}}function ge(n,u){if(n&1&&(r(0,"h2",4),p(1),a()),n&2){let e=d();l("appEditorId",e.editorIds==null?null:e.editorIds.headline),i(),C(e.attributes.headline);}}function _e(n,u){if(n&1&&c(0,"section",10),n&2){let e=u.$implicit;l("section",e);}}function he(n,u){if(n&1){let e=M();r(0,"div",11)(1,"button",14),E("click",function(){O(e);let t=d();return y(t.showMore());}),R(2),A(3,0),w(),c(4,"kb-icon",15),a()();}if(n&2){let e=d();i(4),l("icon",e.iconLoadMore);}}function fe(n,u){if(n&1&&c(0,"app-fs-button",12),n&2){let e=d();l("value",e.createSectionButton);}}var re="htCOn",je=(()=>{class n extends te{condolenceBookItemsSubject=new k(1);boxStyle={};boxHeadlineStyle={};lightOn=!1;page=1;pageSize=9;term="";searchFieldAttributes={numColumns:12,headline:"",noMarginBottom:!1};iconLoadMore=J;currentPageSearchService=v(ee);htmlUtils=v(X);componentId=Math.floor(Math.random()*1e5);tableRows=P([this.condolenceBookItemsSubject.pipe(T(e=>{let o=[];for(let[t,I]of e.entries()){let ae={id:this.getSearchIndex(t),content:this.htmlUtils.textContent(Object.values(I.attributes).join(" "))};o.push(ae);}this.currentPageSearchService.addAll(o);})),this.currentPageSearchService.results.pipe(S(e=>e.map(o=>o.id)))]).pipe(S(([e,o])=>this.currentPageSearchService.resultFiltered()?e.filter((t,I)=>o.includes(this.getSearchIndex(I))):e));getSearchIndex(e){return parseInt(`${this.componentId}${e}`,10);}ngOnChanges(e){e.attributes&&this.condolenceBookItemsSubject.next(this.prepareCondolences());}ngOnInit(){this.attributes.numColumns=12,super.ngOnInit(),this.boxStyle={background:this.attributes.boxBackgroun
2dColor},this.boxHeadlineStyle={color:this.attributes.boxFontColor?this.attributes.boxFontColor:"#000"};}prepareCondolences(){let e=[];return this.attributes.items&&e.push(...this.attributes.items),this.attributes.condulences&&e.push(...this.attributes.condulences),e;}setLightOn(){localStorage.setItem(re,"true");}isLightOn(){return localStorage.getItem(re)!==null;}showMore(){this.page++;}static ɵfac=(()=>{let e;return function(t){return(e||(e=g(n)))(t||n);};})();static ɵcmp=_({type:n,selectors:[["section","app-condolence",""]],features:[h,N],attrs:pe,decls:22,vars:19,consts:()=>{let e;return e="Load more",[e,[3,"id"],["kb-grid-item-columns","10","kb-layout","grid",1,"candle-box"],["kb-grid-item-columns","10",1,"candle-container"],["kb-heading","",3,"appEditorId"],[3,"appEditorId","html"],["type","button","kb-button",""],["kb-grid-item-columns","10","kb-section",""],["kb-grid-item-columns","12","kb-next-grid-row","related","app-current-page-search","",3,"attributes"],["kb-grid-item-columns","12","kb-layout","grid",1,"item-container"],["app-condolence-item","","kb-grid-item-columns","4",3,"section"],["kb-grid-item-columns","12"],[3,"value"],["alt","",1,"candle-image",3,"src"],["type","button","kb-button","",3,"click"],[3,"icon"]];},template:function(o,t){o&1&&(s(0,ue,1,1,"a",1),r(1,"kb-main-grid")(2,"div",2)(3,"div",3),s(4,Ce,2,2,"div"),r(5,"div")(6,"h2",4),p(7),a(),c(8,"kb-html",5)(9,"br"),s(10,be,2,1,"button",6),a()()(),r(11,"section",7),s(12,ge,2,2,"h2",4),c(13,"kb-html",5),a(),c(14,"section",8),r(15,"div",9),B(16,_e,1,1,"section",10,F),b(18,"async"),b(19,"slice"),s(20,he,5,1,"div",11),a()(),s(21,fe,1,1,"app-fs-button",12)),o&2&&(m(t.anchor?0:-1),i(4),m(t.attributes.candleImageOn?4:-1),i(2),l("appEditorId",t.editorIds==null?null:t.editorIds.boxHeadline),i(),C(t.attributes.boxHeadline),i(),l("appEditorId",t.editorIds==null?null:t.editorIds.text)("html",t.attributes.boxText),i(2),m(t.isLightOn()?-1:10),i(2),m(t.attributes.headline?12:-1),i(),l("appEditorId",t.editorIds==null?null:t.editorIds.text)("html",t.attributes.text),i(),l("attributes",t.searchFieldAttributes),i(2),D(U(19,15,$(18,13,t.tableRows),0,t.pageSize*t.page)),i(4),m(t.attributes.items.length>t.page*t.pageSize?20:-1),i(),m(t.createSectionButton?21:-1));},dependencies:[f,Y,ie,oe,W,Z,x,q,ne,z,K],styles:[`[_nghost-%COMP%] .candle-box[_ngcontent-%COMP%]{background-color:#000;color:#fff}[_nghost-%COMP%] .candle-box[_ngcontent-%COMP%] [kb-heading][_ngcontent-%COMP%], [_nghost-%COMP%] .candle-box[_ngcontent-%COMP%] [kb-paragraph]{color:inherit}[_nghost-%COMP%] .candle-box[_ngcontent-%COMP%] .candle-container[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .candle-box[_ngcontent-%COMP%] .candle-image[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .item-container[_ngcontent-%COMP%]{margin:0 var(--kb-gap--outer-row)} 3/*# sourceMappingURL=condolence.component-HBCTFOMY.css.map */`],changeDetection:0});}return n;})();export{je as CondolenceComponent,re as LIGHT_ON_KEY};/**i18n:9b2f1e34af068233b6abd63a66684d4e9dbff90014448b8ec97e38af3af71f01*///# sourceMappingURL=chunk-RPOGROYB.js.map
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.