export const productViewed=(i,o,n=1)=>{var l;const t=new CustomEvent("scProductViewed",{detail:{id:null==i?void 0:i.id,name:null==i?void 0:i.name,price:o,permalink:null==i?void 0:i.permalink,prices:null==i?void 0:i.prices,variant_options:null===(l=null==i?void 0:i.variant_options)||void 0===l?void 0:l.data,product_collections:null==i?void 0:i.product_collections,quantity:n},bubbles:!0});document.dispatchEvent(t)};