!function(e,t,n,i){elementor.hooks.addAction("panel/open_editor/widget/wcf--mailchimp",(function(e,t,n){var a=function(t){jQuery.ajax({type:"post",dataType:"json",url:i.ajaxUrl,data:{action:"mailchimp_api",nonce:i._wpnonce,api:t},success:function(t){var n=e.$el.find('[data-setting="mailchimp_lists"]');if(Object.keys(t).length){var i={id:Object.keys(t),text:Object.values(t)},a=new Option(i.text,i.id,!1,!1);n.append(a).trigger("change")}else n.empty()}})},o=e.$el.find('[data-setting="mailchimp_api"]');o.val()&&a(o.val()),o.on("keyup",(function(){a(o.val())}))}))}(jQuery,window,document,WCF_Addons_Editor);