!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;(0,r.resolveSelect)(o.OPTIONS_STORE_NAME).getOption("woocommerce_allow_tracking").then((e=>{n="yes"===e}));const a=()=>{if(!window.localStorage)return[];const e=window.localStorage.getItem(i),t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]},w="import_products";(()=>{const e=(0,t.getQuery)();"product_importer"===e.page&&("done"!==e.step?(e=>{if(!window.localStorage||!n)return;let t=a();t.find((t=>t===e))||t.push(e),t=t.slice(-10),window.localStorage.setItem(i,JSON.stringify(t))})(w):(e=>{if(!window.localStorage)return;let t=a();t=t.filter((t=>t!==e)),t=t.slice(-10),window.localStorage.setItem(i,JSON.stringify(t))})(w))})(),(window.wc=window.wc||{}).productImportTracking=e}();