var e;(e=jQuery)(()=>{e(".responsive-lightbox-settings .color-picker").wpColorPicker(),e(".responsive-lightbox-settings input.reset-responsive-lightbox-settings").on("click",()=>confirm(rlArgsAdmin.resetSettingsToDefaults)),e(".rl-media-provider-expandable").on("change",o=>{const t=e(o.currentTarget),s=t.closest("td").find(".rl-media-provider-options");t.is(":checked")?s.slideDown("fast"):s.slideUp("fast")}),e(document).on("click","#rl_folders_load_old_taxonomies",()=>{const o=e("#rl_media_taxonomy"),t=o.parent().find(".spinner"),s=[];return o.find("option").each((o,t)=>{s.push(e(t).val())}),t.toggleClass("is-active",!0),e.post(ajaxurl,{action:"rl-folders-load-old-taxonomies",taxonomies:s,nonce:rlArgsAdmin.taxNonce}).done(t=>{try{t.success&&t.data.taxonomies.length>0&&e.each(t.data.taxonomies,(t,s)=>{o.append(e("<option></option>").attr("value",s).text(s))})}catch(s){}}).always(()=>{t.toggleClass("is-active",!1)}),!1})});
