{"version":3,"sources":["https:\/\/education.kaspersky.com\/theme\/kaspersky\/amd\/src\/lazy.js"],"names":["define","$","fn","loadScroll","duration","$window","window","images","inview","loaded","one","getAttribute","setAttribute","removeAttribute","hide","fadeIn","add","removeAttr","scroll","filter","a","scrollTop","b","height","c","offset","top","d","trigger","not","init"],"mappings":"AAAAA,OAAM,wBAAC,CAAC,QAAD,CAAD,CAAa,SAAUC,CAAV,CAAa,CAC5B,CAAC,SAASA,CAAT,CAAY,CACTA,CAAC,CAACC,EAAF,CAAKC,UAAL,CAAkB,SAASC,CAAT,CAAmB,CACjC,GAAIC,CAAAA,CAAO,CAAGJ,CAAC,CAACK,MAAD,CAAf,CACIC,CAAM,CAAG,IADb,CAEIC,CAFJ,CAGIC,CAHJ,CAIAF,CAAM,CAACG,GAAP,CAAW,YAAX,CAAyB,UAAW,CAChC,GAAI,KAAKC,YAAL,CAAkB,UAAlB,CAAJ,CAAmC,CAC\/B,KAAKC,YAAL,CAAkB,KAAlB,CACA,KAAKD,YAAL,CAAkB,UAAlB,CADA,EAEA,KAAKE,eAAL,CAAqB,UAArB,EACA,GAAIT,CAAJ,CAAc,CACVH,CAAC,CAAC,IAAD,CAAD,CAAQa,IAAR,GACQC,MADR,CACeX,CADf,EAEQY,GAFR,CAEY,KAFZ,EAGQC,UAHR,CAGmB,OAHnB,CAIH,CALD,IAMK,CACD,QACH,CACJ,CACJ,CAfD,EAgBAZ,CAAO,CAACa,MAAR,CAAe,UAAW,CACtBV,CAAM,CAAGD,CAAM,CAACY,MAAP,CAAc,UAAW,CAC9B,GAAIC,CAAAA,CAAC,CAAGf,CAAO,CAACgB,SAAR,EAAR,CACIC,CAAC,CAAGjB,CAAO,CAACkB,MAAR,EADR,CAEIC,CAAC,CAAGvB,CAAC,CAAC,IAAD,CAAD,CAAQwB,MAAR,GAAiBC,GAFzB,CAGIC,CAAC,CAAG1B,CAAC,CAAC,IAAD,CAAD,CAAQsB,MAAR,EAHR,CAIA,MAAOC,CAAAA,CAAC,CAAGG,CAAJ,EAASP,CAAT,EAAcI,CAAC,EAAIJ,CAAC,CAAGE,CACjC,CANQ,CAAT,CAOAb,CAAM,CAAGD,CAAM,CAACoB,OAAP,CAAe,YAAf,CAAT,CACArB,CAAM,CAAGA,CAAM,CAACsB,GAAP,CAAWpB,CAAX,CACZ,CAVD,CAWH,CACJ,CAlCD,EAkCGR,CAlCH,EAmCA,MAAO,CACH6B,IAAI,CAAE,eAAW,CACb7B,CAAC,CAAC,eAAD,CAAD,CAAmBE,UAAnB,CAA8B,CAA9B,EACAF,CAAC,CAACK,MAAD,CAAD,CAAUe,SAAV,CAAoBpB,CAAC,CAACK,MAAD,CAAD,CAAUe,SAAV,GAAsB,CAA1C,CACH,CAJE,CAMV,CA1CK,CAAN","sourcesContent":["define(['jquery'], function ($) {\n (function($) {\n $.fn.loadScroll = function(duration) {\n var $window = $(window),\n images = this,\n inview,\n loaded;\n images.one('loadScroll', function() {\n if (this.getAttribute('data-src')) {\n this.setAttribute('src',\n this.getAttribute('data-src'));\n this.removeAttribute('data-src');\n if (duration) {\n $(this).hide()\n .fadeIn(duration)\n .add('img')\n .removeAttr('style');\n }\n else {\n return false;\n }\n }\n });\n $window.scroll(function() {\n inview = images.filter(function() {\n var a = $window.scrollTop(),\n b = $window.height(),\n c = $(this).offset().top,\n d = $(this).height();\n return c + d >= a && c <= a + b;\n });\n loaded = inview.trigger('loadScroll');\n images = images.not(loaded);\n });\n };\n })($);\n return {\n init: function() {\n $('img[data-src]').loadScroll(0);\n $(window).scrollTop($(window).scrollTop()+1);\n }\n };\n});"],"file":"lazy.min.js"}