PageSourceSearch

https://www.securitas.com.hr/js/news-listing-page.0e7383f1.chunk.min.js

js securitas.com.hr collected 2026-10-05 22:44:32 UTC 7,329 bytes, 2 lines download raw bytes

vendor: 3,601 bytes, line 1
1(self.webpackChunksecuritas=self.webpackChunksecuritas||[]).push([[539],{5932(e,t,n){var l=n(3633);e.exports=(l.default||l).template({0:function(e,t,n,l,a){var s,i,o=null!=t?t:e.nullContext||{},r=e.hooks.helperMissing,u="function",c=e.escapeExpression,h=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<li class="list__section">\n    <ul>\n        <li class="list__item">\n            \x3c!-- News Image --\x3e\n            <div class="list__img">\n'+(null!=(s=h(n,"if").call(o,null!=t?h(t,"thumbnailImageDAM"):t,{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(2,a,0),data:a,loc:{start:{line:7,column:16},end:{line:15,column:23}}}))?s:"")+'            </div>\n\n            \x3c!-- News Date --\x3e\n            <div class="list__info">'+c(typeof(i=null!=(i=h(n,"publishDateFormatted")||(null!=t?h(t,"publishDateFormatted"):t))?i:r)===u?i.call(o,{name:"publishDateFormatted",hash:{},data:a,loc:{start:{line:19,column:36},end:{line:19,column:60}}}):i)+'</div>\n\n            \x3c!-- News Title / Link --\x3e\n            <div class="list__main">\n                <div class="label">\n                    <a href="'+c(typeof(i=null!=(i=h(n,"url")||(null!=t?h(t,"url"):t))?i:r)===u?i.call(o,{name:"url",hash:{},data:a,loc:{start:{line:24,column:29},end:{line:24,column:36}}}):i)+'">'+c(typeof(i=null!=(i=h(n,"title")||(null!=t?h(t,"title"):t))?i:r)===u?i.call(o,{name:"title",hash:{},data:a,loc:{start:{line:24,column:38},end:{line:24,column:47}}}):i)+'</a>\n                </div>\n            </div>\n\n            \x3c!-- Read More Arrow / Action --\x3e\n            <a class="list__action linkbutton__icon linkbutton__icon--arrow"\n               href="'+c(typeof(i=null!=(i=h(n,"url")||(null!=t?h(t,"url"):t))?i:r)===u?i.call(o,{name:"url",hash:{},data:a,loc:{start:{line:30,column:21},end:{line:30,column:28}}}):i)+'" aria-hidden="true" tabindex="-1">\n            </a>\n        </li>\n    </ul>\n</li>\n'},1:function(e,t,n,l,a){var s,i=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,r="function",u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'                <img src="'+u(typeof(s=null!=(s=c(n,"thumbnailImageDAM")||(null!=t?c(t,"thumbnailImageDAM"):t))?s:o)===r?s.call(i,{name:"thumbnailImageDAM",hash:{},data:a,loc:{start:{line:8,column:26},end:{line:8,column:47}}}):s)+'" alt="'+u(typeof(s=null!=(s=c(n,"thumbnailImageAltText")||(null!=t?c(t,"thumbnailImageAltText"):t))?s:o)===r?s.call(i,{name:"thumbnailImageAltText",hash:{},data:a,loc:{start:{line:8,column:54},end:{line:8,column:79}}}):s)+'" />\n'},2:function(e,t,n,l,a){var s,i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=i(n,"if").call(null!=t?t:e.nullContext||{},null!=t?i(t,"thumbnailImageSRC"):t,{name:"if",hash:{},fn:e.program(3,a,0),inverse:e.program(4,a,0),data:a,loc:{start:{line:10,column:16},end:{line:14,column:23}}}))?s:""},3:function(e,t,n,l,a){var s,i=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,r="function",u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'                <img src="'+u(typeof(s=null!=(s=c(n,"thumbnailImageSRC")||(null!=t?c(t,"thumbnailImageSRC"):t))?s:o)===r?s.call(i,{name:"thumbnailImageSRC",hash:{},data:a,loc:{start:{line:11,column:26},end:{line:11,column:47}}}):s)+'" alt="'+u(typeof(s=null!=(s=c(n,"thumbnailImageAltText")||(null!=t?c(t,"thumbnailImageAltText"):t))?s:o)===r?s.call(i,{name:"thumbnailImageAltText",hash:{}
1,data:a,loc:{start:{line:11,column:54},end:{line:11,column:79}}}):s)+'" />\n'},4:function(e,t,n,l,a){var s,i=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,r="function",u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'                <img src="'+u(typeof(s=null!=(s=c(n,"defaultImageSRC")||(null!=t?c(t,"defaultImageSRC"):t))?s:o)===r?s.call(i,{name:"defaultImageSRC",hash:{},data:a,loc:{start:{line:13,column:26},end:{line:13,column:45}}}):s)+'" alt="'+u(typeof(s=null!=(s=c(n,"defaultImageAltText")||(null!=t?c(t,"defaultImageAltText"):t))?s:o)===r?s.call(i,{name:"defaultImageAltText",hash:{},data:a,loc:{start:{line:13,column:52},end:{line:13,column:75}}}):s)+'" />\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,l,a){var s,i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(s=i(n,"each").call(null!=t?t:e.nullContext||{},null!=t?i(t,"newsListings"):t,{name:"each",hash:{},fn:e.program(0,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:35,column:9}}}))?s:""},useData:!0})},9950(e,t,n){"use strict";n.d(t,{Y:()=>a});var l=n(9025);class a{rootElement;index;dataset;constructor(e,t){this.rootElement=e,this.index=t,this.dataset=e.dataset}getRootElement(){return this.rootElement}getComponent(e){const t=this.rootElement.querySelector(e);return t?l.H.getComponent(t):null}destroy(){}}},4662(e,t,n){"use strict";function l(e,t=300){let n;return function(...l){clearTimeout(n),n=setTimeout(()=>{e.apply(this,l)},t)}}n.d(t,{s:()=>l})},6982(e,t,n){"use strict";n.d(t,{NewsListingPage:()=>u});var l=n(9950),a=n(4662),s=n(9079);const i=new class{apiClient=new s.O("/api/newslistings");getNewsListings(e){return this.apiClient.get("pageData",e)}};var o=n(5932),r=n.n(o);class u extends l.Y{static className="js-news-listing-page";api=i;newsListElement;newsListLoader;loadMoreButton;yearSelect=null;pageID;page=1;totalPages=0;constructor(e,t){super(e,t),this.pageID=e.dataset.pageid||"0",this.newsListElement=e.querySelector(".news__list"),this.newsListLoader=e.querySelector(".list__loader"),this.loadMoreButton=e.querySelector("#load-more-button"),this.yearSelect=this.getComponent("[name='year']"),this.yearSelect?.on("change",this.onYearChange),this.loadMoreButton.addEventListener("click",this.loadNextPage),this.refreshNewsListings()}
1getRequestParams(){const e={pageID:this.pageID,page:this.page,lang:document.documentElement.lang};if(this.yearSelect){const t=this.yearSelect.getSelectedValues();t.length>0&&(e.year=t.join(","))}return e}onYearChange=e=>{const t=new URLSearchParams(window.location.search);e.length>0?t.set("year",e.join(",")):t.delete("year"),history.replaceState({},"",`${location.pathname}?${t}`),this.page=1,this.refreshNewsListings()};refreshNewsListings=(0,a.s)(async()=>{this.page=1,this.newsListLoader.style.display="block",this.newsListElement.style.display="none",this.loadMoreButton.disabled=!0;const e=this.getRequestParams(),t=await this.api.getNewsListings(e);this.totalPages=t.totalPages,this.newsListElement.innerHTML=r()({newsListings:t.newsListings}),console.log("newsListings data:",t.newsListings),this.newsListLoader.style.display="none",this.newsListElement.style.display="grid",this.loadMoreButton.disabled=this.page>=this.totalPages},300);loadNextPage=(0,a.s)(async()=>{if(this.page>=this.totalPages)return;this.page++,this.loadMoreButton.disabled=!0;
1const e=this.getRequestParams(),t=await this.api.getNewsListings(e);this.newsListElement.insertAdjacentHTML("beforeend",r()({newsListings:t.newsListings})),this.loadMoreButton.disabled=this.page>=this.totalPages},300)}}}]);
2//# sourceMappingURL=news-listing-page.0e7383f1.chunk.min.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.