PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
dokan-pro
/
modules
/
wholesale
/
assets
/
js
!function(e){var o={};function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,o,t){a.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,o){if(1&o&&(e=a(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)a.d(t,n,function(o){return e[o]}.bind(null,n));return t},a.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(o,"a",o),o},a.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},a.p="",a(a.s=75)}({75:function(e,o){var a,t;a=jQuery,t={init:function(){a("body").on("click","a#dokan-become-wholesale-customer-btn",this.makeWholesaleCustomer),a("input[name=variation_id]").on("change",this.triggerVariationWholesale),a(".dokan-wholesale-options").on("change",".wholesaleCheckbox",this.toggleWholesaleWrapper),a("body").on("change",".dokan-variation-wholesale .wholesaleCheckbox",this.toggleWholesaleVariationWrapper)},triggerVariationWholesale:function(e){e.preventDefault();for(var o=a(".variations_form").data("product_variations"),t=a("input[name=variation_id]").val(),n=0;n<o.length;n++)if(o[n].variation_id==t){var i=o[n];if(DokanWholesale.check_permission)if("yes"==i._enable_wholesale){var l=DokanWholesale.variation_wholesale_string.wholesale_price+": <strong>"+DokanWholesale.currency_symbol+i._wholesale_price+"</strong> ("+DokanWholesale.variation_wholesale_string.minimum_quantity+": <strong>"+i._wholesale_quantity+"</strong>)";a(".single_variation").append('<div class="woocommerce-variation-wholesale">'+l+"</div>")}else a(".single_variation").find(".woocommerce-variation-wholesale").remove()}},makeWholesaleCustomer:function(e){e.preventDefault();var o=a(this),t=dokan.rest.root+dokan.rest.version+"/wholesale/register",n={id:o.data("id")};jQuery(".dokan-wholesale-migration-wrapper").block({message:null,overlayCSS:{background:"#fff url("+dokan.ajax_loader+") no-repeat center",opacity:.6}}),a.post(t,n,(function(e){"active"==e.wholesale_status?o.closest("li").html('<div class="woocommerce-message" style="margin-bottom:0px">'+dokan.wholesale.activeStatusMessage+"</div>"):o.closest("li").html('<div class="woocommerce-info" style="margin-bottom:0px">'+dokan.wholesale.deactiveStatusMessage+"</div>"),jQuery(".dokan-wholesale-migration-wrapper").unblock()}))},toggleWholesaleWrapper:function(){a(this).is(":checked")?a(".show_if_wholesale").slideDown("fast"):a(".show_if_wholesale").slideUp("fast")},toggleWholesaleVariationWrapper:function(){a(this).is(":checked")?a(this).closest(".dokan-variation-wholesale").find(".show_if_variation_wholesale").slideDown("fast"):a(this).closest(".dokan-variation-wholesale").find(".show_if_variation_wholesale").slideUp("fast")}},a(document).ready((function(){t.init()}))}});
[+]
..
[-] scripts.js
[edit]
[-] admin.js
[edit]