!function(){"use strict";var e={};(function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);var t=window.wc.navigation,o=(window.wp.i18n,window.wc.data),r=window.wp.data;const i="customer-effort-score-exit-page";let n=!1;const a=(0,r.resolveSelect)(o.OPTIONS_STORE_NAME).getOption("woocommerce_allow_tracking").then((e=>{n="yes"===e})),w=()=>{if(!window.localStorage)return[];const e=window.localStorage.getItem(i),t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]},c="import_products";(()=>{const e=(0,t.getQuery)();"product_importer"===e.page&&("done"!==e.step?(async e=>{if(await a,!window.localStorage||!n)return;let t=w();t.find((t=>t===e))||t.push(e),t=t.slice(-10),window.localStorage.setItem(i,JSON.stringify(t))})(c):(e=>{if(!window.localStorage)return;let t=w();t=t.filter((t=>t!==e)),t=t.slice(-10),window.localStorage.setItem(i,JSON.stringify(t))})(c))})(),(window.wc=window.wc||{}).productImportTracking=e}();