{"version":3,"file":"wbd_component_hero.min.js","sources":["wbd_component_hero.js"],"sourcesContent":["/**\n * @file\n * Attaches the behaviors for WBD Hero component.\n */\n\n(($, Drupal, Sortable) => {\n const { ajax, behaviors, debounce, announce, formatPlural } = Drupal;\n\n Drupal.heroComponent = Drupal.heroComponent || {};\n Drupal.heroComponent.closePopup = function () {\n $(event.target).closest('.wbd-cmp--popup').remove();\n }\n\n Drupal.behaviors.wbdComponentHero = {\n attach(context) {\n $(\".wbd-component__hero-video--play-button button\", context).click(function(e){\n e.preventDefault();\n console.log('chandans');\n const this_video_url = $(this).attr(\"data-sizzle-url\");\n const this_video_poster = $(this).attr(\"data-sizzle-poster\");\n\n $(\".wbd-component__hero-video--container video\")[0].pause();\n\n\n if (!$('body').find('.popup').length) {\n const $popupHtml = `