1"use strict";(self.webpackChunkesanum=self.webpackChunkesanum||[]).push([[4145],{24145:(M,f,i)=>{i.r(f),i.d(f,{CmsItemsListModule:()=>h});var u,m=i(36895),a=i(24006),s=i(22012),g=i(31825),d=i(85166),t=i(55062),c=i(92852),_=i(14378),C=i(8009);function T(n,o){if(1&n&&t._UZ(0,"sn-checkbox",7),2&n){const e=o.$implicit;t.Q6J("label",e.name||e.selector)("value",e.selector)}}function L(n,o){if(1&n&&(t.TgZ(0,"sn-form",4)(1,"sn-checkbox-group",5),t.YNc(2,T,1,2,"sn-checkbox",6),t.qZA()()),2&n){const e=t.oxw();t.Q6J("formGroup",e.form),t.xp6(1),t.Q6J("orientation",e.ui.orientation.horizontal),t.xp6(1),t.Q6J("ngForOf",e.filters)}}function O(n,o){1&n&&t.GkF(0)}const x=function(n){return{items:n}};function A(n,o){if(1&n&&(t.TgZ(0,"sn-stack",11)(1,"span",12),t._uU(2),t.qZA(),t.YNc(3,O,1,0,"ng-container",13),t.qZA()),2&n){const e=t.oxw().$implicit,r=t.oxw(2),l=t.MAs(5);t.Q6J("orientation",r.ui.orientation.horizontal),t.xp6(2),t.Oqu(e.title),t.xp6(1),t.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",t.VKq(4,x,e.items))}}function P(n,o){if(1&n&&(t.ynx(0),t.YNc(1,A,4,6,"sn-stack",10),t.ALo(2,"$includes"),t.ALo(3,"map"),t.BQk()),2&n){const e=o.$implicit,r=t.oxw(2);t.xp6(1),t.Q6J("ngIf",t.xi3(2,1,r.filterControl.value,t.xi3(3,4,e.items,"selector")))}}function y(n,o){if(1&n&&(t.ynx(0),t.TgZ(1,"sn-stack",8),t.YNc(2,P,4,7,"ng-container",9),t.qZA(),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("align",e.ui.align.stretch),t.xp6(1),t.Q6J("ngForOf",e.groups)}}function v(n,o){1&n&&t.GkF(0)}function J(n,o){if(1&n&&t.YNc(0,v,1,0,"ng-container",13),2&n){const e=t.oxw(),r=t.MAs(5);t.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",t.VKq(2,x,e.items))}}function Q(n,o){if(1&n&&(t._UZ(0,"div",17),t.ALo(1,"sanitizeHtml")),2&n){const e=t.oxw().$implicit;t.Q6J("innerHTML",t.lcZ(1,1,e.html),t.oJD)}}function S(n,o){if(1&n&&(t.ynx(0),t.YNc(1,Q,2,3,"div",16),t.ALo(2,"$includes"),t.BQk()),2&n){const e=o.$implicit,r=t.oxw(3);t.xp6(1),t.Q6J("ngIf",t.xi3(2,1,r.filterControl.value,e.selector))}}function F(n,o){if(1&n&&(t.TgZ(0,"sn-stack",15),t.YNc(1,S,3,4,"ng-container",9),t.qZA()),2&n){const e=t.oxw().items;t.xp6(1),t.Q6J("ngForOf",e)}}function b(n,o){if(1&n&&t.YNc(0,F,2,1,"sn-stack",14),2&n){const e=o.items;t.Q6J("ngIf",(null==e?null:e.length)>0)}}class I{constructor(o){this.fb=o,this.ui=s.UI,this.items=[],this.groups=[],this.filters=[],this.filterControl=this.fb.control([]),this.form=this.fb.group({filters:this.filterControl})}ngAfterViewInit(){const e=(new DOMParser).parseFromString(this.html,"text/html").body,r=this.getGroups(e);this.filters=this.getFilters(e.querySelector("header")),this.filters.length>0&&this.filterControl.setValue(this.filters.filter(l=>l.selected).map(l=>l.selector)),r.length>0?this.groups=r.map(l=>({title:l.title,items:l.items})):this.items=this.getItems(e)}getGroups(o){return Array.from(o.querySelectorAll("section")).map(e=>({title:e.getAttribute("title"),items:this.getItems(e)}))}getItems(o){return Array.from(o.querySelectorAll(":scope > div")).map(e=>({selector:e.getAttribute("selector"),html:e.innerHTML}))}getFilters(o){return o?Array.from(o.querySelectorAll(":scope > div")).map(e=>({name:e.innerHTML,selector:e.getAttribute("id"),selected:"false"!==e.getAttribute("selected")})):[]}}var p;(u=I).\u0275fac=function(o){return new(o||u)(t.Y36(a.QS))},u.\u0275cmp=t.Xpm({type:u,selectors:[["cms-items-list"]],inputs:{html:"html"},decls:6,vars:3,consts:[["data-filters","",3,"formGroup",4,"ngIf"],[4,"ngIf","ngIfElse"],["noGroups",""],["itemsTemplate",""],["data-filters","",3,"formGroup"],["formControlName","filters",3,"orientation"],[3,"label","value",4,"ngFor","ngForOf"],[3,"label","value"],[3,"align"],[4,"ngFor","ngForOf"],["data-group","",3,"orientation",4,"ngIf"],["data-group","",3,"orientation"],["data-group-title",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-items","",4,"ngIf"],["data-items",""],["data-item","",3,"innerHTML",4,"ngIf"],["data-item","",3,"innerHTML"]],template:function(o,e){if(1&o&&(t.YNc(0,L,3,3,"sn-form",0),t.YNc(1,y,3,2,"ng-container",1),t.YNc(2,J,1,4,"ng-template",null,2,t.W1O),t.YNc(4,b,1,1,"ng-template",null,3,t.W1O)),2&o){const r=t.MAs(3);t.Q6J("ngIf",(null==e.filters?null:e.filters.length)>0),t.xp6(1),t.Q6J("ngIf",e.groups.length>0)("ngIfElse",r)}},dependencies:[m.sg,m.O5,m.tP,a.JJ,a.JL,a.sg,a.u,s.aAT,s.bK4,s.Ahg,s.UrU,c.A,_.N,C.b],styles:["[_nghost-%COMP%]{display:block}[data-items][_ngcontent-%COMP%]{margin-top:8px}[data-items][_ngcontent-%COMP%] [data-title][_ngcontent-%COMP%]{background-color:#fff;color:#444;padding:4px;margin-right:8px;font-weight:700;text-align:right;min-width:100px;width:100px}[data-items][_ngcontent-%COMP%] [data-item][_ngcontent-%COMP%]{border-left:4px solid #005461;padding:0 8px}[data-group][_ngcontent-%COMP%]{margin-top:8px}[data-group][_ngcontent-%COMP%] [data-group-title][_ngcontent-%COMP%]{width:10%}[data-group][_ngcontent-%COMP%] [data-items][_ngcontent-%COMP%]{margin:0;border-left:4px solid #005461}[data-group][_ngcontent-%COMP%] [data-items][_ngcontent-%COMP%] [data-item][_ngcontent-%COMP%]{border-left:0}"]});class h{getElement(o){return I}}(p=h).\u0275fac=function(o){return new(o||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({imports:[m.ez,a.UX,s.iNp,s.nDK,s.ejP,d.o,g.M]})},8009:(M,f,i)=>{i.d(f,{b:()=>g,p:()=>d});var a,s,m=i(55062);class g{transform(c,_){return c?c.map(C=>C[_]):[]}}(a=g).\u0275fac=function(c){return new(c||a)},a.\u0275pipe=m.Yjl({name:"map",type:a,pure:!0});class d extends g{}(s=d).\u0275fac=function(){let t;return function(_){return(t||(t=m.n5z(s)))(_||s)}}(),s.\u0275pipe=m.Yjl({name:"$map",type:s,pure:!1})}}]);
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.