PageSourceSearch

https://www.bekaert.com/etc.clientlibs/corporate/clientlibs/genera…ter.min.bd2d9c346483f0323d6ceef0d3242e52.js

js bekaert.com collected 2026-10-02 17:19:14 UTC 13,236 bytes, 1 lines download raw bytes

1!function(){"use strict";function e(e){return null==e||void 0===e||"string"==typeof e&&""===e.trim()||e.hasOwnProperty("length")&&0===e.length||e.constructor===Object&&0===Object.keys(e).length}$.fn.isInViewport=function(){var e,t=null===(e=$(this).offset())||void 0===e?void 0:e.top,n=t+$(this).outerHeight(),o=$(window).scrollTop(),a=o+$(window).height();return n>o&&t<a};var t=()=>$("#pageCategory_val").val()?$("#pageCategory_val").val():"",n=()=>{var e,n=[];if(o())e=t();else{$(".cmp-breadcrumb__list").find("li").each(function(){n.push($(this).find("span").text())});var a=window.location.href;if(a.includes("vicson")||a.includes("proalco")||a.includes("idealalambrec")||a.includes("/ja/")){var r=n.join("/");r=r.substring(r.indexOf("/")+1),e=""===n?"Homepage":r}else e=0===n.length?"Homepage":-1!=n.indexOf("About us")||-1!=n.indexOf("Investors")?n.join("/"):["GlobalIndustryListing","Industry","Category","PDP"].slice(0,n.length-1).join("/")}return e};var o=()=>$(".search-home-keyword ").parents().find(".commonHeader").hasClass("hydrogen-header-section");function a(e){var t=$(".customDropDown ");t===e.target||t.has(e.target).length||$(".customDropDownOption").addClass("closeDropDown"),e.stopPropagation();for(var n=e.target;n!==e.currentTarget;)n=n.parentNode;var o=n.nextElementSibling;n.classList.toggle("active"),o.classList.toggle("active")}function r(e,t){e.stopPropagation();var n=e.target.parentNode;l(n,t);var o=n.parentNode.querySelectorAll("li.active"),a=[];o.forEach(e=>{a.push(e.getAttribute("data-value"))});var r=n.parentNode.parentNode.querySelector("select");r.querySelectorAll("option").forEach(e=>{a.includes(e.getAttribute("value"))?e.setAttribute("selected",!0):e.removeAttribute("selected")}),r.dispatchEvent(new Event("change",{bubbles:!0}))}function i(e){var t,n,o=e.target,a=o.nextElementSibling,r=a.nextElementSibling.querySelectorAll("li.active"),i=null==r?void 0:r.length;r&&i>1?(a.innerHTML=r.length+" "+o.getAttribute("data-multiple"),a.classList.remove("has-placeholder")):1===i?(a.innerHTML=o.querySelector("option[selected='true']").innerHTML,a.innerHTML=(t=a.innerHTML,n=25,t.length>n?t.substring(0,n)+"...":t),a.classList.remove("has-placeholder")):(a.innerHTML=o.getAttribute("placeholder"),a.classList.add("has-placeholder"))}var l=(e,t)=>{e.parentNode.querySelectorAll("li").forEach(e=>{t||e.classList.remove("active")}),t?e.classList.toggle("active"):e.classList.add("active")};function s(){var e,t,n,o,a,r;return null===(e=window)||void 0===e||null===(t=e.adobeDataLayer)||void 0===t?void 0:t.getState(null===(n=window)||void 0===n||null===(o=n.adobeDataLayer)||void 0===o||null===(a=o[0])||void 0===a||null===(r=a.eventInfo)||void 0===r?void 0:r.path)}function c(){return window.dataLayer||[]}function u(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n(),a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Click",r=s(),i=c();null!=r&&i.push({event:"customlinksInteracted",data:{eventLabel:e,eventCategory:t,eventAction:a,pageName:r["dc:title"],pageUrl:r["repo:path"],pageCategory:o}})}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,l=[],s=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}$(document).ready(function(){function t(){for(var e=0;e<$(".downloadsLister .newsList .list-main .pub-date").length;e++){var t=$(".downloadsLister .newsList .list-main .pub-date").eq(e).text(),n=new Date(t),o=n.toLocaleStr
1ing("default",{month:"long"}),a=n.toLocaleString("default",{month:"short"}),r=t.replace(o,a);$(".downloadsLister .newsList .list-main .pub-date-mob").eq(e).text(r)}}function o(e){var t,o,a,r,i,l="title-link"===e.parent().attr("class")?e.text():e.text()+"-"+e.parent().siblings(".title-link").find("a").text(),d=$("h1").text(),p=e.attr("href");[".pdf",".zip","viewer","download",".xlsx","globenewswire"].some(e=>p.includes(e))||p.includes("pdf")?(t="",o=l,a=d,r=s(),i=c(),null!=r&&i.push({event:"DocumentDownload",data:{documentId:t,documentName:o,documentType:a,Action:"Download",pageTitle:r["dc:title"],pageUrl:r["repo:path"],pageCategory:n()}})):u(l,d)}t(),$(document).on("click",".downloadsLister .downloadListerNewsTagsLister a",function(){u($(this).text(),"Content-"+$("h1").text().trim())}),$(document).on("click",".downloadsLister .load-more-main .load-more",function(){var e;L(null===(e=document.getElementById("newsCategory"))||void 0===e?void 0:e.value)}),$(document).on("click",".newsSublist li .title-link a",function(){o($(this))}),$(document).on("click",".newsSublist .lng-btn-links a",function(){o($(this))}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!==e){var t=document.getElementById(e),n=null==t?void 0:t.querySelectorAll(".select3");if(n){var o=function(e){var t=e.querySelector("select");t.addEventListener("change",i,!1),t.style.display="none";var n=t.getAttribute("placeholder"),o=!!t.hasAttribute("data-multiple")&&t.getAttribute("data-multiple");o&&(t.multiple=!0);var l=t.querySelectorAll("option"),s=e.querySelector(".select3-dropdown");for(var c of l){var u=c.innerHTML,d=c.value,p=document.createElement("li"),v=document.createElement("input");v.type="checkbox",v.classList.add("form-check-input"),p.setAttribute("data-value",d),v.setAttribute("value",d),null==p||p.appendChild(v);var h=document.createElement("span");h.innerHTML=u,p.appendChild(h),v.addEventListener("click",e=>r(e,o),!1),h.addEventListener("click",e=>{r(e,o);var t=e.target.parentNode.querySelector(".form-check-input");return t.checked=!t.checked,!1}),s.appendChild(p)}e.appendChild(s);var m=e.querySelector(".select3-input");n&&m.classList.add("has-placeholder")&&(m.textContent=n),m.addEventListener("click",a,!1)};for(var l of n)o(l)}}}("catogery-dropdown");var l=[],p="",v="",h=1,m=0,g=$("#itemPerPage").val()?$("#itemPerPage").val():15,f=[],w="",b=0,y=$("#rootPath").val()&&""!==$("#rootPath").val()?$("#rootPath").val():Granite.I18n.get("corporate.globalsearch.globalpath");function L(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=v,a=l&&!e(l)?l.join(","):n,r=p,i=h,s=$("#newsRoomNoResult").val()?$("#newsRoomNoResult").val():"",c=$("#newsRoomNoResultSubHeading").val()?$("#newsRoomNoResultSubHeading").val():"",u={q:o||null,category:a||null,year:r||null,offset:i,parentPath:y,pageSize:g,returnType:"searchResults"};$(".ajax-load").show(),$.ajax({url:"/content/corporate/servicespath/newsRoom.filters.json",data:u,method:"GET",headers:{"X-XSS-Protection":"1; mode=block"},success:function(e){$(".ajax-load").hide(),w=e.totalSize,e&&w>0?(f=e.newsArticles,m=Object.keys(f).length,function(){var e=f;Object.entries(e).forEach(e=>{var t=d(e,2),n=t[0],o=t[1],a='\n                      <li class=\'list-main\'>\n                          <div class="row gx-0">\n                              <div class="col-lg-2 col-md-3 col-sm-2 col-3 p-0">\n                                  <div class="pub-date">'.concat(n,'</div>\n                                  <div class="pub-date-mob">').concat(n,'</div>\n                              </div>\n                              <div class="col-lg-10 col-md-9 col-sm-10 col-9 p-0">\n                              ').concat(o.map(e=>'\n                                  <ul class="newsSublist">\n                                    <li class="links-main">\n                                      <div class="title-link">\n                                        <span>\n                                          <img\n                                            src="/content/dam/corporate/en/icons/open-in-new-tab.svg"\n                                            alt="arrow-image"\n                                          />\n                                        </span>\n                                        <a\n                                          href="'.concat(e.pagePath,'.html"\n                                        >\n                                          ').concat(e.title,'\n                                        </a>\n                                      </div>\n                                      <div class="lng-btn-links">                                        \n                                        ').concat(Object.entries(e.pdfUrlList).map(e=>{var t=d(e,2),n=t[0],o=t[1];return'<a href="'.concat(o,'" target="_blank"\n                                              class="lng-btn">').concat(n.toUpperCase(),"</a>")}).join(""),"\n                                      </div>\n                                    </li>\n                                  </ul>")).join(""),"\n                              </div>\n                          </div>\n                      </li>\n                  ");$(".newsList").append(a)}),t(),h+=1,b+=m;var n=Number(g)+b;w<g||b===w||n===w?$(".load-more-main").hide():$(".load-more-main").show()}()):($(".newsList").append('\n                  <div class="no-result-found">\n                      <p class="no-result-heading">'.concat(s,'</p>\n                      <p  class="no-result-subheading">').concat(c,"</p>\n                  </div>\n              ")),$(".load-more-main").hide())},error:function(e,t){}})}$(".searchIcon").on("click",function(){$(".newsList").empty(),v=$("#searchbar-input").val(),h=0,b=0,L()}),$(document).on("keypress","#searchbar-input",function(e){13===e.keyCode&&($(".newsList").empty(),v=$("#searchbar-input").val(),h=0,b=0,L())}),$(".crossIcon").on("click",function(){$("#searchbar-input").removeClass("search-key-added"),$(".searchIcon").removeClass("search-icon-two"),$(".crossIcon").removeClass("cross-icon-two"),$(".newsList").empty(),$("#searchbar-input").val(""),v=$("#searchbar-input").val(),h=0,b=0,L()}),$("#searchbar-input").on("input",function(){$(this).val().length>0?($("#searchbar-input").addClass("search-key-added"),$(".searchIcon").addClass("search-icon-two"),$(".crossIcon").addClass("cross-icon-two")):($("#searchbar-input").removeClass("search-key-added"),$(".searchIcon").removeClass("search-icon-two"),$(".crossIcon").removeClass("cross-icon-two"))}),window.setCatogery=function(){var e;$(".newsList").empty(),h=0,b=0,e=document.querySelectorAll("option[selected='true']"),l=Array.from(e).map(function(e){return e.getAttribute("value")}),L()},$("#searchbar-input").autocomplete({source:function(e,t){$.ajax({url:"/content/corporate/servicespath/newsRoom.filters.json",dataType:"json",headers:{"X-XSS-Protection":"1; mode=block"},data:"q=".concat(e.term,"&parentPath=").concat(y,"&category=").concat(l?l.join(","):null,"&year=").concat(p,"&offset=0&pageSize=").concat(g,"&returnType=suggestions"),success:function(e){Object.keys(e).length&&t(Object.values(e.suggestions))}})},position:{my:"left top",at:"left bottom",of:".search-wrapper",collision:"none",using:function(e){e.top+=4,$(this).css(e)}},minLength:3,select:function(e,t){$("#searchbar-input").val(t.item.label)},open:function(){$(this).removeClass("ui-corner-all").addClass("ui-corner-top"),$(this).autocomplete("widget").css({width:$(this).outerWidth()})},close:function(){-1!=$("#searchbar-input").val().indexOf("Please redefine your search")&&$("#searchbar-input").val(""),$(this).removeClass("ui-corner-top").addClass("ui-corner-all"),$(".search-border").hide(),$(document).on("click",function(){$("#searchbar-input").html(""),$(".ui-widget.ui-widget-content").hide()})}}),$("#yearSelect").on("click",function(){!function(e,t){var n=".".concat(e[0].classList[0]),o=$(n+"> .customDropDownOption");o.hasClass("closeDropDown")?o.removeClass("closeDropDown"):o.addClass("closeDropDown"),e.find(".customDropDownOption li").on("click",function(){e.find(".customDropDownOption li").attr("data-active",""),$(this).attr("data-active","active"),t.val($(this).attr("data-val")),e.find(".customDropDownOption").addClass("closeDropDown")})}($(this).parent(),$(this))}),$("#yearSelect").on("change",function(){$(".newsList").empty(),p=$("#yearSelect").val(),h=0,b=0,L()}),$(".customDropDownOption li").on("click",function(){$(".newsList").empty(),h=0,b=0,p=$(this).attr("data-val"),L()}),$(document).on("click",function(e){var t=$(".customDropDown ");t===e.target||t.has(e.target).length||$(".customDropDownOption").addClass("closeDropDown"),p=$("#yearSelect").val(),function(){var e=document.querySelectorAll(".select3-dropdown");for(var t of e)t.previousElementSibling.classList.remove("active"),t.classList.remove("active")}()})})}();

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.