{"version":3,"file":"customers.min.js","sources":["customers.min.js"],"sourcesContent":["\"use strict\";\n\n/**\n * @file\n * COMPANY CUSTOMERS\n * Make Vidyard Images the same height as core Images.\n */\n\n(function ($, Drupal) {\n /**\n * Function to get the height of core Image and apply to Vidyard Images\n * */\n function setVidyardHeight() {\n var imageHeight = $('article.node .media__image').height();\n var $vidyardImage = $('article.node .vidyard-player-embed');\n $vidyardImage.css('height', imageHeight + 'px');\n }\n Drupal.behaviors.Customers = {\n attach: function attach() {\n var path = window.location.pathname;\n\n // Check if the path matches \"/company/customers\"\n if (path === '/company/customers') {\n $(window).on('load', function () {\n setVidyardHeight();\n });\n $(window).resize(function () {\n if (document.documentElement.clientWidth <= 1024) {\n setVidyardHeight();\n }\n }).resize();\n $(document).ajaxStop(function () {\n setVidyardHeight();\n });\n }\n }\n };\n})(jQuery, Drupal);"],"names":["$","setVidyardHeight","imageHeight","height","css","Drupal","behaviors","Customers","attach","window","location","pathname","on","resize","document","documentElement","clientWidth","ajaxStop","jQuery"],"mappings":"CAQWA,IAIT,SAASC,IACP,IAAIC,EAAcF,EAAE,4BAA4B,EAAEG,OAAO,EACrCH,EAAE,oCAAoC,EAC5CI,IAAI,SAAUF,EAAc,IAAI,CAChD,CAqBSG,OApBFC,UAAUC,UAAY,CAC3BC,OAAQ,WAIO,uBAHFC,OAAOC,SAASC,WAIzBX,EAAES,MAAM,EAAEG,GAAG,OAAQ,WACnBX,EAAiB,CACnB,CAAC,EACDD,EAAES,MAAM,EAAEI,OAAO,WACXC,SAASC,gBAAgBC,aAAe,MAC1Cf,EAAiB,CAErB,CAAC,EAAEY,OAAO,EACVb,EAAEc,QAAQ,EAAEG,SAAS,WACnBhB,EAAiB,CACnB,CAAC,EAEL,CACF,CACD,GAAEiB,MAAc"}