{"version":3,"file":"di-experience.min.js","sources":["di-experience.min.js"],"sourcesContent":["\"use strict\";\n\n(function ($, Drupal, drupalSettings) {\n 'use strict';\n\n Drupal.behaviors.diExperience = {\n attach: function attach(context, settings) {\n var setEmbedDimensions = function setEmbedDimensions(parentDiv, embed, height, width) {\n // Get current width and set it.\n width = parentDiv.width();\n height = width / 16 * 9;\n embed.parent().css('width', \"\".concat(width, \"px\"));\n embed.css('width', \"\".concat(width, \"px\"));\n embed.css('height', \"\".concat(height, \"px\"));\n },\n setMessage = function setMessage(parentDiv, height, width) {\n var message = Drupal.t('For a better experience, please view this content on a desktop device.');\n var top = 654;\n if (width < 718) {\n top = 590;\n } else if (width < 635) {\n top = 620;\n } else if (width < 430) {\n top = 604;\n }\n parentDiv.prepend(\"
\").concat(message, \"