!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.tracks;const r=document.querySelector('[name="add_new_attribute"]'),u=document.querySelector('[name="save_attribute"]'),n=document.querySelectorAll(".row-actions span a"),o=document.querySelectorAll(".configure-terms");null==r||r.addEventListener("click",(function(){const e=document.querySelector("#attribute_public"),r=document.querySelector("#attribute_orderby"),u=document.querySelector("#attribute_label"),n=document.querySelector("#attribute_name");(0,t.recordEvent)("product_attributes_add",{enable_archive:null!=e&&e.checked?"yes":"no",default_sort_order:null==r?void 0:r.value,name:null==u?void 0:u.value,slug:null==n?void 0:n.value,page:"attributes"})})),null==u||u.addEventListener("click",(function(){const e=document.querySelector("#attribute_public"),r=document.querySelector("#attribute_orderby");(0,t.recordEvent)("product_attributes_update",{enable_archive:null!=e&&e.checked?"yes":"no",default_sort_order:null==r?void 0:r.value,page:"attributes"})})),n.forEach((e=>{e.addEventListener("click",(function(e){const r=e.target.parentElement.classList[0],u={edit:"edit",delete:"delete"};u[r]&&(0,t.recordEvent)("product_attributes_"+u[r],{page:"attributes"})}))})),o.forEach((e=>{e.addEventListener("click",(function(){(0,t.recordEvent)("product_attributes_configure_terms",{page:"attributes"})}))})),(window.wc=window.wc||{}).attributesTracking=e}();