{"version":3,"names":["$","Drupal","behaviors","initGlightbox","attach","context","once","onDocGlightboxReady","each","document","querySelector","htmlElement","documentElement","direction","getAttribute","GLightbox","selector","lightboxHTML","openEffect","closeEffect","closeOnOutsideClick","videosWidth","draggable","touchNavigation","cssEfects","slide","out","in","slideBack","jQuery"],"sources":["../../src/js/glightbox.init.js"],"sourcesContent":["(function ($, Drupal) {\n\n 'use strict';\n function onDocGlightboxReady(context) {\n const $elements = $(once('initGlightboxBehavior', 'body', context));\n $elements.each(function() {\n\n // var $light = $('[data-glightbox]');\n //\n // if ($light.length > 0) {\n // var lb = GLightbox({\n // selector: '*[data-glightbox]',\n // openEffect: 'fade',\n // closeEffect: 'fade'\n // });\n // }\n const lightboxEl = document.querySelector('[data-glightbox]')\n\n if (lightboxEl === null) return\n\n // Check the dir attribute on html tag and set the default to \"ltr\" if it's not set or invalid\n const htmlElement = document.documentElement\n const direction =\n htmlElement.getAttribute('dir') === 'ltr' ||\n htmlElement.getAttribute('dir') === 'rtl'\n ? htmlElement.getAttribute('dir')\n : 'ltr'\n\n const customLightboxHTML = `