import{createStore}from"@stencil/store";import{productViewed}from"./events";import"./facebook";import"./google";import{getDefaultState}from"./getters";const defaultState=getDefaultState();Object.values(defaultState).filter((t=>null==t?void 0:t.isProductPage)).forEach((t=>{var e;(null===(e=null==t?void 0:t.product)||void 0===e?void 0:e.id)&&productViewed(null==t?void 0:t.product,null==t?void 0:t.selectedPrice,null==t?void 0:t.quantity)}));const store=createStore(defaultState,((t,e)=>JSON.stringify(t)!==JSON.stringify(e))),{state:state,onChange:onChange,on:on,dispose:dispose,forceUpdate:forceUpdate}=store;export default state;export{state,onChange,on,dispose,forceUpdate};