Mini Shell

Direktori : /home/brasafestival/www/old/wp-content/plugins/jetpack/_inc/build/contact-form/js/
Upload File :
Current File : /home/brasafestival/www/old/wp-content/plugins/jetpack/_inc/build/contact-form/js/grunion-admin.min.js

jQuery((function(t){if("undefined"!=typeof jetpack_empty_spam_button_parameters){var e=t("<div/>").addClass("jetpack-empty-spam-container"),a=t("<a />").addClass("button-secondary").addClass("jetpack-empty-spam").attr("href","#").attr("data-progress-label",jetpack_empty_spam_button_parameters.progress_label).attr("data-success-url",jetpack_empty_spam_button_parameters.success_url).attr("data-failure-url",jetpack_empty_spam_button_parameters.failure_url).attr("data-spam-feedbacks-count",jetpack_empty_spam_button_parameters.spam_count).attr("data-nonce",jetpack_empty_spam_button_parameters.nonce).text(jetpack_empty_spam_button_parameters.label);e.append(a);var n=t("<span />").addClass("jetpack-empty-spam-spinner");e.append(n),t(".tablenav.top .actions, .tablenav.bottom .actions").not(".bulkactions").append(e)}function o(e,a){var n=t("#jetpack-check-feedback-spam").data("nonce-name"),s=t("#"+n).attr("value"),c=t("#jetpack-check-feedback-spam").data("failure-url"),r={action:"grunion_recheck_queue",offset:e,limit:a};r[n]=s,t.post(ajaxurl,r).fail((function(){window.location.href=c})).done((function(t){t.processed<a?window.location.reload():o(e+a,a)}))}t(document).on("click","#jetpack-check-feedback-spam:not(.button-disabled)",(function(e){e.preventDefault(),t("#jetpack-check-feedback-spam:not(.button-disabled)").addClass("button-disabled"),t(".jetpack-check-feedback-spam-spinner").addClass("spinner").show(),o(0,100)}));var s=0,c=0;function r(){var e=t(".jetpack-empty-spam"),a=e.data("nonce"),n=Math.round(c/s*1e3)/10;e.text(e.data("progress-label").replace("%1$s",n)),t.post(ajaxurl,{action:"jetpack_delete_spam_feedbacks",nonce:a}).fail((function(t){window.location.href=e.data("failure-url")})).done((function(t){c+=t.data.counts.deleted,t.data.counts.deleted<t.data.counts.limit?window.location.href=e.data("success-url"):r()}))}t(document).on("click",".jetpack-empty-spam",(function(e){e.preventDefault(),t(this).hasClass("button-disabled")||(t(".jetpack-empty-spam").addClass("button-disabled").addClass("emptying"),t(".jetpack-empty-spam-spinner").addClass("spinner").addClass("is-active"),t(".jetpack-empty-spam").text(t(".jetpack-empty-spam").data("progress-label").replace("%1$s","0")),s=parseInt(t(this).data("spam-feedbacks-count"),10),r())})),t(document).ready((function(){function e(e,a,n){t.post(ajaxurl,{action:"grunion_ajax_spam",post_id:e,make_it:a,sub_menu:jQuery(".subsubsub .current").attr("href"),_ajax_nonce:window.__grunionPostStatusNonce},(function(a){t("#post-"+e).css({backgroundColor:n}).fadeOut(350,(function(){t(this).remove(),t(".subsubsub").html(a)}))}))}t("tr.type-feedback .row-actions a").click((function(a){a.preventDefault();var n=t(a.target).closest("tr.type-feedback").attr("id").match(/^post\-(\d+)/);if(n){var o=parseInt(n[1],10);t(a.target).parent().hasClass("spam")&&(a.preventDefault(),e(o,"spam","#FF7979")),t(a.target).parent().hasClass("trash")&&(a.preventDefault(),e(o,"trash","#FF7979")),t(a.target).parent().hasClass("unspam")&&(a.preventDefault(),e(o,"ham","#59C859")),t(a.target).parent().hasClass("untrash")&&(a.preventDefault(),e(o,"publish","#59C859"))}}))})),t(document).on("click","#jetpack-form-responses-connect",(function(){const e=t(this),a=e.data("nonce-name"),n=t("#"+a).attr("value");e.attr("disabled","disabled"),e.text(window.exportParameters&&window.exportParameters.waitingConnection||"Waiting for connection..."),function(e){let{name:a,value:n}=e,o=!1,s=null,c=setInterval((function(){o||t.post(ajaxurl,{action:"grunion_gdrive_connection",[a]:n},(function(e){e&&e.connection&&e.html&&(clearInterval(c),o=!0,s=t(e.html),t("#jetpack-form-responses-connect").replaceWith(s))})).fail((function(){clearInterval(c)}))}),5e3)}({name:a,value:n})})),t(document).on("click","#jetpack-export-feedback-gdrive",(function(e){e.preventDefault();var a=t(e.target),n=a.data("nonce-name"),o=t("#"+n).attr("value"),s=window.location.search.match(/(\?|\&)m=(\d+)/),c=window.location.search.match(/(\?|\&)jetpack_form_parent_id=(\d+)/),r=[];t("#posts-filter .check-column input[type=checkbox]:checked").each((function(){r.push(parseInt(t(this).attr("value"),10))}));var p=window.exportParameters&&window.exportParameters.exportError||"There was an error exporting your results";a.attr("disabled","disabled"),t.post(ajaxurl,{action:"grunion_export_to_gdrive",year:s?s[2].substr(0,4):"",month:s?s[2].substr(4,2):"",post:c?parseInt(c[2],10):"all",selected:r,[n]:o},(function(t,e){"success"===e&&t.data&&t.data.sheet_link&&window.open(t.data.sheet_link,"_blank")})).fail((function(){window.alert(p)})).always((function(){a.removeAttr("disabled")}))})),t(document).on("click","#jetpack-export-feedback-csv",(function(e){e.preventDefault();var a=t(e.target).data("nonce-name"),n=t("#"+a).attr("value"),o=window.location.search.match(/(\?|\&)m=(\d+)/),s=window.location.search.match(/(\?|\&)jetpack_form_parent_id=(\d+)/),c=[];t("#posts-filter .check-column input[type=checkbox]:checked").each((function(){c.push(parseInt(t(this).attr("value"),10))})),t.post(ajaxurl,{action:"feedback_export",year:o?o[2].substr(0,4):"",month:o?o[2].substr(4,2):"",post:s?parseInt(s[2],10):"all",selected:c,[a]:n},(function(t,e,a){var n=new Blob([t],{type:"application/octetstream"}),o=document.createElement("a");o.href=window.URL.createObjectURL(n);var s=a.getResponseHeader("content-disposition");o.download=s.split("filename=")[1]||"Jetpack Form Responses.csv",document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(o.href)}))})),t(document).on("click","#export-modal-opener",(function(e){const a=t(this);e.preventDefault(),window.tb_show(a.html(),a.attr("href"))}))}));

Zerion Mini Shell 1.0