PageSourceSearch

https://www.bouwmatron.nl/yassets/y3cc9d7c2_1790842814/template.min.js

js bouwmatron.nl collected 2026-10-02 02:03:01 UTC 14,124 bytes, 1 lines download raw bytes

1function updateAddress(e){var e=""+$.param(e),t=$.deparam(e),t=e.substr(0,e.indexOf("?"))+"?"+$.param(t);window.history.pushState({path:e},"",t),"function"==typeof window.gtag?window.gtag("event","page_view",{page_location:window.location.href,page_path:window.location.pathname,page_title:document.title}):"function"==typeof window.ga&&ga("send","pageview")}window.language=$("html").data("lang")||$("html").attr("lang"),jQuery.migrateMute=!0,Template=(()=>{function r(e){return"string"==typeof e&&!e.trim()||null==e}return{get:function(){return $(document).find(".template").first()},getUuid:function(){return this.get().data("uuid")},getDataUuid:function(){return this.get().data("dataUuid")},getView:function(){return this.get().data("view")},getDataType:function(){return this.get().data("dataType")},getController:function(){return this.get().data("controller")||"default"},getModule:function(){return this.get().data("module")},getViewport:function(){return this.get().data("viewport")},getDtap:function(){return this.get().data("dtap")||"prod"},isDev:function(){return"prod"!==this.getDtap()},isEditMode:function(){return this.url.hasParam("frontendEdit")},url:{navigate:function(e,t){Template.isEditMode()||($(document).trigger("navigate",{element:this,url:e,external:t}),t?window.open(e,"_blank").focus():window.location.href=e)},updateParameter:function(e,t,n){var e=e.split("?"),a=n?e[0]:"",n=n?e[1]||"":e[0],e=$.deparam(n);return $.extend(e,t),a+((r(a)?"":"?")+$.param(e))},removeParameter:function(e,t,n){var a=t,t=("string"==typeof t&&(a=[t]),e.split("?")),e=n?t[0]:"",n=n?t[1]||"":t[0],o=$.deparam(n);return a.forEach(function(e){delete o[e]}),e+((r(e)?"":"?")+$.param(o))},updateAddressParams:function(e){var t=window.location.href,t=this.updateParameter(t,e,!0);return window.history.pushState({path:t},"",t),t},removeAddressParams:function(e){var t=window.location.href,t=this.removeParameter(t,e,!0);return window.history.pushState({path:t},"",t),t},getParameter:function(e){return $.deparam(window.location.search.substring(1))[e]||""},getParameters:function(){return $.deparam(window.location.search.substring(1))},hasParam:function(e){return!!this.getParameter(e)},trim:function(e){return e="/"===(e="/"===e.charAt(0)?e.substr(1):e).charAt(e.length-1)?e.substr(0,e.length-1):e},create:function(e,t){e=this.getLanguage()+"/"+this.trim(e);return e=t?this.updateParameter(e,t,!0):e},getLanguage:function(){return 0!==window.location.pathname.indexOf("/"+window.language+"/")?"":"/"+window.language}},loader:{show:function(e){var t=$(e).children(".loader-overlay[counter]");t.length?t.attr("counter",parseInt(t.attr("counter"))+1):$(e).append($('<div class="loader-overlay" counter="1" style="display: block;"><div class="circle-loader"><div class="up"><div class="innera"></div></div><div class="down"><div class="innerb"></div></div></div></div>'))},hide:function(e){e=$(e).children(".loader-overlay[counter]");e.length&&(1<e.attr("counter")?e.attr("counter",parseInt(e.attr("counter"))-1):e.remove())}},components:{fetchElement:(d={},function(e,t,n,a,o){var r=Template.getModule(),i=Template.getController(),c=(r||i||(r="page"),i=i||"default",Template.getDataUuid()),s=Template.getView(),c={uuid:c,template:a&&a.template||Template.getUuid(),view:s},s=(n&&(c.path=n),(window.language?"/"+window.language:"")+"/"+(r?r+"/":"")+i+"/"),n=("component"===e?(c.componentUuid=t,s+="component"):"column"===e?(c.columnUuid=t,s+="column"):(c.rowUuid=t,s+="row"),Template.getDataType()&&(c.type=Template.getDataType()),Template.url.getParameters()),c=$.extend(n,c,a);d[t]&&d[t].abort(),d[t]=$.ajax({type:c.componentConfiguration?"POST":"GET",url:s,data:c,dataType:"JSON",beforeSend:function(){o&&o.beforeSend&&o.beforeSend.apply(this,arguments)},success:function(e){o.success&&o.success.apply(this,arguments)},error:function(e){o.error&&o.error.apply(this,arguments)},complete:function(){o.complete&&o.complete.apply(this,arguments)}})}),fetchComponent:function(e,t,n,a){return this.fetchElement("component",e,t,n,a)},renderComponents:function(e,t,n){e instanceof jQuery||(e=$(e)),$.ajaxSetup({cache:!0}),e.each(function(){Template.components.renderComponent($(this),t,n)})},renderComponent:function(e,t,n){var a=e.closest(".template-component"),o=a.data("uuid"),a=a.data("path"),e=e.closest("[data-template], .template"),e=e.data("template")||e.data("uuid"),t=$.extend(t,{template:e});Template.components.fetchComponent(o,a,t,{success:function(e){Template.components.processRenderResponse(e,n)},error:function(e){n&&n.error&&n.error()},complete:function(){n&&n.complete&&n.complete()}})},renderColumn:function(e,t,n){var a=e.data("uuid"),e=e.closest("[data-template], .template"),e=e.data("template")||e.data("uuid"),t=$.extend(t,{template:e});Template.components.fetchElement("column",a,void 0,t,{success:function(e){Template.components.processRenderResponse(e,n)},error:function(e){n&&n.error&&n.error()},complete:function(){n&&n.complete&&n.complete()}})},renderRow:function(e,t,n){var a=e,o=Template.components.getElementRoot(e).hasClass("section"),a=a.data("uuid"),e=e.closest("[data-template], .template"),e=e.data("template")||e.data("uuid"),t=$.extend(t,{template:e,section:o});Template.components.fetchElement("row",a,void 0,t,{success:function(e){Template.components.processRenderResponse(e,n)},error:function(e){n&&n.error&&n.error()},complete:function(){n&&n.complete&&n.complete()}})},processRenderResponse:function(e,t){var n,a;e&&(""!=e.html&&(n=(t&&t.render?t.render(e.html):updateComponents(e.html))[0]),""!=e.scripts&&(a=$(e.scripts),Template.components.injectScripts(a)),""!==e.style)&&(a=$(e.style),Template.components.injectStyle(a)),t&&t.success&&t.success(n)},injectStyle:function(e){(e=e instanceof jQuery?e:$(e)).each(function(){var e=$
1(this).attr("id"),t=$(this).attr("href");t?$(document).find('link[href="'+t+'"]').length||$(document.body).append(this):$(document).find("style#"+e).length||$(document.body).append(this)})},injectHTMLTemplates:function(e){(e=e instanceof jQuery?e:$(e)).each(function(){var e=$(this).attr("id");$(document).find('script[type="text/x-template"]#'+e).length||$(document.body).append(this)})},injectScripts:function(t){return new Promise(function(n){t instanceof jQuery||(t=$(t));var e,a={},o=0,r=(t.each(function(){var e=$(this).attr("src"),t=$(this).attr("pos")||0;a[t]||(a[t]={files:[],scripts:[]},o=Math.max(o,t)),(e?a[t].files:a[t].scripts).push(this)}),[]);for(e in a)a.hasOwnProperty(e)&&(n=>{r.push(function(e){var t=[];n.files.forEach(function(a){t.push(new Promise(function(e){var t,n=$(a).attr("src");$(document).find('[src="'+n+'"]').length?e():((t=$("<script />")).on("load",function(){e()}),t.prop("src",n),t.prop("async",!1),t.prop("defer",!1),t.each(function(){document.body.appendChild(this)}))}))}),Promise.all(t).then(function(){e()})}),r.push(function(e){n.scripts.forEach(function(e){var t=$(e).attr("id");$(document).find('[id="'+t+'"]').length||$(document.body).append(e)}),e()})})(a[e]);!function e(t){r[t]?new Promise(r[t]).then(function(){e(++t)}):n()}(0)})},refreshComponents:function(e){e=e||document;var e=$(e).find('component:not([data-viewport]), component[data-viewport="'+Template.getViewport()+'"]'),t=new IntersectionObserver(function(e){e.forEach(function(e){!0===e.isIntersecting&&(Template.components.renderComponents(e.target,{},function(){}),t.unobserve(e.target))})},{threshold:[0],rootMargin:"0px 0px 500px 0px"});e.each(function(){t.observe(this)})},find:function(e){return $(document).find('[data-uuid="'+e+'"]').first()},getDependants:function(e){return $(document).find('[data-depending-on-list="'+e+'"], [data-depends-on="'+e+'"]')},getDepending:function(e){return($(e).hasClass("template-component")?$(e):$(e).closest(".template-component")).find("[data-depending-on-list]").first().data("depending-on-list")},scrollTo:function(e,t){e instanceof jQuery||(e=$(document).find('[data-uuid="'+e+'"]').first());var n=$("header").first(),n=n.length?n.outerHeight():0,a=e.height(),o=$(window).height()-n,e=e.offset().top-n;a<o&&(e-=o/2+a/2),$("html, body").animate({scrollTop:e},800)},autoplayVideos:function(e){e=e.find(".video-bg");e.length&&e.each(function(e,t){t.muted=!0,t.paused&&t.play()})},reloadPlugins:function(e){e instanceof jQuery||(e=$(e));try{Unveil.addUnveil(e)}catch(e){console.error("unveil error",e)}this.refreshComponents(e);try{$.fn.matchHeight&&e.find("[data-mh], [data-match-height], [data-mhp], [data-match-height-page]").length&&($.fn.matchHeight._maintainScroll=!0,$.fn.matchHeight._applyDataApi(e))}catch(e){console.error("matchHeight error",e)}this.autoplayVideos(e);try{loadSelectPicker(e)}catch(e){console.error("selectpicker error",e)}try{$.fn.redactor&&(t=$(e).find(".redactor")).length&&t.redactor()}catch(e){console.error("redactor error",e)}try{"undefined"!=typeof ias&&$(e).data("uuid")&&ias[e.data("uuid")]&&ias[e.data("uuid")].hidePagination()}catch(e){console.error("ias error",e)}var t=e.children(".element-content");t.length||(t=e.closest(".element-content"));try{t.trigger("refresh")}catch(e){console.error("event trigger error",e)}},triggerResize:function(e){var t=(e=e instanceof jQuery?e:$(e)).children(".element-content");(t=t.length?t:e.closest(".element-content")).trigger("resize.component")},getElementRoot:function(e){var t=e;return t=t.parent()&&(t=(t=e.hasClass("inner-column")&&t.parent().hasClass("template-column")?t.parent():t).hasClass("template-row")&&t.parent().hasClass("template-container")?t.parent():t).hasClass("template-container")&&t.parent().hasClass("section")?t.parent():t}},utils:{isMobile:function(){return $(document).width()<=768}},breadcrumbs:{getTrail:function(){var e=sessionStorage?sessionStorage.getItem("trail"):$.cookie("trail");return e?JSON.parse(e):[]},findInTrail:function(e){var t=this.getTrail(),n=!1,a=null;return t.forEach(function(t){if(n)return null;e.forEach(function(e){if(n)return null;(0===t.indexOf("/"+e)||t.substring(0,3)===Template.url.getLanguage()&&3===t.indexOf("/"+e))&&(n=!0,a=t)})}),a}}};var d})();var addLoadingClass=function(){$("body").addClass("loading")},removeLoadingClass=function(){$("body").removeClass("loading")}
1,updateComponents=function(e){var e=$(e),o=$();return e.each(function(e,t){var t=$(t).data("uuid")?$(t):$(t).find("[data-uuid]").first(),n=$(document).find('[data-uuid="'+$(t).data("uuid")+'"]'),n=Template.components.getElementRoot(n);if(t=Template.components.getElementRoot(t),n.replaceWith(t),t.hasClass("template-component"))reloadPlugins(t);else{var a=t.find(".template-component");for(let e=0;e<a.length;e++)reloadPlugins(a[e])}o=o.add(t)}),removeLoadingClass(),o},listCalls={},updateList=function(n,a,o,e,r,t){Array.isArray(n)||(n=[n]);var i={},c=[],s=(n.forEach(function(e){i[e]=$(document).find('[data-uuid="'+e+'"]');var t=(t=Template.components.getDependants(e)).filter(':not([data-should-refresh="false"])'),n=[];0<t.length&&(t.each(function(){n.unshift($(this).closest("[data-uuid]").data("uuid"))}),c=c.concat(n)),i[e].trigger("updateList",{params:a,uuids:n})}),Template.getModule()),d=Template.getController(),l=(s||d||(s="page"),d=d||"default",i[n[0]]),l=$(l).closest("[data-template], .template"),l=l.data("template")||l.data("uuid"),l=$.extend({listUuid:n[0],template:l},a),u=(l.depending=c.concat(n.slice(1)).join(","),$.extend({},a)),p=(delete u.template,delete u.listId,delete u.listUuid,delete u.uuid,r||t||(1==u.page&&delete u.page,updateAddress(u)),n.forEac
1h(function(e){listCalls[e]&&listCalls[e].abort()}),e=e||(e=(window.language?"/"+window.language:"")+"/")+(s?s+"/":"")+d+"/updateList",Template.getDataType()&&(e=Template.url.updateParameter(e,{type:Template.getDataType()},!0)),$.ajax({type:"GET",url:e,data:l,beforeSend:function(){addLoadingClass(),n.forEach(function(e){o&&o.beforeSend?o.beforeSend(i[e]):Template.loader.show(i[e])})},success:function(e){var t;""!=e&&(r?(t=$($(e).find(".list-row").html()),i[n[0]].find(".list-row").append(t),reloadPlugins(t)):updateComponents(e)),n.forEach(function(e){o&&o.success&&o.success(i[e])})},error:function(e){n.forEach(function(e){o&&o.error&&o.error(i[e])})},complete:function(){n.forEach(function(e){o&&o.complete&&(o&&o.complete?o.complete(i[e]):Template.loader.hide(i[e]))})}}));n.forEach(function(e){listCalls[e]=p})};function reloadPlugins(e){Template.components.reloadPlugins(e)}function storeUTMParams(){var e,t=Template.url.getParameters(),n=sessionStorage.getItem("utm_params");try{n=n?JSON.parse(n):{}}catch(e){n={}}for(e in t)t.hasOwnProperty(e)&&0===e.indexOf("utm_")&&(n[e]=t[e]);Object.keys(n)&&sessionStorage.setItem("utm_params",JSON.stringify(n))}function registerThrottledScroll(){var e="",t=!1;function n(){new Date-e<200?setTimeout(n,200-(new Date-e)):(t=!1,$(document).trigger("throttledResize"))}$(window).on("resize",function(){e=new Date,!1===t&&(t=!0,setTimeout(n,200))});var a={time:null,timeout:!1,delta:150};function o(){new Date-a.time<a.delta?setTimeout(o,a.delta-(new Date-a.time)):(a.timeout=!1,a.time=new Date,$(document).trigger("throttledScroll"))}$(window).on("scroll",function(){!1===a.timeout&&(a.timeout=!0,setTimeout(o,a.delta))})}function loadSelectPicker(e){$.fn.selectpicker&&(e=$(e||document).find(".selectpicker")).length&&e.selectpicker()}function navigateFromHrefDiv(e,t){var n=e.attr("href"),e=e.attr("target");t&&(t.ctrlKey||t.metaKey)&&(e=!0),Template.url.navigate(n,e)}Template.components.refreshComponents(),$(function(){registerThrottledScroll()}),$(window).on("load",function(){storeUTMParams(),Template.components.autoplayVideos($("body")),$(document).find("[data-toggle=tooltip]").tooltip(),$(document).find("[data-toggle=popover]").popover(),$(document).find("header.sticky").each(function(){var e=$
1(this).next(),t=$(this).outerHeight();e.attr("style",(e.attr("style")||"")+";padding-top: "+(t+parseFloat(e.css("padding-top")))+"px !important;")})}),loadSelectPicker(),$(document).on("ready",function(){loadSelectPicker()}),$(document).on("click","div[href]",function(e){navigateFromHrefDiv($(this),e)}),$(document).on("keydown",'div[href][role="link"]',function(e){"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),navigateFromHrefDiv($(this),e))});

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.