1/* 2 **************************************************************************** !*\ 3 !*** ./src/main/jcr_root/apps/aemblueprint/pages/base/clientlib/header.js ***! 4 \****************************************************************************/ 5'use strict';if(window.Element&&!Element.prototype.closest)Element.prototype.closest=function(s){var matches=(this.document||this.ownerDocument).querySelectorAll(s);var el=this;var i;do{i=matches.length;while(--i>=0&&matches.item(i)!==el);}while(i<0&&(el=el.parentElement));return el}; 6if(window.Element&&!Element.prototype.matches)Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){var matches=(this.document||this.ownerDocument).querySelectorAll(s);var i=matches.length;while(--i>=0&&matches.item(i)!==this);return i>-1}; 7if(!Object.assign)Object.assign=function(target,varArgs){if(target===null)throw new TypeError("Cannot convert undefined or null to object");var to=Object(target);for(var index=1;index<arguments.length;index++){var nextSource=arguments[index];if(nextSource!==null)for(var nextKey in nextSource)if(Object.prototype.hasOwnProperty.call(nextSource,nextKey))to[nextKey]=nextSource[nextKey]}return to}; 8(function(arr){arr.forEach(function(item){if(Object.prototype.hasOwnProperty.call(item,"remove"))return;Object.defineProperty(item,"remove",{configurable:true,enumerable:true,writable:true,value:function remove(){this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]); 9(function(document){window.CMP=window.CMP||{};window.CMP.utils=function(){var NS="cmp";var readData=function(element,is){var data=element.dataset;var options=[];var capitalized=is;capitalized=capitalized.charAt(0).toUpperCase()+capitalized.slice(1);var reserved=["is","hook"+capitalized];for(var key in data)if(Object.prototype.hasOwnProperty.call(data,key)){var value=data[key];if(key.indexOf(NS)===0){key=key.slice(NS.length);key=key.charAt(0).toLowerCase()+key.substring(1);if(reserved.indexOf(key)=== 10-1)options[key]=value}}return options};var setupProperties=function(options,properties){var transformedProperties={};for(var key in properties)if(Object.prototype.hasOwnProperty.call(properties,key)){var property=properties[key];if(options&&options[key]!=null)if(property&&typeof property.transform==="function")transformedProperties[key]=property.transform(options[key]);else transformedProperties[key]=options[key];else transformedProperties[key]=properties[key]["default"]}return transformedProperties}; 11return{readData:readData,setupProperties:setupProperties}}()})(window.document); 12(function(document){window.CMP=window.CMP||{};window.CMP.image=window.CMP.image||{};window.CMP.image.dynamicMedia=function(){var autoSmartCrops={};var SRC_URI_TEMPLATE_WIDTH_VAR="{.width}";var SRC_URI_TEMPLATE_DPR_VAR="{dpr}";var SRC_URI_DPR_OFF="dpr\x3doff";var SRC_URI_DPR_ON="dpr\x3don,{dpr}";var dpr=window.devicePixelRatio||1;var config={minWidth:20};var getAutoSmartCrops=function(src){var request=new XMLHttpRequest;var url=src.split(SRC_URI_TEMPLATE_WIDTH_VAR)[0]+"?req\x3dset,json";request.open("GET", 13url,false);request.onload=function(){if(request.status>=200&&request.status<400){var responseText=request.responseText;var rePayload=new RegExp(/^(?:\/\*jsonp\*\/)?\s*([^()]+)\(([\s\S]+),\s*"[0-9]*"\);?$/gmi);var rePayloadJSON=new RegExp(/^{[\s\S]*}$/gmi);var resPayload=rePayload.exec(responseText);var payload;if(resPayload){var payloadStr=resPayload[2];if(rePayloadJSON.test(payloadStr))payload=JSON.parse(payloadStr)}if(payload&&payload.set.relation&&payload.set.relation.length>0)for(var i=0;i<payload.set.relation.length;i++)autoSmartCrops[parseInt(payload.set.relation[i].userdata.SmartCropWidth)]= 14":"+payload.set.relation[i].userdata.SmartCropDef}else;};request.send();return autoSmartCrops};var getSrcSet=function(src,smartCrops){var srcset;var keys=Object.keys(smartCrops);if(keys.length>0){srcset=[];for(var key in autoSmartCrops)srcset.push(src.replace(SRC_URI_TEMPLATE_WIDTH_VAR,smartCrops[key])+" "+key+"w")}return srcset.join(",")};function getOptimalWidth(sizes,width){var len=sizes.length;var key=0;while(key<len-1&&sizes[key]<width)key++;return sizes[key]!==undefined?sizes[key].toString(): 15width}var getWidth=function(component,parent){var width=component.offsetWidth;while(width<config.minWidth&&parent&&!component._autoWidth){width=parent.offsetWidth;parent=parent.parentNode}return width};var setDMAttributes=function(component,properties){var src=properties.src.replace(SRC_URI_DPR_OF
15F,SRC_URI_DPR_ON);src=src.replace(SRC_URI_TEMPLATE_DPR_VAR,dpr);var smartCrops={};var width;if(properties["smartcroprendition"]==="SmartCrop:Auto")smartCrops=getAutoSmartCrops(src);var hasWidths=properties.widths&& 16properties.widths.length>0||Object.keys(smartCrops).length>0;if(hasWidths){var image=component.querySelector("img");var elemWidth=getWidth(component,component.parentNode);if(properties["smartcroprendition"]==="SmartCrop:Auto"){image.setAttribute("srcset",CMP.image.dynamicMedia.getSrcSet(src,smartCrops));width=getOptimalWidth(Object.keys(smartCrops,elemWidth));image.setAttribute("src",CMP.image.dynamicMedia.getSrc(src,smartCrops[width]))}else{width=getOptimalWidth(properties.widths,elemWidth);image.setAttribute("src", 17CMP.image.dynamicMedia.getSrc(src,width))}}};var getSrc=function(src,width){if(src.indexOf(SRC_URI_TEMPLATE_WIDTH_VAR)>-1)src=src.replace(SRC_URI_TEMPLATE_WIDTH_VAR,width);return src};return{getAutoSmartCrops:getAutoSmartCrops,getSrcSet:getSrcSet,getSrc:getSrc,setDMAttributes:setDMAttributes,getWidth:getWidth}}();document.dispatchEvent(new CustomEvent("core.wcm.components.commons.site.image.dynamic-media.loaded"))})(window.document); 18(function(){var NS="cmp";var IS="image";var EMPTY_PIXEL="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";var LAZY_THRESHOLD_DEFAULT=0;var SRC_URI_TEMPLATE_WIDTH_VAR="{.width}";var SRC_URI_TEMPLATE_WIDTH_VAR_ASSET_DELIVERY="width\x3d{width}";var SRC_URI_TEMPLATE_DPR_VAR="{dpr}";var selectors={self:"[data-"+NS+'-is\x3d"'+IS+'"]',image:'[data-cmp-hook-image\x3d"image"]',map:'[data-cmp-hook-image\x3d"map"]',area:'[data-cmp-hook-image\x3d"area"]'};var lazyLoader={"cssClass":"cmp-image__image--is-loading", 19"style":{"height":0,"padding-bottom":""}};var properties={"widths":{"default":[],"transform":function(value){var widths=[];value.split(",").forEach(function(item){item=parseFloat(item);if(!isNaN(item))widths.push(item)});return widths}},"lazy":{"default":false,"transform":function(value){return!(value===null||typeof value==="undefined")}},"dmimage":{"default":false,"transform":function(value){return!(value===null||typeof value==="undefined")}},"lazythreshold":{"default":0,"transform":function(value){var val= 20parseInt(value);if(isNaN(val))return LAZY_THRESHOLD_DEFAULT;return val}},"src":{"transform":function(value){return decodeURIComponent(value)}}};var devicePixelRatio=window.devicePixelRatio||1;function Image(config){var that=this;var smartCrops={};var useAssetDelivery=false;var srcUriTemplateWidthVar=SRC_URI_TEMPLATE_WIDTH_VAR;function init(config){config.element.removeAttribute("data-"+NS+"-is");if(config.options.src&&config.options.src.indexOf(SRC_URI_TEMPLATE_WIDTH_VAR_ASSET_DELIVERY)>=0){useAssetDelivery= 21true;srcUriTemplateWidthVar=SRC_URI_TEMPLATE_WIDTH_VAR_ASSET_DELIVERY}that._properties=CMP.utils.setupProperties(config.options,properties);cacheElements(config.element);if(config.options.src&&Object.prototype.hasOwnProperty.call(config.options,"dmimage")&&config.options["smartcroprendition"]==="SmartCrop:Auto")smartCrops=CMP.image.dynamicMedia.getAutoSmartCrops(config.options.src);if(!that._elements.noscript)return;that._elements.container=that._elements.link?that._elements.link:that._elements.self; 22unwrapNoScript();if(that._properties.lazy)addLazyLoader();if(that._elements.map)that._elements.image.addEventListener("load",onLoad);window.addEventListener("resize",onWindowResize);["focus","click","load","transitionend","animationend","scroll"].forEach(function(name){document.addEventListener(name,that.update)});that._elements.image.addEventListener("cmp-image-redraw",that.update);that._interSectionObserver=new IntersectionObserver(function(entries,interSectionObserver){entries.forEach(function(entry){if(entry.intersectionRatio> 230)that.update()})});that._interSectionObserver.observe(that._elements.self);that.update()}function loadImage(){var hasWidths=that._properties.widths&&that._properties.widths.length>0||Object.keys(smartCrops).length>0;var replacement;if(Object.keys(smartCrops).length>0){var optimalWidth=getOptimalWidth(Object.keys(smartCrops),false);replacement=smartCrops[optimalWidth]}else replacement=hasWidths?(that._properties.dmimage?"":".")+getOptimalWidth(that._properties.widths,true):"";if(useAssetDelivery)replacement= 24replacement!==""?"width\x3d"+replacement.substring(1):"";var url=that._properties.src.replace(srcUriTemplateWidthVar,replacement);url=url.replace(SRC_URI_TEMPLATE_DPR_VAR,devicePixelRatio);var imgSrcAttribute=that._elements.image.getAttribute("src");if(url!==imgSrcAttribute)if(imgSrcAttribute===null||imgSrcAttribute===EMPTY_PIXEL)that._elements.image.setAttribute("src",url);else{var urlTemplateParts=that._properties.src.split(srcUriTemplateWidthVar);var isImageRefSame=imgSrcAttribute.startsWith(urlTemplateParts[0]); 25if(isImageRefSame&&urlTemplateParts.length>1)isImageRefSame=imgSrcAttribute.endsWith(urlTemplateParts[urlTemplateParts.length-1]);if(isImageRefSame){that._elements.image.setAttribute("src",url);if(!hasWidths)window.removeEventListener("scroll",that.update)}}if(that._lazyLoaderShowing)that._elements.image.addEventListener("load",removeLazyLoader);that._interSectionObserver.unobserve(that._elements.self)}function getOptimalWidth(widths,useDevicePixelRatio){var container=that._elements.self;var containerWidth= 26container.clientWidth;while(containerWidth===0&&container.parentNode){container=container.parentNode;containerWidth=container.clientWidth}var dpr=useDevicePixelRatio?devicePixelRatio:1;var optimalWidth=containerWidth*dpr;var len=widths.length;var key=0;while(key<len-1&&widths[key]<optimalWidth)key++;return widths[key].toString()}function addLazyLoader(){var width=that._elements.image.getAttribute("width");var height=that._elements.image.getAttribute("height");if(width&&height){var ratio=height/width* 27100;var styles=lazyLoader.style;styles["padding-bottom"]=ratio+"%";for(var s in styles)if(Object.prototype.hasOwnProperty.call(styles,s))that._elements.image.style[s]=styles[s]}that._elements.image.setAttribute("src",EMPTY_PIXEL);that._elements.image.classList.add(lazyLoader.cssClass);that._lazyLoaderShowing=true}function unwrapNoScript(){var markup=decodeNoscript(that._elements.noscript.textContent.trim());var parser=new DOMParser;var temporaryDocument=parser.parseFromString(markup,"text/html"); 28var imageElement=temporaryDocument.querySelector(selectors.image);imageElement.removeAttribute("src");that._elements.container.insertBefore(imageElement,that._elements.noscript);var mapElement=temporaryDocument.querySelector(selectors.map);if(mapElement)that._elements.container.insertBefore(mapElement,that._elements.noscript);that._elements.noscript.parentNode.removeChild(that._elements.noscript);if(that._elements.container.matches(selectors.image))that._elements.image=that._elements.container;else that._elements.image= 29that._elements.container.querySelector(selectors.image);that._elements.map=that._elements.container.querySelector(selectors.map);that._elements.areas=that._elements.container.querySelectorAll(selectors.area)}function removeLazyLoader(){that._elements.image.classList.remove(lazyLoader.cssClass);for(var property in lazyLoader.style)if(Object.prototype.hasOwnProperty.call(lazyLoader.style,property))that._elements.image.style[property]="";that._elements.image.removeEventListener("load",removeLazyLoader); 30that._lazyLoaderShowing=false}function isLazyVisible(){if(that._elements.container.offsetParent===null)return false;var wt=window.pageYOffset;var wb=wt+document.documentElement.clientHeight;var et=that._elements.container.getBoundingClientRect().top+wt;var eb=et+that._elements.container.clientHeight;return eb>=wt-that._properties.lazythreshold&&et<=wb+that._properties.lazythreshold}function resizeAreas(){if(that._elements.areas&&that._elements.areas.length>0)for(var i=0;i<that._elements.areas.length;i++){var width= 31that._elements.image.width;var height=that._elements.image.height;if(width&&height){var relcoords=that._elements.areas[i].dataset.cmpRelcoords;if(relcoords){var relativeCoordinates=relcoords.split(",");var coordinates=new Array(relativeCoordinates.length);for(var j=0;j<coordinates.length;j++)if(j%2===0)coordinates[j]=parseInt(relativeCoordinates[j]*width);else coordinates[j]=parseInt(relativeCoordinates[j]*height);that._elements.areas[i].coords=coordinates}}}}function cacheElements(wrapper){that._elements= 32{};that._elements.self=wrapper;var hooks=that._elements.self.querySelectorAll("[data-"+NS+"-hook-"+IS+"]");for(var i=0;i<hooks.length;i++){var hook=hooks[i];var capitalized=IS;capitalized=capitalized.charAt(0).toUpperCase()+capitalized.slice(1);var key=hook.dataset[NS+"Hook"+capitalized];that._elements[key]=hook}}
32function onWindowResize(){that.update();resizeAreas()}function onLoad(){resizeAreas()}that.update=function(){if(that._properties.lazy){if(isLazyVisible())loadImage()}else loadImage()};if(config&& 33config.element)init(config)}function onDocumentReady(){var elements=document.querySelectorAll(selectors.self);for(var i=0;i<elements.length;i++)new Image({element:elements[i],options:CMP.utils.readData(elements[i],IS)});var MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;var body=document.querySelector("body");var observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){var nodesArray=[].slice.call(mutation.addedNodes); 34if(nodesArray.length>0)nodesArray.forEach(function(addedNode){if(addedNode.querySelectorAll){var elementsArray=[].slice.call(addedNode.querySelectorAll(selectors.self));elementsArray.forEach(function(element){new Image({element:element,options:CMP.utils.readData(element,IS)})})}})})});observer.observe(body,{subtree:true,childList:true,characterData:true})}var documentReady=document.readyState!=="loading"?Promise.resolve():new Promise(function(resolve){document.addEventListener("DOMContentLoaded", 35resolve)});Promise.all([documentReady]).then(onDocumentReady);function decodeNoscript(text){text=text.replace(/&(amp;)*lt;/g,"\x3c");text=text.replace(/&(amp;)*gt;/g,"\x3e");return text}})(); 36(function(){var __webpack_exports__={};(function(){var headerComponent=document.querySelector(".header");var contentContainer=document.querySelector(".main");var stickyHeaderClass="header--sticky";var headerPosition=0;var headerHeight=0;var update=function update(_ref){var recalculate=_ref.recalculate;if(recalculate){headerPosition=headerComponent.getBoundingClientRect();headerHeight=headerComponent.offsetHeight}if(window.pageYOffset>headerPosition.top){headerComponent.classList.add(stickyHeaderClass); 37contentContainer.style.marginTop="".concat(headerHeight,"px")}else{headerComponent.classList.remove(stickyHeaderClass);contentContainer.style.marginTop="".concat(0,"px")}};var addEventListeners=function addEventListeners(){var timeout=null;if(!headerComponent)return;var updateHandler=function updateHandler(e){if(timeout)cancelAnimationFrame(timeout);timeout=requestAnimationFrame(function(){return update({recalculate:e.type!=="scroll"})})};headerComponent.addEventListener("transitionend",updateHandler, 38{passive:true});window.addEventListener("resize",updateHandler,{passive:true});window.addEventListener("scroll",updateHandler,{passive:true})};var init=function init(){addEventListeners();requestAnimationFrame(function(){return update({recalculate:true})})};init()})()})();
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.