(()=>{var i={669:e=>{"use strict";e.exports=jQuery}},t={};var s,e=function e(l){var o=t[l];if(void 0!==o)return o.exports;o=t[l]={exports:{}};return i[l](o,o.exports,e),o.exports}(669);(s=e)(function(){function o(e){e.preventDefault(),s(".soliloquy-default-ui .selected").removeClass("details selected"),s(".soliloquy-default-ui").appendTo(".soliloquy-default-ui-wrapper").hide(),i=soliloquy_editor_frame=!1}var i=soliloquy_editor_frame=!1;s(document).on("click",".soliloquy-choose-slider, .soliloquy-modal-trigger",function(e){e.preventDefault(),i=e.target,soliloquy_editor_frame=!0,s(".soliloquy-default-ui").appendTo("body").show(),s(document).on("click",".media-modal-close, .media-modal-backdrop, .soliloquy-cancel-insertion",o),s(document).on("keydown",function(e){27==e.keyCode&&soliloquy_editor_frame&&o(e)})}),s(document).on("click",".soliloquy-default-ui .thumbnail, .soliloquy-default-ui .check, .soliloquy-default-ui .media-modal-icon",function(e){e.preventDefault(),s(this).parent().parent().hasClass("selected")?(s(this).parent().parent().removeClass("details selected"),s(".soliloquy-insert-slider").attr("disabled","disabled")):(s(this).parent().parent().parent().find(".selected").removeClass("details selected"),s(this).parent().parent().addClass("details selected"),s(".soliloquy-insert-slider").removeAttr("disabled"))}),s(document).on("click",".soliloquy-default-ui .check",function(e){e.preventDefault(),s(this).parent().parent().removeClass("details selected"),s(".soliloquy-insert-slider").attr("disabled","disabled")}),s(document).on("click",".soliloquy-default-ui .soliloquy-insert-slider",function(l){var e;l.preventDefault(),s(i).hasClass("soliloquy-choose-slider")?wp.media.editor.insert('[soliloquy id="'+s(".soliloquy-default-ui .selected").data("soliloquy-id")+'"]'):(e={action:"soliloquy_load_slider_data",nonce:soliloquy_metabox.load_slider,post_id:s(".soliloquy-default-ui:first .selected").data("soliloquy-id")},s.post(ajaxurl,e,function(e){s(document).trigger({type:"soliloquySliderModalData",slider:e}),o(l)},"json")),o(l)})})})();