1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4355],{74355:(e,t,i)=>{i.r(t),i.d(t,{cvs_shop_product_shelf_wrapper:()=>h});var s=i(96936);let r={shelfWrapperConfig:[{shelfSlot:1,shelfConfig:{shelfTitle:"You may also like"},ecRecommendationType:"similar"},{shelfSlot:1,shelfConfig:{shelfTitle:"Promotion"},shelfType:{promoShelf:"true",minDisplay:"1"}},{shelfSlot:2,shelfConfig:{shelfTitle:"Featured products"},shelfType:{criteoType:"pdp"}},{shelfSlot:2,shelfConfig:{shelfTitle:"Recently viewed"},shelfType:{recentlyViewedShelf:"true",minDisplay:"1"}},{shelfSlot:2,shelfConfig:{shelfTitle:"Frequently bought together"},shelfType:{embeddedCriteoRec:"pdp"},ecRecommendationType:"frequentlyBoughtTogether"}]},h=class{constructor(e){(0,s.r)(this,e),this.loadingCompleted=(0,s.c)(this,"loadingCompleted",7),this.shelvesHaveRendered=!1,this.renderWrapperShelves=e=>{for(let t of(this.shelvesHaveRendered=!0,this.loadingCompleted.emit("success"),e.shelfWrapperConfig)){t.shelfConfig.shelfLocation=this.wrapperLocation,t.shelfType?t.shelfType.margin="35px auto 20px":t.shelfType={margin:"35px auto 20px"};let e=document.querySelector(`#shelf-placeholder-${t.shelfSlot}`);if(t.ecRecommendationType){let i=[];for(let e in t.ecFilters)i.push(`${e}:${t.ecFilters[e]}`);if("topSelling"!==t.ecRecommendationType&&"affinity"!==t.ecRecommendationType||i.length||i.push(`storeNumber:${this.storeNum}`),t.ecRecommendationType&&this.skuId&&i.push(`skuNumber:${this.skuId}`),"pdp"===t.shelfType.criteoType||"pdp"===t.shelfType.embeddedCriteoRec){let e={deviceType:"desktop",skuId:this.skuId,customerId:this.customerId,price:this.variantPrice};Object.assign(t.shelfType,e)}let s=document.createElement("cvs-shop-product-shelf-new-ec-recommendation");s.setAttribute("new-ec-recommendations",t.ecRecommendationType),s.setAttribute("ec-filters",JSON.stringify(i)),("affinity"===t.ecRecommendationType||"buyItAgain"===t.ecRecommendationType)&&this.cardNum&&(s.setAttribute("card-number",this.cardNum),s.setAttribute("card-type","0006")),s.setAttribute("shelf-config",JSON.stringify(t.shelfConfig)),s.setAttribute("shelf-type",JSON.stringify(t.shelfType)),this.experienceApiKey&&s.setAttribute("experience-api-key",this.experienceApiKey),this.apiKey&&s.setAttribute("api-key",this.apiKey),this.experienceApiKey&&s.setAttribute("experience-api-key",this.experienceApiKey),e&&e.appendChild(s)}else{if("pdp"===t.shelfType.criteoType||"pdp"===t.shelfType.embeddedCriteoRec){let e={deviceType:"desktop",skuId:this.skuId,customerId:this.customerId,recommendationType:"criteo",price:this.variantPrice};Object.assign(t.shelfType,e)}if(t.shelfType.promoShelf){if(!this.adBlockId)continue;t.shelfType.widgetType="keyword",t.shelfType.widgetId=this.promoWidgetId,t.shelfConfig.ctaText="Shop this deal",t.shelfConfig.ctaHref=`/shop/deals/${this.adBlockId}`;let e={query:this.adBlockId,filter:[`-pid:${this.skuId}`,`adblock_id:"${this.adBlockId}"`],price:this.variantPrice,skuId:this.skuId,customerId:this.customerId};this.promoDescription&&(t.shelfConfig.shelfTitle=this.promoDescription),Object.assign(t.shelfType,e)}let i=document.createElement("cvs-shop-product-shelf-container");i.setAttribute("shelf-config",JSON.stringify(t.shelfConfig)),i.setAttribute("shelf-type",JSON.stringify(t.shelfType)),this.experienceApiKey&&i.setAttribute("experience-api-key",this.experienceApiKey),this.apiKey&&i.setAttribute("api-key",this.apiKey),this.experienceApiKey&&i.setAttribute("experience-api-key",this.experienceApiKey),e&&e.appendChild(i)}}},this.wrapperLocation="pdp",this.skuId="",this.variantPrice="",this.cardNum="",this.promoDescription="",this.adBlockId="",this.storeNum="590",this.promoWidgetId="",this.shouldUseDefaultConfig=!0,this.customerId="",this.apiKey="",this.experienceApiKey=""}componentWillLoad(){if(window.targetJSON)this.renderWrapperShelves(window.targetJSON);else try{let e={};Object.defineProperty(window,"targetJSON",{get:()=>e,set:t=>{e=t,this.shelvesHaveRendered||this.renderWrapperShelves(e)}}),this.shouldUseDefaultConfig&&window.setTimeout(()=>{this.shelvesHaveRendered||this.renderWrapperShelves(r)},5e3)}catch(e){console.error("Error placing experimentation shelves: ",e)}}render(){return(0,s.h)(s.H,null,(0,s.h)("slot",null))}get el(){return(0,s.g)(this)}};h.style=":host{display:block}[id^='shelf-placeholder-']{width:100vw;margin-left:calc(50% - 50vw)}"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.