1"use strict";(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["content-blocks"],{90224:(Y,g,i)=>{i.r(g),i.d(g,{ContentBlocksModule:()=>A});var l=i(39382),d=i(71556),r=i(54364),m=i(16320),u=i(92612),k=i(68411),n=i(2316),C=i(43021),_=i(28161),b=i(90609);let M=(()=>{class t{transform(o,e){return"grey"===o.background?.toLowerCase()||e?"none":o.marginBottom||"xl"}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275pipe=n.Yjl({name:"ftContentBlockMargin",type:t,pure:!0}),t})();function f(t,c){if(1&t&&n.GkF(0,4),2&t){const o=n.oxw();n.Q6J("brManageContentButton",o.document)("relative",!1)}}function h(t,c){if(1&t&&(n.ynx(0),n._UZ(1,"ft-one-col-block",13),n.BQk()),2&t){const o=n.oxw().$implicit,e=n.oxw(3);n.xp6(1),n.Q6J("contentBlock",o)("page",e.page)("titleColorTheme",e.titleColor)("component",e.component)}}function B(t,c){if(1&t&&n._UZ(0,"ft-two-col-block",13),2&t){const o=n.oxw().$implicit,e=n.oxw(3);n.Q6J("contentBlock",o)("page",e.page)("titleColorTheme",e.titleColor)("component",e.component)}}function v(t,c){if(1&t&&(n.ynx(0),n.TgZ(1,"div",7),n.TgZ(2,"div",8),n.TgZ(3,"div",9),n.TgZ(4,"div",10),n.ALo(5,"ftContentBlockMargin"),n.YNc(6,h,2,4,"ng-container",11),n.YNc(7,B,1,4,"ng-template",null,12,n.W1O),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.BQk()),2&t){const o=c.$implicit,e=c.index,s=c.last,S=n.MAs(8),a=n.oxw(3);n.xp6(1),n.Gre("content-block content-block--",null==o.background?null:o.background.toLowerCase(),""),n.Q6J("id",o.sectionId||"")("edsSpacing",a.determineSpacing(s,e)),n.xp6(2),n.ekj("container--wide",a.hasContainerWide),n.uIk("data-analytics-track-impression",a.trackImpression?"true":null),n.xp6(1),n.s9C("edsSpacing",n.xi3(5,11,o,s)),n.xp6(2),n.Q6J("ngIf",!o.itemsTwo)("ngIfElse",S)}}function P(t,c){if(1&t&&(n.ynx(0),n.YNc(1,v,9,14,"ng-container",6),n.BQk()),2&t){const o=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",o.contentBlocks)}}const O=function(){return{background:"red",color:"white",position:"absolute",bottom:"top",display:"block",padding:"1rem"}};function x(t,c){1&t&&(n.TgZ(0,"span",14),n._uU(1,"RMVD"),n.qZA()),2&t&&n.Q6J("ngStyle",n.DdM(1,O))}function y(t,c){if(1&t&&(n.ynx(0),n.TgZ(1,"div"),n.YNc(2,P,2,1,"ng-container",2),n.YNc(3,x,2,2,"span",5),n.qZA(),n.BQk()),2&t){const o=n.oxw();n.xp6(1),n.MT6("content-blocks\n content-blocks--",o.backgroundColor," spacing--",o.contentBlocksMarginBottom,""),n.ekj("debug-mode",o.debugMode),n.uIk("id",o.divId?o.divId:null),n.xp6(1),n.Q6J("ngIf",o.contentBlocks),n.xp6(1),n.Q6J("ngIf",o.debugMode&&"true"===o.removeMarginBottom)}}function I(t,c){1&t&&(n.TgZ(0,"div",15),n.TgZ(1,"div",16),n.TgZ(2,"div",17),n._uU(3," Click to configure "),n.TgZ(4,"strong"),n._uU(5,"Content Blocks"),n.qZA(),n.qZA(),n.qZA(),n.qZA())}const T=function(t){return{"has-edit-button":t}},p=k.Y.getLogger("ContentBlocksComponent");let Z=(()=>{class t extends u.N{constructor(o,e){super(),this.route=o,this.viewModeService=e,this.hasContainerWide=!1,this.trackImpression=!1,this.divId="",this.isEditMode=this.viewModeService.isEditMode()}get content(){return this.document?.getData()}get marginBottom(){return this.document?.getData().marginBottom}get contentBlocks(){return this.content?.contentBlocks||[]}ngOnInit(){this.route?.queryParams?.subscribe(o=>{p.debug(o),this.debugMode="debug"===o.padding,p.debug(this.debugMode)}),this.hasContainerWide=this.isContainerWide(),this.trackImpression=this.content?.enableImpressionTracking,this.divId=this.getDivId()?this.getDivId():"",this.contentBlocksMarginBottom=this.component.getParameters().marginBottom}determineSpacing(o,e){const s=this.content?.contentBlocks[e].marginBottom||this.content?.contentBlocks[e].spacingBottom;return o?"auto"===s||null==s?"xl":s:"true"!==this.removeMarginBottom&&o?"none":s||"none"}isContainerWide(){return this.component.getParameters()?.hasContainerWide}getDivId(){return this.component.getParameters()?.divId}}return t.\u0275fac=function(o){return new(o||t)(n.Y36(m.gz),n.Y36(C.j))},t.\u0275cmp=n.Xpm({type:t,selectors:[["ft-content-blocks"]],features:[n.qOj],decls:4,vars:6,consts:[[3,"ngClass"],["documentTemplateQuery","new-ContentBlocks-document","folderTemplateQuery","new-ContentBlocks-folder","parameter","document","root","",3,"brManageContentButton","relative",4,"ngIf"],[4,"ngIf"],["class","no-document",4,"ngIf"],["documentTemplateQuery","new-ContentBlocks-document","folderTemplateQuery","new-ContentBlocks-folder","parameter","document","root","",3,"brManageContentButton","relative"],[3,"ngStyle",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"id","edsSpacing"],["edsGrid",""],[1,"container"],[3,"edsSpacing"],[4,"ngIf","ngIfElse"],["twoCol",""],[3,"contentBlock","page","titleColorTheme","component"],[3,"ngStyle"],[1,"no-document"],["edsGrid","",1,"no-document__component"],[1,"no-document__overlay"]],template:function(o,e){1&o&&(n.TgZ(0,"div",0),n.YNc(1,f,1,2,"ng-container",1),n.YNc(2,y,4,9,"ng-container",2),n.YNc(3,I,6,0,"div",3),n.qZA()),2&o&&(n.Q6J("ngClass",n.VKq(4,T,e.isEditMode)),n.xp6(1),n.Q6J("ngIf",e.isEditMode),n.xp6(1),n.Q6J("ngIf",e.document&&e.content),n.xp6(1),n.Q6J("ngIf",!e.document&&e.isEditMode))},directives:[r.mk,r.O5,d.bF,r.sg,l.OPD,l.ljP,_.g,b.J,r.PC],pipes:[M],styles:["[_nghost-%COMP%] .content-blocks--grey[_ngcontent-%COMP%]{background:var(--greyscale-5);padding-top:var(--space-xl);display:inline-block}[_nghost-%COMP%] .content-blocks[_ngcontent-%COMP%] .content-block[_ngcontent-%COMP%]{display:block;height:100%}[_nghost-%COMP%] .content-blocks[_ngcontent-%COMP%] .content-block--grey[_ngcontent-%COMP%]{background:var(--greyscale-5);padding-bottom:var(--space-xl);padding-top:var(--space-xl)}[_nghost-%COMP%] .content-blocks[_ngcontent-%COMP%] .content-block[_ngcontent-%COMP%] .pre-title{color:var(--pretitle)}@media (min-width: 48rem){[_nghost-%COMP%] .content-blocks[_ngcontent-%COMP%] .content-block[_ngcontent-%COMP%] .block-item:last-of-type, [_nghost-%COMP%] .content-blocks[_ngcontent-%COMP%] .content-block[_ngcontent-%COMP%] .ck-editor *:last-child{margin-bottom:0!important}}[_nghost-%COMP%] .content-blocks[_ngcontent-%COMP%] .content-block[_ngcontent-%COMP%] .ck-editor table{width:100%!important}[_nghost-%COMP%] .content-blocks[_ngcontent-%COMP%] .content-block[_ngcontent-%COMP%] ft-two-col-block .image-box{height:auto}[_nghost-%COMP%] .content-blocks[_ngcontent-%COMP%] .content-block[_ngcontent-%COMP%] ft-two-col-block .image-box img{width:100%}[_nghost-%COMP%] .content-blocks.debug-mode[_ngcontent-%COMP%]{background:red!important}[_nghost-%COMP%] .content-blocks.debug-mode[_ngcontent-%COMP%] .content-block[_ngcontent-%COMP%]{background:orange!important}[_nghost-%COMP%] .content-blocks.debug-mode[_ngcontent-%COMP%] .content-block[_ngcontent-%COMP%] .block-item[_ngcontent-%COMP%]{background:yellow!important;border:2px dashed black}"],changeDetection:0}),t})();var w=i(62094),Q=i(64245),J=i(36239);let A=(()=>{class t{getComponentMapping(){return{"Content Blocks":Z}}}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[w.W,Q.r,d.q8,r.ez,m.Bz,l.zE6,l.JI,l.cv2,J.D]]}),t})()}}]); 2//# sourceMappingURL=content-blocks.050bb8d11307043d761e.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.