!function(e){var r={};function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/",a(a.s=529)}({529:function(e,r,a){e.exports=a(530)},530:function(e,r){jQuery(document).ready((function(e){"use strict";[{name:"instagram",selector:".wpsr-ig-feed-wrapper"},{name:"facebook_feed",selector:".wpsr-fb-feed-wrapper"},{name:"tiktok",selector:".wpsr-tiktok-feed-wrapper"},{name:"youtube",selector:".wpsr-yt-feed-wrapper"}].forEach(r=>{var a=e(r.selector);if(0!==a.length){var t=r.name;a.each((function(){var r="#"+e(this).attr("id"),a=r.replace(/#wpsr-(fb-feed|tiktok-feed|yt-feed|ig-feed)-/,""),n=window.wpsr_ajax_params.upload_url,o={action:"wpsr_resize_images",id:a,platform:t,nonce:window.wpsr_ajax_params&&window.wpsr_ajax_params.wpsr_nonce?window.wpsr_ajax_params.wpsr_nonce:""},i={instagram:"ig",facebook_feed:"fb",tiktok:"tt",youtube:"yt"}[t]||"";e.ajax({url:window.wpsr_ajax_params.ajax_url,type:"post",data:o}).then(o=>{if(o){if(window.wpsr_optimized_feed_ids)window.wpsr_optimized_feed_ids[a]=o;else{var s={[a]:o};window.wpsr_optimized_feed_ids=s}var d=o.match(/({[^{}]+})/g),c=JSON.parse(d),p=window.wpsr_ajax_params.image_settings.image_format;c.account_id&&e(r).find(".wpsr-ig-header-logo").each((function(r){var a=e(this).data("account_id");if(a&&(a=a.toString())===c.account_id){var t=n+"/instagram/"+a+"."+p;e(this).find("img").attr("src",t)}})),c.images_data&&e(r).find(".wpsr-".concat(i,"-post")).each((function(r){var a=e(this),o=a.attr("data-post_id"),s=a.data("image_size");if(o){o=o.toString();var d=a.attr("data-user_name");if(d&&c.images_data.includes(o)){var f=n+"/"+t+"/"+d+"/"+o+"_"+s+"."+p;a.find(".wpsr-".concat(i,"-feed-image")).removeClass("wpsr-animated-background"),a.find(".wpsr-".concat(i,"-feed-video-preview")).removeClass("wpsr-animated-background"),a.find(".wpsr-".concat(i,"-feed-image")).css("height","auto"),a.find(".wpsr-".concat(i,"-feed-image")).removeClass("wpsr-hide"),a.find(".wpsr-".concat(i,"-post-img")).attr("src",f),a.find(".wpsr-".concat(i,"-post-img")).addClass("wpsr-show"),a.find(".wpsr-".concat(i,"-post-img")).removeClass("wpsr-hide"),a.find(".wpsr-".concat(i,"-post-img")).removeClass("wpsr-animated-background"),a.find(".wpsr-".concat(i,"-post-media")).removeClass("wpsr-animated-background"),a.find(".wpsr-".concat(i,"-feed-video-preview")).removeClass("wpsr-animated-background")}}}))}}).catch(e=>{console.error(e)})}))}})}))}});