"use strict";exports.id=8068,exports.ids=[8068],exports.modules={38068:(e,t,a)=>{a.r(t),a.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});let r={OTHER_VIEW:"otherView",HOME_VIEW:"homeView",CATEGORY_VIEW:"categoryView",DEPARTMENT_VIEW:"departmentView",INTERNAL_SITE_SEARCH_VIEW:"internalSiteSearchView",PRODUCT_VIEW:"productView"},sendEvent=(e,t)=>{window?.sendrc?.(e,t)},__WEBPACK_DEFAULT_EXPORT__=e=>{let t;switch(e.name){case"page_view":t=e.params;let a=t?.page?.type??t?.type;switch(a){case"plp":if(!t?.page_location?.includes("fuzzy"))break;let i=t?.data?.collection,s=i?.breadcrumbList?.itemListElement;s.length>1?sendEvent(r.CATEGORY_VIEW,{departmentName:s[0]?.name,categoryId:i?.id,categoryName:s[s.length-1]?.name}):sendEvent(r.DEPARTMENT_VIEW,{departmentId:i?.id,departmentName:s[0]?.name});break;case"pdp":let n=t?.data?.product,d=n?.breadcrumbList?.itemListElement,c=n?.offers?.offers,E=c.map(e=>e.seller.identifier),l=c.filter(e=>"https://schema.org/OutOfStock"===e.availability);sendEvent(r.PRODUCT_VIEW,{skuStockOutFromProductDetail:l,productId:n?.isVariantOf?.productGroupID,productName:n?.isVariantOf?.name,productBrandName:n?.brand?.name,productDepartmentName:d?d[0]?.name:"",productCategoryName:d.length>1?d[d.length-2]?.name:"",productPrice:c[0]?.price,productListPrice:c[0]?.listPrice,sellerId:c[0]?.seller?.identifier,sellerIds:E.join(",")});break;case"home":sendEvent(r.HOME_VIEW,{});break;case"search":break;default:sendEvent(r.OTHER_VIEW,{})}break;case"intelligent_search_query":t=e.params,sendEvent(r.INTERNAL_SITE_SEARCH_VIEW,{siteSearchTerm:t.term,siteSearchForm:t.url,siteSearchResults:t.totalCount})}}}};