(()=>{var t;(t=jQuery)(document).ready((function(){t(document).on("click",".h5ap_import_data",(function(n){n.preventDefault(),t.ajax({url:h5apAdmin?.ajaxUrl,data:{action:"h5ap_import_data"},success:t=>{const n=JSON.parse(t);!0===n?.success&&(location.href=location.href+"?h5ap-import=success")}})})),t(".h5ap_front_shortcode input").on("click",(function(n){n.preventDefault();let i=t(this).parent().find("input")[0];i.select(),i.setSelectionRange(0,30),document.execCommand("copy"),t(this).parent().find(".htooltip").text("Copied Successfully!")})),t(".h5ap_front_shortcode input").on("mouseout",(function(){t(this).parent().find(".htooltip").text("Copy To Clipboard")})),t(".h5ap_single_button").on("click",".play",(function(){t(".h5ap_single_button audio")[0].play(),t(".h5ap_single_button .play").hide(),t(".h5ap_single_button .pause").show()})),t(".h5ap_single_button").on("click",".pause",(function(){t(".h5ap_single_button audio")[0].pause(),t(".h5ap_single_button .play").show(),t(".h5ap_single_button .pause").hide()}));const n=t(".h5ap_single_button").data("settings");if(!n)return!1;function i(){const{color:i,background:e,size:a,dimention:{height:o=50,width:s=50,unit:u="px"},radius:h={}}=n;t(".h5ap_single_button svg").css({fill:i,height:a,width:a}),t(".h5ap_single_button").css({background:e,height:o+u,width:s+u,"border-radius":h?.width+h?.unit})}var e;t("input[name='h5ap_settings[button_color]']").on("change",(function(){n.color=t(this)[0].value,i()})),t("input[name='h5ap_settings[button_size]']").on("change",(function(){n.size=t(this)[0].value,i()})),t("input[name='h5ap_settings[button_background]']").on("change",(function(){n.background=t(this)[0].value,i()})),t("input[name='h5ap_settings[dimention][width]']").on("change",(function(){n.dimention.width=t(this)[0].value,i()})),t("input[name='h5ap_settings[dimention][height]']").on("change",(function(){n.dimention.height=t(this)[0].value,i()})),t("input[name='h5ap_settings[radius][width]']").on("change",(function(){n.radius.width=t(this)[0].value,i()})),t("select[name='h5ap_settings[dimention][unit]']").on("change",(function(){n.unit=t(this)[0].value,i()})),t("select[name='h5ap_settings[radius][unit]']").on("change",(function(){n.radius.unit=t(this)[0].value,i()})),i(),(e=new Date).setTime(e.getTime()+1e7),document.cookie="dipvai="+escape("ebar ekhane eid korbe")+";expires="+e.toGMTString()+";path=/"}))})();