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B,C","sources":["webpack://narconon-us-site/./node_modules/@able-sbcadmin/narconon-npm/dist/video-wall-carousel.js"],"sourcesContent":["// Author ABLE Dev\nimport Swiper from 'swiper';\nimport SwiperCore, { Navigation } from 'swiper/core';\nSwiperCore.use([ Navigation ]);\n\nexport function videoWallCarousel() {\n \n var videoWallCarousel = new Swiper('.video-wall-carousel', {\n slidesPerView: 1.4,\n spaceBetween: 10,\n loop: true,\n centeredSlides: true,\n preloadImages: true,\n speed: 400,\n loopPreventsSlide: true,\n navigation: {\n nextEl: '.video-wall-next',\n prevEl: '.video-wall-prev',\n },\n breakpoints: {\n 365: {\n slidesPerView: 1.5,\n spaceBetween: 10, \n },\n 415: {\n slidesPerView: 1.7,\n spaceBetween: 10, \n },\n 450: {\n slidesPerView: 1.75,\n spaceBetween: 10, \n },\n 480: {\n slidesPerView: 2,\n spaceBetween: 10, \n },\n 550: {\n slidesPerView: 2.25,\n spaceBetween: 10, \n },\n 610: {\n slidesPerView: 2.5,\n spaceBetween: 10, \n },\n 680: {\n slidesPerView: 2.75,\n spaceBetween: 10, \n },\n 735: {\n slidesPerView: 3,\n spaceBetween: 10, \n },\n 800: {\n slidesPerView: 3.25,\n spaceBetween: 10, \n },\n 864: {\n slidesPerView: 3.5,\n spaceBetween: 10, \n },\n 1000: {\n slidesPerView: 4,\n spaceBetween: 10, \n },\n 1100: {\n slidesPerView: 4.5,\n spaceBetween: 10, \n },\n 1250: {\n slidesPerView: 5,\n spaceBetween: 10, \n },\n 1360: {\n slidesPerView: 5.5,\n spaceBetween: 10, \n },\n 1460: {\n slidesPerView: 6,\n spaceBetween: 10, \n },\n 1600: {\n slidesPerView: 6.5,\n spaceBetween: 10,\n },\n 1750: {\n slidesPerView: 7,\n spaceBetween: 10,\n },\n 1960: {\n slidesPerView: 7.5,\n spaceBetween: 10,\n },\n 2000: {\n slidesPerView: 8,\n spaceBetween: 10,\n },\n 2250: {\n slidesPerView: 8.5,\n spaceBetween: 10,\n },\n 2500: {\n slidesPerView: 9,\n spaceBetween: 10,\n },\n 2750: {\n slidesPerView: 10,\n spaceBetween: 10,\n },\n 3000: {\n slidesPerView: 11,\n spaceBetween: 10,\n },\n },\n });\n \n };\n \n /* ======================\n \n Lightbox toggles\n \n ======================= */\n \n \n \n if(document.querySelector('.bubble-up')) {\n \n const elementParent = document.querySelector('.bubble-up');\n const elementToggle = document.querySelector('.expand');\n const lightBoxAnchor = document.querySelector('.lightbox-anchor');\n \n elementParent.addEventListener('click', event => {\n if (event.target !== elementParent && event.target !== elementToggle) {\n lightBoxToggle(event);\n }\n });\n \n const buttonClose = document.querySelector('.buttonClose');\n\n buttonClose.addEventListener('click', event => {\n lightBoxToggle(event);\n });\n \n var toggleState = false;\n \n function lightBoxToggle(event) {\n if (toggleState == false) {\n lightBoxAnchor.classList.add(\"on\");\n toggleState = true;\n } else {\n lightBoxAnchor.classList.remove(\"on\");\n toggleState = false;\n }\n };\n \n };\n \n if(document.querySelector('.video-up')) {\n \n /* trigger */\n var theParent = document.querySelector(\".video-up\");\n theParent.addEventListener(\"click\", loadVid, false);\n \n /* Lightbox text and links */\n var vidWallTitle = document.querySelector('.captions-link-wrapper').children[0].children[0];\n var vidWallName = document.querySelector('.captions-link-wrapper').children[0].children[1];\n var vidWallLink = document.querySelector('.captions-link-wrapper').children[1].children[0];\n \n /* this is the lightbox handle */\n const lightBoxAnchor = document.querySelector('.lightbox-anchor');\n \n var toggleState = false;\n \n function loadVid(e) {\n if (toggleState == false) {\n \n if (e.target !== e.currentTarget) {\n \n /* Get image with attributes needed for propagation */\n var clickedItem = e.target;\n \n /* getting the variables I need*/\n var dataTitle = clickedItem.getAttribute('data-title');\n var dataName = clickedItem.getAttribute('data-name');\n var dataHref = clickedItem.getAttribute('data-href');\n /* Setting the text area's content and HREFs */\n vidWallTitle.innerHTML = dataTitle;\n vidWallName.innerHTML = dataName;\n vidWallLink.setAttribute('href', dataHref);\n \n \n var dataSrc = clickedItem.getAttribute('data-src');\n var dataPoster = clickedItem.getAttribute('data-poster');\n \n\n /* GETTING THE VIDEO PLAYER */\n import('./videojsimport') \n .then( module => { \n module.lightBoxVidStart(dataSrc, dataPoster);\n console.log(\"play vid\"); \n } );\n\n /* Turns lightbox on */\n lightBoxAnchor.classList.add(\"on\");\n \n /* true = on */\n toggleState = true;\n } else {\n /* nothing */\n };\n \n } else {\n /* pause video on close as well as close lightbox */\n import('./videojsimport') \n .then( module => { module.lightBoxVidPause() } );\n lightBoxAnchor.classList.remove(\"on\");\n \n /* false = off */\n toggleState = false;\n }\n \n e.stopPropagation();\n \n }\n \n /* handle for close 'x' */\n const buttonClose = document.querySelector('.vid-wall-close');\n \n /* on click for x runs function to open or close */\n buttonClose.addEventListener('click', event => {\n loadVid(event);\n });\n \n \n };\n\n /* End Dom loaded listener */\n"],"names":["videoWallCarousel","slidesPerView","spaceBetween","loop","centeredSlides","preloadImages","speed","loopPreventsSlide","navigation","nextEl","prevEl","breakpoints","document","querySelector","elementParent","elementToggle","lightBoxAnchor","addEventListener","event","target","lightBoxToggle","toggleState","classList","add","remove","loadVid","vidWallTitle","children","vidWallName","vidWallLink","e","currentTarget","clickedItem","dataTitle","getAttribute","dataName","dataHref","innerHTML","setAttribute","dataSrc","dataPoster","then","module","lightBoxVidStart","console","log","lightBoxVidPause","stopPropagation"],"sourceRoot":""}