1AppRegistry.registerBundle({applicationId:'marketplace.sitevision.newslist|1.7.3',bundle: {"en":{"play":"Start automatic change of article","spaceBetweenArticles":"Space between article columns (px)","dateFormat":"Date format","showText":"Show text from article","evaluateFromUser":"Evaluate dynamically from user","userFieldConfigUpdateHelp":"News! It is now possible to select multiple user fields to improve personalized news feeds. The current selected value will automatically be transferred to the list once the configuration is saved.","heroBackgroundColor":"Background color","intervalInSec":"Interval in seconds","emptyImageAltText":"This article has no image","invalidMetadata":"Metadata must be of type text or user","gallery":"Gallery","height":"Height (px)","showPlayPause":"Show play and pause","created":"Created","count":"Count","customAuthor":"Choose custom publisher from metadata","lastPublished":"Last published","targetAudienceMetadata":"Target audience metadata","published":"Published","showPreamble":"Show preamble","targetAudiences":"Target audiences","pause":"Pause automatic change of article","article":"Article","tags":"Show only articles with the following tags","showHeroControls":"Show indicators","dateFormatRequired":"Date format required","showDateAndTime":"Show publication date","selection":"Selection","articleOf":"Article {0} of {1}, {2}","useUserFieldTags":"Combine with values from user fields","viewType":"View type","showArticlesWithSameTag":"show articles with the same tag","useTagsForSelection":"Use tags for selection","useTargetAudienceForSelection":"Use target audiences for selection","spaceBetweenArticlesVertical":"Space between article rows (px)","linkHeadingsOnly":"Use link on title only","skip":"Skip","hero":"Hero","targetAudienceGroupFilter":"Restrict to target audiences in these categories","evaluateFromPredefinedTargetGroups":"Evaluate from predefined target groups","heroHeight":"Hero height (px)","content":"Content","showHeading":"Show title","general":"General","personalization":"Personalization","selectAPage":"Select a page","targetAudienceGroupFilterHelp":"Select one or more target audience categories to restrict which target groups are used for evaluation. If left empty, all user target groups will be used.","sorting":"Sort by","simpleList":"List","noPathRestriction":"Show articles from all archives on the site","currentSlide":"(Current article)","useArrows":"Show arrows/controls","captionWidth":"Width (%)","invalidValue":"Invalid value","selectPage":"Select page","tagLandingPage":"Tag landing page","showContent":"Show content","cycleArticles":"Change article automatically (carousel)","showTargetAudiences":"Show target audiences","usePathRestriction":"Show only articles from the following structures","articleTags":"Article tags","galleryImgHeight":"Image height (px)","customDatePlaceholder":"Custom date format","columnCount":"Max number of columns (1-6)","showAuthor":"Show published by","addPath":"Add path","showHeroBackgroundColor":"Show background color","targetAudienceEvaluationType":"Target audience evaluation type","galleryView":"Gallery","appearance":"Appearance","spaceBetweenSimpleListArticlesVertical":"Space between articles (px)","useTagsLandingPage":"Use landing page with News list module for tags","contentLength":"Max amount of visible characters","showTags":"Show tags","textPadding":"Text padding (px)","showRelativeDate":"Show relative publication date"},"sv":{"play":"Starta automatiskt artikelbyte","spaceBetweenArticles":"AvstÃ¥nd mellan artikelkolumner (px)","dateFormat":"Datumformat","showText":"Visa text frÃ¥n artikel","evaluateFromUser":"Utvärdera dynamiskt frÃ¥n användare","userFieldConfigUpdateHelp":"Nyhet! Du kan nu använda flera användarfält för att förbättra personaliserade nyhetsflöden. Det nuvarande värdet kommer automatiskt flyttas till listan när konfigurationen sparas.","heroBackgroundColor":"Bakgrundsfärg","intervalInSec":"Intervall i sekunder","emptyImageAltText":"Denna artikel saknar bild","invalidMetadata":"Metadata mÃ¥ste vara av typen användare eller text","gallery":"Galleri","height":"Höjd (px)","showPlayPause":"Visa play och paus","created":"Skapad","count":"Antal synliga artiklar","customAuthor":"VÃ
1¤lj annan användare frÃ¥n metadata","lastPublished":"Senast publicerad","targetAudienceMetadata":"MÃ¥lgruppsmetadata","published":"Publicerad","showPreamble":"Visa ingress","targetAudiences":"MÃ¥lgrupper","pause":"Pausa automatiskt artikelbyte","article":"Artikel","tags":"Visa endast artiklar med följande etiketter","showHeroControls":"Visa punkter för antal artiklar","dateFormatRequired":"Datumformat mÃ¥ste anges","showDateAndTime":"Visa publiceringsdatum","selection":"Urval","articleOf":"Artikel {0} av {1}, {2}","useUserFieldTags":"Kombinera med värden frÃ¥n användarfält","viewType":"Vytyp","showArticlesWithSameTag":"visa artiklar med samma etikett","useTagsForSelection":"Använd etiketter för urval","useTargetAudienceForSelection":"Använd mÃ¥lgrupper för urval","spaceBetweenArticlesVertical":"AvstÃ¥nd mellan artikelrader (px)","linkHeadingsOnly":"Länka endast rubriker","skip":"Hoppa över inledande artiklar","hero":"Hero","targetAudienceGroupFilter":"Begränsa till mÃ¥lgrupper i dessa kategorier","evaluateFromPredefinedTargetGroups":"Visa fördefinierade mÃ¥lgrupper","heroHeight":"Höjd pÃ¥ hero (px)","content":"InnehÃ¥ll","showHeading":"Visa rubrik","general":"Allmänt","personalization":"Personalisering","selectAPage":"Välj en sida","targetAudienceGroupFilterHelp":"Välj en eller flera mÃ¥lgruppskategorier för att begränsa vilka mÃ¥lgrupper som används vid utvärdering. Lämnar du tomt används alla användarens mÃ¥lgrupper.","sorting":"Sortera efter","simpleList":"Lista","noPathRestriction":"Visa artiklar frÃ¥n alla arkiv pÃ¥ webbplatsen","currentSlide":"(Aktuell artikel)","useArrows":"Visa pilar (fram och tillbaka)","captionWidth":"Bredd pÃ¥ textblock (%)","invalidValue":"Ogiltigt värde","selectPage":"Välj sida","tagLandingPage":"Landningssida för etiketter","showContent":"Visa innehÃ¥ll","cycleArticles":"Byt artikel automatiskt (karusell)","showTargetAudiences":"Visa mÃ¥lgrupper","usePathRestriction":"Visa endast artiklar frÃ¥n följande strukturer","articleTags":"Nyhetens etiketter","galleryImgHeight":"Höjd pÃ¥ bild (px)","customDatePlaceholder":"Eget datumformat","columnCount":"Max antal kolumner (1-6)","showAuthor":"Visa publicerad av","addPath":"Lägg till sökväg","showHeroBackgroundColor":"Använd färg pÃ¥ textblock","targetAudienceEvaluationType":"MÃ¥lgruppsutvärderingstyp","galleryView":"Galleri","appearance":"Utseende","spaceBetweenSimpleListArticlesVertical":"AvstÃ¥nd mellan artiklar (px)","useTagsLandingPage":"Använd landningssida med Nyhetslista för etiketter","contentLength":"Max antal tecken som ska visas","showTags":"Visa etiketter","textPadding":"Padding i textblock (px)","showRelativeDate":"Visa relativt publiceringsdatum"},"no":{"play":"Start automatisk endring av artikkel","spaceBetweenArticles":"Avstand mellom artikkelkolonner (px)","dateFormat":"Datoformat","showText":"Vis tekst fra artikkel","evaluateFromUser":"Evaluer dynamisk fra bruker","userFieldConfigUpdateHelp":"Nyheter! Det er nÃ¥ mulig Ã¥ velge flere brukerfelt for Ã¥ forbedre personaliserte nyhetsstrømmer. Den nÃ¥værende valgte verdien vil automatisk bli overført til listen nÃ¥r konfigurasjonen er lagret.","heroBackgroundColor":"Bakgrunnsfarge","intervalInSec":"Intervall i sekunder","emptyImageAltText":"Denne artikkelen har ikke noe bilde","invalidMetadata":"Metadata mÃ¥ være av typen tekst eller bruker","gallery":"Galleri","height":"Høyde (px)","showPlayPause":"Vis spill og pause","created":"Opprettet","count":"Antall","customAuthor":"Velg tilpasset utgiver fra metadata","lastPublished":"Sist publisert","targetAudienceMetadata":"MÃ¥lgruppemetadata","published":"Publisert","showPreamble":"Vis ingress","targetAudiences":"MÃ¥lgrupper","pause":"Pause automatisk endring av artikkel","article":"Artikkel","tags":"Vis kun artikler med følgende tagger","showHeroControls":"Vis indikatorer","dateFormatRequired":"Datoformat er pÃ¥krevd","showDateAndTime":"Vis publiseringsdato","selection":"Utvalg","articleOf":"Artikkel {0} av {1}, {2}","useUserFieldTags":"Kombiner med verdier fra brukerfelt","viewType":"Visningstype","showArticlesWithSameTag":"vis artikler med samme tagg","useTagsForSelection":"Bruk tagger for utvalg","useTargetAudienceForSelection":"Bruk mÃ¥lgrupper for utvalg","spaceBetweenArticlesVertical":"Avstand mellom artikkelrader (px)","linkHeadingsOnly":"Bruk lenke kun pÃ¥ tittel","skip":"Hopp over","hero":"Hero","targetAudienceGroupFilter":"Begrens til mÃ¥lgrupper i disse kategoriene","evaluateFromPredefinedTargetGroups":"Vis forhÃ¥ndsdefinerte mÃ¥lgrupper","heroHeight":"Hero høyde (px)","content":"Innhold","showHeading":"Vis tittel","general":"Generelt","personalization":"Personalisering","selectAPage":"Velg en side","targetAudienceGroupFilterHelp":"Velg en eller flere mÃ¥lgruppekategorier for Ã¥ begrense hvilke mÃ¥lgrupper som brukes ved evaluering. Hvis du lar det stÃ¥ tomt, brukes alle brukerens mÃ¥lgrupper.","sorting":"Sorter etter","simpleList":"Liste","noPathRestriction":"Vis artikler fra alle arkiver pÃ¥ nettstedet","useArrows":"Vis piler/kontroller","captionWidth":"Bredde (%)","invali
1dValue":"Ugyldig verdi","selectPage":"Velg side","tagLandingPage":"Tag landingsside","showContent":"Vis innhold","cycleArticles":"Endre artikkel automatisk (karusell)","showTargetAudiences":"Vis målgrupper","usePathRestriction":"Vis kun artikler fra følgende strukturer","articleTags":"Artikkelens tagger","galleryImgHeight":"Bildehøyde (px)","customDatePlaceholder":"Tilpasset datoformat","columnCount":"Maks antall kolonner (1-6)","showAuthor":"Vis publisert av","addPath":"Legg til sti","showHeroBackgroundColor":"Vis bakgrunnsfarge","targetAudienceEvaluationType":"Målgruppeevalueringstype","galleryView":"Galleri","appearance":"Utseende","spaceBetweenSimpleListArticlesVertical":"Avstand mellom artikler (px)","useTagsLandingPage":"Bruk landingsside med nyhetsliste-modul for tagger","contentLength":"Maks antall synlige tegn","showTags":"Vis tagger","textPadding":"Tekstpolstring (px)","showRelativeDate":"Vis relativ publiseringsdato"}}}); 2AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/component/HeroItem',module:function(define){'use strict';define(function (require) { 3 'use strict'; 4 5 var _ = require('underscore'); 6 7 var Component = require('Component'); 8 9 var heroTemplate = require('/template/heroItem'); 10 11 return Component.extend({ 12 template: heroTemplate, 13 className: function className() { 14 return 'sv-newslist__hero-item env-image-slider__item' + (this.state.first ? ' env-image-slider__item--active' : ''); 15 }, 16 templateFunctions: function templateFunctions() { 17 var _this = this; 18 19 return { 20 getMetaText: function getMetaText() { 21 if (_this.state.showDateAndTime && _this.state.showAuthor && _this.state.author) { 22 return "".concat(_this.state.author, ", ").concat(_this.state.publishedDate); 23 } 24 25 if (_this.state.showDateAndTime) { 26 return _this.state.publishedDate; 27 } 28 29 if (_this.state.showAuthor && _this.state.author) { 30 return _this.state.author; 31 } 32 }, 33 getHeading: function getHeading(fontHeadingLevel) { 34 return fontHeadingLevel > 0 ? "h".concat(fontHeadingLevel) : 'p'; 35 }, 36 getStyles: function getStyles() { 37 var styles = "width: ".concat(_this.state.captionWidth, "%; padding: ").concat(_this.state.textPadding, "px;"); 38 39 if (_this.state.showHeroBackgroundColor) { 40 styles += " background-color: ".concat(_this.state.heroBackgroundColor, ";"); 41 } 42 43 return styles; 44 } 45 }; 46 }, 47 filterState: function filterState(state, options) { 48 var item = _.find(state.items, function (item) { 49 return item.id === options.id; 50 }); 51 52 return _.extend({}, item, { 53 showAuthor: state.showAuthor, 54 showDateAndTime: state.showDateAndTime, 55 showHeading: state.showHeading, 56 showTags: state.showTags, 57 showDescription: state.showDescription, 58 heroHeight: state.heroHeight, 59 showContent: state.showContent, 60 fontHeading: state.heading ? state.heading.selectorText : '', 61 fontHeadingLevel: state.heading ? state.heading.headingLevel : '', 62 fontDateAndTime: state.fontDateAndTime, 63 fontDescription: state.fontDescription, 64 fontContent: state.fontContent, 65 heroBackgroundColor: state.heroBackgroundColor, 66 showHeroBackgroundColor: state.showHeroBackgroundColor, 67 captionWidth: state.captionWidth, 68 textPadding: state.textPadding, 69 tagLandingPage: state.tagLandingPage, 70 linkHeadingsOnly: state.linkHeadingsOnly 71 }); 72 } 73 }); 74});}}); 75AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/component/SimpleListItem',module:function(define){'use strict';define(function (require) { 76 'use strict'; 77 78 var _ = require('underscore'); 79 80 var Component = require('Component'); 81 82 var simpleListTemplate = require('/template/simpleListItem'); 83 84 return Component.extend({ 85 tagName: 'li', 86 className: 'env-list__item', 87 attributes: function attributes() { 88 return { 89 style: "margin-bottom: ".concat(this.state.spaceBetweenSimpleListArticlesVertical, "px") 90 }; 91 }, 92 template: simpleListTemplate, 93 templateFunctions: function templateFunctions() { 94 var _this = this; 95 96 return { 97 getMetaText: function getMetaText() { 98 if (_this.state.showDateAndTime && _this.state.showAuthor && _this.state.author) { 99 return "".concat(_this.state.author, ", ").concat(_this.state.publishedDate); 100 } 101 102 if (_this.state.showDateAndTime) { 103 return _this.state.publishedDate; 104 } 105 106 if (_this.state.showAuthor && _this.state.author) { 107 return _this.state.author; 108 } 109 }, 110 getHeading: function getHeading(fontHeadingLevel) { 111 return fontHeadingLevel > 0 ? "h".concat(fontHeadingLevel) : 'p'; 112 } 113 }; 114 }, 115 filterState: function filterState(state, options) { 116 var item = _.find(state.items, function (item) { 117 return item.id === options.id; 118 }); 119 120 return _.extend({}, item, { 121 showAuthor: state.showAuthor, 122 showDateAndTime: state.showDateAndTime, 123 showHeading: state.showHeading, 124 showTags: state.showTags, 125 showDescription: state.showDescription, 126 showContent: state.showContent, 127 fontHeading: state.heading ? state.heading.selectorText : '', 128 fontHeadingLevel: state.heading ? state.heading.headingLevel : '', 129 fontDateAndTime: state.fontDateAndTime, 130 fontDescription: state.fontDescription, 131 fontContent: state.fontContent, 132 tagLandingPage: state.tagLandingPage, 133 spaceBetweenSimpleListArticlesVertical: state.spaceBetweenSimpleListArticlesVertical, 134 linkHeadingsOnly: state.linkHeadingsOnly 135 }); 136 } 137 }); 138});}}); 139AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/component/Tag',module:function(define){'use strict';define(function (require) { 140 'use strict'; 141 142 var _ = require('underscore'); 143 144 var Component = require('Component'); 145 146 var tagLinkTemplate = require('/template/tagLink'); 147 148 var tagTemplate = require('/template/tag'); 149 150 var targetAudienceTemplate = require('/template/targetAudience'); 151 152 return Component.extend({ 153 tagName: 'li', 154 getTemplate: function getTemplate() { 155 if (this.state.isSocialTag) { 156 return this.state.useTagsLandingPage ? tagLinkTemplate : tagTemplate; 157 } 158 159 return targetAudienceTemplate; 160 }, 161 templateFunctions: function templateFunctions() { 162 return { 163 getDisplayName: function getDisplayName(tagTitle, tagName) { 164 return tagTitle ? tagTitle : tagName; 165 } 166 }; 167 }, 168 filterState: function filterState(state, options) { 169 var article = _.find(state.items, function (item) { 170 return item.id === options.articleId; 171 }); 172 173 if (!article) { 174 return {}; 175 } 176 177 var tag = _.find(article.tags, function (tag) { 178 return tag.id === options.id; 179 }); 180 181 return _.extend({}, tag, { 182 useTagsLandingPage: state.useTagsLandingPage, 183 tagLandingPage: state.tagLandingPage, 184 isSocialTag: tag.type === 'socialTag' 185 }); 186 } 187 }); 188});}}); 189AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/template/tag',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 190var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 191with(obj||{}){ 192__p+='<span class="env-badge env-m-right--xx-small env-m-bottom--xx-small">\n '+ 193((__t=( getDisplayName(tagTitle, tagName) ))==null?'':_.escape(__t))+ 194'\n</span>\n'; 195} 196return __p; 197};});}}); 198AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/component/Hero',module:function(define){'use strict';define(function (require) { 199 'use strict'; 200 201 var _ = require('underscore'); 202 203 var ListComponent = require('ListComponent'); 204 205 return ListComponent.extend({ 206 className: 'env-image-slider__inner', 207 childComponentPath: 'HeroItem', 208 childProperty: 'items', 209 filterState: function filterState(state) { 210 return _.extend({}, { 211 items: state.items 212 }); 213 } 214 }); 215});}}); 216AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/component/Gallery',module:function(define){'use strict';define(function (require) { 217 'use strict'; 218 219 var _ = require('underscore'); 220 221 var ListComponent = require('ListComponent'); 222 223 var app = require('app'); 224 225 return ListComponent.extend({ 226 tagName: 'ul', 227 className: 'env-list env-list--horizontal--fixed sv-newslist-gallery', 228 childComponentPath: 'GalleryItem', 229 childProperty: 'items', 230 attributes: { 231 'data-testid': 'gallery-container' 232 }, 233 onRendered: function onRendered() { 234 if (this.state.isOffline) { 235 this.addOfflineStyles(); 236 } 237 }, 238 addOfflineStyles: _.once(function () { 239 var id = 'styles_' + app.portletId.replace('.', '_'); 240 var styleTag = document.getElementById(id); 241 242 if (styleTag) { 243 styleTag.innerHTML = this.state.offlineCss; 244 } else { 245 styleTag = document.createElement('style'); 246 var head = document.head || document.getElementsByTagName('head')[0]; 247 head.appendChild(styleTag); 248 styleTag.id = id; 249 styleTag.innerHTML = this.state.offlineCss; 250 } 251 }), 252 filterState: function filterState(state) { 253 return _.extend({}, { 254 items: state.items,
255 offlineCss: state.offlineCss, 256 isOffline: state.isOffline 257 }); 258 } 259 }); 260});}}); 261AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/template/heroItem',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 262var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 263with(obj||{}){ 264__p+='<article class="env-image-slider__caption'; 265 if (!imageUrl) { 266__p+=' sv-newslist-no-image'; 267 } 268__p+='"\n style="background-image: url(\''+ 269((__t=( imageUrl ))==null?'':_.escape(__t))+ 270'\'); height: '+ 271((__t=( heroHeight ))==null?'':_.escape(__t))+ 272'px">\n <div class="sv-newslist__caption--width" style="'+ 273((__t=( getStyles() ))==null?'':_.escape(__t))+ 274'">\n '; 275 if (showHeading) { 276__p+='\n <header class="env-news-item__headline">\n <div class="env-news-item__headline__title">\n <'+ 277((__t=( getHeading(fontHeadingLevel) ))==null?'':_.escape(__t))+ 278' class="'+ 279((__t=( fontHeading ))==null?'':_.escape(__t))+ 280'">\n <a href="'+ 281((__t=( url ))==null?'':_.escape(__t))+ 282'" class="sv-newslist__hero__link">\n '+ 283((__t=( title ))==null?'':_.escape(__t))+ 284'\n </a>\n </'+ 285((__t=( getHeading(fontHeadingLevel) ))==null?'':_.escape(__t))+ 286'>\n </div>\n </header>\n '; 287 } 288__p+='\n\n <div class="env-news-item__preamble">\n '; 289 if (showDescription) { 290__p+='\n <p class="'+ 291((__t=( fontDescription ))==null?'':_.escape(__t))+ 292'">\n '; 293 if (linkHeadingsOnly) { 294__p+='\n <span class="sv-newslist__hero__link"> '+ 295((__t=( description ))==null?'':_.escape(__t))+ 296' </span>\n '; 297 } else { 298__p+='\n <a href="'+ 299((__t=( url ))==null?'':_.escape(__t))+ 300'" class="sv-newslist__hero__link"> '+ 301((__t=( description ))==null?'':_.escape(__t))+ 302' </a>\n '; 303 } 304__p+='\n </p>\n '; 305 } if (showContent && content.length) { 306__p+='\n <p class="'+ 307((__t=( fontContent ))==null?'':_.escape(__t))+ 308'">\n '; 309 if (linkHeadingsOnly) { 310__p+='\n <span class="sv-newslist__hero__link">'+ 311((__t=( content ))==null?'':_.escape(__t))+ 312'</span>\n '; 313 } else { 314__p+='\n <a href="'+ 315((__t=( url ))==null?'':_.escape(__t))+ 316'" class="sv-newslist__hero__link">'+ 317((__t=( content ))==null?'':_.escape(__t))+ 318'</a>\n '; 319 } 320__p+='\n </p>\n '; 321 } 322__p+='\n </div>\n\n '; 323 if (showTags || showAuthor || showDateAndTime) { 324__p+='\n <footer class="env-news-item__footer env-d--flex env-align-items--center">\n '; 325 if (showTags && tags.length > 0) { 326__p+='\n '+ 327((__t=( renderer.renderComponent('Tags', { 328 articleId: id, 329 className: 'env-list env-d--flex env-flex-wrap--wrap env-p-right--xx-large' 330 }) ))==null?'':__t)+ 331'\n '; 332 } 333__p+='\n\n '; 334 if (showAuthor || showDateAndTime) { 335__p+='\n <small class="'+ 336((__t=( fontDateAndTime ))==null?'':_.escape(__t))+ 337' env-m-left--a">'+ 338((__t=( getMetaText() ))==null?'':_.escape(__t))+ 339'</small>\n '; 340 } 341__p+='\n </footer>\n '; 342 } 343__p+='\n </div>\n</article>\n'; 344} 345return __p; 346};});}}); 347AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/template/simpleListItem',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 348var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 349with(obj||{}){ 350__p+='<article class="env-p-around--x-small env-d--flex env-flex--column">\n <header class="env-d--flex env-flex--column">\n '; 351 if (showAuthor || showDateAndTime) { 352__p+='\n <small class="'+ 353((__t=( fontDateAndTime ))==null?'':_.escape(__t))+ 354'">'+ 355((__t=( getMetaText() ))==null?'':_.escape(__t))+ 356'</small>\n '; 357 } if (showHeading) { 358__p+='\n <'+ 359((__t=( getHeading(fontHeadingLevel) ))==null?'':_.escape(__t))+ 360' class="'+ 361((__t=( fontHeading ))==null?'':_.escape(__t))+ 362' sv-newslist-header">\n <a href="'+ 363((__t=( url ))==null?'':_.escape(__t))+ 364'">'+ 365((__t=( title ))==null?'':_.escape(__t))+ 366'</a>\n </'+ 367((__t=( getHeading(fontHeadingLevel) ))==null?'':_.escape(__t))+ 368'>\n '; 369 } 370__p+='\n </header>\n\n '; 371 if (showDescription && description.length) { 372__p+='\n <div>\n '; 373 if (linkHeadingsOnly) {
374__p+='\n <span class="'+ 375((__t=( fontDescription ))==null?'':_.escape(__t))+ 376'">\n '+ 377((__t=( description ))==null?'':_.escape(__t))+ 378'\n </span>\n '; 379 } else { 380__p+='\n <a class="'+ 381((__t=( fontDescription ))==null?'':_.escape(__t))+ 382'" href="'+ 383((__t=( url ))==null?'':_.escape(__t))+ 384'">\n '+ 385((__t=( description ))==null?'':_.escape(__t))+ 386'\n </a>\n '; 387 } 388__p+='\n </div>\n '; 389 } 390__p+='\n '; 391 if (showContent && content.length) { 392__p+='\n <div>\n <p class="'+ 393((__t=( fontContent ))==null?'':_.escape(__t))+ 394'">'+ 395((__t=( content ))==null?'':_.escape(__t))+ 396'</p>\n </div>\n '; 397 } 398__p+='\n '; 399 if (showTags && tags.length > 0) { 400__p+='\n <footer class="env-m-top--large">\n '+ 401((__t=( renderer.renderComponent('Tags', { 402 articleId: id, 403 className: 'env-list env-d--flex env-flex-wrap--wrap env-p-right--x-large' 404 }) ))==null?'':__t)+ 405'\n </footer>\n '; 406 } 407__p+='\n</article>\n'; 408} 409return __p; 410};});}}); 411AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/template/main',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 412var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 413with(obj||{}){ 414__p+=''; 415 if (viewType === 'Hero') { 416__p+=' '+ 417((__t=( renderer.renderComponent('HeroContainer') 418))==null?'':__t)+ 419' '; 420 } else { 421__p+=' '+ 422((__t=( renderer.renderComponent(viewType) ))==null?'':__t)+ 423' '; 424 } 425__p+='\n'; 426} 427return __p; 428};});}}); 429AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/template/targetAudience',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 430var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 431with(obj||{}){ 432__p+='<span class="env-badge env-m-right--xx-small env-m-bottom--xx-small">\n '+ 433((__t=( displayName ))==null?'':_.escape(__t))+ 434'\n</span>\n'; 435} 436return __p; 437};});}}); 438AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/component/GalleryItem',module:function(define){'use strict';define(function (require) { 439 'use strict'; 440 441 var _ = require('underscore'); 442 443 var Component = require('Component'); 444 445 var galleryItemTemplate = require('/template/galleryItem'); 446 447 return Component.extend({ 448 tagName: 'li', 449 className: 'env-list__item sv-newslist__gallery-item', 450 template: galleryItemTemplate, 451 attributes: { 452 'data-testid': 'gallery-news-item' 453 }, 454 templateFunctions: function templateFunctions() { 455 var _this = this; 456 457 return { 458 getMetaText: function getMetaText() { 459 if (_this.state.showDateAndTime && _this.state.showAuthor && _this.state.author) { 460 return "".concat(_this.state.author, ", ").concat(_this.state.publishedDate); 461 } 462 463 if (_this.state.showDateAndTime) { 464 return _this.state.publishedDate; 465 } 466 467 if (_this.state.showAuthor && _this.state.author) { 468 return _this.state.author; 469 } 470 }, 471 getHeading: function getHeading(fontHeadingLevel) { 472 return fontHeadingLevel > 0 ? "h".concat(fontHeadingLevel) : 'p'; 473 } 474 }; 475 }, 476 filterState: function filterState(state, options) { 477 var item = _.find(state.items, function (item) { 478 return item.id === options.id; 479 }); 480 481 return _.extend({}, item, { 482 showAuthor: state.showAuthor, 483 showDateAndTime: state.showDateAndTime, 484 showHeading: state.showHeading, 485 showTags: state.showTags, 486 showDescription: state.showDescription, 487 showContent: state.showContent, 488 fontHeading: state.heading ? state.heading.selectorText : '', 489 fontHeadingLevel: state.heading ? state.heading.headingLevel : '', 490 fontDateAndTime: state.fontDateAndTime, 491 fontDescription: state.fontDescription, 492 fontContent: state.fontContent, 493 tagLandingPage: state.tagLandingPage, 494 galleryImgHeight: state.galleryImgHeight, 495 linkHeadingsOnly: state.linkHeadingsOnly 496 }); 497 } 498 }); 499});}}); 500AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/component/SimpleList',module:function(define){'use strict';define(function (require) { 501 'use strict'; 502 503 var _ = require('underscore'); 504 505 var ListComponent = require('ListComponent'); 506 507 return ListComponent.extend({ 508 tagName: 'ul', 509 className: 'env-list', 510 childComponentPath: 'SimpleListItem', 511 childProperty: 'items', 512 filterState: function filterState(state) { 513 return _.extend({}, { 514 items: state.items 515 }); 516 } 517 }); 518});}}); 519AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/template/galleryItem',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 520var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 521with(obj||{}){ 522__p+='<article class="env-h--100 sv-newslist__gallery-article'; 523 if (!imageUrl) { 524__p+=' sv-newslist__gallery-article-no-image'; 525 } 526__p+='">\n\n '; 527 if (!linkHeadingsOnly) { 528__p+='\n <a href="'+ 529((__t=( url ))==null?'':_.escape(__t))+ 530'" aria-label="'+ 531((__t=( title ))==null?'':_.escape(__t))+ 532'" title="'+ 533((__t=( title ))==null?'':_.escape(__t))+ 534'">\n ';
535 } 536__p+='\n '; 537 var sizeStyle = (galleryImgHeight ? 'height:' + galleryImgHeight + 'px;min-height:' + galleryImgHeight + 'px;' : ''); 538__p+='\n '; 539 if (imageUrl) { 540__p+='\n <div class="sv-newslist__gallery-item__image" style="background-image: url(\''+ 541((__t=( imageUrl ))==null?'':_.escape(__t))+ 542'\'); '+ 543((__t=( sizeStyle ))==null?'':_.escape(__t))+ 544'"></div>\n '; 545 } else { 546__p+='\n <div class="sv-newslist__gallery-item__image sv-newslist-no-image" style="'+ 547((__t=( sizeStyle ))==null?'':_.escape(__t))+ 548'"></div>\n '; 549 } 550__p+='\n '; 551 if (!linkHeadingsOnly) { 552__p+='\n </a>\n '; 553 } 554__p+='\n\n <div class="env-p-around--xx-small env-h--100 env-d--flex env-flex--column">\n <header>\n '; 555 if (showAuthor || showDateAndTime) { 556__p+='\n <small class="'+ 557((__t=( fontDateAndTime ))==null?'':_.escape(__t))+ 558'">'+ 559((__t=( getMetaText() ))==null?'':_.escape(__t))+ 560'</small>\n '; 561 } if (showHeading) { 562__p+='\n <'+ 563((__t=( getHeading(fontHeadingLevel) ))==null?'':_.escape(__t))+ 564' class="'+ 565((__t=( fontHeading ))==null?'':_.escape(__t))+ 566'">\n <a href="'+ 567((__t=( url ))==null?'':_.escape(__t))+ 568'">'+ 569((__t=( title ))==null?'':_.escape(__t))+ 570'</a>\n </'+ 571((__t=( getHeading(fontHeadingLevel) ))==null?'':_.escape(__t))+ 572'>\n '; 573 } 574__p+='\n </header>\n\n '; 575 if (showDescription && description.length) { 576__p+='\n <div>\n '; 577 if (linkHeadingsOnly) { 578__p+='\n <span class="'+ 579((__t=( fontDescription ))==null?'':_.escape(__t))+ 580'">\n '+ 581((__t=( description ))==null?'':_.escape(__t))+ 582'\n </span>\n '; 583 } else { 584__p+='\n <a class="'+ 585((__t=( fontDescription ))==null?'':_.escape(__t))+ 586'" href="'+ 587((__t=( url ))==null?'':_.escape(__t))+ 588'">\n '+ 589((__t=( description ))==null?'':_.escape(__t))+ 590'\n </a>\n '; 591 } 592__p+='\n </div>\n '; 593 } 594__p+='\n '; 595 if (showContent && content.length) { 596__p+='\n <section>\n <p class="'+ 597((__t=( fontContent ))==null?'':_.escape(__t))+ 598'">'+ 599((__t=( content ))==null?'':_.escape(__t))+ 600'</p>\n </section>\n '; 601 } 602__p+='\n '; 603 if (showTags && tags.length > 0) { 604__p+='\n <footer>\n '+ 605((__t=( renderer.renderComponent('Tags', { 606 articleId: id, 607 className: 'env-list env-d--flex env-flex-wrap--wrap env-m-top--xx-large', 608 }) ))==null?'':__t)+ 609'\n </footer>\n '; 610 } 611__p+='\n </div>\n</article>\n'; 612} 613return __p; 614};});}}); 615AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/template/tagLink',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 616var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 617with(obj||{}){ 618__p+='<a\n class="env-badge env-m-right--xx-small env-m-bottom--xx-small"\n href="'+ 619((__t=( tagLandingPage ))==null?'':_.escape(__t))+ 620'?newslisttag='+ 621((__t=( tagName ))==null?'':_.escape(__t))+ 622'"\n>\n '+ 623((__t=( getDisplayName(tagTitle, tagName) ))==null?'':_.escape(__t))+ 624'\n <span class="env-assistive-text">, '+ 625((__t=( i18n('showArticlesWithSameTag') ))==null?'':_.escape(__t))+ 626'</span>\n</a>\n'; 627} 628return __p; 629};});}}); 630AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/component/Tags',module:function(define){'use strict';define(function (require) { 631 'use strict'; 632 633 var _ = require('underscore'); 634 635 var i18n = require('i18n'); 636 637 var ListComponent = require('ListComponent'); 638 639 return ListComponent.extend({ 640 tagName: 'ul', 641 childComponentPath: 'Tag', 642 childProperty: 'tags', 643 attributes: function attributes() { 644 return { 645 'aria-label': i18n.get('articleTags') 646 }; 647 }, 648 className: function className() { 649 return this.options.className; 650 }, 651 childOptions: function childOptions() { 652 return { 653 articleId: this.options.articleId 654 }; 655 }, 656 filterState: function filterState(state, options) { 657 var item = _.find(state.items, function (item) { 658 return item.id === options.articleId; 659 }); 660 661 if (!item) { 662 return { 663 tags: [] 664 }; 665 } 666 667 return _.extend({}, { 668 tags: item.tags 669 }); 670 } 671 }); 672});}}); 673AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/component/HeroContainer',module:function(define){'use strict';/* global envision */ 674define(function (require) { 675 'use strict'; 676 677 var _ = require('underscore'); 678 679 var Component = require('Component'); 680 681 var template = require('/template/heroContainer'); 682 683 var app = require('app'); 684 685 var i18n = require('i18n'); 686 687 return Component.extend({ 688 className: 'env-image-slider env-image-slider--slide sv-hero__background', 689 attributes: function attributes() { 690 var attributes = { 691 tabindex: '0', 692 id: this.getNamespace(), 693 'data-pause': 'hover', 694 'data-image-slider': this.state.autoCycle ? 'cycle' : '' 695 }; 696 697 if (this.state.autoCycle) { 698 attributes['data-interval'] = this.state.cycleInterval; 699 } 700 701 if (!this.state.useArrows) {
702 attributes['data-buttons'] = 'false'; 703 } 704 705 return attributes; 706 }, 707 template: template, 708 events: { 709 dom: { 710 'click [data-newslist-cycle-control]': 'handleControl', 711 'keydown [data-newslist-cycle-control]': 'handleKeyDown' 712 } 713 }, 714 handleKeyDown: function handleKeyDown(e) { 715 if (e.which === 13) { 716 this.handleControl(e); 717 } 718 }, 719 onRendered: function onRendered() { 720 var _this = this; 721 722 document.getElementById(this.getNamespace()).addEventListener('slid', function (e) { 723 var items = _this.state.items; 724 var index = e.detail.to; 725 726 _this.$('[aria-live]').text(i18n.get('articleOf', index + 1, items.length, items[index].title)); 727 728 if (_this.state.showControls) { 729 var currentSlideText = i18n.get('currentSlide'); 730 731 _this.$(".env-image-slider__indicators button").each(function () { 732 if (this.classList.contains('env-is-active')) { 733 if (!this.firstElementChild.textContent.includes(currentSlideText)) { 734 this.firstElementChild.textContent += currentSlideText; 735 } 736 } else { 737 this.firstElementChild.textContent = this.textContent.replace(currentSlideText, ''); 738 } 739 }); 740 } 741 }); 742 }, 743 handleControl: function handleControl(e) { 744 var action = e.currentTarget.getAttribute('data-cycle-action'); 745 746 if (action === 'pause') { 747 envision.imageSlider(this.$el[0]).then(function (sliders) { 748 sliders[0].pause(); 749 }); 750 this.$('.sv-newslist__hero__cycle-control__pause').addClass('env-d--none'); 751 this.$('.sv-newslist__hero__cycle-control__play').removeClass('env-d--none'); 752 e.currentTarget.setAttribute('data-cycle-action', 'play'); 753 } else { 754 envision.imageSlider(this.$el[0]).then(function (sliders) { 755 sliders[0].cycle(); 756 }); 757 this.$('.sv-newslist__hero__cycle-control__play').addClass('env-d--none'); 758 this.$('.sv-newslist__hero__cycle-control__pause').removeClass('env-d--none'); 759 e.currentTarget.setAttribute('data-cycle-action', 'pause'); 760 } 761 }, 762 getNamespace: function getNamespace() { 763 return 'svHeroSlider' + app.portletId.replace('.', '_'); 764 }, 765 filterState: function filterState(state) { 766 return _.extend({}, { 767 autoCycle: state.autoCycle, 768 cycleInterval: state.cycleInterval, 769 useArrows: state.useArrows, 770 showControls: state.showControls, 771 items: state.items, 772 showPlayPause: state.showPlayPause 773 }); 774 } 775 }); 776});}}); 777AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/template/heroContainer',module:function(define){define(function(require){var _=require('underscore');return function(obj){ 778var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');}; 779with(obj||{}){ 780__p+=''+ 781((__t=( renderer.renderComponent('Hero') ))==null?'':__t)+ 782' '; 783 if (autoCycle && showPlayPause) { 784__p+='\n<div\n class="sv-newslist__hero__cycle-control"\n data-newslist-cycle-control\n data-cycle-action="pause"\n role="button"\n tabindex="0"\n>\n <div class="sv-newslist__hero__cycle-control__play env-d--none">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <path\n id="play"\n fill="white"\n d="M24.8175,16.86432,9.503,25.77667A1,1,0,0,1,8,24.91235V7.08765a1,1,0,0,1,1.503-.86432L24.8175,15.13568A1.00006,1.00006,0,0,1,24.8175,16.86432Z"\n />\n </svg>\n <span class="env-assistive-text">'+ 785((__t=( i18n('play') ))==null?'':_.escape(__t))+ 786'</span>\n </div>\n <div class="sv-newslist__hero__cycle-control__pause">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">\n <path\n id="pause"\n fill="white"\n d="M14,7V25a1,1,0,0,1-1,1H8a1,1,0,0,1-1-1V7A1,1,0,0,1,8,6h5A1,1,0,0,1,14,7Zm9-1H18a1,1,0,0,0-1,1V25a1,1,0,0,0,1,1h5a1,1,0,0,0,1-1V7A1,1,0,0,0,23,6Z"\n />\n </svg>\n <span class="env-assistive-text">'+ 787((__t=( i18n('pause') ))==null?'':_.escape(__t))+ 788'</span>\n </div>\n</div>\n'; 789 } 790__p+=' '; 791 if (showControls && items.length > 1) { 792__p+='\n<div class="env-image-slider__indicators">\n '; 793 for (var i = 0; i < items.length; i++) { 794__p+='\n <button\n class="'; 795 if (i === 0) { 796__p+='env-is-active ';
797 } 798__p+='"\n type="button"\n title="'+ 799((__t=( i18n('article') ))==null?'':_.escape(__t))+ 800' '+ 801((__t=( i ))==null?'':__t)+ 802'"\n data-target="#'+ 803((__t=( appContext.getWebAppNamespace('svHeroSlider') ))==null?'':_.escape(__t))+ 804'"\n data-move-to="'+ 805((__t=( i ))==null?'':__t)+ 806'">\n <span class="env-assistive-text">'+ 807((__t=( i18n('article') ))==null?'':_.escape(__t))+ 808' '+ 809((__t=( i + 1 ))==null?'':__t)+ 810',\n '; 811 if (i === 0) { 812__p+=' '+ 813((__t=( i18n('currentSlide') ))==null?'':_.escape(__t))+ 814' '; 815 } 816__p+='\n </span>\n </button>\n '; 817 } 818__p+='\n</div>\n'; 819 } 820__p+='\n<span class="env-assistive-text" aria-live="polite" aria-atomic="true">\n '+ 821((__t=( i18n('article') ))==null?'':_.escape(__t))+ 822' 1 '+ 823((__t=( i18n('of') ))==null?'':_.escape(__t))+ 824' '+ 825((__t=( items.length ))==null?'':__t)+ 826', '+ 827((__t=( items[0].title ))==null?'':__t)+ 828'\n</span>\n'; 829} 830return __p; 831};});}}); 832AppRegistry.registerModule({applicationId:'marketplace.sitevision.newslist|1.7.3',path:'/main',module:function(define){'use strict';define(function (require) { 833 'use strict'; 834 835 var Component = require('Component'); 836 837 var template = require('/template/main'); 838 839 var _require = require('app'), 840 portletId = _require.portletId; 841 842 return Component.extend({ 843 className: "sv-newslist".concat(/^12\.[0-9abcdef]{6,}/.test(portletId) ? " sv-newslist".concat(portletId.replace('.', '_')) : ''), 844 // scoping not used in addon view 845 template: template 846 }); 847});}});
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.