D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
stickain
/
davidsteele.com
/
wp-content
/
plugins
/
alidswoo
/
assets
/
js
/
admin
/
Filename :
currency.min.js
back
Copy
!function(r){var e={};function n(t){if(e[t])return e[t].exports;var o=e[t]={i:t,l:!1,exports:{}};return r[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=r,n.c=e,n.d=function(r,e,t){n.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:t})},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,e){if(1&e&&(r=n(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)n.d(t,o,function(e){return r[e]}.bind(null,o));return t},n.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(e,"a",e),e},n.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},n.p="/",n(n.s=168)}({168:function(r,e,n){r.exports=n(169)},169:function(r,e){function n(r){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}jQuery((function(r){var e={currencyForm:r("#setting_currency-form"),currencyList:r("#exchange_table"),currencyEnable:r("#cur_enable")},t={request:function(e,t,o){t=""!==t&&"object"===n(t)?window.ADS.serialize(t):t,r.ajaxQueue({url:ajaxurl,data:{action:"ads_action_request",ads_action:e,args:t},type:"POST",dataType:"json",success:o})},loadCurrency:function(){this.request("page_setting_currency_set",e.currencyForm,this.listCurrency)},listCurrency:function(n){var o=r(e.currencyList.data("ads_template")).html(),c=r(e.currencyList.data("ads_target"));n&&(n.hasOwnProperty("error")?(window.ADS.notify(n.error,"danger"),window.ADS.btnUnLock(e.currencyForm.find(".ads-button"))):n.hasOwnProperty("message")?(window.ADS.mainRequest(e.currencyForm),window.ADS.mainRequest(e.currencyList),window.ADS.notify(n.message,"success"),window.ADS.btnUnLock(e.currencyForm.find(".ads-button")),e.currencyForm.find('[name="currency_list"]').val("")):(c.html(window.ADS.objTotmpl(o,n)),e.currencyForm.find('[name="currency_list"]').val(n.currency_list),t.loadCurrency()))},disable_switcher:function(r){r.is(":checked")?(e.currencyForm.find("#currency").parent().find("button").removeClass("disabled"),e.currencyForm.find("#additional").parent().find("button").removeClass("disabled")):(e.currencyForm.find("#currency").parent().find("button").addClass("disabled"),e.currencyForm.find("#additional").parent().find("button").addClass("disabled"))},show_additional_currency_settings:function(r){r.is(":checked")?(e.currencyForm.find("#currency_position").closest(".form-group").show(),e.currencyForm.find("#price_thousand_sep").closest(".form-group").show(),e.currencyForm.find("#price_decimal_sep").closest(".form-group").show(),e.currencyForm.find("#price_decimals_number").closest(".form-group").show()):(e.currencyForm.find("#currency_position").closest(".form-group").hide(),e.currencyForm.find("#price_thousand_sep").closest(".form-group").hide(),e.currencyForm.find("#price_decimal_sep").closest(".form-group").hide(),e.currencyForm.find("#price_decimals_number").closest(".form-group").hide())},init:function(){var n=this;e.currencyForm.on("click",".ads-button",(function(t){t.preventDefault(),window.ADS.btnLock(r(this)),e.currencyList.html(),n.loadCurrency()})),r("body").on("click","#cur_enable",(function(e){n.disable_switcher(r(this))})),r("body").on("click","#cur_settings_for_all_enable",(function(e){n.show_additional_currency_settings(r(this))})),r(document).on("request:done",(function(e){"#setting_currency-form"==e.obj&&(n.disable_switcher(r("#cur_enable")),n.show_additional_currency_settings(r("#cur_settings_for_all_enable")))}))}};t.init()}))}});