"use strict";exports.id=7692,exports.ids=[7692,8068],exports.modules={7692:(e,t,a)=>{a.r(t),a.d(t,{default:()=>sendEvent});var r=a(38068),n=a(90941);function sendEvent(e){(0,r.default)(e),(0,n.default)(e)}},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 n=t?.data?.collection,i=n?.breadcrumbList?.itemListElement;i.length>1?sendEvent(r.CATEGORY_VIEW,{departmentName:i[0]?.name,categoryId:n?.id,categoryName:i[i.length-1]?.name}):sendEvent(r.DEPARTMENT_VIEW,{departmentId:n?.id,departmentName:i[0]?.name});break;case"pdp":let d=t?.data?.product,s=d?.breadcrumbList?.itemListElement,E=d?.offers?.offers,c=E.map(e=>e.seller.identifier),l=E.filter(e=>"https://schema.org/OutOfStock"===e.availability);sendEvent(r.PRODUCT_VIEW,{skuStockOutFromProductDetail:l,productId:d?.isVariantOf?.productGroupID,productName:d?.isVariantOf?.name,productBrandName:d?.brand?.name,productDepartmentName:s?s[0]?.name:"",productCategoryName:s.length>1?s[s.length-2]?.name:"",productPrice:E[0]?.price,productListPrice:E[0]?.listPrice,sellerId:E[0]?.seller?.identifier,sellerIds:c.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})}}}};