{"version":3,"sources":["webpack://gli-frontend/../web/themes/custom/gilderlehrman_theme/src/js/gli__glightbox.js"],"names":["Drupal","behaviors","glightboxInline","attach","context","drupalSettings","galleries","once","forEach","gallery","GLightbox","selector","id"],"mappings":"CAAA,SAAWA,GACT,aAKAA,EAAOC,UAAUC,gBAAkB,CACjCC,OAAQ,SAAUC,EAASC,GACzB,IAAMC,EAAYC,KAAK,6BAA8B,mCACjDD,GACFA,EAAUE,SAAQ,SAAUC,GAC1BC,UAAU,CACRC,SAAU,IAAMF,EAAQG,GAAK,4BAZzC,CAmBGZ","file":"/js/gli__glightbox.js","sourcesContent":["(function (Drupal) {\n \"use strict\";\n\n /**\n * Enable the GLightbox inline functionality.\n */\n Drupal.behaviors.glightboxInline = {\n attach: function (context, drupalSettings) {\n const galleries = once('glightbox-inline-processed', '.paragraph--type--photo-gallery');\n if (galleries) {\n galleries.forEach(function (gallery) {\n GLightbox({\n selector: '#' + gallery.id + ' .glightbox-inline'\n });\n });\n }\n }\n };\n\n})(Drupal);\n"],"sourceRoot":""}