(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,762508,e=>{"use strict";e.s(["TrackingEvent",()=>i]);var n=e.i(187048),r=e.i(887272);e.i(950936);var t=e.i(384891),a=e.i(210977),o=e.i(104015);let i=r.default.memo(e=>{let i,c,u=(0,n.c)(27),{event:s,product:l,pageType:v,pageTitle:w,relewise:d,store:k}=e,{trackingEvents:T}=(0,t.useTracking)(),[g,P]=(0,r.useState)(!1),V=(0,a.usePathname)(),{currentSettings:b}=(0,o.useMarketsContext)(),{market:y,locale:E}=b,{currencyCode:R}=y,{country:m,language:C}=E;u[0]!==m||u[1]!==R||u[2]!==s||u[3]!==g||u[4]!==C||u[5]!==w||u[6]!==v||u[7]!==V||u[8]!==l||u[9]!==d||u[10]!==k||u[11]!==T?(i=()=>{switch(s){case"onViewItem":if(!l)return;g||(T.viewItemEvent(l),P(!0));break;case"onViewCart":g||(T.cartViewEvent(),P(!0));break;case"onGenericInfo":!g&&v&&(T.onGenericInfoEvent("".concat(window.location.origin).concat(V),v,w,R,C,m),P(!0));break;case"onPageViewStorePage":g||(T.onPageViewStorePageEvent(k),P(!0));break;case"onRwTrackContentView":g||(T.onRwTrackContentViewEvent(V),P(!0));break;case"onRwTrackProductCategoryView":g||(T.onRwTrackProductCategoryViewEvent(d),P(!0));break;case"onRwTrackProductView":!g&&(null==l?void 0:l.superMasterKey)&&(null==l?void 0:l.variantKey)&&(T.onRwTrackProductViewEvent(l.superMasterKey,l.variantKey),P(!0));break;case"onRwTrackOrder":g||(T.onRwTrackOrderEvent(d),P(!0))}},u[0]=m,u[1]=R,u[2]=s,u[3]=g,u[4]=C,u[5]=w,u[6]=v,u[7]=V,u[8]=l,u[9]=d,u[10]=k,u[11]=T,u[12]=i):i=u[12];let K=null==l?void 0:l.currency,f=null==l?void 0:l.name,p=null==l?void 0:l.price,h=null==l?void 0:l.superMasterKey,I=null==l?void 0:l.variantKey;return u[13]!==s||u[14]!==g||u[15]!==v||u[16]!==V||u[17]!==l||u[18]!==d||u[19]!==k||u[20]!==K||u[21]!==f||u[22]!==p||u[23]!==h||u[24]!==I||u[25]!==T?(c=[V,s,g,v,l,K,f,p,h,I,T,d,k],u[13]=s,u[14]=g,u[15]=v,u[16]=V,u[17]=l,u[18]=d,u[19]=k,u[20]=K,u[21]=f,u[22]=p,u[23]=h,u[24]=I,u[25]=T,u[26]=c):c=u[26],(0,r.useEffect)(i,c),null})}]);