PageSourceSearch

https://www.newarab.com/sites/default/files/js/optimized/js_343UA9…VGZ0HvzxfErQPYZLmRbl8sYR0EUeeVjKI.js?tlnjzp

js newarab.com collected 2026-09-24 07:41:55 UTC 6,471 bytes, 15 lines download raw bytes

1(function(Drupal,drupalSettings,_db,window,document){'use strict';var _dataAnimation='data-animation';var _dataDimensions='data-dimensions';var _dataBg='data-backgrounds';var _dataRatio='data-ratio';var _firstBlazy='blazy--first';var _isNativeExecuted=false;var _isPictureExecuted=false;var _resizeTick=0;Drupal.blazy=Drupal.blazy||{context:null,init:null,items:[],ratioItems:[],windowWidth:0,blazySettings:drupalSettings.blazy||{},ioSettings:drupalSettings.blazyIo||{},revalidate:false,options:{},globals:function(){var me=this;var commons={isUniform:false,success:me.clearing.bind(me),error:me.clearing.bind(me),selector:'.b-lazy',errorClass:'b-error',successClass:'b-loaded'};return _db.extend(me.blazySettings,me.ioSettings,commons);},clearing:function(el){var me=this;var cn=_db.closest(el,'.media');var an=_db.closest(el,'['+_dataAnimation+']');me.clearLoading(el);me.reevaluate(el);me.updateContainer(el,cn);if(an!==null||me.has(el,_dataAnimation)){_db.animate(an!==null?an:el);}
2_db.trigger(el,'blazy.done',{options:me.options});if(!_isNativeExecuted){_db.trigger(me.context,'blazy.native',{options:me.options});_isNativeExecuted=true;}},clearLoading:function(el){var loaders=[el,_db.closest(el,'.is-loading'),_db.closest(el,'[class*="loading"]')];_db.forEach(loaders,function(loader){if(loader!==null){loader.className=loader.className.replace(/(\S+)loading/,'');}});},isLoaded:function(el){return el!==null&&el.classList.contains(this.options.successClass);},reevaluate:function(el){var me=this;var ie=el.classList.contains('b-responsive')&&el.hasAttribute('data-pfsrc');if(me.init!==null&&_db.hasClass(el,me.options.errorClass)){el.classList.remove(me.options.errorClass);window.setTimeout(function(){me.init.load(el);},10);}
3if(window.picturefill&&ie){window.picturefill({reevaluate:true,elements:[el]});}},has:function(el,attribute){return el!==null&&el.hasAttribute(attribute);},contains:function(el,name){return el!==null&&el.classList.contains(name);},updateContainer:function(el,cn){var me=this;var isPicture=_db.equal(el.parentNode,'picture')&&me.has(cn,_dataDimensions);window.setTimeout(function(){if(me.isLoaded(el)){(me.contains(cn,'media')?cn:el).classList.add('is-b-loaded');if(isPicture){me.updatePicture(el,cn);}
4if(me.has(el,_dataBg)){_db.updateBg(el,me.options.mobileFirst);}}});},updatePicture:function(el,cn){var me=this;var pad=Math.round(((el.naturalHeight / el.naturalWidth)*100),2);cn.style.paddingBottom=pad+'%';if(!_isPictureExecuted){_db.trigger(me.context,'blazy.uniform',{pad:pad});_isPictureExecuted=true;}},updateRatio:function(cn){var me=this;var dimensions=_db.parse(cn.getAttribute(_dataDimensions))||('dimensions'in me.options?me.options.dimensions:false);if(!dimensions){me.updateFallbackRatio(cn);return;}
5var isPicture=cn.querySelector('picture')!==null&&_resizeTick>0;var pad=_db.activeWidth(dimensions,isPicture);if(pad!=='undefined'){cn.style.paddingBottom=pad+'%';}
6if(_resizeTick>0&&(isPicture||me.has(cn,_dataBg))){me.updateContainer((isPicture?cn.querySelector('img'):cn),cn);}},updateFallbackRatio:function(cn){if(!cn.hasAttribute('style')&&cn.hasAttribute(_dataRatio)){cn.style.paddingBottom=cn.getAttribute(_dataRatio)+'%';}},doNativeLazy:function(){var me=this;var doNative=function(el){_db.setAttrs(el,['srcset','src'],true);_db.setAttrsWithSources(el,false,true);el.classList.add(me.options.successClass);me.clearing(el);};var onNative=function(){_db.forEach(me.items,doNative);};_db.bindEvent(me.context,'blazy.native',onNative,{once:true});},isNativeLazy:function(){return'loading'in HTMLImageElement.prototype;},isIo:function(){return this.ioSettings&&this.ioSettings.enabled&&'IntersectionObserver'in window;},isBlazy:function(){return!this.isIo()&&'Blazy'in window;},forEach:function(context){var el=context.querySelector('[data-blazy]');var blazies=context.querySelectorAll('.blazy:not(.blazy--on)');if(blazies.length>0){_db.forEach(blazies,doBlazy,context);}
7if(el===null){initBlazy(context);}},run:function(opts){return this.isIo()?new BioMedia(opts):new Blazy(opts);},afterInit:function(context){var me=this;me.ratioItems=context.querySelector('.media--ratio')===null?[]:context.querySelectorAll('.media--ratio');var shouldLoop=me.ratioItems.length>0;var swapRatio=function(e){var pad=e.detail.pad;if(pad>10){_db.forEach(me.ratioItems,function(cn){cn.style.paddingBottom=pad+'%';},context);}};var checkRatio=function(){me.windowWidth=_db.windowWidth();if(shouldLoop){_db.forEach(me.ratioItems,me.updateRatio.bind(me),context);}
8if(!me.isNativeLazy()&&(me.isBlazy()||me.revalidate)){me.init.revalidate(true);}
9if(context.classList&&context.classList.contains(_firstBlazy)){_db.trigger(context,'blazy.afterInit',{items:me.items||me.ratioItems,windowWidth:me.windowWidth});}
10_resizeTick++;};checkRatio();_db.bindEvent(window,'resize',Drupal.debounce(checkRatio,200,true));if(me.options.isUniform&&shouldLoop){_db.bindEvent(context,'blazy.uniform',swapRatio,{once:true});}}};var initBlazy=function(context,opts){var me=Drupal.blazy;var documentElement=context instanceof HTMLDocument?context:_db.closest(context,'html');opts=opts||{};opts.mobileFirst=opts.mobileFirst||false;documentElement=documentElement||document;if(!document.documentElement.isSameNode(documentElement)){opts.root=documentElement;}
11me.options=_db.extend({},me.globals(),opts);me.context=context;var scrollElms='#drupal-modal, .is-b-scroll';if(me.options.container){scrollElms+=', '+me.options.container.trim();}
12me.options.container=scrollElms;var nativeSelector=me.options.selector+'[loading]:not(.'+me.options.successClass+')';me.items=documentElement.querySelector(nativeSelector)===null?[]:documentElement.querySelectorAll(nativeSelector);if(me.isNativeLazy()){if(me.items.length>0){me.doNativeLazy();}}
13me.init=me.run(me.options);me.afterInit(context);};function doBlazy(elm){var me=Drupal.blazy;var dataAttr=elm.getAttribute('data-blazy');var opts=(!dataAttr||dataAttr==='1')?{}:(_db.parse(dataAttr)||{});me.revalidate=me.revalidate||elm.classList.contains('blazy--revalidate');elm.classList.add('blazy--on');if(_db.closest(elm,'.blazy')===null){elm.classList.add(_firstBlazy);opts.isUniform=me.contains(elm,'blazy--field')||me.contains(elm,'blazy--grid')||me.contains(elm,'blazy--uniform');initBlazy(elm,opts);}}
14Drupal.behaviors.blazy={attach:function(context){context=context||document;if('length'in context){context=context[0];}
15_db.once(Drupal.blazy.forEach(context));}};}(Drupal,drupalSettings,dBlazy,this,this.document));

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.