1"use strict";(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["link-list"],{58882:(T,c,s)=>{s.r(c),s.d(c,{LinkListModule:()=>x});var o=s(3138),a=s(71556),r=s(54364),d=s(92612),m=s(68411),t=s(2316),g=s(55311),u=s(43021);function p(e,l){if(1&e&&t.GkF(0,3),2&e){const n=t.oxw();t.Q6J("brManageContentButton",n.document)("relative",!1)}}function f(e,l){if(1&e&&(t.TgZ(0,"div",9),t._UZ(1,"eds-title",10),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("isLight",!0)("level",2)("title",n.content.title)("theme",n.titleColor)}}function v(e,l){if(1&e&&(t.TgZ(0,"div",9),t._UZ(1,"div",11),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",n.content.summary.content,t.oJD)}}function L(e,l){if(1&e&&(t.TgZ(0,"div",4),t.YNc(1,f,2,4,"div",5),t.YNc(2,v,2,1,"div",5),t.TgZ(3,"div",6),t.TgZ(4,"div",7),t._UZ(5,"eds-link-item-grid",8),t.qZA(),t.qZA(),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngIf",n.content.title),t.xp6(1),t.Q6J("ngIf",n.content.summary),t.xp6(3),t.Q6J("items",n.linkItems)("columns",n.columns)}}const k=function(e){return{"has-edit-button":e}},h=m.Y.getLogger("LinkListComponent");let C=(()=>{class e extends d.N{constructor(n,i){super(),this.widenService=n,this.viewModeService=i,this.linkItems=new Array,this.columns=4,this.isEditMode=this.viewModeService.isEditMode()}ngOnInit(){super.ngOnInit(),this.content=this.getContent(),this.columns=this.getColumns(),this.initLinkItems(),h.debug("ngOnInit complete")}getColumns(){let n=this.component.getParameters().columns;return n=isNaN(n)?4:parseInt(n,10),n}getContent(){return this.document?.getData()}initLinkItems(){this.content?.linkListItem?.forEach(n=>{const i=n?.link?.linkCollection[0],I=i?.document,w={imgSrc:this.widenService.getWidenAssetUrl(n?.image?.widenDocument),title:i?.displayText,href:i?.url?i?.url:this.getInternalLinkUrl(this.page?.getContent(I)?.getData()),iconType:n?.image?.widenDocument?null:i?.iconType,description:n?.description,signInRequired:i?.signInLink,isExternal:i?.external,isNewWindow:"_blank"===i?.target,externalLinkSuffix:i?.externalSuffix};this.linkItems.push(w)})}getInternalLinkUrl(n){return n?._links?.site?.href||""}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(g.jS),t.Y36(u.j))},e.\u0275cmp=t.Xpm({type:e,selectors:[["ft-link-list"]],features:[t.qOj],decls:3,vars:6,consts:[["edsGrid","",3,"ngClass","edsSpacing"],["documentTemplateQuery","new-linklist","folderTemplateQuery","new-linklist-folder","parameter","document","root","",3,"brManageContentButton","relative",4,"ngIf"],["class","container--wide",4,"ngIf"],["documentTemplateQuery","new-linklist","folderTemplateQuery","new-linklist-folder","parameter","document","root","",3,"brManageContentButton","relative"],[1,"container--wide"],["edsRow","","edsSpacing","sm",4,"ngIf"],["edsRow",""],["edsCol",""],[3,"items","columns"],["edsRow","","edsSpacing","sm"],["edsCol","","size","h3",3,"isLight","level","title","theme"],["edsCol","",3,"innerHTML"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0),t.YNc(1,p,1,2,"ng-container",1),t.YNc(2,L,6,4,"div",2),t.qZA()),2&n&&(t.Q6J("ngClass",t.VKq(4,k,i.isEditMode))("edsSpacing","auto"===i.marginBottom?"xl":i.marginBottom),t.xp6(1),t.Q6J("ngIf",i.isEditMode),t.xp6(1),t.Q6J("ngIf",i.content))},directives:[o.ljP,r.mk,o.OPD,r.O5,a.bF,o.vZ,o.iKq,o.Ut7,o.r3N],encapsulation:2}),e})(),x=(()=>{class e{getComponentMapping(){return{"Link List":C}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[a.q8,o.hJ1,r.ez,o.g8O,o.JI,o.cv2,o.zE6,o.gpy,o.idt]]}),e})()}}]); 2//# sourceMappingURL=link-list.6e65505a395525462784.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.