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AAE,mCAChBA,IAAE,6CAA6Ca,OAC/C6D,EAAYrD,OACa,KAAtBqD,EAAYf,OACb3D,IAAE0E,EAAYE,QAAQvD,OAEtBrB,IAAE0E,EAAYG,OAAOA,QAAQxD,OAG5BqD,EAAYf,QAAU3D,IAAE,6CAA6CiB,OACtEjB,IAAE0E,EAAYG,QAAQxD,OAEtBrB,IAAE0E,EAAYE,OAAOA,QAAQvD,OAIjCqD,EAAc1E,IAAE,mCAChB,IAAI8E,EAAgB9E,IAAE0E,GAAaf,OAC/BV,EAAgBjD,IAAE,wBAAwB0D,MAC1CR,EAAmBlD,IAAE,2BAA2B0D,MAEhC,GAAjBoB,EACD9E,IAAE,gCAAgC2E,IAAI,UAAW,MAEjD3E,IAAE,gCAAgC2E,IAAI,UAAW,KACjD3E,IAAE,yCAAyCY,SAAS,qBAGnDkE,GAAiB9E,IAAE,6CAA6CiB,OACjEjB,IAAE,gCAAgC2E,IAAI,UAAW,KAEjD3E,IAAE,gCAAgC2E,IAAI,UAAW,KAGnDpE,EAAoBuE,EAAe7B,EAAeC,EAAkB5C,EAErE,GACF,G,WClcDyE,EAAOC,QAAUC,M","sources":["webpack://mgstarter/./page-templates/page-resources.js","webpack://mgstarter/external var \"jQuery\""],"sourcesContent":["import $ from 'jquery'\n\n$(document).ready( initResources )\n\nfunction initResources(){\n \n let ajaxurl = SITE.ajaxUrl;\n let $search = '';\n\n function load_resource_posts(page, resource_cat, resource_format, search){\n $('#resource-posts-list').addClass('loading');\n $('.resources__sidebar').addClass('loading');\n $('#resource-pagination').hide();\n\n // Data to receive from our server\n // the value in 'action' is the key that will be identified by the 'wp_ajax_' hook\n let data = {\n page: page,\n resource_cat: resource_cat,\n resource_format: resource_format,\n search: search,\n action: \"get_resource_posts_ajax\"\n };\n // Send the data\n $.post(ajaxurl, data, function(response) {\n // If successful Append the data into our html container\n if (response.length) {\n $(\"#resource-posts-list\").html(response);\n setTimeout(() => {\n $('#resource-posts-list').removeClass('loading');\n $('.resources__sidebar').removeClass('loading');\n $('#resource-pagination').show();\n }, \"700\");\n //launched video modal on resources cards if card link = vidyard\n $.ajax({\n type: \"GET\",\n url: \"https://play.vidyard.com/embed/v4.js\",\n dataType: \"script\",\n async: false\n });\n $('.post-item__link, .post-item__title a').each(function(e){\n let url = new URL($(this).attr('href'));\n if(url.hostname == 'play.vidyard.com'){\n let videoID = $(this).attr('href').split('/').pop().split('.')[0];\n let videoModal = '