PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
dokan-pro
/
modules
/
report-abuse
/
assets
/
js
!function(o){var e={};function n(t){if(e[t])return e[t].exports;var r=e[t]={i:t,l:!1,exports:{}};return o[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=o,n.c=e,n.d=function(o,e,t){n.o(o,e)||Object.defineProperty(o,e,{enumerable:!0,get:t})},n.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,e){if(1&e&&(o=n(o)),8&e)return o;if(4&e&&"object"==typeof o&&o&&o.__esModule)return o;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:o}),2&e&&"string"!=typeof o)for(var r in o)n.d(t,r,function(e){return o[e]}.bind(null,r));return t},n.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(e,"a",e),e},n.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},n.p="",n(n.s=61)}({0:function(o,e){o.exports=jQuery},61:function(o,e,n){"use strict";n.r(e);var t=n(0),r=n.n(t);dokan.reportAbuse={button:null,form_html:"",flashMessage:"",init:function(){var o=this;r()(".dokan-report-abuse-button").on("click",(function(e){if(e.preventDefault(),o.button=this,"on"===dokanReportAbuse.reported_by_logged_in_users_only&&!dokanReportAbuse.is_user_logged_in)return r()("body").trigger("dokan:login_form_popup:show");o.getForm()})),r()("body").on("dokan:login_form_popup:fetching_form",(function(){o.showLoadingAnim()})),r()("body").on("dokan:login_form_popup:fetched_form",(function(){o.stopLoadingAnim()})),r()("body").on("dokan:login_form_popup:logged_in",(function(e,n){dokanReportAbuse.is_user_logged_in=!0,dokanReportAbuse.nonce=n.data.dokan_report_abuse_nonce,o.getForm()})),r()("body").on("submit","#dokan-report-abuse-form-popup form",(function(e){e.preventDefault(),o.submitForm(this)}))},showLoadingAnim:function(){r()(this.button).addClass("working").children("i").removeClass("fa-flag").addClass("fa-spin fa-refresh")},stopLoadingAnim:function(){r()(this.button).removeClass("working").children("i").removeClass("fa-spin fa-refresh").addClass("fa-flag")},submittingForm:function(){r()("#dokan-report-abuse-form-popup fieldset").prop("disabled",!0),r()("#dokan-report-abuse-form-submit-btn").addClass("dokan-hide"),r()("#dokan-report-abuse-form-working-btn").removeClass("dokan-hide")},submittedForm:function(){r()("#dokan-report-abuse-form-popup fieldset").prop("disabled",!1),r()("#dokan-report-abuse-form-submit-btn").removeClass("dokan-hide"),r()("#dokan-report-abuse-form-working-btn").addClass("dokan-hide")},getForm:function(){var o=this;o.form_html?o.showPopup():(o.showLoadingAnim(),r.a.ajax({url:dokan.ajaxurl,method:"get",dataType:"json",data:{_wpnonce:dokanReportAbuse.nonce,action:"dokan_report_abuse_get_form"}}).done((function(e){o.form_html=e.data,o.showPopup()})).always((function(){o.stopLoadingAnim()})))},showPopup:function(){var o=this;r.a.magnificPopup.open({items:{src:o.form_html,type:"inline"},callbacks:{afterClose:function(){o.afterPopupClose()}}})},afterPopupClose:function(){this.flashMessage&&(alert(this.flashMessage),this.flashMessage="")},submitForm:function(o){var e=this,n=(r()(o).serialize(),r()(".dokan-popup-error","#dokan-report-abuse-form-popup"));n.removeClass("has-error").text(""),e.submittingForm(),r.a.ajax({url:dokan.ajaxurl,method:"post",dataType:"json",data:{_wpnonce:dokanReportAbuse.nonce,action:"dokan_report_abuse_submit_form",form_data:{reason:r()(o).find('[name="reason"]:checked').val(),product_id:dokanReportAbuse.product_id,customer_name:r()(o).find('[name="customer_name"]').val(),customer_email:r()(o).find('[name="customer_email"]').val(),description:r()(o).find('[name="description"]').val()}}}).done((function(o){e.flashMessage=o.data.message,r.a.magnificPopup.close()})).always((function(){e.submittedForm()})).fail((function(o){o.responseJSON&&o.responseJSON.data&&o.responseJSON.data.message&&n.addClass("has-error").text(o.responseJSON.data.message)}))}},dokan.reportAbuse.init()}});
[+]
..
[-] dokan-report-abuse-admin-single-product.js
[edit]
[-] dokan-report-abuse.js
[edit]
[-] dokan-report-abuse-admin.js
[edit]