PageSourceSearch

https://sasustainability.com/171.5e1a7d0c3ffedfbe.js

js sasustainability.com collected 2026-09-29 22:57:09 UTC 12,618 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkkla_frontend=self.webpackChunkkla_frontend||[]).push([[171],{93171:(H,h,g)=>{g.d(h,{L:()=>D});var p=g(60177),t=g(54438);let u=(()=>{class n{exclude;transform(e,o){return this.exclude=o&&o.exclude?o.exclude:[],this.truncateHTML(e,o&&"number"==typeof o.limit?o.limit:200,!o||"boolean"!=typeof o.dots||o.dots)}truncateHTML(e,o,i){if(!e)return"";this.exclude&&this.exclude.length>0&&this.exclude.forEach(r=>{const N=new RegExp(`<${r}[^>]*>([\\s\\S]*?<\\/${r}>)?`,"gi");e=e.replace(N,"")});let c=!1,s="";for(let r=0;r<e.length&&o;r++)"<"===e[r]&&(c=!0),c||o--,">"===e[r]&&(c=!1),s+=e[r];return i&&!o&&(s+="..."),this.correctHTML(s)}correctHTML(e){let o=document.createElement("div");return o.innerHTML=e,this.exclude&&this.exclude.length>0&&this.exclude.forEach(i=>{Array.prototype.slice.call(o.querySelectorAll(i)).forEach(function(c){c.parentNode.removeChild(c)})}),o.innerHTML}static \u0275fac=function(o){return new(o||n)};static \u0275pipe=t.EJ8({name:"truncateHtml",type:n,pure:!0,standalone:!0})}return n})();var d=g(44308),l=g(58780);let P=(()=>{class n{transform(e){return e?e.toLowerCase().replace(/\s/g,"-"):""}static \u0275fac=function(o){return new(o||n)};static \u0275pipe=t.EJ8({name:"slugify",type:n,pure:!0,standalone:!0})}return n})();var C=g(76094),x=g(52172);const y=()=>({"max-height":"110px"}),I=()=>["img","video"],k=n=>({limit:120,exclude:n}),f=(n,a)=>[n,a],m=n=>({"background-color":n}),_=n=>({color:n});function M(n,a){if(1&n&&t.nrm(0,"img",20),2&n){const e=t.XpG(2);t.Y8G("src",e.imagePath,t.B4B)("alt",e.imageAlt)}}function b(n,a){if(1&n&&(t.j41(0,"span",21),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2);t.Y8G("ngStyle",t.eq3(2,m,e.color)),t.R7$(),t.SpI(" ",e.config.type&&!e.isResource?e.config.type:"Resource"," ")}}function O(n,a){if(1&n&&(t.j41(0,"a",17),t.DNE(1,M,1,2,"img",18)(2,b,2,4,"span",19),t.k0s()),2&n){const e=t.XpG();t.Y8G("routerLink",t.l_i(4,f,"/"+(e.config.type&&!e.isResource?e.config.type:"resource"),e.slug)),t.BMQ("aria-label",e.imageAlt||e.config.title),t.R7$(),t.Y8G("ngIf",e.imagePath),t.R7$(),t.Y8G("ngIf",!e.isResource)}}function $(n,a){if(1&n&&t.nrm(0,"img",20),2&n){const e=t.XpG(2);t.Y8G("src",e.imagePath,t.B4B)("alt",e.imageAlt)}}function v(n,a){if(1&n&&(t.j41(0,"span",21),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2);t.Y8G("ngStyle",t.eq3(2,m,e.color)),t.R7$(),t.SpI(" ",e.config.type&&!e.isResource?e.config.type:"Resource"," ")}}function R(n,a){if(1&n&&(t.j41(0,"a",22),t.DNE(1,$,1,2,"img",18)(2,v,2,4,"span",19),t.k0s()),2&n){const e=t.XpG();t.Y8G("href",e.config.source_link,t.B4B),t.BMQ("aria-label",e.imageAlt||e.config.title),t.R7$(),t.Y8G("ngIf",e.imagePath),t.R7$(),t.Y8G("ngIf",!e.isResource)}}function S(n,a){if(1&n&&(t.j41(0,"a",23),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",e.getFormattedDateTime()," ")}}function G(n,a){if(1&n&&(t.j41(0,"a",24),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",e.config.category," ")}}function w(n,a){if(1&n&&(t.j41(0,"a",27),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.name," ")}}function F(n,a){if(1&n&&(t.qex(0),t.DNE(1,w,2,1,"a",26),t.bVm()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("ngIf",e.name)}}function T(n,a){if(1&n&&(t.qex(0),t.DNE(1,F,2,1,"ng-container",25),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.parsedCategories)}}function E(n,a){if(1&n&&(t.j41(0,"a",28)(1,"h1",29),t.EFF(2),t.k0s()()),2&n){const e=t.XpG();t.Y8G("routerLink",t.l_i(3,f,"/"+(e.config.type&&!e.isResource?e.config.type:"resource"),e.slug)),t.R7$(),t.Y8G("ngStyle",t.eq3(6,_,e.color)),t.R7$(),t.SpI(" ",e.config.title," ")}}function Y(n,a){if(1&n&&(t.j41(0,"a",30)(1,"h1",29),t.EFF(2),t.k0s()()),2&n){const e=t.XpG();t.Y8G("href",e.config.source_link,t.B4B),t.R7$(),t.Y8G("ngStyle",t.eq3(3,_,e.color)),t.R7$(),t.SpI(" ",e.config.title," ")}}function L(n,a){if(1&n&&(t.j41(0,"a",31),t.nI1(1,"slugify"),t.EFF(2),t.k0s()),2&n){const e=t.XpG();t.Mz_("href","https://maps.google.com/?q=",t.bMT(1,3,e.config.location),"",t.B4B),t.R7$(2),t.SpI(" ",e.config.location," ")}}function j(n,a){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.SpI("Hosted by: ",e.config.author,"")}}function X(n,a){if(1&n&&(t.qex(0),t.DNE(1,j,2,1,"span",5),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.config.author)}}function B(n,a){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.SpI("Author: ",e.config.author," - ")}}function z(n,a){if(1&n&&(t.qex(0),t.DNE(1,B,2,1,"span",5),t.EFF(2),t.nI1(3,"date"),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.config.author),t.R7$(),t.SpI("Publish Date: ",t.i5U(3,2,e.config.publish_date,"MM-dd-yyyy")," ")}}let D=(()=>{class n{httpService;datePipe;timePipe;
1imagePath="http://www.aal-europe.eu/wp-content/uploads/2013/04/events_medium.jpg";slug;color="#377889";isExternalLink=!0;fbShareLink;twShareLink;parsedCategories=[];config;isResource=!1;constructor(e,o,i){this.httpService=e,this.datePipe=o,this.timePipe=i}ngOnInit(){const e={id:this.config.image_id,crop_config:this.config.image_crop_config?JSON.parse(this.config.image_crop_config):null,width:350};this.imagePath=this.getCroppedImagePath(e),this.slug=this.config.id+"-"+this.slugify(this.config.title),this.isExternalLink="news"==this.config.type&&!!this.config.source_link;const i="news"==this.config.type?this.config.source_link||window.location.origin:window.location.origin+"/"+(this.config.type?this.config.type:"resource")+"/"+this.slug;switch(this.fbShareLink="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(i),this.twShareLink="https://twitter.com/intent/tweet?text="+encodeURIComponent(this.config.title)+"&url="+encodeURIComponent(i),this.config.type){case"news":this.color="#8F6178";break;case"event":this.color="#3E825B";break;default:this.color="#377889"}if(this.config?.taxonomy_categories){const c=JSON.parse(this.config.taxonomy_categories);this.parsedCategories=c.map(s=>{try{return JSON.parse(s)}catch{return console.error("Invalid JSON:",s),null}}).filter(s=>s)}}get imageAlt(){return this.config.image_alt&&" "!=this.config.image_alt?this.config.image_alt:this.config.title?this.config.title+" cover photo":""}getImagePath(e){return this.httpService.getImagePath(e,350)}getCroppedImagePath(e){return this.httpService.getCroppedImagePath(e)}slugify(e){return e.toLowerCase().replace(/\s/g,"-")}getFormattedDateTime(){let e=this.datePipe.transform(this.config?.event_date,"M/d/yyyy"),o=this.datePipe.transform(this.config?.event_end_date,"M/d/yyyy"),i=this.timePipe.transform(this.config?.event_time),c=this.timePipe.transform(this.config?.event_end_time);return e==o?!o&&i?`${e}, ${i} - 12:00 `:o&&!i?`${e}, 12:00 - ${c} `:o||i?`${e}${i?",":""} ${i||""} - ${c||""}`:`${e}, 12:00 - 12:00 `:`${e}${i?",":""} ${i||""} ${o?"-":""} ${o||""}${o?",":""} ${c||""}`}static \u0275fac=function(o){return new(o||n)(t.rXU(C.A),t.rXU(p.vh),t.rXU(x.M))};static \u0275cmp=t.VBU({type:n,selectors:[["kla-post-item"]],inputs:{config:"config",isResource:"isResource"},standalone:!0,features:[t.aNF],decls:22,vars:22,consts:[[1,"post-item-container"],["class","image-container",3,"routerLink",4,"ngIf"],["class","image-container","target","_blank",3,"href",4,"ngIf"],["class","date mt-4 mb-2","href","javascript:void(0)",4,"ngIf"],["class","category mt-4 mb-2","href","javascript:void(0)",4,"ngIf"],[4,"ngIf"],[3,"routerLink",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],["target","_blank","title","Search on Google maps","class","event-location",3,"href",4,"ngIf"],[1,"description","overflow-hidden","mb-4","mt-3",3,"ngStyle"],[3,"contentId","htmlContent"],[1,"details","mb-1"],[1,"social-icons"],["target","_blank","aria-label","Share to Facebook",3,"href"],[1,"fa","fab","fa-facebook"],["target","_blank","aria-label","Share to X",3,"href"],[1,"fa","fab","fa-twitter"],[1,"image-container",3,"routerLink"],["class","image","loading","lazy",3,"src","alt",4,"ngIf"],["class","type text-capitalize",3,"ngStyle",4,"ngIf"],["loading","lazy",1,"image",3,"src","alt"],[1,"type","text-capitalize",3,"ngStyle"],["target","_blank",1,"image-container",3,"href"],["href","javascript:void(0)",1,"date","mt-4","mb-2"],["href","javascript:void(0)",1,"category","mt-4","mb-2"],[4,"ngFor","ngForOf"],["href","javascript:void(0)","class","category text-uppercase d-inline-block mt-2 mt-md-0",4,"ngIf"],["href","javascript:void(0)",1,"category","text-uppercase","d-inline-block","mt-2","mt-md-0"],[3,"routerLink"],[1,"title",3,"ngStyle"],["target","_blank",3,"href"],["target","_blank","title","Search on Google maps",1,"event-location",3,"href"]],template:function(o,i){1&o&&(t.j41(0,"div",0),t.DNE(1,O,3,7,"a",1)(2,R,3,4,"a",2)(3,S,2,1,"a",3)(4,G,2,1,"a",4)(5,T,2,1,"ng-container",5)(6,E,3,8,"a",6)(7,Y,3,5,"a",7)(8,L,3,5,"a",8),t.j41(9,"div",9),t.nrm(10,"app-dynamic-content",10),t.nI1(11,"truncateHtml"),t.k0s(),t.j41(12,"p",11),t.DNE(13,X,2,1,"ng-container",5)(14,z,4,5,"ng-container",5),t.k0s(),t.j41(15,"div",12)(16,"span")(17,"a",13),t.nrm(18,"i",14),t.k0s()(),t.j41(19,"span")(20,"a",15),t.nrm(21,"i",16),t.k0s()()()()),2&o&&(t.R
17$(),t.Y8G("ngIf",!i.isExternalLink),t.R7$(),t.Y8G("ngIf",i.isExternalLink),t.R7$(),t.Y8G("ngIf","event"==i.config.type),t.R7$(),t.Y8G("ngIf","event"!=i.config.type&&(null==i.config.category?null:i.config.category.trim())),t.R7$(),t.Y8G("ngIf",i.parsedCategories),t.R7$(),t.Y8G("ngIf",!i.isExternalLink),t.R7$(),t.Y8G("ngIf",i.isExternalLink),t.R7$(),t.Y8G("ngIf","event"==i.config.type),t.R7$(),t.Y8G("ngStyle",t.lJ4(18,y)),t.R7$(),t.Y8G("contentId","post-item-text")("htmlContent",t.i5U(11,15,i.config.text,t.eq3(20,k,t.lJ4(19,I)))),t.R7$(3),t.Y8G("ngIf","event"==i.config.type),t.R7$(),t.Y8G("ngIf","event"!=i.config.type),t.R7$(3),t.FS9("href",i.fbShareLink,t.B4B),t.R7$(3),t.FS9("href",i.twShareLink,t.B4B))},dependencies:[p.MD,p.Sq,p.bT,p.B3,p.vh,u,d._,l.iI,l.Wk,P],styles:[".post-item-container[_ngcontent-%COMP%]{height:100%;display:flex;flex-flow:column;font-family:OpenSans-Semibold}.post-item-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.post-item-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]{float:left;width:100%;height:250px;position:relative}.post-item-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.post-item-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .type[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;background:#377889;color:#fff;width:73px;text-align:center;padding:6px 0;font-size:14px}.post-item-container[_ngcontent-%COMP%]   .image-container[_ngcontent-%COMP%]   .likes[_ngcontent-%COMP%]{position:absolute;left:-15px;bottom:-15px;border-radius:50%;background-color:#fff;height:77px;width:77px;box-shadow:0 .5rem 1rem #00000026;color:#444;font-size:11px}.post-item-container[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]{display:inline-block;width:100%;font-size:12px;line-height:24px;color:#6b6d71;margin:auto;text-decoration:none;text-transform:capitalize}.post-item-container[_ngcontent-%COMP%]   .category[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:4px 0 0;float:right}.post-item-container[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{display:inline-block;width:100%;font-size:12px;line-height:24px;color:#6b6d71;margin:auto;text-decoration:none}.post-item-container[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:4px 0 0;float:right}.post-item-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#377889;font-size:24px;margin-bottom:3px;line-height:1.2}.post-item-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:#464747;font-size:18px}.post-item-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{font-size:18px!important;font-family:OpenSans-Semibold!important;white-space:normal!important;max-width:100%!important}.post-item-container[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]:not(a){color:#464747!important}.post-item-container[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]{color:#474747;font-size:12px}.post-item-container[_ngcontent-%COMP%]   .details[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#474747}.post-item-container[_ngcontent-%COMP%]   .social-icons[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:1rem}.post-item-container[_ngcontent-%COMP%]   .social-icons[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#525252;font-size:12px}.post-item-container[_ngcontent-%COMP%]   .event-location[_ngcontent-%COMP%]{font-family:OpenSans-Semibold;font-size:14px;color:#464747}"]})}return n})()}}]);

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.