(()=>{"use strict";var e;(e=jQuery)(document).ready(function(){e(".fpdf_import_notice").on("click",function(){var e;(e=new Date).setTime(e.getTime()+1728e7),document.cookie="fpdf_import_notice="+escape("1")+";expires="+e.toGMTString()+";path=/"}),e(document).on("click",".pdfp_front_shortcode input",function(t){t.preventDefault();let o=e(this).parent().find("input")[0];o.value=e(this).data("value"),o.select(),o.setSelectionRange(0,30),document.execCommand("copy"),o.value="Copy Shortcode",e(this).parent().find(".htooltip").text("Copied Successfully!")}),e(document).on("click",".pdfp_shortcode_copy_btn",function(t){t.preventDefault();const o=e(this).data("clipboard-text");if(navigator.clipboard)navigator.clipboard.writeText(o);else{const e=document.createElement("input");e.value=o,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}"icon"===e(this).data("type")?(e(this).css("width","18px"),setTimeout(()=>{e(this).css("width","22px")},200)):(e(this).text("Copied!"),setTimeout(()=>{e(this).text(o)},2e3))}),e(document).on("click",".pdfp-copy-shortcode",function(t){t.preventDefault();const o=e(this),i=o.data("shortcode"),c=o.find(".copy-text"),n=c.text();if(navigator.clipboard)navigator.clipboard.writeText(i).then(()=>{o.addClass("copied"),c.text("Copied!"),setTimeout(()=>{o.removeClass("copied"),c.text(n)},2e3)});else{const e=document.createElement("input");e.value=i,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),o.addClass("copied"),c.text("Copied!"),setTimeout(()=>{o.removeClass("copied"),c.text(n)},2e3)}})}),e(".pdfp_front_shortcode input").on("mouseout",function(){e(this).parent().find(".htooltip").text("Copy To Clipboard")})})();