!function(i){function n(e){e=e.find(".oceanwp-flickr-container");e.length&&e.each(function(){var o=i(this),e=o.data("user-id"),r=o.data("max-photos"),n="jsonFlickrFeed_"+(o.attr("id")||Math.random().toString(36).substring(2)).replace(/[^a-zA-Z0-9_-]/g,"");window[n]=function(e){var t=0;e.items.forEach(function(e){var n;t<r&&(n=e.media.m.replace("_m.jpg","_q.jpg"),e=i("<img>").attr("src",n).attr("alt",e.title||"Flickr image"),o.append(e),t++)}),delete window[n]};var t="https://www.flickr.com/services/feeds/photos_public.gne?id="+encodeURIComponent(e)+"&format=json&jsoncallback="+n,e=document.createElement("script");e.src=t,e.onerror=function(){console.error("Error loading Flickr feed.")},document.head.appendChild(e)})}i(document).ready(function(){n(i(document))}),i(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/widget",function(e){n(e)})})}(jQuery);