!function(){"use strict";var e={n:function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,{a:o}),o},d:function(t,o){for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);var o=window.wp.i18n,n=window.wp.data,i=window.wp.domReady,r=e.n(i),c=window.wc.wcSettings;const a=e=>e&&!e.disabled?new Promise((e=>{window.requestAnimationFrame(e)})).then((()=>a(e))):Promise.resolve(!0),d=()=>{const e=document.querySelector(".woocommerce-save-button");e.classList.contains("has-tax")||a(e).then((()=>{document.querySelector(".wc_tax_rates .tips")&&(e.classList.add("has-tax"),(0,n.dispatch)("core/notices").createSuccessNotice((0,o.__)("You've added your first tax rate!","woocommerce"),{id:"WOOCOMMERCE_ONBOARDING_TAX_NOTICE",actions:[{url:(0,c.getAdminLink)("admin.php?page=wc-admin"),label:(0,o.__)("Continue setup.","woocommerce")}]}))}))};r()((()=>{const e=document.querySelector(".woocommerce-save-button");window.htmlSettingsTaxLocalizeScript&&window.htmlSettingsTaxLocalizeScript.rates&&!window.htmlSettingsTaxLocalizeScript.rates.length&&e&&e.addEventListener("click",d)})),(window.wc=window.wc||{}).onboardingTaxNotice=t}();