1window.UPC=window.UPC||{}; 2UPC.Responsive=UPC.Responsive||{}; 3jQuery.extend(UPC.Responsive,{views:{large:{minWidth:960,maxWidth:undefined},medium:{minWidth:620,maxWidth:959},small:{minWidth:520,maxWidth:619},extraSmall:{minWidth:undefined,maxWidth:519}},currentView:"large",isHighDensity:function(){return((window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 124dpi), only screen and (min-resolution: 1.3dppx), only screen and (min-resolution: 48.8dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3)").matches))||(window.devicePixelRatio&&window.devicePixelRatio>1.3)) 4},isRetina:function(){return((window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)").matches))||(window.devicePixelRatio&&window.devicePixelRatio>2))&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent) 5},isUnsupportedOperaVersion:function(){if(!/opera/i.test(navigator.userAgent)){return false 6}if(/version\/\d{2}\./i.test(navigator.userAgent)){return false 7}if(/opera \d{2}\./i.test(navigator.userAgent)){return false 8}return true 9},isLegacyBrowser:function(){return/MSIE (7|8)/i.test(navigator.userAgent)||UPC.Responsive.isUnsupportedOperaVersion() 10},isMobileDevice:function(){return/Android|webOS|iPhone|iPad|iPod|Touch|BlackBerry/i.test(navigator.userAgent) 11},mobileDevice:function(){var a=/Android|webOS|iPhone|iPad|iPod|Touch|BlackBerry/i.exec(navigator.userAgent); 12return a==null?"":a[0] 13},isAndroidNativeBrowser:function(){var a=navigator.userAgent; 14return((a.indexOf("Mozilla/5.0")>-1&&a.indexOf("Android ")>-1&&a.indexOf("AppleWebKit")>-1)&&!(a.indexOf("Chrome")>-1)&&!(a.indexOf("Mobile")>-1)) 15},checkMobileView:function(){var b=jQuery("body"),a=Math.max(jQuery(window).width(),window.innerWidth); 16if(!UPC.Responsive.isLegacyBrowser()){var c=UPC.Responsive.currentView; 17b.removeClass("mobileView tabletView tabsView"); 18if(a<=UPC.Responsive.views.extraSmall.maxWidth){UPC.Responsive.currentView="extraSmall"; 19b.addClass("mobileView tabsView") 20}else{if(a<=UPC.Responsive.views.small.maxWidth){UPC.Responsive.currentView="small"; 21b.addClass("tabletView tabsView") 22}else{if(a<=UPC.Responsive.views.medium.maxWidth){UPC.Responsive.currentView="medium" 23}else{UPC.Responsive.currentView="large" 24}}}if(c!=UPC.Responsive.currentView){$(window).trigger("lgi-screensize-change") 25}}if(UPC.Responsive.isMobileDevice()){b.addClass("mobileDevice"); 26b.addClass(UPC.Responsive.mobileDevice()); 27if(UPC.Responsive.isAndroidNativeBrowser()){b.addClass("androidNative") 28}}if(UPC.Responsive.isRetina()){b.addClass("retina") 29}else{if(UPC.Responsive.isHighDensity()){b.addClass("highDensity") 30}}}}); 31UPC.Responsive.checkMobileView(); 32jQuery(document).ready(function(){UPC.Responsive.checkMobileView(); 33jQuery(window).bind("resize orientationchange",UPC.Responsive.checkMobileView) 34}); 35var LGI=window.LGI||{}; 36LGI.Adaptive=LGI.Adaptive||{}; 37LGI.Adaptive.Image=LGI.Adaptive.Image||{}; 38var relay42,aic; 39LGI.Adaptive.Image.screenSizes={l:{name:"large",breakPoint:1240},m:{name:"medium",breakPoint:959},s:{name:"small",breakPoint:619},xs:{name:"extrasmall",breakPoint:519}}; 40LGI.Adaptive.Image.AdaptiveImageComponent=function(){this.scalingComponents={grouping:{scalingClass:"grouping",backgroundScalingByContent:false},blockedlist:{scalingClass:"blockedlist",backgroundScalingByContent:false},tabs:{scalingClass:"tabs",backgroundScalingByContent:true},templateSection:{scalingClass:"lgi-templatesection",backgroundScalingByContent:true},aspot:{scalingClass:"upc-bgcontainer-aspot",backgroundScalingByContent:true},responsiveAspot:{scalingClass:"upc-basic-aspot-responsive-item",backgroundScalingByContent:true}}; 41this.maxSegmentName="maxSegment"; 42this.minHeightAttrPrefix="data-heightOverwrite-"; 43this.adaptiveImageSelector=".lgiAdaptiveImage"; 44this.stepPlanSelector="#stepplanviewer"; 45this.isRetinaCssClass="isRetinaImage"; 46this.breakPointSegmentAttrName="last-visited-breakpoint-segment"; 47this.customSizeDataAttr="data-custom-size"; 48this.devicePixelRatio=this.retrieveValidDevicePixelRatio(); 49this.cssBgImgSrcPattern=/\((['"])?(.+?)(['"])?\)/; 50this.imgUrlModifierPattern=/^(.+img)(\.?\d*){0,2}(\.c|\.t|\.b|\.l|\.r){0,2}(\.[a-zA-Z]{3,4}\/[^\/]+)$/; 51this.originalWidthAttr="data-original-width"; 52this.originalHeightAttr="data-original-height"; 53this.asi=new LGI.Adaptive.Image.AdaptiveTemplateSectionSqueezeItem(); 54this.ll=new LGI.Adaptive.Image.LazyLoading(); 55this.templateSection=new LGI.Adaptive.Image.TemplateSection(); 56this.aspot=new LGI.Adaptive.Image.Aspot(); 57this.triggeredOnce=false; 58this.imgSelectorPattern=/^(.+?)\.img\..*([a-zA-Z]{3,4})(\/.*?)$/; 59this.imgSelectorReplacement="$1.json.$2$3" 60}; 61LGI.Adaptive.Image.AdaptiveImageComponent.prototype.retrieveValidDevicePixelRatio=function(){window.devicePixelRatio=window.devicePixelRatio||Math.round(window.screen.availWi
61dth/document.documentElement.clientWidth); 62return window.devicePixelRatio 63}; 64LGI.Adaptive.Image.AdaptiveImageComponent.prototype.assignAdaptiveImageProperties=function(){var a=$("body"); 65var b=a.attr(this.breakPointSegmentAttrName); 66var c=this.calculateScreenSizeSegment(); 67a.attr(this.breakPointSegmentAttrName,c); 68if((typeof b==="undefined")||(b!==c)||a.attr("relayRun")==="true"){this.assignAdaptiveImagePropertiesToSelector(this.adaptiveImageSelector,c); 69a.removeAttr("relayRun") 70}}; 71LGI.Adaptive.Image.AdaptiveImageComponent.prototype.assignAdaptiveImagePropertiesToSelector=function(a,b){var c=this; 72var d=$(a).length; 73$(a).each(function(e,f){if(typeof $(f).attr(relay42.relay42Attribute)==="undefined"){c.assignImageProperties($(f),b); 74if(e===d-1){c.assignScreenSizeSegment(b) 75}}}); 76$("<style></style>").appendTo($(document.body)).remove() 77}; 78LGI.Adaptive.Image.AdaptiveImageComponent.prototype.assignImageProperties=function(a){var b={width:a.attr(this.originalWidthAttr),height:a.attr(this.originalHeightAttr)}; 79if((b.width==="")||(typeof b.width==="undefined")||(b.height==="")||(typeof b.height==="undefined")){this.retrieveOriginalImageDimensions(this.retrieveImageUrl(a),this.updateBreakPointAttributesHandler(a)) 80}else{this.calculateAndAssignImageSize(a,b) 81}}; 82LGI.Adaptive.Image.AdaptiveImageComponent.prototype.retrieveOriginalImageDimensions=function(b,d){var c=b.replace(this.imgSelectorPattern,this.imgSelectorReplacement); 83var a={dataType:"json",fail:d,error:d,success:d}; 84$.ajax(c,a) 85}; 86LGI.Adaptive.Image.AdaptiveImageComponent.prototype.updateBreakPointAttributesHandler=function(b){var a=this; 87return function(c){if(typeof c.dimensions==="undefined"){a.fallbackAssignImage(b) 88}else{a.calculateAndAssignImageSize(b,c.dimensions) 89}} 90}; 91LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateAndAssignImageSize=function(e,a){var h=this.calculateMatchingBreakPoint(window.innerWidth); 92var c; 93var i=this.calculateScreenSizeSegment(); 94c=this.retrieveImageUrl(e); 95if(typeof c!=="undefined"){var j=this.retrieveCustomDimensions(e).customSize; 96if((typeof j!=="undefined")&&(j.indexOf(" ")===-1)){this.assignImageUrl(e,c); 97this.assignCssBgSize(e,j) 98}else{var g,b; 99var l=(this.retrieveOverwriteHeight(e)<=a.height)?this.retrieveOverwriteHeight(e):a.height; 100if(this.retrieveOverwriteHeightAttr(e)!==-1){var f; 101f=(a.width>=this.retrieveScreenResolution().width)?this.retrieveScreenResolution().width:a.width; 102if(i===this.maxSegmentName){g=(this.isRetinaImage(e))?f*this.devicePixelRatio:f 103}else{g=(h>=a.width)?a.width:h; 104g=(this.isRetinaImage(e))?g*this.devicePixelRatio:g 105}b=(this.isRetinaImage(e))?l*this.devicePixelRatio:l 106}else{g=this.calculateRenditionWidth(e,(i===this.maxSegmentName),a,h,true); 107b=this.calculateRenditionHeight(e,a,g) 108}var d=this.buildRenditionReplacement(e,a,g,b,l,h); 109var k=this.retrieveImageUrl(e); 110c=this.buildRenditionUrl(d,k); 111this.assignImageUrl(e,c); 112this.assignImageSize(e,i,h,a); 113this.asi.updateChildSqueezeItemsHeight(e); 114if(this.ll.isLazyLoadingImage(e)){this.ll.calculateLazyLoadState(e) 115}}}}; 116LGI.Adaptive.Image.AdaptiveImageComponent.prototype.fallbackAssignImage=function(b){var a=this.retrieveImageUrl(b); 117if(typeof a!=="undefined"){var c=this.retrieveCustomDimensions(b).customSize; 118if((typeof c!=="undefined")&&(c.indexOf(" ")===-1)){this.assignImageUrl(b,a); 119this.assignCssBgSize(b,c) 120}else{this.assignImageUrl(b,a); 121this.asi.updateChildSqueezeItemsHeight(b); 122if(this.ll.isLazyLoadingImage(b)){this.ll.calculateLazyLoadState(b) 123}}}}; 124LGI.Adaptive.Image.AdaptiveImageComponent.prototype.buildRenditionReplacement=function(e,f,a,c,h,g){if((this.containsScalingBgComponentClass(e))&&(!this.isImgTag(e))&&(a>window.innerWidth)){var d; 125if(this.retrieveOverwriteHeightAttr(e)!==-1){d=(this.isRetinaImage(e))?h*this.devicePixelRatio:h; 126d=Math.ceil(d) 127}else{if(this.validateElementType(e,this.scalingComponents.tabs.scalingClass)||this.validateElementType(e,this.scalingComponents.grouping.scalingClass)||this.validateElementType(e,this.scalingComponents.blockedlist.scalingClass)||this.validateElementType(e,this.scalingComponents.aspot.scalingClass)){if(this.isRetinaImage(e)){if(e.outerHeight()>(f.height/this.devicePixelRatio)){d=f.height/this.devicePixelRatio 128}else{d=e.outerHeight()/this.devicePixelRatio 129}}else{d=e.outerHeight()/this.devicePixelRatio 130}}else{d=this.calculateHeight(f,a) 131}}if(this.validateElementType(e,this.scalingComponents.aspot.scalingClass)){d=((f.height/this.devicePixelRatio)>=e.outerHeight())?e.outerHeight():d 132}var b=this.calculateCropDimensions(e,f,a,d,g); 133return"."+Math.ceil(b.width)+"."+Math.ceil(b.height)+"."+this.determineCropOffset(e) 134}else{if(f.width==a&&f.height==c){return"" 135}return"."+Math.ceil(a)+"."+Math.ceil(c)+"."+this.determineCropOffset(e) 136}}; 137LGI.Adaptive.Image.AdaptiveImageComponent.prototype.isHigherThanSetHeightOverwrite=function(b,a,c){return((this.retrieveOverwriteHeightAttr(b)!==-1)&&(a>=c)) 138}; 139LGI.Adaptive.Image.AdaptiveImageComponent.prototype.retrieveOverwriteHeight=function(a){var b=this.retrieveOverwriteHeightAttr(a); 140if(b===-1){return a.outerHeight() 141}return b 142}; 143LGI.Adaptive.Image.AdaptiveImageComponent.prototype.validateElementType=function(d,b){var a=4; 144var e=d.closest("."+b); 145if(e.length!==0){for(var c=0; 146c<a; 147c++){d=d.parent(); 148if(d.hasClass(e.attr("class"))){return true 149}}}return false 150}; 151LGI.Adaptive.Image.AdaptiveImageComponent.prototype.containsScalingBgComponentClass=function(d){var a=this; 152if(!a.isImgTag(d)){for(var b in a.scalingComponents){var c=a.scalingComponents[b]; 153if(a.validateElementType(d,c.scalingClass)&&c.backgroundScalingByContent){return true 154}}}return false 155}; 156LGI.Adaptive.Image.AdaptiveImageComponent.prototype.retrieveOverwriteHeightAttr=function(c){var e="upc-basic-aspot-container"; 157var b="upc-basic-aspot-responsive-container"; 158if(!(c.hasClass(e)||c.hasClass(b))){if(this.validateElementType(c,this.scalingComponents.aspot.scalingClass)){c=c.parents(this.aspot.aspotContainerSelector) 159}else{if(this.validateElementType(c,this.scalingComponents.responsiveAspot.scalingClass)){c=c.parents(this.aspot.aspotResponsiveContainerSelector) 160}}}var d=this.calculateScreenSizeSegment(); 161if(d===this.maxSegmentName){d=LGI.Adaptive.Image.screenSizes.l.name 162}var a=this.minHeightAttrPrefix+d; 163if((typeof c.attr(a)!=="undefined")&&(c.attr(a)!=="0")){return parseInt(c.attr(a)) 164}return -1 165}; 166LGI.Adaptive.Image.AdaptiveImageComponent.prototype.stripUnitIdentifier=function(a){return a.replace("%","").replace("px","") 167}; 168LGI.Adaptive.Image.AdaptiveImageComponent.prototype.hasNonExplicityValue=function(b){var a=["auto","100%"]; 169return((typeof b==="undefined")||($.inArray(b,a)!==-1)) 170}; 171LGI.Adaptive.Image.AdaptiveImageComponent.prototype.assignImageSize=function(c,h,g,a){var f=this.retrieveCustomDimensions(c); 172var i=this.calculateNonExplicitDimensions(c,f,a,g,h); 173var b=i.width; 174var k=i.height; 175var d=this.retrieveScreenResolution().width; 176if(this.retrieveOverwriteHeightAttr(c)!==-1&&this.isHigherThanSetHeightOverwrite(c,k,this.retrieveOverwriteHeight(c))){b=this.calculateWidth(a,k) 177}if(this.retrieveOverwriteHeightAttr(c)!==-1){if(f.width!=="auto"){b=g*this.devicePixelRatio 178}else{if(h===this.maxSegmentName){d=(a.width>=d)?d:a.width; 179b=d 180}else{b=(g>a.width)?a.width:g 181}}k=(this.retrieveOverwriteHeight(c)<=a.height)?this.retrieveOverwriteHeight(c):a.height 182}if(!this.hasNonExplicityValue(f.height)){if(this.retrieveOverwriteHeightAttr(c)!==-1){k=this.retrieveOverwriteHeightAttr(c) 183}else{k=this.calculateHeight(a,b) 184}}if(this.containsScalingBgComponentClass(c)){var e=this.calculateRenditionWidthWithoutBreakPoints(c,this.retrieveScreenResolution().width,a,false); 185var j=this.calculateHeight(a,e); 186if(j>c.outerHeight()){var l=this.validateElementType(c,this.scalingComponents.templateSection.scalingClass); 187if(l){b=this.calculateScreenSizeSegment()===this.maxSegmentName?this.retrieveScreenResolution().width:g; 188b=(b>a.width)?a.width:b; 189k=(this.retrieveOverwriteHeightAttr(c)!==-1)?this.retrieveOverwriteHeight(c):c.outerHeight(); 190k=(k>a.height)?a.height:k 191}else{b=g; 192k=c.outerHeight(); 193if(this.validateElementType(c,this.scalingComponents.aspot.scalingClass)){if(this.calculateScreenSizeSegment()===this.maxSegmentName){b=e 194}else{b=(g>a.width)?a.width:g 195}}}}}if(this.validateElementType(c,this.scalingComponents.grouping.scalingClass)||this.validateElementType(c,this.scalingComponents.blockedlist.scalingClass)){k=(c.outerHeight()<(a.height/this.devicePixelRatio))?c.outerHeight():a.height/this.devicePixelRatio 196}if(this.validateElementType(c,this.scalingComponents.aspot.scalingClass)){k=parseInt(a.height); 197k=(k*this.devicePixelRatio<c.outerHeight())?a.height:c.outerHeight(); 198k=(k>c.outerHeight())?c.outerHeight():k 199}if(this.validateElementType(c,this.scalingComponents.grouping.scalingClass)||this.validateElementType(c,this.scalingComponents.blockedlist.scalingClass)||this.validateElementType(c,this.scalingComponents.tabs.scalingClass)){b
199=(this.calculateScreenSizeSegment()==this.maxSegmentName)?c.outerWidth():g; 200b=(a.width<b)?a.width:b 201}this.doAssignImageSize(c,b,k,f.customSize) 202}; 203LGI.Adaptive.Image.AdaptiveImageComponent.prototype.checkCustomSizeAssignmentRequired=function(a){return(typeof a!=="undefined")&&(a!=="")&&(a!=="auto 100%")&&(a!=="auto auto") 204}; 205LGI.Adaptive.Image.AdaptiveImageComponent.prototype.doAssignImageSize=function(d,c,a,e){if(this.isImgTag(d)){if(typeof c!="undefined"){d.attr("width",c) 206}if(typeof a!="undefined"){d.attr("height",a) 207}}else{if(this.checkCustomSizeAssignmentRequired(e)){var b=e.split(" "); 208if(b.length===2&&b[1]==="auto"){e=b[0]+" "+a+"px" 209}this.assignCssBgSize(d,e) 210}else{this.assignCssBgSize(d,c+"px "+a+"px") 211}var f=this.retrieveOverwriteHeight(d); 212d.css("min-height",f+"px") 213}}; 214LGI.Adaptive.Image.AdaptiveImageComponent.prototype.assignCssBgSize=function(b,a){b.css({"background-size":a,"-moz-background-size":a,"-webkit-background-size":a}) 215}; 216LGI.Adaptive.Image.AdaptiveImageComponent.prototype.assignImageUrl=function(b,a){if(this.isImgTag(b)){if(this.ll.isLazyLoadingImage(b)){b.attr("lazyimg",a) 217}else{b.attr("src",a) 218}}else{b.css("background-image","url("+a+")") 219}b.removeAttr("data-src") 220}; 221LGI.Adaptive.Image.AdaptiveImageComponent.prototype.retrieveImageUrl=function(c){var d=["lazyimg","src","data-src"]; 222for(var b=0; 223b<d.length; 224b++){var a=d[b]; 225if(typeof c.attr(a)!=="undefined"){return c.attr(a) 226}}if(c.css("background-image")!=="none"){var e=this.cssBgImgSrcPattern.exec(c.css("background-image"))[2]; 227return e.replace(window.location.protocol+"//"+window.location.host,"") 228}}; 229LGI.Adaptive.Image.AdaptiveImageComponent.prototype.determineCropOffset=function(d){var b="";
230var c=this.retrieveBackgroundPosition(d); 231var a=c[0]; 232var e=c[1]; 233if(a==="0%"){b+="l" 234}else{if(a==="100%"){b+="r" 235}else{b+="c" 236}}b+="."+((e==="0%")?"t":"b"); 237return b 238}; 239LGI.Adaptive.Image.AdaptiveImageComponent.prototype.retrieveCustomDimensions=function(c){var b,a; 240if(typeof c.attr(this.customSizeDataAttr)!=="undefined"){var d=c.attr(this.customSizeDataAttr); 241var e=d.split(" "); 242if(e.length===2){b=e[0]; 243a=e[1] 244}}return{width:b,height:a,customSize:d} 245}; 246LGI.Adaptive.Image.AdaptiveImageComponent.prototype.retrieveBackgroundPosition=function(b){var a=b.css("background-position-x"); 247var c=b.css("background-position-y"); 248a=(a==="center")?"50%":a; 249a=(a==="left")?"0%":a; 250a=(a==="right")?"100%":a; 251c=(c==="center")?"50%":c; 252c=(c==="top")?"0%":c; 253c=(c==="bottom")?"100%":c; 254return(a==="")?b.css("background-position").split(" "):[a,c] 255}; 256LGI.Adaptive.Image.AdaptiveImageComponent.prototype.assignScreenSizeSegment=function(b,a){$("body").attr(this.breakPointSegmentAttrName,a) 257}; 258LGI.Adaptive.Image.AdaptiveImageComponent.prototype.isImgTag=function(a){return a[0].tagName.toLowerCase()==="img" 259}; 260LGI.Adaptive.Image.AdaptiveImageComponent.prototype.buildRenditionUrl=function(b,c){var a="$1"+b+"$4"; 261return c.replace(this.imgUrlModifierPattern,a) 262}; 263LGI.Adaptive.Image.AdaptiveImageComponent.prototype.isRetinaImage=function(a){return a.hasClass(this.isRetinaCssClass) 264}; 265LGI.Adaptive.Image.AdaptiveImageComponent.prototype.retrieveScreenResolution=function(){return{width:window.screen.availWidth,height:window.screen.availHeight} 266}; 267LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateMatchingBreakPointKey=function(b){var c=null; 268for(var a in LGI.Adaptive.Image.screenSizes){if(b<=LGI.Adaptive.Image.screenSizes[a].breakPoint){c=a 269}}return c 270}; 271LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateRenditionHeight=function(c,d,a){var b=this.retrieveCustomDimensions(c).height; 272if(typeof b!=="undefined"){b=b.replace(/\s/g,"") 273}if((typeof b==="undefined")||(b==="auto")||(b==="100%")){if(this.containsScalingBgComponentClass(c)||this.validateElementType(c,this.scalingComponents.grouping.scalingClass)||this.validateElementType(c,this.scalingComponents.blockedlist.scalingClass)){if(this.isRetinaImage(c)){b=(c.outerHeight()*this.devicePixelRatio<=d.height)?c.outerHeight()*this.devicePixelRatio:d.height 274}else{b=(c.outerHeight()<=d.height)?c.outerHeight():d.height 275}}else{if(this.validateElementType(c,this.scalingComponents.responsiveAspot.scalingClass)&&this.aspot.hasFallbackImageSet(c)){if(this.isRetinaImage(c)){b=(c.parents(this.aspot.aspotResponsiveWrapperSelector).outerHeight()<=d.height)?c.parents(this.aspot.aspotResponsiveWrapperSelector).outerHeight():d.height 276}else{b=this.calculateHeight(d,a) 277}}else{b=this.calculateHeight(d,a); 278if(this.validateElementType(c,this.scalingComponents.aspot.scalingClass)){b=(b/2)*this.devicePixelRatio 279}}}}else{if(b.indexOf("%")!==-1){b=(d.height/100)*parseInt(b.replace("%","")) 280}else{b=b.replace("px","") 281}}return Math.ceil(b) 282}; 283LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateRenditionWidth=function(d,b,e,f,g){var h=e.width; 284var a; 285if(b){a=this.calculateRenditionWidthWithoutBreakPoints(d,this.retrieveScreenResolution().width,e,g) 286}else{if(this.isRetinaImage(d)){var c=g?(h/this.devicePixelRatio):h; 287if(f<c){if(this.containsScalingBgComponentClass(d)){a=(f>h)?h*this.devicePixelRatio:f*this.devicePixelRatio 288}else{if(this.isImgTag(d)){a=h/this.devicePixelRatio; 289a=(a<f)?a:f; 290a=(g)?a*this.devicePixelRatio:a; 291if(this.validateElementType(d,this.scalingComponents.responsiveAspot.scalingClass)){if(this.retrieveOverwriteHeightAttr(d)!==-1){a=this.calculateWidth(e,this.retrieveOverwriteHeight(d)); 292a=(g)?a*this.devicePixelRatio:a 293}}}else{a=(f>h)?h:f; 294a=(g)?a*this.devicePixelRatio:a 295}}}else{a=g?h*this.devicePixelRatio:h; 296if(this.isRetinaImage(d)&&this.devicePixelRatio===1&&this.isImgTag(d)){a=a*2 297}}}else{a=(h<f)?h:f 298}}if(typeof this.retrieveCustomDimensions(d)!=="undefined"&&(!this.hasNonExplicityValue(this.retrieveCustomDimensions(d).width)||!this.hasNonExplicityValue(this.retrieveCustomDimensions(d).height))){if(!this.hasNonExplicityValue(this.retrieveCustomDimensions(d).width)){a=parseInt(this.retrieveCustomDimensions(d).width) 299}else{a=this.calculateWidth(e,parseInt(this.retrieveCustomDimensions(d).height)) 300}}if(a>h){a=h 301}return Math.ceil(a) 302}; 303LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateRenditionWidthWithoutBreakPoints=function(c,b,d,e){var a,f=d.width; 304if(this.isRetinaImage(c)){if(this.isImgTag(c)){a=f; 305a=e?(a*this.devicePixelRatio):a; 306a=(a>b)?b:a 307}else{b=(f>=b)?b:f; 308if(this.validateElementType(c,this.scalingComponents.tabs.scalingClass)||this.validateElementType(c,this.scalingComponents.grouping.scalingClass)||this.validateElementType(c,this.scalingComponents.blockedlist.scalingClass)||(this.validateElementType(c,this.scalingComponents.responsiveAspot.scalingClass)&&!(this.calculateScreenSizeSegment()===this.maxSegmentName))){b=c.outerWidth() 309}
309a=e?(b*this.devicePixelRatio):b 310}}else{if(this.isImgTag(c)){a=f; 311a=(a>b)?b:a 312}else{b=(f>=b)?b:f; 313if(this.validateElementType(c,this.scalingComponents.tabs.scalingClass)||this.validateElementType(c,this.scalingComponents.grouping.scalingClass)||this.validateElementType(c,this.scalingComponents.blockedlist.scalingClass)||(this.validateElementType(c,this.scalingComponents.responsiveAspot.scalingClass)&&!(this.calculateScreenSizeSegment()===this.maxSegmentName))){b=c.outerWidth() 314}a=b 315}}if(typeof this.retrieveCustomDimensions(c)!=="undefined"&&(!this.hasNonExplicityValue(this.retrieveCustomDimensions(c).width)||!this.hasNonExplicityValue(this.retrieveCustomDimensions(c).height))){if(!this.hasNonExplicityValue(this.retrieveCustomDimensions(c).width)){a=parseInt(this.retrieveCustomDimensions(c).width) 316}else{a=this.calculateWidth(d,parseInt(this.retrieveCustomDimensions(c).height)) 317}}return Math.ceil(a) 318}; 319LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateCropDimensions=function(e,f,a,h,g){var d,b; 320var c=(window.innerWidth>LGI.Adaptive.Image.screenSizes.l.breakPoint); 321if(c&&(a>window.innerWidth)){if(this.devicePixelRatio!==1){d=a 322}else{d=(this.calculateScreenSizeSegment()===this.maxSegmentName)?this.retrieveScreenResolution().width:g 323}}else{d=a 324}b=h; 325if(this.isHigherThanSetHeightOverwrite(e,b,h)&&this.retrieveOverwriteHeightAttr(e)!==-1){d=(this.calculateScreenSizeSegment()===this.maxSegmentName)?this.retrieveScreenResolution().width:g; 326d=(this.isRetinaImage(e))?d*this.devicePixelRatio:d 327}b=(b<=f.height)?b:f.height; 328d=(d<=f.width)?d:f.width; 329if(this.validateElementType(e,this.scalingComponents.aspot.scalingClass)){if(this.isRetinaImage(e)){if((this.calculateScreenSizeSegment()===this.maxSegmentName)){d=Math.ceil(this.retrieveScreenResolution().width*this.devicePixelRatio); 330d=(d>f.width)?f.width:d 331}else{d=g*this.devicePixelRatio; 332d=(d>f.width)?f.width:d 333}b=((e.outerHeight()*this.devicePixelRatio)>=f.height)?f.height:Math.ceil(e.outerHeight()*this.devicePixelRatio) 334}else{if((this.calculateScreenSizeSegment()===this.maxSegmentName)){d=this.retrieveScreenResolution().width 335}else{d=g 336}b=(e.outerHeight()>=f.height)?f.height:e.outerHeight() 337}}if(this.validateElementType(e,this.scalingComponents.aspot.scalingClass)){b=(b>=e.outerHeight()*this.devicePixelRatio)?b:e.outerHeight() 338}return{width:d,height:b} 339}; 340LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateNonExplicitDimensions=function(f,c,g,h,b){var e,a; 341if(this.hasNonExplicityValue(c.width)){if(this.hasNonExplicityValue(c.height)){e=this.calculateRenditionWidth(f,(b===this.maxSegmentName),g,h,false); 342var d=this.retrieveOverwriteHeightAttr(f); 343if(this.containsScalingBgComponentClass(f)&&!this.validateElementType(f,this.scalingComponents.aspot.scalingClass)){e=(e/this.devicePixelRatio<=g.width)?e/this.devicePixelRatio:g.width; 344if(d!==-1){a=this.retrieveOverwriteHeight(f) 345}else{a=(f.outerHeight()<=g.height/this.devicePixelRatio)?f.outerHeight():g.height/this.devicePixelRatio 346}}else{if(d===-1){if(this.containsScalingBgComponentClass(f)){if(this.isRetinaImage(f)){a=(f.outerHeight()<=g.height)?f.outerHeight()/this.devicePixelRatio:g.height/this.devicePixelRatio; 347a=(g.height<f.outerHeight()*this.devicePixelRatio)?f.outerHeight():a; 348e=(f.outerWidth()<=g.width)?f.outerWidth():g.width 349}else{a=(f.outerHeight()<=g.height)?f.outerHeight():g.height; 350e=(f.outerWidth()<=g.width)?f.outerWidth():g.width 351}}else{a=this.calculateHeight(g,e) 352}}else{a=(this.retrieveOverwriteHeight(f)<=g.height)?this.retrieveOverwriteHeight(f)/this.devicePixelRatio:g.height/this.devicePixelRatio 353}}if(this.validateElementType(f,this.scalingComponents.aspot.scalingClass)){a=((g.height/this.devicePixelRatio)>=f.outerHeight())?f.outerHeight():a 354}}else{e=this.calculateUndefinedWidth(f,c.width,c.height,b,h,g) 355}}else{if(this.hasNonExplicityValue(c.height)){a=this.calculateHeight(g,this.stripUnitIdentifier(c.width)) 356}else{e=c.width; 357a=c.height 358}}return{width:e,height:a} 359}; 360LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateWidth=function(c,a){var b=c.height/a; 361return Math.ceil(c.width/b) 362}; 363LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateScreenSizeSegment=function(){if(window.innerWidth>LGI.Adaptive.Image.screenSizes.l.breakPoint){return this.maxSegmentName 364}var a=this.calculateMatchingBreakPointKey(window.innerWidth); 365return LGI.Adaptive.Image.screenSizes[a].name 366}; 367LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateUndefinedWidth=function(d,b,g,a,e,f){var c; 368if(this.hasNonExplicityValue(b)){if(this.hasNonExplicityValue(g)){c=this.calculateRenditionWidth(d,(a===this.maxSegmentName),f,e,false) 369}else{c=f.width/(f.height/g) 370}}return Math.ceil(c) 371}; 372LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateHeight=function(c,a){var b=c.width/a; 373return Math.ceil(c.height/b) 374}; 375LGI.Adaptive.Image.AdaptiveImageComponent.prototype.calculateMatchingBreakPoint=function(a){var b=this.calculateMatchingBreakPointKey(a); 376if(b===null){return LGI.Adaptive.Image.screenSizes.l.breakPoint 377}return LGI.Adaptive.Image.screenSizes[b].breakPoint 378}; 379LGI.Adaptive.Image.AdaptiveTemplateSectionSqueezeItem=function(){this.childSqueezeItemsSelector=".squeezeitem >
379 div:first-child"; 380this.squeezeClasses={leftTop:{topClass:"virginmedia-squeeze-leftTop",columnClass:"lgi_col_50_50-c0"},rightTop:{topClass:"virginmedia-squeeze-rightTop",columnClass:"lgi_col_50_50-c1"}} 381}; 382LGI.Adaptive.Image.AdaptiveTemplateSectionSqueezeItem.prototype.updateChildSqueezeItemsHeight=function(b){var a=this; 383b.find(this.childSqueezeItemsSelector).each(function(c,d){if(a.hasTemplateSectionParent($(d))){a.assignHeightsFromTemplateSection($(d),b.css("min-height")) 384}}); 385$("<style></style>").appendTo($(document.body)).remove() 386}; 387LGI.Adaptive.Image.AdaptiveTemplateSectionSqueezeItem.prototype.assignHeightsFromTemplateSection=function(b,a){if(b.hasClass(this.squeezeClasses.rightTop.topClass)){this.assignHeightFromTemplateSection(b,a,this.squeezeClasses.rightTop.columnClass) 388}else{this.assignHeightFromTemplateSection(b,a,this.squeezeClasses.leftTop.columnClass) 389}}; 390LGI.Adaptive.Image.AdaptiveTemplateSectionSqueezeItem.prototype.assignHeightFromTemplateSection=function(c,a,d){var b=c.find("> ."+d); 391b.css("min-height",a) 392}; 393LGI.Adaptive.Image.AdaptiveTemplateSectionSqueezeItem.prototype.hasTemplateSectionParent=function(b){var a=b.parents(".lgi-templatesection > div > .lgiAdaptiveImage"); 394return(typeof a!=="undefined"&&this.hasBackgroundImageSet(a)) 395}; 396LGI.Adaptive.Image.AdaptiveTemplateSectionSqueezeItem.prototype.hasBackgroundImageSet=function(a){return(typeof a.css("background-image")!=="undefined"&&typeof a.css("background-image")!=="none") 397}; 398LGI.Adaptive.Image.AdaptiveTemplateSectionSqueezeItem.prototype.setMinimalHeight=function(c){var a=$("#"+c),b=a.parents(".lgi-templatesection > div > .lgiAdaptiveImage"); 399this.assignHeightsFromTemplateSection(a,b.css("min-height")) 400}; 401LGI.Adaptive.Image.TemplateSection=function(){}; 402LGI.Adaptive.Image.TemplateSection.prototype.setMinimalHeight=function(g){var b=$("#"+g),f=b.data("heightoverwrite-large"),c=b.data("heightoverwrite-medium"),e=b.data("heightoverwrite-small"),d=b.data("heightoverwrite-extrasmall"),a=0; 403switch(UPC.Responsive.currentView){case"large":a=f; 404break; 405case"medium":a=c; 406break; 407case"small":a=e; 408break; 409case"extraSmall":a=d; 410break 411}b.css("min-height",a+"px") 412}; 413LGI.Adaptive.Image.Aspot=function(){this.aspotContainerSelector=".upc-basic-aspot-container"; 414this.aspotItemSelector=".upc-aspot-item"; 415this.aspotWrapperSelector=".upc-aspot-wrapper"; 416this.aspotResponsiveContainerSelector=".upc-basic-aspot-responsive-container"; 417this.aspotResponsiveItemSelector=".upc-basic-aspot-responsive-item"; 418this.aspotResponsiveWrapperSelector=".upc-basic-aspot-responsive-wrapper"; 419this.aspotNextButtonSelector=".upc-aspot-next"; 420this.aspotPreviousButtonSelector=".upc-aspot-previous"; 421this.aspotSelector=".basic-aspot"; 422this.aspotNoFallbackSetClass="noFallback"; 423this.aspotResponsiveSelector=".responsive-aspot"; 424this.squeezeItemSelector=".squeezeitem"; 425this.squeezeRightOnTopSelector=".virginmedia-squeeze-rightTop"; 426this.squeezeLeftOnTopSelector=".virginmedia-squeeze-leftTop"; 427this.squeezeFirstColumnSelector=".lgi_col_50_50-c0"; 428this.squeezeSecondColumnSelector=".lgi_col_50_50-c1" 429}; 430LGI.Adaptive.Image.Aspot.prototype.assignHeightValues=function(c,b){$(this.aspotContainerSelector).find(this.aspotItemSelector).css("height",c+"px"); 431$(this.aspotResponsiveContainerSelector).find(this.aspotResponsiveItemSelector+".active").css("height",b+"px"); 432$(this.aspotNextButtonSelector).css("margin-top",(c/2)-($(this.aspotNextButtonSelector).height()/2)+"px"); 433$(this.aspotPreviousButtonSelector).css("margin-top",(c/2)-($(this.aspotPreviousButtonSelector).height()/2)+"px"); 434if(c===-1){$(this.aspotResponsiveWrapperSelector).css("height",b+"px"); 435$(this.aspotResponsiveContainerSelector).find(this.aspotResponsiveItemSelector).css("height",b+"px") 436}else{$(this.aspotWrapperSelector).css("height",c+"px") 437}var a=this; 438if(typeof $(this.aspotResponsiveContainerSelector).find(this.aspotResponsiveItemSelector+".active").find(this.squeezeItemSelector)!=="undefined"){this.cloneSqueezeItems(b); 439setTimeout(function(){a.setResponsiveSqueezeItemHeights(c,b) 440},0) 441}a.setBasicAspotHeight(0) 442}; 443LGI.Adaptive.Image.Aspot.prototype.setResponsiveSqueezeItemHeights=function(e,c){var b=this; 444var d=$(b.aspotResponsiveWrapperSelector); 445var a=$(this.aspotResponsiveContainerSelector).find(this.squeezeItemSelector); 446$(a).each(function(f,h){var g=$(h);
447b.assignSqueezeItemColumnHeight(c); 448var i=b.calculateAccumulativeColumnHeight(g); 449if(i===0){i=d.height() 450}g.parents(b.aspotResponsiveItemSelector).css("height",i+"px"); 451g.height(i); 452var j=$(b.aspotResponsiveContainerSelector).find(b.aspotResponsiveItemSelector+".active").height(); 453if($(b.aspotResponsiveContainerSelector).find(b.aspotResponsiveItemSelector+".active").find(b.squeezeItemSelector).length===0){j=i 454}d.height(j+"px"); 455b.setBasicAspotHeight(j) 456}); 457$("<style></style>").appendTo($(document.body)).remove() 458}; 459LGI.Adaptive.Image.Aspot.prototype.calculateAccumulativeColumnHeight=function(a){return a.find(this.squeezeFirstColumnSelector).height()+a.find(this.squeezeSecondColumnSelector).height() 460}; 461LGI.Adaptive.Image.Aspot.prototype.cloneSqueezeItems=function(c){var a=$(this.aspotContainerSelector).find(this.squeezeItemSelector); 462var b=this; 463$(a).each(function(d,f){var g=$(f),e=b.retrieveSqueezeItemSlides(g); 464b.cloneSqueezeItem(g,e); 465b.assignTopColumnHeight(c,e) 466}); 467$("<style></style>").appendTo($(document.body)).remove() 468}; 469LGI.Adaptive.Image.Aspot.prototype.retrieveSqueezeItemSlides=function(a){if(a.parents(this.aspotContainerSelector).length>0){return a.parents(this.aspotItemSelector).index()-1 470}else{return a.parents(this.aspotResponsiveItemSelector).index()-1 471}}; 472LGI.Adaptive.Image.Aspot.prototype.setBasicAspotHeight=function(b){var d,c=aic.calculateScreenSizeSegment(); 473var a=[LGI.Adaptive.Image.screenSizes.m.name,LGI.Adaptive.Image.screenSizes.s.name,LGI.Adaptive.Image.screenSizes.xs.name]; 474if($.inArray(c,a)!==-1){d=$(this.aspotResponsiveContainerSelector); 475if(d.parents(".template_responsiveaspot").length>0&&c==a[0]){d=$(this.aspotContainerSelector) 476}}else{d=$(this.aspotContainerSelector) 477}b=aic.retrieveOverwriteHeightAttr(d); 478$(this.aspotContainerSelector).css("height",b+"px"); 479$(this.aspotSelector).css("height",b+"px"); 480$(this.aspotResponsiveSelector).css("height",b+"px") 481}; 482LGI.Adaptive.Image.Aspot.prototype.assignTopColumnHeight=function(e,b){var c=$(this.aspotResponsiveItemSelector).eq(b-1).find(this.squeezeItemSelector+" "+this.squeezeLeftOnTopSelector+" "+this.squeezeFirstColumnSelector); 483var d=$(this.aspotResponsiveItemSelector).eq(b-1).find(this.squeezeItemSelector+" "+this.squeezeRightOnTopSelector+" "+this.squeezeSecondColumnSelector); 484var a=(c.length>0)?c:d; 485a.css("height",e+"px") 486}; 487LGI.Adaptive.Image.Aspot.prototype.cloneSqueezeItem=function(c,a){var b=$(this.aspotResponsiveItemSelector).eq(a); 488if(b.find(this.squeezeItemSelector).length===0){b.append(c.clone()); 489this.updateIds(b); 490b.css("height","auto") 491}}; 492LGI.Adaptive.Image.Aspot.prototype.updateIds=function(a){a.find("[id]").each(function(c,d){var b=$(d),f=b.attr("id"); 493b.attr("id",f+"_responsiveFallback") 494}) 495}; 496LGI.Adaptive.Image.Aspot.prototype.assignSqueezeItemColumnHeight=function(a){$(this.aspotResponsiveContainerSelector).find(this.squeezeRightOnTopSelector).find(this.squeezeSecondColumnSelector).height(a+"px"); 497$(this.aspotResponsiveContainerSelector).find(this.squeezeLeftOnTopSelector).find(this.squeezeFirstColumnSelector).height(a+"px") 498}; 499LGI.Adaptive.Image.Aspot.prototype.hasFallbackImageSet=function(a){return a.parents(this.aspotResponsiveItemSelector).hasClass(this.aspotNoFallbackSetClass) 500}; 501LGI.Adaptive.Image.LazyLoading=function(){this.lazyLoadingImageSelector="img[lazyimg]"; 502this.lazyLoadingAttrName="lazyimg"; 503this.mobileViewClassName="mobileView"; 504this.extraMobileLazyLoadingOffset=100; 505this.lazyFadeInTime=1000; 506this.lazyFadeOutTime=10 507}; 508LGI.Adaptive.Image.LazyLoading.prototype.isLazyLoadingImage=function(a){return((a[0].tagName.toLowerCase()==="img")&&(typeof(a.attr(this.lazyLoadingAttrName))!=="undefined")) 509}; 510LGI.Adaptive.Image.LazyLoading.prototype.calculateLazyLoadStates=function(){var a=this; 511$(this.lazyLoadingImageSelector).each(function(b,c){a.calculateLazyLoadState($(c)) 512}) 513}; 514LGI.Adaptive.Image.LazyLoading.prototype.calculateLazyLoadState=function(a){var b=$(document).scrollTop()+$(window).outerHeight(); 515if($("body").hasClass(this.mobileViewClassName)){b+=this.extraMobileLazyLoadingOffset 516}if(a.offset().top<b&&a.is(":visible")){this.fadeInSource(a) 517}else{a.animate({opacity:"0"},this.lazyFadeOutTime) 518}}; 519LGI.Adaptive.Image.LazyLoading.prototype.fadeInSource=function(a){a.attr("src",a.attr(this.lazyLoadingAttrName)); 520a.removeAttr(this.lazyLoadingAttrName); 521a.animate({opacity:"1"},this.lazyFadeInTime) 522}; 523LGI.Adaptive.Image.Relay42=function(){this.relay42Attribute="data-relay42-src"; 524this.dataSrcAttr="data-src"; 525this.relay42selector=".lgiAdaptiveImage[data-relay42-src]"; 526this.relay42Timeout=2000 527}; 528LGI.Adaptive.Image.Relay42.prototype.initiateRelay42Timeout=function(){var a=this; 529setTimeout(function(){$("body").attr("relayRun","true"); 530a.replaceSrcAttributes(); 531aic.assignAdaptiveImageProperties(aic.adaptiveImageSelector) 532},this.relay42Timeout) 533}; 534LGI.Adaptive.Image.Relay42.prototype.replaceSrcAttributes=function(){var a=this; 535$(this.relay42selector).each(function(b,d){var c=$(d); 536c.attr(a.dataSrcAttr,c.attr(a.relay42Attribute)); 537c.removeAttr(a.relay42Attribute) 538}) 539}; 540aic=new LGI.Adaptive.Image.AdaptiveImageComponent(); 541window.addEventListener("DOMContentLoaded",function(){$("img").each(function(){if(typeof $(this).attr("data-custom-size")!=="undefined"){if($(this).attr("data-custom-size")!=="auto auto"){var j,l,i,h,k; 542j=$(this).attr("data-custom-size"); 543l=j.split(" "); 544if(l.length===2){i=l[0]; 545h=l[1] 546}$(this).removeClass("lgiAdaptiveImage isRetinaImage"); 547if(typeof $(this).attr("data-relay42-src")!=="undefined"){k=$(this).attr("data-relay42-src") 548}else{k=$(this).attr("data-src") 549}$(this).removeAttr("data-src data-relay42-src"); 550$(this).attr("src",k); 551$(this).css({width:i,height:h}) 552}}}); 553$(window).on("orientationchange webkitfullscreenchange mozfullscreenchange fullscreenchange",c); 554function c(){aic.aspot.assignHeightValues(aic.retrieveOverwriteHeightAttr($(aic.aspot.aspotContainerSelector)),aic.retrieveOverwriteHeightAttr($(aic.aspot.aspotResponsiveContainerSelector))); 555aic.assignAdaptiveImageProperties(); 556this.triggeredOnce=true 557}var a=null; 558var e=500; 559function f(){aic.assignAdaptiveImageProperties() 560}$(window).on("resize",function(){if(this.triggeredOnce){clearTimeout(a); 561a=setTimeout(f,e) 562}}); 563$(aic.stepPlanSelector).on("loadstep",function(){aic.assignAdaptiveImagePropertiesToSelector('div[data-unique-step-id="'+arguments[1]+'"] '+aic.adaptiveImageSelector,aic.calculateScreenSizeSegment()) 564}); 565$(document).on("loadAdaptiveImages",function(){aic.assignAdaptiveImagePropertiesToSelector(aic.adaptiveImageSelector,aic.calculateScreenSizeSegment()) 566}); 567$(document).on("calculateLazyLoadStates",function(){aic.ll.calculateLazyLoadStates() 568}); 569var g=null; 570var b=100; 571function d(){aic.ll.calculateLazyLoadStates() 572}window.onscroll=function(){clearTimeout(g); 573g=setTimeout(d,b) 574}; 575$(document).on("aspotitemresize",function(){aic.aspot.assignHeightValues(aic.retrieveOverwriteHeightAttr($(aic.aspot.aspotContainerSelector)),aic.retrieveOverwriteHeightAttr($(aic.aspot.aspotResponsiveContainerSelector))) 576}); 577relay42=new LGI.Adaptive.Image.Relay42(); 578if($(relay42.relay42selector).length>0){relay42.initiateRelay42Timeout(); 579$(document).on("targeting-ready",function(){relay42.replaceSrcAttributes(); 580$("body").attr("relayRun","true"); 581aic.assignAdaptiveImageProperties(aic.adaptiveImageSelector) 582}) 583}c() 584}); 585window.LGI=window.LGI||{}; 586LGI.Components=LGI.Components||{}; 587LGI.Components.SliderAspot=LGI.Components.SliderAspot||{}; 588LGI.Components.SliderAspot.enableSlickSlider=function(f,b,i,h,a,j,c,g,d,e){jQuery(document).ready(function(){jQuery("."+f+".lgi-slider-aspot").slick({slidesToShow:b,slidesToScroll:i,centerPadding:"0px",
588infinite:g,dots:d,speed:150,prevArrow:'<button type="button" class="slick-prev slick-prev-bottom" aria-label="Previous" role="button"><span>Previous</span></button>',nextArrow:'<button type="button" class="slick-next slick-next-bottom" aria-label="Next" role="button"><span>Next</span></button>',responsive:[{breakpoint:959,settings:{centerMode:false,centerPadding:"0px",slidesToShow:b,slidesToScroll:i}},{breakpoint:769,settings:{centerMode:false,centerPadding:"0px",slidesToShow:h,slidesToScroll:a}},{breakpoint:619,settings:{centerMode:false,centerPadding:"0px",slidesToShow:j,slidesToScroll:c}},{breakpoint:519,settings:{centerMode:false,centerPadding:"0px",slidesToShow:j,slidesToScroll:c}}]}) 589}) 590}; 591LGI.Components.SliderAspot.toggleDottedNavigationSpace=function(a,b){if(!b){jQuery("."+a+".lgi-slider-aspot").addClass("noDots") 592}}; 593LGI.Components.SliderAspot.toggleSlickNavigationButtons=function(e,g,j,d){var h=jQuery("."+g+".lgi-slider-aspot").find(".slick-prev")[0]; 594var k=jQuery("."+g+".lgi-slider-aspot").find(".slick-next")[0]; 595if(d==-1){var a=jQuery("."+g+".lgi-slider-aspot").find("div.slick-current")[0]; 596d=jQuery(a).data("slick-index") 597}if(d==0&&!j){jQuery(h).hide() 598}else{jQuery(h).show() 599}var i=jQuery("."+g+".lgi-slider-aspot").find("div.slick-active"); 600var c=i[i.length-1]; 601var f=jQuery(c).data("slick-index"); 602var b=e.slideCount-1; 603if((f==b||d==b)&&!j){jQuery(k).hide() 604}else{jQuery(k).show() 605}}; 606LGI.Components.SliderAspot.navigateToTheFragmentIdentifier=function(d,c){var e=window.location.hash.replace("#",""); 607if(e){var b=jQuery("."+c+".lgi-slider-aspot").find("#lgi-aspot-"+e); 608if(b.length>0){var a=jQuery(b).data("slick-index"); 609d.slickGoTo(a,false) 610}}};
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.