{"version":3,"file":"js/destinations_index_block-destinations_index_block-js-aa5e930da2428991174b.chunk.js","mappings":"kHACAA,E,SAAAA,O,mCCcA,MAQA,EARmB,SAACC,EAAMC,GACxB,MAAMC,EAAmB,IAAIC,sBAAqBC,IAChDA,EAAQC,SAAQC,GAASL,EAASK,IAAO,GAFFC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,GAK7C,OADAL,EAAiBQ,QAAQV,GAClBE,CACT,C","sources":["webpack://cms-web/./app/frontend/src/blocks/destinations_index_block/destinations_index_block.js","webpack://cms-web/./app/frontend/src/utils/inViewport.js"],"sourcesContent":["import { init } from '../destinations_index_packed/destinations_index';\ninit();\n","/**\n * Observes an element's visibility in viewport.\n *\n * @param {*} elem\n * @param {*} callback - function to execute when it detects that an element's visibility has crossed one or more thresholds\n * @param {*} options - see available options on https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver\n *\n * @example\n inViewport('.target', (element) => {\n console.log(`Element is visible? ${element.isIntersecting}`)\n }, {\n root: document.querySelector('.scroll')\n })\n *\n */\nconst inViewport = (elem, callback, options = {}) => {\n const observerInstance = new IntersectionObserver(entries => {\n entries.forEach(entry => callback(entry))\n }, options)\n observerInstance.observe(elem)\n return observerInstance\n}\n\nexport default inViewport\n"],"names":["init","elem","callback","observerInstance","IntersectionObserver","entries","forEach","entry","arguments","length","undefined","observe"],"sourceRoot":""}