/******/ (() => { // webpackBootstrap /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/make namespace object */ /******/ (() => { /******/ // define __esModule on exports /******/ __webpack_require__.r = (exports) => { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry needs to be wrapped in an IIFE because it needs to be isolated against other entry modules. (() => { /*!*************************!*\ !*** ./src/js/admin.js ***! \*************************/ (function ($) { $(function () { // Global custom redirect URL field Hide/Show $('input[type=radio][name=wbnb_redirect_location]').on('change', function () { if ('custom' === $(this).val()) { $(this).closest('tr').next('tr').show(); } else { $(this).closest('tr').next('tr').hide(); } }).trigger('change'); // Product level custom redirect URL field Hide/Show $('select#buy_now_redirect_location').on('change', function () { if ('custom' === $(this).val()) { $(this).closest('p').next('p').show(); } else { $(this).closest('p').next('p').hide(); } }).trigger('change'); // Pro option's style implement if ($('.woo-buy-now-button-form-table tr, #woo-buy-now-button-pro-options').hasClass('is-pro')) { $('.woo-buy-now-button-form-table tr.is-pro input, .woo-buy-now-button-form-table tr.is-pro select').prop('disabled', true); // $('.woo-buy-now-button-form-table tr.is-pro input, .woo-buy-now-button-form-table tr.is-pro select').prop('disabled', true).after('Upgrade To PRO →'); $('#woo-buy-now-button-pro-options p.form-field input, #woo-buy-now-button-pro-options p.form-field select').prop('disabled', true); $('#woo-buy-now-button-pro-options p.form-field').prop('disabled', true).append('Upgrade To PRO →'); // $('.woo-buy-now-button-form-table tr.is-pro > th').append('PRO'); } }); })(jQuery); })(); // This entry needs to be wrapped in an IIFE because it needs to be in strict mode. (() => { "use strict"; /*!*****************************!*\ !*** ./src/scss/admin.scss ***! \*****************************/ __webpack_require__.r(__webpack_exports__); // extracted by mini-css-extract-plugin })(); /******/ })() ; //# sourceMappingURL=admin.js.map