(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var c in o)e.o(o,c)&&!e.o(t,c)&&Object.defineProperty(t,c,{enumerable:!0,get:o[c]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady;e.n(t)()(()=>{(()=>{const e=document.getElementById("woocommerce_dokan_paystack_test_mode");if(!e)return;const t=(e,t)=>{const o=document.getElementById(e);o&&o.closest("tr")&&(o.closest("tr").style.display=t?"":"none")},o=e=>{const o=e,c=!e;t("woocommerce_dokan_paystack_test_api_key",o),t("woocommerce_dokan_paystack_test_api_secret",o),t("woocommerce_dokan_paystack_live_api_key",c),t("woocommerce_dokan_paystack_live_api_secret",c)};o(e.checked),e.addEventListener("change",()=>{o(e.checked)})})()})})();