{"version":3,"sources":["webpack:///./src/feature/fadein-on-intersect/fadein-on-intersect.js","webpack:///./node_modules/core-js/modules/es.object.get-prototype-of.js","webpack:///./node_modules/core-js/modules/es.object.set-prototype-of.js"],"names":["FadeinOnIntersect","element","elm","activeClass","dataset","activeclass","initDomCache","init","supportScroll","window","test","navigator","userAgent","supportIntersectionObserver","this","observe","reveal","observer","IntersectionObserver","handleIntersect","bind","root","rootMargin","threshold","entries","forEach","entry","isIntersecting","disconnect","classList","add","BaseFeature","$","fails","toObject","nativeGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","target","stat","forced","sham","getPrototypeOf","it","setPrototypeOf"],"mappings":"k/BAEqBA,E,YACpB,WAAYC,GAAS,a,4FAAA,UACpB,wBAAMA,KAEDC,IAAMD,EACX,EAAKE,YAAc,EAAKD,IAAIE,QAAQC,YACpC,EAAKC,eACL,EAAKC,OANe,E,8RAYpB,IAAMC,EAAiB,aAAcC,SAAa,SAASC,KAAKC,UAAUC,WAGpEC,EAA8B,yBAA0BJ,OAE1DD,GAAiBK,EACpBC,KAAKC,UAELD,KAAKE,W,gCAUNF,KAAKG,SAAW,IAAIC,qBAAqBJ,KAAKK,gBAAgBC,KAAKN,MALnD,CACfO,KAAM,KACNC,WAAY,MACZC,UAAW,KAGZT,KAAKG,SAASF,QAAQD,KAAKZ,O,sCAGZsB,EAASP,GAAU,WAClCO,EAAQC,SAAQ,SAACC,GACZA,EAAMC,iBACT,EAAKX,SACLC,EAASW,mB,+BAMXd,KAAKZ,IAAI2B,UAAUC,IAAIhB,KAAKX,kB,oCA7CiB4B,I,oBCF/C,IAAIC,EAAI,EAAQ,GACZC,EAAQ,EAAQ,GAChBC,EAAW,EAAQ,GACnBC,EAAuB,EAAQ,IAC/BC,EAA2B,EAAQ,IAMvCJ,EAAE,CAAEK,OAAQ,SAAUC,MAAM,EAAMC,OAJRN,GAAM,WAAcE,EAAqB,MAIJK,MAAOJ,GAA4B,CAChGK,eAAgB,SAAwBC,GACtC,OAAOP,EAAqBD,EAASQ,Q,oBCZjC,EAAQ,EAKhBV,CAAE,CAAEK,OAAQ,SAAUC,MAAM,GAAQ,CAClCK,eALmB,EAAQ","file":"9-a1176ea4.pkg.js","sourcesContent":["import BaseFeature from '../../foundation/base/base';\r\n\r\nexport default class FadeinOnIntersect extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\r\n\t\tthis.elm = element;\r\n\t\tthis.activeClass = this.elm.dataset.activeclass;\r\n\t\tthis.initDomCache();\r\n\t\tthis.init();\r\n\t}\r\n\r\n\tinit() {\r\n\t\t// If useragent doens't support scroll, then it is properly a Google Bot\r\n\t\t// Therefor all images should be rendered for SEO purposes\r\n\t\tconst supportScroll = ('onscroll' in window) && !(/glebot/.test(navigator.userAgent));\r\n\r\n\t\t// If the useragent doesn't support IntersectionObserver, we need to render all images\r\n\t\tconst supportIntersectionObserver = 'IntersectionObserver' in window;\r\n\r\n\t\tif (supportScroll && supportIntersectionObserver) {\r\n\t\t\tthis.observe();\r\n\t\t} else {\r\n\t\t\tthis.reveal();\r\n\t\t}\r\n\t}\r\n\r\n\tobserve() {\r\n\t\tconst options = {\r\n\t\t\troot: null,\r\n\t\t\trootMargin: '0px',\r\n\t\t\tthreshold: 0.5\r\n\t\t};\r\n\t\tthis.observer = new IntersectionObserver(this.handleIntersect.bind(this), options);\r\n\t\tthis.observer.observe(this.elm);\r\n\t}\r\n\r\n\thandleIntersect(entries, observer) {\r\n\t\tentries.forEach((entry) => {\r\n\t\t\tif (entry.isIntersecting) {\r\n\t\t\t\tthis.reveal();\r\n\t\t\t\tobserver.disconnect();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\r\n\treveal() {\r\n\t\tthis.elm.classList.add(this.activeClass);\r\n\t}\r\n}\r\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toObject = require('../internals/to-object');\nvar nativeGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject(it));\n }\n});\n\n","var $ = require('../internals/export');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n$({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf\n});\n"],"sourceRoot":""}