"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8612,9195],{4532:(e,t,i)=>{i.d(t,{CP:()=>r,Cf:()=>p,MT:()=>l,Sh:()=>s,Tl:()=>a,Y:()=>n,Z5:()=>o,kr:()=>c,pN:()=>d});let n=e=>e?.recommended_products,a=e=>e?.recommended_products,r=e=>e?.products,o=e=>e?.strategy_description,l=e=>e?.strategy_name,s=e=>e?.strategy_id,d=e=>e?.category_id,c=e=>e?.doctype,p=e=>{let t=e?.products??[];return{guest:{eventType:"recommendations"},products:t?.map(e=>({placementType:"recommendations",tcin:e?.tcin??""})),recommendations:{categoryId:e?.category_id,docType:e?.doctype??"",placementId:e?.strategy_id,strategyDescription:e?.strategy_description,strategyId:e?.strategy_id,strategyName:e?.strategy_name,type:"product"}}}},14212:(e,t,i)=>{i.r(t),i.d(t,{AddToCartButtonForProductContext:()=>d});var n=i(37876),a=i(14232),r=i(15241),o=i(17009),l=i(34605),s=i(79108);let d=e=>{let t=(0,r.K1)(e=>e),i=(0,r.EJ)(e=>e),{customGiftCardAmount:d}=(0,s.U)(),c="Custom value"===d?o.Fz.DISABLE_WITH_CORRECT_BUTTON_TYPE:e.overrideBehavior,p=(0,r.bZ)()??t?.tcin,m=(0,a.useMemo)(()=>({...i,children:void 0,parent:void 0}),[i]),h=(0,a.useMemo)(()=>({...t,parent:m,tcin:p}),[t,m,p]);return p?(0,n.jsx)(l.h,{childOrStandaloneProduct:h,tcin:p,...e,overrideBehavior:c}):null};d.displayName="AddToCartButtonForProductContext"},14700:(e,t,i)=>{i.d(t,{Qm:()=>d,US:()=>s,WS:()=>a,a3:()=>r,cq:()=>l,fD:()=>o,iO:()=>n});let n=e=>e?.recommended_circle_offers,a=e=>e?.recommended_circle_offers?.strategy_id,r=e=>e?.recommended_circle_offers?.strategy_name,o=e=>e?.recommended_circle_offers?.strategy_description,l=e=>e?.recommended_circle_offers?.circle_offers,s=e=>e?.recommended_circle_offers?.placement_id,d=e=>e?.recommended_circle_offers?.doctype},16433:(e,t,i)=>{i.d(t,{w:()=>r});var n=i(14232),a=i(81453);let r=()=>{let{dispatch:e,circleOffersReducerState:t}=(0,n.useContext)(a.x);return[t,e]}},38718:(e,t,i)=>{i.r(t),i.d(t,{PersonalizationCarousel:()=>tD});var n=i(37876),a=i(41447),r=i(14232),o=i(66018),l=i(91597),s=i(50743),d=i(81414),c=i(48877),p=i(96263),m=i(69980),h=i(53514),g=i(76956),u=i(4532),x=i(63781),f=i(75186),_=i(829),b=i(32529),y=i(35333),k=i(40123),C=i.n(k),j=i(63415),T=i.n(j),I=i(66033);let v=e=>(0,I.M)()&&e.includes("/preview");var N=i(30969),w=i(60278),E=i(9249),S=i(96008),L=i(15241),F=i(75763),P=i(77987),$=i(29494),A=i(14212),O=i(17009),D=i(46826),z=i(6620),M=i(54426),R=i(8408),B=i(42677),U=i(99415),H=i(726),G=i(67863),V=i(11621),W=i(23027),K=i(77232),Z=i(82018),q=i(23159);let Y=(0,K.I4)(q.Z).withConfig({componentId:"sc-557952b6-0"})(["position:relative;background-color:",";padding:",";height:100%;width:184px;border:",";border-radius:",";display:flex;flex-direction:column;font-size:",";line-height:",";align-items:start;&.extension-tile{margin:0 0 ",";}@media (max-width:","){width:125px;}"],Z.Tj.palette.white,Z.xe.generic.x3,e=>e.useBorder?`1px solid ${Z.Tj.palette.gray.light}`:"none",Z.PQ.radius.x2,Z.gx.size.text.medium,Z.gx.lineHeight.heading,Z.xe.generic.x2,Z.fi.smMax),Q=K.I4.div.withConfig({componentId:"sc-557952b6-1"})(["font-size:",";padding:10px 0;line-height:",";text-align:left;min-height:66px;max-height:8em;"],Z.gx.size.text.medium,Z.gx.lineHeight.heading),X=K.I4.img.withConfig({componentId:"sc-557952b6-2"})(["width:100%;border-radius:",";aspect-ratio:1;"],Z.PQ.radius.x1),J=K.I4.div.withConfig({componentId:"sc-557952b6-3"})(["font-size:13px;margin-top:",";color:",";"],Z.xe.generic.x1,Z.Tj.palette.gray.dark),ee=K.I4.div.withConfig({componentId:"sc-557952b6-4"})(["margin:"," 0;",";& > button{max-width:unset;width:100%;}"],Z.xe.generic.x1,e=>{let{$isNewPrzOffers:t}=e;return t?"":`width: calc(100% - ${Z.xe.generic.x2});`}),et=K.I4.div.withConfig({componentId:"sc-557952b6-5"})(["height:322px;width:185px;display:flex;align-self:center;flex-direction:column;align-items:center;justify-content:space-between;margin:"," ",";padding:"," "," ",";background-color:",";border-radius:",";border:solid 1px ",";@media (min-width:","){margin-left:",";}@media (max-width:","){width:125px;padding:",";}"],Z.xe.generic.x2,Z.xe.generic.x4,Z.xe.generic.x4,Z.xe.generic.x4,Z.xe.generic.x2,Z.Tj.background.default,Z.PQ.radius.x1,Z.Tj.palette.gray.lightest,Z.fi.md,Z.xe.generic.x1,Z.fi.smMax,Z.xe.generic.x1),ei=K.I4.div.withConfig({componentId:"sc-557952b6-6"})(["display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;"]),en=K.I4.div.withConfig({componentId:"sc-557952b6-7"})(["display:inline;"]),ea=K.I4.span.withConfig({componentId:"sc-557952b6-8"})(["color:",";"],Z.Tj.loyalty.background.purple.base);var er=i(70065);let eo=K.I4.div.withConfig({componentId:"sc-8b7ba9b9-0"})(["margin:"," 0 -6px 0;"],Z.xe.generic.x2),el=(0,K.I4)(er.N).withConfig({componentId:"sc-8b7ba9b9-1"})(["border-radius:",";color:",";"],Z.PQ.radius.x1,Z.Tj.text.onLight.primary),es=e=>{let{callToAction:t,handleAddToCartClick:i,handleAddToRegistryClick:a,handleItemClick:o,linkTag:l,index:s,extensionTile:m,placementId:h,product:g,trackingPayload:u,useBorder:x,slingshotComponentId:_}=e,{item:b,sponsored_ad:y,tcin:k}=g,C=(0,S.D)(g),j=(0,L.K1)(S.f),T=C?.[0],I=!!T&&!!T?.display&&!!T?.long_description&&!!j?.name,v=(0,f.flags)("GLOBAL_PRICE_STRIKETHROUGH_ENABLED"),N="add_to_cart"===t&&(0,f.flags)("PRZ_ITEM_CAROUSEL_ADD_TO_CART_ENABLED"),w=(0,L.K1)(F.oc),K=(0,L.K1)(P.Zd),Z=(0,L.K1)(P.U6),q=(0,$.T)(),J=(0,z.I)(),et=b?.relationship_type_code===G.o6.collectionParent,ei=(0,c.I3)(y?.ad_source),ea=(0,c.hE)(y?.ad_source),er=(0,d.z1)(),{trackClick:es}=(0,V.M)(),ed=(0,r.useMemo)(()=>({recClick:{position:s,productId:k,type:"product",...u}}),[s,k,u]),ec=(0,r.useMemo)(()=>{if(k)return{id:k,position:s,type:"TCIN",sponsored:w}},[k,s,w]),ep=(0,r.useMemo)(()=>h&&u?.strategyDescription&&u?.strategyId&&u?.strategyName?{placementId:h,strategyDescription:u?.strategyDescription,strategyId:u?.strategyId,strategyName:u?.strategyName}:void 0,[h,u]),em=(0,r.useMemo)(()=>({element:ec,prz:ep}),[ec,ep]),eh=(0,r.useCallback)((e,t)=>{let i=e.target===e.currentTarget,n=e.currentTarget.contains(e.target);(i||n)&&es.track({clickType:t,featureType:"RECOMMENDATION",element:ec,prz:ep})},[ec,ep,es]),eg=(0,r.useCallback)(e=>{eh(e,"ADD_TO_CART"),i?.(e)},[i,eh]),eu=(0,r.useCallback)(e=>{a?.(e)},[a]),ex=(0,r.useCallback)(()=>{w&&(ea(),er.trackEvent((e=>{let t=e?.sponsored_ad;if(t){let{ad_source:i,click_id:n,click_token:a}=t;return{customInteraction:{value:`${n}|${a}`,type:"click"},products:[{tcin:e.tcin,sponsor:{name:i}}],guest:{eventType:"customInteraction"},webClientLocalMetadata:{targetSponsoredProductTcin:e.tcin}}}return{}})(g)),er.trackEvent({event:{name:"openNewPage",source:`product ad | ${h} | ${s}`,type:"click"},guest:{eventType:"click"},products:[{tcin:k}]})),o?.()},[o,s,w,h,g,k,er,ea]),ef=(0,r.useCallback)(e=>({...e,lnk:{...e.lnk,recClick:{...u,position:s,productId:k}}}),[s,k,u]);return(0,n.jsx)(en,{children:(0,n.jsx)(p.F,{clickId:y?.click_id,creativeId:y?.impression_id,tcin:k,token:y?.click_token,useTrackers:ei,children:(0,n.jsxs)(Y,{className:m?"extension-tile":"","data-test":`item-card-${k}`,useBorder:x,children:[(0,n.jsxs)("div",{style:{flex:"1 0 auto",width:"100%"},children:[(0,n.jsx)(p.F,{clickType:"PRODUCT",element:ec,featureType:"RECOMMENDATION",id:k,position:s,prz:ep,sourceId:void 0,type:"TCIN",useTrackers:W.k,children:(0,n.jsx)(el,{"data-index":k,"data-lnk":l?`${l} || ${k} PDP`:null,"data-test":"item-link",href:K,onClick:ex,underline:"invert",children:(0,n.jsx)(X,{alt:q,src:Z})})}),I&&(0,n.jsx)(eo,{children:(0,n.jsx)(B.p,{"data-position":s,"data-strategy-description":u?.strategyDescription,"data-strategy-id":u?.strategyId,"data-strategy-name":u?.strategyName,description:T?.long_description??"",display:T?.display??"",itemType:j?.name??"",placement:"CAROUSEL","placement-id":h})}),(0,n.jsx)(Q,{children:(0,n.jsx)(p.F,{clickType:"PRODUCT",element:ec,featureType:"RECOMMENDATION",id:k,position:s,prz:ep,sourceId:void 0,type:"TCIN",useTrackers:W.k,children:(0,n.jsxs)(el,{"data-index":k,"data-lnk":l?`${l} || ${k} PDP`:null,"data-test":"item-link",href:K,onClick:ex,underline:"invert",children:[(0,n.jsx)(U.x,{isStrikethroughPriceEnabled:v,showPdpPromoMessage:!0,textAlignment:"left"}),(0,n.jsx)(E.P,{className:"h-text-md h-hidden-md-up h-margin-t-tiny","data-test":"product-title-sm",lines:3,children:q}),(0,n.jsx)(E.P,{className:"h-text-md h-hidden-sm-down h-margin-t-tiny","data-test":"product-title-md-lg",lines:2,children:q}),w&&(0,n.jsx)("p",{className:"h-text-sm h-margin-t-tiny",children:"Sponsored"})]})})})]}),et?(0,n.jsx)(ee,{onClick:ex,children:(0,n.jsx)(E.$,{"aria-label":"Shop collection",href:K,isFullWidth:!0,size:"sm",children:"Shop collection"})}):"add_to_registry"===t?(0,n.jsx)(ee,{onClick:eu,children:(0,n.jsx)(H.Q,{buttonSize:"sm",featureType:"RECOMMENDATION",isInPrzCarousel:!0,lnkData:ed,placementId:h,showPlpVersionButton:!0,slingshotComponentId:_,trackingData:em})}):N?(0,n.jsx)(ee,{onClick:eg,children:(0,n.jsx)(A.AddToCartButtonForProductContext,{"aria-label":`Add to cart - ${q}`,handleOverridingOrAddingTrackingFieldsToAddToCartSuccess:ef,isFullWidth:!0,overrideBehavior:O.Fz.ENABLE_CHOOSE_OPTIONS_ONLY_MODE,placementType:D.my.SlingshotCarousel,size:"sm"})}):J?(0,n.jsx)(ee,{children:(0,n.jsx)(M.T,{placement:R.h.PLP_PRZ})}):null]})})})};es.displayName="ProductsTileContent";var ed=(0,w.h)({action:"error_boundary_prz_carousel_products_tile"})(es);let ec=e=>{let{product:t}=e,{tcin:i,sponsored_ad:a}=t,r=(0,c.I3)(a?.ad_source);return(0,n.jsx)(p.F,{clickId:a?.click_id,creativeId:a?.impression_id,tcin:i,token:a?.click_token,useTrackers:r,children:(0,n.jsx)(ed,{...e})})};ec.displayName="ProductsTile";var ep=(0,w.h)({action:"error_boundary_prz_carousel_products_tile"})(ec),em=i(55652);let eh="@web/SlingshotComponents/ProductsCarousel";Z.Tj.palette.gray.darkest,Z.Tj.palette.white;let eg=new Set(["r7ogo","t29ms"]);var eu=i(90337);let ex=K.I4.div.withConfig({componentId:"sc-28112cdc-0"})(["margin:",";width:calc(100% - ",");min-width:110px;"],Z.xe.generic.x1,Z.xe.generic.x2),ef=K.I4.div.withConfig({componentId:"sc-28112cdc-1"})(["width:100%;min-width:117px;"]),e_=K.I4.div.withConfig({componentId:"sc-28112cdc-2"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:100%;padding-bottom:100%;background:#c4c4c4;}"]),eb=K.I4.div.withConfig({componentId:"sc-28112cdc-3"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:50%;height:1em;background:",";margin-top:0.25em;margin-bottom:0.4em;}"],Z.Tj.palette.gray.darkest),ey=K.I4.div.withConfig({componentId:"sc-28112cdc-4"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:90%;height:1em;background:#c4c4c4;margin-bottom:0.25em;}&::after{content:' ';display:block;width:80%;height:1em;background:#c4c4c4;margin-bottom:0.4em;}"]),ek=K.I4.div.withConfig({componentId:"sc-28112cdc-5"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:70%;height:1em;background:#c4c4c4;margin-bottom:0.4em;}"]);function eC(e){let{useBorder:t}=e;return(0,n.jsxs)(Y,{"data-test":"@web/SiteTopOfFunnel/ProductsTilePlaceholder",useBorder:t,children:[(0,n.jsx)(ef,{children:(0,n.jsx)(e_,{})}),(0,n.jsxs)(ex,{children:[(0,n.jsx)(eb,{}),(0,n.jsx)(ey,{}),(0,n.jsx)(ek,{})]})]})}eC.displayName="ProductsTilePlaceholder";var ej=i(55321),eT=i(66950);let eI=K.I4.div.withConfig({componentId:"sc-58d48edd-0"})(["height:284px;@media (max-width:","){height:227px;}"],Z.fi.smMax),ev=()=>{let{screenMd:e}=(0,s.e)();return(0,n.jsxs)(eI,{className:"h-margin-b-default h-padding-h-tiny h-margin-t-x2","data-test":"@web/slingshot-components/TilePlaceholder",children:[(0,n.jsx)("h3",{className:"h-sr-only",children:"Loading..."}),(0,n.jsx)(eT.O,{isAnimated:!0,height:"100%",width:e?"185px":"125px"})]})};ev.displayName="TilePlaceholder";var eN=i(10038),ew=i(75451);let eE=()=>{let{trackSignInClick:e}=(()=>{let{trackEvent:e}=(0,d.z1)();return{trackSignInClick:()=>e({guest:{eventType:"click"},lnk:{contentClick:{component:"DPLP SignInButton",componentType:"Button",linkName:"SignInButton"}}}),trackCircleOptinClick:()=>e({guest:{eventType:"click"},lnk:{contentClick:{component:"DPLP CircleOptinButton",componentType:"Button",linkName:"CircleOptinButton"}}})}})(),t=(0,r.useCallback)(t=>{t?.preventDefault(),e(),(0,eN.Jv)()},[e]),{screenMd:i}=(0,s.e)(),a=!i;return(0,n.jsxs)(et,{"data-test":"deals-top-items-sign-in",children:[(0,n.jsxs)(ei,{children:[(0,n.jsx)(ew.V,{alt:"",className:a?"":"h-margin-h-x2",height:"118px",src:"https://target.scene7.com/is/content/Target/GUEST_b35e1251-ed27-4fdb-b18b-66cef3463e86"}),(0,n.jsxs)("span",{className:a?"h-text-bold h-text-md":"h-text-bold h-text-md h-margin-t-tight",children:["Save on your popular items",(0,n.jsx)("span",{className:"h-display-block",children:" from this deal"})]}),(0,n.jsx)("span",{className:"h-text-sm h-padding-v-tiny",children:"Add items to cart with a tap. Plus discover even more items we think you’ll love!"})]}),(0,n.jsx)(ew.$,{isFullWidth:!0,onClick:t,size:"sm",type:"button",children:"Sign in"})]})};eE.displayName="SignInTile";let eS=(0,w.h)({action:"error_boundary_deals_hub_top_items_sign_in"})(eE);var eL=i(6671),eF=i.n(eL);let eP=e=>{let{linkUrl:t,trackingData:i,variation:a="LINK"}=e,{trackClick:o}=(0,V.M)(),l="Shop all new arrivals",s=(0,r.useCallback)(()=>{o.track({clickType:"SHOP_ALL",featureType:"RECOMMENDATION",prz:i?.prz,...t?{element:{type:"LINK",id:t}}:void 0})},[t,o,i?.prz]);return"TILE"===a?(0,n.jsx)("div",{className:`${eF().ShopAllTile}`,children:(0,n.jsx)("div",{className:"h-margin-b-default h-padding-h-tiny h-margin-t-x2","data-test":"@web/slingshot-components/ShopAllTile",children:(0,n.jsx)("div",{children:(0,n.jsx)(er.N,{"aria-label":l,href:t,onClick:s,underline:"invert",children:"Shop all"})})})}):(0,n.jsx)(er.N,{"aria-label":l,href:t,onClick:s,children:"Shop all"})};eP.displayName="ShopAllExperimentLinkORTile";let e$=(0,r.createContext)({hasSlingshotComponentIdToGuestSpecificRecommendationsVariablesMap:!1,slingshotComponentIdToGuestSpecificRecommendationsVariablesMap:void 0});e$.displayName="HomePageSSRContext";let eA=e=>"standard"===e?"default":e;function eO(e){let{content:t,metadata:i,options:a,order:k}=e,j=(0,h.$7)(),{isBot:w}=(0,r.useContext)(l.B.Context),{hasSlingshotComponentIdToGuestSpecificRecommendationsVariablesMap:E,slingshotComponentIdToGuestSpecificRecommendationsVariablesMap:S}=(0,r.useContext)(e$),L=i?.components?.[0]?.id,F=t?.id||L||"",P=S?S[F]:void 0,$=E&&!!P,{background_color:A,endcap:O,link_tag:D,margin_bottom:z,text_color:M,custom_headline:R}=t??{},{fullWidth:B=!1,isDPLPCarousel:U=!1,isExtension:H=!1,suppressHeadline:G=!1,shopAllExperiment:{showShopAllLink:V,shopAllLinkUrl:W,shopAllVariation:K}={showShopAllLink:!1}}=a??{},Z=!!O&&!C()(O),q=O?.background_color??A??"",Y=M??O?.text_color??"",Q=(0,d.z1)(),{criteoAdTrackServedDisplayImpression:X}=(0,c.Eh)(),{asPath:J,query:ee}=(0,y.rd)(),et=(0,_.x6)(J),ei=(0,_.rv)(J),en=!A||"white"===A||"#FFFFFF"===A.toUpperCase(),{screenMd:ea}=(0,s.e)(),er=(0,I.M)(),eo=v(J),el=i?.components?.[0]?.placement_id,es=(0,b.xs)(ee,"facetedValue")??t?.facet_ids,ed=t?.placement_id==="adapt_primary_top_sellers"?es:t?.facet_ids,ec=t?.placement_id==="adapt_primary_top_sellers"&&eg.has(ei)?ei:void 0,ex=(0,h.x7)(),{preferredStoreId:ef}=(0,N._f)(),[e_,eb]=(0,g.Rt)(P,{enabled:$}),[ey,ek]=(0,g.Ri)({placement_id:t?.placement_id,category_id:t?.category_id,brand_ids:t?.brand_ids,offer_id:t?.offer_id,fulfillment_types:t?.fulfillment_types,slingshot_component_id:L,resolve_to_first_variation_child:"/c/0cb2f"===et,facet_ids:ed,exclude_category_ids:ec,include_dmc_dmr:!!ef&&!!ex,member_id:ex,pricing_store_id:ef,marketing_group_ids:t?.marketing_group_ids},{enabled:!$}),eT=$?e_:ey,eI=$?eb:ek,eN=eI.isIdle||eI.isFetching||eI.isLoading,ew=eT(u.Tl);(0,r.useEffect)(()=>{if(ew&&Q&&(Q.trackEvent({guest:{eventType:"recommendations"},...((e,t)=>{if(!e)return{};let{category_id:i,doctype:n,placement_id:a,strategy_description:r,strategy_id:o,strategy_name:l,products:s=[]}=e;return{recommendations:{categoryId:i,docType:n,placementId:a,strategyDescription:r,strategyId:o,strategyName:l,type:"product"},components:[{component:t,type:"components"}],products:s.map(e=>{let{tcin:t}=e;return{placementType:"recommendations",tcin:t}})}})(ew,L)}),(0,f.flags)("TPA_FIREFLY_V2_IMPRESSIONS_KILL_SWITCH")||Q.trackEvent((e=>{let t=e?.products?.filter(e=>"sponsored_ad"in e);return!t||t.length<=0?{}:{guest:{eventType:"adimp"},adImpressions:t?.map(e=>({creativeId:e.sponsored_ad?e.sponsored_ad.impression_id:"",lineItemId:e.tcin,orderId:"",slotSize:"",xApiId:"",sponsor:{name:e.sponsored_ad?e.sponsored_ad.ad_source:""}}))}})(ew)),(0,f.flags)("TPA_FIREFLY_VNEXT_IMPRESSIONS_ENABLED"))){let e=(e=>{let t=e?.products?.filter(e=>"sponsored_ad"in e).filter(e=>e.sponsored_ad?.ad_source==="criteo");return!t||t.length<=0?{}:{criteo:t?.map(e=>({creative_id:e.sponsored_ad?e.sponsored_ad.impression_id:"",tcin:e.tcin}))}})(ew);e.criteo&&X.track(e)}},[ew,Q,L,X]);let eE=(0,u.CP)(ew),eL=(0,u.Z5)(ew),eF=eT()?.recommended_products?.placement_id??"",eO=(0,u.Sh)(ew)??"",eD=(0,u.MT)(ew),ez=(0,u.Z5)(ew)??"",eM={strategyId:eO,strategyName:eD,strategyDescription:eL},eR=(0,r.useCallback)((e,t)=>()=>{let n=((e,t)=>{let i=e?.components?.[0]??{};return{name:i?.title??i?.id,position:String(t),component:i?.title?`${i?.id} || ${i?.title}`:i?.id,componentType:i?.type_name,contentType:i?.content_type}})(i,k);(0,d.cW)({recClick:{position:e,productId:t,strategyId:eO,strategyName:eD,type:"product"},contentClick:n})},[eO,eD,i,k]),eB=(0,r.useCallback)(e=>{let t=e.target===e.currentTarget,n=e.currentTarget.contains(e.target);(t||n)&&Q.trackEvent({event:{name:"addToRegistry",source:i?.components?.[0]?.id,type:"click"},guest:{eventType:"click"}})},[i,Q]),eU=(0,r.useCallback)(e=>{let t=e.target===e.currentTarget,i=e.currentTarget.contains(e.target);(t||i)&&Q.trackEvent({event:{name:"addToCart",source:L,type:"click"},guest:{eventType:"click"}})},[Q,L]),eH=!!t?.placement_id&&!!eE?.length,eG=Z?(0,n.jsx)(eu.o,{...O,background_color:q,headline:(()=>{if(!eN)return er?eL||R||"Headline placeholder":eL&&eH?eL:""})(),text_color:Y}):null,eV=ea?eG:null,eW=ea?null:eG,eK=T()(10).map(e=>(0,n.jsx)(o.A7,{className:"h-margin-b-tight",iterator:e,children:(0,n.jsx)(ev,{})},e)),eZ=T()(10).map(e=>0===e&&eV?(0,n.jsx)(o.A7,{className:"h-margin-b-tight",iterator:e,children:eV},"prz-placeholder-endcap"):(0,n.jsx)(o.A7,{className:"h-margin-b-tight",iterator:e,children:(0,n.jsx)(eC,{useBorder:en})},e)),eq=G?null:(0,n.jsxs)(em.Qb,{background_color:q||A,className:`l-container l-container-standard h-padding-a-x2 ${Z?"h-sr-only":""}`,text_color:Y,children:[(0,n.jsx)(o.DZ,{className:"h-margin-b-none h-margin-t-x2",level:2,size:1,style:{color:"inherit"},children:eN?(0,n.jsx)("span",{children:"\xa0"}):er?eL||R||"Headline placeholder":eL&&eH?eL:""}),V&&"LINK"===K?(0,n.jsx)(eP,{linkUrl:W,trackingData:{prz:{placementId:eF,strategyId:eO,strategyName:eD,strategyDescription:ez}},variation:K}):void 0]});if(w&&!eH)return null;let eY=eE?.map((e,i)=>(0,n.jsx)(x.M,{debugName:"PersonalizationCarouselWithProducts",queryResult:eI,value:{...e},children:(0,n.jsx)(p.F,{carouselData:{prz:{placementId:eF,strategyId:eO,strategyName:eD,strategyDescription:ez},element:{id:e.tcin,sponsored:!1,type:"TCIN",position:i},slingshot:{componentId:L,placementId:el}},tracking:["impression"],useTrackers:m.F,children:(0,n.jsx)(em.Ay,{children:(0,n.jsx)(ep,{callToAction:t?.container?.callToAction,extensionTile:H,handleAddToCartClick:eU,handleAddToRegistryClick:eB,handleItemClick:eR(i,e?.tcin),index:i,linkTag:D,placementId:t?.placement_id,product:e,slingshotComponentId:L,trackingPayload:eM,useBorder:en})})},e?.tcin)},e.tcin))??[];!U||j||eN||eY.unshift((0,n.jsx)(eS,{})),eV&&eY.unshift(eV);let eQ=ea&&!!A&&!H&&!eV,eX=!ea||Z;if(V&&"TILE"===K&&!C()(eE)&&eY.push((0,n.jsx)(eP,{linkUrl:W,trackingData:{prz:{placementId:eF,strategyId:eO,strategyName:eD,strategyDescription:ez}},variation:K},"shop-all-link")),er){let e=eN?eo?eZ:eK:eZ;return(0,n.jsxs)("div",{"aria-label":"Carousel",className:`l-container ${B?"":"l-container-standard"}`,"data-test":eh,role:"region",children:[eq,(0,n.jsxs)(em.wq,{backgroundColor:t?.background_color,className:`${z?`h-margin-b-${eA(z)}`:""}`,"data-test":"filmstrip-products-carousel",extraPadding:eQ,children:[eW,(0,n.jsx)(o.FN,{buttonBehavior:ea?"alwaysAppear":"tabAppear",className:"h-padding-t-tight",itemGap:ea?"16px":"8px",shouldScrollEnd:!0,children:eY.length>0?eY?.map((e,t,i)=>(0,n.jsx)(o.A7,{className:`${0===t&&(eQ||eX)?"h-padding-l-tight":""} ${t===i.length-1?"h-padding-r-tight":""} h-margin-b-tight`,iterator:t,children:e},`product-carousel-${t}`)):eN?e:[]})]})]})}return(0,n.jsx)(ej._,{controlled:!0,noAnimation:eN||eH,open:eN||eH,variant:"bare",children:(0,n.jsxs)("div",{"aria-label":"Carousel",className:`l-container ${B?"":"l-container-standard"}`,"data-test":eh,role:"region",children:[eq,(0,n.jsxs)(em.wq,{backgroundColor:t?.background_color,className:`${z?`h-margin-b-${eA(z)}`:""}`,"data-test":"filmstrip-products-carousel",extraPadding:eQ,children:[eW,(0,n.jsx)(o.FN,{buttonBehavior:ea?"alwaysAppear":"tabAppear",className:"h-padding-t-tight",itemGap:ea?"16px":"8px",shouldScrollEnd:!0,children:eY.length>0?eY.map((e,t,i)=>(0,n.jsx)(o.A7,{className:`${0===t&&(eQ||eX)?"h-padding-l-tight":""} ${t===i.length-1?"h-padding-r-tight":""} h-margin-b-tight`,iterator:t,children:e},`product-carousel-${t}`)):eN?eK:[]})]})]})})}eO.displayName="ProductsCarousel";var eD=i(63972),ez=i(14700),eM=i(66109),eR=i(91347),eB=i(66171),eU=i(33980);let eH=K.I4.div.withConfig({componentId:"sc-ccfa4cdd-0"})(["width:390px;position:relative;display:flex;justify-content:center;align-items:center;border-radius:",";box-sizing:border-box;flex-direction:column;padding:",";padding-right:0;text-decoration:none;background:",";color:",";@media (max-width:","){width:100%;}"],Z.PQ.radius.default,Z.xe.inset.x2,e=>e.backgroundColor??"transparent",e=>e.textColor??Z.Tj.text.onLight.primary,Z.fi.smMax),eG=(0,K.I4)(eB.V).withConfig({componentId:"sc-ccfa4cdd-1"})(["width:100%;img{width:100%;vertical-align:bottom;display:block;}"]),eV=` position: absolute; top: 0; right: 0; bottom: 0; left: 0; `,eW=K.I4.div.withConfig({componentId:"sc-ccfa4cdd-2"})(["text-align:center;display:flex;flex-direction:column;justify-content:center;padding:",";margin:",";"," ",""],Z.xe.inset.x3,Z.xe.inset.x3,e=>e.hasSmallViewportImage&&`${eV}`,e=>e.hasLargeViewportImage&&` @media (min-width: ${Z.fi.md}) { ${eV} } `),eK=(0,K.I4)(eB.D).withConfig({componentId:"sc-ccfa4cdd-3"})(["font-size:",";@media (min-width:","){font-size:",";}@media (min-width:","){font-size:",";}@media (min-width:","){font-size:","px;}"],(0,eU.Bi)("320px",eU.$3.md),Z.fi.md,(0,eU.Bi)(Z.fi.md,eU.$3.lg),Z.fi.lg,(0,eU.Bi)(Z.fi.lg,eU.$3.lg),Z.fi.xl,eU.$3.xl);function eZ(e){let{headline:t,hasSmallViewportImage:i,hasLargeViewportImage:a,trackClick:r}=e,{screenMd:o}=(0,s.e)();return(0,n.jsxs)(eW,{hasLargeViewportImage:a,hasSmallViewportImage:i,children:[(0,n.jsx)(eK,{"data-test":"headline",level:2,size:1,children:t}),o&&(0,n.jsx)(eR.H,{trackClick:r})]})}eZ.displayName="EndcapHeadline";let eq=e=>!!e?.image_path_md;function eY(e){let{backgroundColor:t,backgroundImages:i,textColor:a,headline:r,trackClick:o}=e,{screenMd:l}=(0,s.e)(),d=eq(i)&&l;return(0,n.jsxs)(eH,{backgroundColor:t,textColor:a,children:[i&&(0,n.jsx)(eG,{alt:i?.image_alt_text,aspectRatio:d?"4x3":void 0,height:d?"290px":void 0,images:(0,eM.Xx)(i)}),(0,n.jsx)(eZ,{hasLargeViewportImage:eq(i),hasSmallViewportImage:!!i?.image_path,headline:r,trackClick:o})]})}eY.displayName="Endcap";let eQ=(e,t)=>{let i=e?.components?.[0]??{};return{name:i?.title??i?.id,position:String(t),component:i?.title?`${i?.id} || ${i?.title}`:i?.id,componentType:i?.type_name,contentType:i?.content_type}};var eX=i(7797),eJ=i(18320),e0=i(21415),e1=i(32025),e4=i(6426),e2=i(85422),e3=i(86139),e7=i(16546),e6=i(41102),e5=i(28895),e9=i(54936),e8=i(99907),te=i(22870),tt=i(49677);let ti="EXP_CIRCLE_OFFERS_DPLP_LINKING_ENABLED",tn="@web/SiteTopOfFunnel/CircleOfferTile",ta={OFFER_TILE:`${tn}/OfferTile`,OFFER_DETAILS_LINK:`${tn}/OfferDetailsLink`};function tr(e){let{index:t,extensionTile:i,linkTag:a,metadata:o,offer:l,order:c,strategyId:m,strategyName:h,strategyDescription:g,placementId:u,useBorder:x}=e,_=`${l?.value} ${l?.title}`,b=l?.channel&&["DMC","DMR"].includes(l?.channel),y=l?.eligible_items_url?new e3.o(l?.eligible_items_url).makeRelative().toString():b?new e3.o(`/pl/${l?.id}`).makeRelative().toString():"",k=(0,e8.Y)()[ti]??(0,f.flags)("GLOBAL_CIRCLE_OFFERS_DPLP_LINKING_ENABLED"),{checkIsExperimentEnabledAndTrackFireflyEvent:C}=(0,e5.G)("DMCDMR_LINK_ENABLED"),j=k&&y&&(!!C()||!b),{screenMd:T}=(0,s.e)(),I=(e=>{switch(e?.channel){case"DMR":return"dmr";case"DMC":return"dmc";case"CWL":case"CIR":return e?.personalized||e?.tactic!=="Mass"?"circle_segmented":"circle_mass";default:return"mass"}})(l),v=`${l?.message?.short_description} ${l?.message?.long_description}`,[N]=(0,e7.RJ)(),w=N(e6.UK),E=(0,e9.p)(),S=(0,r.useContext)(eJ.O),{trackEvent:L}=(0,d.z1)(),{trackClick:F}=(0,V.M)(),P=l?(0,e0.l)(l):void 0,{checkIsExperimentEnabledAndTrackFireflyEvent:$}=(0,e5.G)("PROMO_LIST_SAVE_ENABLED");(0,r.useEffect)(()=>{$()},[$]);let A=(0,r.useMemo)(()=>u&&g&&m&&h?{placementId:u,strategyDescription:g,strategyId:m,strategyName:h}:void 0,[u,g,m,h]),O=(0,r.useMemo)(()=>l?.id?{id:l.id,position:t,type:"OFFER"}:void 0,[l?.id,t]),D=(0,r.useCallback)(()=>{F.track({clickType:"OFFER_DETAILS",featureType:"RECOMMENDATION",element:O,prz:A})},[O,A,F]),z=(0,r.useCallback)(()=>{L({guest:{eventType:"click"},promotionInfo:{promos:[{type:I,name:v,ivyPromoId:l?.id}]}});let e=eQ(o,c);y&&E(ti),(0,d.cW)({recClick:{type:"promo",offerId:l?.id,position:t,strategyId:m,strategyName:h},contentClick:e})},[L,o,c,y,l?.id,t,v,I,m,h,E]),M=(0,r.useCallback)(e=>{F.track({clickType:e,featureType:"RECOMMENDATION",element:O,prz:A})},[O,A,F]),R=(0,r.useCallback)(e=>{if(j){z(),e||D();return}S&&S({type:e1.uh.PUSH_OVERLAY,value:{offerId:l?.id,isCircleOffer:!0}}),z(),e||D()},[j,S,D,l?.id,z]),B=(0,r.useCallback)(()=>{M("SHOW_ITEMS"),R(!0)},[R,M]),U=(0,r.useCallback)(()=>{M("APPLY_OFFER")},[M]),H=(0,r.useCallback)(()=>{M("REMOVE_OFFER")},[M]),G=(0,r.useMemo)(()=>(l?.value?.length??0)>20&&(l?.title?.length??0)>20?1:2,[l?.title?.length,l?.value?.length]),K=new e3.o(l?.image_url??"").setQuery({wid:320,hei:320}).toString(),Z=(0,r.useMemo)(()=>{if(!l?.expiration_date)return;let e=l.expiration_date.split("-")[2]??"",t=`${Number.parseInt(e,10)}`,i=(0,te.GP)((0,tt.H)(l?.expiration_date),"LLL");return`${i} ${t}`},[l?.expiration_date]),q=(0,r.useMemo)(()=>(0,n.jsxs)(J,{children:[(0,n.jsxs)("span",{children:[l?.message?.redemption_text," \xb7 "]}),Z&&(0,n.jsxs)("span",{children:["Expires ",Z]})]}),[Z,l?.message?.redemption_text]),et=(0,r.useMemo)(()=>{let e=l?.message?.applied_action_title,t=l?.message?.apply_action_title;return T?{confirmedText:e||"",initialText:t||""}:t&&t.length<=15?{initialText:t}:{}},[l?.message?.applied_action_title,l?.message?.apply_action_title,T]),ei=(0,r.useMemo)(()=>(0,n.jsx)(e4.u,{buttonSize:"sm",isOfferAddedDefault:l?.added,metadata:o,offerAriaLabel:_,offerId:String(l?.id),onAddOffer:U,onRemoveOffer:H,order:c,trackingDetails:{position:t,promoName:v,promoType:I,strategyId:m,strategyName:h},...et}),[_,t,o,l?.added,l?.id,U,H,c,v,I,m,h,et]),en=(0,r.useMemo)(()=>l?.auto_applied?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(eX.$,{"aria-label":`Show items for ${l?.title}`,href:j?l?.eligible_items_url:void 0,onClick:B,size:"sm",...j&&{role:"link"},type:"button",variant:"outlined",children:"Show items"})}):ei,[B,l?.auto_applied,l?.eligible_items_url,l?.title,ei,j]),er=(0,e8.Y)()?.PROMO_LIST_SAVE_ENABLED&&w;return(0,n.jsxs)(Y,{className:i?"extension-tile":"","data-test":ta.OFFER_TILE,useBorder:x,children:[(0,n.jsxs)(p.F,{clickType:"OFFER_DETAILS",element:O,featureType:"RECOMMENDATION",id:l?.id,index:t,linkTag:a,position:t,prz:A,sourceId:l?.id,type:"OFFER",useTrackers:W.k,children:[er&&(0,n.jsx)(e2.I,{ariaOfferLabel:`${l?.value} ${l?.title}`,componentType:"RECOMMENDATION",isAutoApplied:!!l?.auto_applied,offerId:l?.id??"",przTracking:A,saveOfferTrackingEventPayload:P}),(0,n.jsxs)(em.ah,{"data-lnk":a,"data-test":ta.OFFER_DETAILS_LINK,href:j?y:void 0,onClick:()=>R(!1),style:{color:"#333",flex:"1 0 auto"},underline:"invert",children:[(0,n.jsx)(X,{alt:"",src:K}),(0,n.jsxs)(Q,{title:`${l?.value} ${l?.title}`,children:[l?.membership_offer_type==="Circle_360_Freebies"?(0,n.jsx)(ea,{className:"h-text-bold",children:l?.message?.short_description}):(0,n.jsx)("div",{className:"h-text-red h-text-bold",children:l?.message?.short_description}),(0,n.jsx)(eX.P,{className:"h-text-bold",lines:G,children:l?.message?.long_description}),q]})]})]}),!er&&(0,n.jsx)(ee,{$isNewPrzOffers:!0,children:en})]})}tr.displayName="OfferTile";let to=K.I4.div.withConfig({componentId:"sc-8416a7a7-0"})(["margin:",";width:calc(100% - ",");min-width:110px;"],Z.xe.generic.x1,Z.xe.generic.x2),tl=K.I4.div.withConfig({componentId:"sc-8416a7a7-1"})(["width:100%;min-width:117px;"]),ts=K.I4.div.withConfig({componentId:"sc-8416a7a7-2"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:100%;padding-bottom:100%;background:#c4c4c4;}"]),td=K.I4.div.withConfig({componentId:"sc-8416a7a7-3"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:100%;height:1em;background:#c00;margin-top:0.25em;margin-bottom:0.4em;}"]),tc=K.I4.div.withConfig({componentId:"sc-8416a7a7-4"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:90%;height:1em;background:#c4c4c4;margin-bottom:0.25em;}&::after{content:' ';display:block;width:80%;height:1em;background:#c4c4c4;margin-bottom:0.4em;}"]),tp=K.I4.div.withConfig({componentId:"sc-8416a7a7-5"})(["position:relative;font-size:clamp(14px,calc(2vw - 2px),20px);&::after{content:' ';display:block;width:100%;height:32px;background:#c00;border-radius:4px;}"]);function tm(e){let{useBorder:t}=e;return(0,n.jsxs)(Y,{"data-test":"@web/SiteTopOfFunnel/CircleOfferTilePlaceholder",useBorder:t,children:[(0,n.jsx)(tl,{children:(0,n.jsx)(ts,{})}),(0,n.jsxs)(to,{children:[(0,n.jsx)(td,{}),(0,n.jsx)(tc,{})]}),(0,n.jsx)(ee,{children:(0,n.jsx)(tp,{})})]})}tm.displayName="OfferTile";let th=e=>"standard"===e?"default":e;function tg(e){let{content:t,options:i,metadata:a,order:c}=e,{background_color:h,link_tag:g,margin_bottom:u,placement_id:x,category_id:f,endcap:_,text_color:b,custom_headline:k,offer_id:j}=t??{},{fullWidth:N=!1,isExtension:w=!1,suppressHeadline:E=!1}=i??{},{background_color:S,headline:L,image:F}=_??{},P=!h||"white"===h||"#FFFFFF"===h.toUpperCase(),{isBot:$}=(0,r.useContext)(l.B.Context),[A,O]=(0,eD.rj)({placement_id:x??"circle_offer_component_tester",category_id:f,offer_id:j,fulfillment_types:t?.fulfillment_types,slingshot_component_id:a?.components?.[0]?.id}),{trackClick:D}=(0,V.M)(),z=O.isIdle||O.isFetching||O.isLoading,M=!!_&&!C()(_),R=A(ez.cq),B=A(ez.WS)??"",U=A(ez.a3),H=A(ez.iO)?.placement_id??"",G=A(ez.fD)??"",W=A(ez.iO)?.doctype,{screenMd:K}=(0,s.e)(),Z=(0,d.z1)(),q=(0,I.M)(),{asPath:Y}=(0,y.rd)(),Q=v(Y),X=()=>{if(!z)return q?G||k||"Headline placeholder":R?G??L:""},J=a?.components?.[0]?.id,ee=a?.components?.[0]?.placement_id;(0,r.useEffect)(()=>{Z.trackEvent({guest:{eventType:"recommendations"},recommendations:{strategyId:B,strategyName:U,placementId:H,strategyDescription:G,docType:W,type:"promo"},components:[{component:J,type:"components"}]})},[Z,A,J,B,U,H,G,W]);let et=(0,r.useCallback)(()=>{H&&B?D.track({featureType:"RECOMMENDATION",clickType:"SHOP_ALL",prz:{placementId:H,strategyId:B,strategyName:U,strategyDescription:G}}):D.track({featureType:"RECOMMENDATION",clickType:"SHOP_ALL"});let e=eQ(a,c);(0,d.cW)({contentClick:{...e,linkName:"View all Target Circle offers"}})},[a,c,H,B,U,G,D]),ei=a?.components?.[0]?.type_name?.toLocaleLowerCase()==="item or promotion carousel",en=(0,n.jsx)(eY,{backgroundColor:S,backgroundImages:F,headline:X()??"",textColor:b,trackClick:et}),ea=M?(0,n.jsx)(eu.o,{..._,background_color:S??h??"",headline:X(),text_color:b,track_click:et}):null,er=K?ei?ea:en:null,eo=K?null:ei?ea:en,el=E?null:(0,n.jsxs)(em.Qb,{background_color:h,className:`l-container l-container-standard h-padding-a-x2 ${M?"h-sr-only":""}`,text_color:b,children:[(0,n.jsx)(o.DZ,{className:"h-margin-b-none",level:2,size:1,style:{color:"inherit"},children:z?(0,n.jsx)("span",{children:"\xa0"}):q?G||k||"Headline placeholder":R?G??L:""}),(0,n.jsx)(eR.H,{trackClick:et})]}),es=T()(10).map(e=>(0,n.jsx)(o.A7,{className:"h-margin-b-tight",iterator:e,children:(0,n.jsx)(ev,{})},e)),ed=T()(10).map(e=>0===e&&er?(0,n.jsx)(o.A7,{className:"h-margin-b-tight",iterator:e,children:er},"prz-placeholder-endcap"):(0,n.jsx)(o.A7,{className:"h-margin-b-tight",iterator:e,children:(0,n.jsx)(tm,{useBorder:P})},e));if($&&!R?.length)return null;let ec=R?.map((e,t)=>(0,n.jsx)(p.F,{carouselData:{prz:{placementId:H,strategyId:B,strategyName:U,strategyDescription:G},element:{id:e.id,sponsored:!1,type:"OFFER",position:t},slingshot:{componentId:J,placementId:ee}},tracking:["impression"],useTrackers:m.F,children:(0,n.jsx)(em.Ay,{children:(0,n.jsx)(tr,{extensionTile:w,index:t,linkTag:g,metadata:a,offer:e,order:c,placementId:H,strategyDescription:G,strategyId:B,strategyName:U,useBorder:P})})},e?.id))??[];er&&!C()(R)&&ec.unshift(er);let ep=K&&!!h&&!w&&!er,eh=!K||M;if(q){let e=z?Q?ed:es:ed;return(0,n.jsxs)(n.Fragment,{children:[el,(0,n.jsxs)(em.wq,{backgroundColor:h,className:`${u?`h-margin-b-${th(u)}`:""} l-container ${N?"":"l-container-standard"}`,"data-test":"filmstrip-wrapper",extraPadding:ep,children:[eo,(0,n.jsx)(o.FN,{buttonBehavior:K?"alwaysAppear":"tabAppear",className:"h-padding-t-tight",itemGap:K?"16px":"8px",shouldScrollEnd:!0,children:C()(R)?e:ec?.map((e,t,i)=>(0,n.jsx)(o.A7,{className:`${0===t&&(ep||eh)?"h-padding-l-tight":""} ${t===i.length-1?"h-padding-r-tight":""} h-margin-b-tight`,iterator:t,children:e},`offer-carousel-${t}`))})]})]})}return(0,n.jsx)(ej._,{controlled:!0,noAnimation:z||!!R?.length,open:z||!!R?.length,variant:"bare",children:(0,n.jsxs)(n.Fragment,{children:[el,(0,n.jsxs)(em.wq,{backgroundColor:h,className:`${u?`h-margin-b-${th(u)}`:""} l-container ${N?"":"l-container-standard"}`,"data-test":"filmstrip-wrapper",extraPadding:ep,children:[eo,(0,n.jsx)(o.FN,{buttonBehavior:K?"alwaysAppear":"tabAppear",className:"h-padding-t-tight",itemGap:K?"16px":"8px",shouldScrollEnd:!0,children:R?.length?ec?.map((e,t,i)=>(0,n.jsx)(o.A7,{className:`${0===t&&(ep||eh)?"h-padding-l-tight":""} ${t===i.length-1?"h-padding-r-tight":""} h-margin-b-tight`,iterator:t,children:e},`offer-carousel-${t}`)):es})]})]})})}tg.displayName="OffersCarousel";var tu=i(90858),tx=i(59566),tf=i(96589),t_=i(75524);let tb="@web/SlingshotComponents/PromotionsCarousel";var ty=i(11017);let tk=e=>{let{item:t,index:i,extensionTile:a,handleRecButtonClick:r,handleRecImageClick:o,linkTag:l,useBorder:s}=e,{pdp_message:d,messaging:c}=t??{},{short_description:m,title:h,subtitle:g}=c??{},u=(0,t_.GF)(t),x=d??`${m??""} ${h??""} ${g??""}`;return(0,n.jsx)(p.F,{id:u,index:i,linkTag:l,position:i,sourceId:u,type:"OFFER",useTrackers:W.k,children:(0,n.jsxs)(Y,{className:a?"extension-tile":"","data-test":`item-card-${i}`,useBorder:s,children:[(0,n.jsxs)(em.ah,{"aria-label":x,"data-index":i,"data-lnk":l,"data-test":"deal-link",href:`/pl/${u}?link=prz_top_deals_`,onClick:o,style:{flex:"1 0 auto",color:"#333"},underline:"invert",children:[(0,n.jsx)(X,{alt:"",src:(0,t_.HF)(t)}),(0,n.jsxs)(Q,{children:[!!c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ty.P,{className:"h-text-red h-text-bold h-text-md","data-test":"pbo-short-desc",lines:1,children:m}),(0,n.jsx)(ty.P,{className:"h-text-bold h-text-md","data-test":"pbo-title",lines:2,children:h}),(0,n.jsx)(ty.P,{className:"h-text-md h-hidden-md-up","data-test":"pbo-sub-sm",lines:3,children:g}),(0,n.jsx)(ty.P,{className:"h-text-md h-hidden-sm-down","data-test":"pbo-sub-md-lg",lines:2,children:g})]}),!!d&&(0,n.jsx)(ty.P,{className:"h-text-red h-text-bold h-text-md","data-test":"basket-offers-message",lines:3,children:d})]})]}),(0,n.jsx)(ee,{children:(0,n.jsx)(ty.n,{"aria-label":`Shop offer ${x}`,"data-index":i,"data-test":"deals-item-link",href:`/pl/${u}?link=prz_top_deals_`,isFullWidth:!0,onClick:r,role:"button",size:"sm",children:"Shop offer"})})]})})};tk.displayName="PromotionTile";var tC=(0,w.h)({action:"error_boundary_prz_carousel_promotion_tile"})(tk),tj=i(59605);let tT=K.I4.div.attrs({className:"h-padding-h-tight"}).withConfig({componentId:"sc-7440cdb5-0"})(["width:100%;h3{line-height:",";font-size:15px;@media (min-width:","){font-size:13px;}@media (min-width:","){font-size:15px;}}"],Z.gx.lineHeight.heading,Z.fi.lg,Z.fi.xl),tI=K.I4.div.withConfig({componentId:"sc-7440cdb5-1"})(["display:flex;position:relative;background:",";max-width:175px;padding:",";margin:",";text-align:center;width:100%;align-items:center;&::before{content:'';display:block;}"],Z.Tj.palette.white,Z.xe.generic.x3,Z.xe.generic.x2),tv=(0,K.I4)(er.N).withConfig({componentId:"sc-7440cdb5-2"})(["width:100%;display:flex;align-items:center;min-height:66px;"]),tN=e=>{let{global_link:t}=e;if(!t)return null;let{link_name:i="",link_tag:a,link_url:r}=t;return(0,n.jsx)(tI,{children:(0,n.jsx)(tv,{"data-lnk":a,href:r,children:(0,n.jsx)(tT,{children:(0,n.jsx)(tj.D,{className:"h-margin-b-none",dangerouslySetInnerHTML:{__html:i},level:3,size:3})})})})};tN.displayName="GlobalLink";let tw=K.I4.div.withConfig({componentId:"sc-abe0be89-0"})(["margin:",";width:calc(100% - ",");min-width:110px;"],Z.xe.generic.x1,Z.xe.generic.x2),tE=K.I4.div.withConfig({componentId:"sc-abe0be89-1"})(["width:100%;min-width:117px;"]),tS=K.I4.div.withConfig({componentId:"sc-abe0be89-2"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:100%;padding-bottom:100%;background:#c4c4c4;}"]),tL=K.I4.div.withConfig({componentId:"sc-abe0be89-3"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:50%;height:1em;background:",";margin-top:0.25em;margin-bottom:0.4em;}"],Z.Tj.palette.red.default),tF=K.I4.div.withConfig({componentId:"sc-abe0be89-4"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:90%;height:1em;background:#c4c4c4;margin-bottom:0.25em;}&::after{content:' ';display:block;width:80%;height:1em;background:#c4c4c4;margin-bottom:0.4em;}"]),tP=K.I4.div.withConfig({componentId:"sc-abe0be89-5"})(["position:relative;font-size:14px;&::before{content:' ';display:block;width:70%;height:1em;background:#c4c4c4;margin-bottom:0.4em;}"]);function t$(e){let{useBorder:t}=e;return(0,n.jsxs)(Y,{"data-test":"@web/SiteTopOfFunnel/PromotionTilePlaceholder",useBorder:t,children:[(0,n.jsx)(tE,{children:(0,n.jsx)(tS,{})}),(0,n.jsxs)(tw,{children:[(0,n.jsx)(tL,{}),(0,n.jsx)(tF,{}),(0,n.jsx)(tP,{})]})]})}t$.displayName="PromotionTilePlaceholder";let tA=e=>"standard"===e?"default":e,tO=e=>{let{content:t,options:i,order:a,metadata:c}=e,{placement_id:h,offer_id:g,endcap:u,link_tag:x,global_link:f,background_color:_,margin_bottom:b,category_id:k,text_color:j,fulfillment_types:N,slingshot_component_id:w,custom_headline:E}=t??{},{fullWidth:S=!1,isExtension:L=!1,suppressHeadline:F=!1}=i??{},{background_color:P,headline:$,image:A}=u??{},O=!!u&&!C()(u),D=!_||"white"===_||"#FFFFFF"===_.toUpperCase(),{trackEvent:z}=(0,d.z1)(),{screenMd:M}=(0,s.e)(),{isBot:R}=(0,r.useContext)(l.B.Context),[B,U]=(0,tx.e)({category_id:k,offer_id:g,placement_id:h??"promotions_component_tester",fulfillment_types:N,slingshot_component_id:w}),H=U.isIdle||U.isFetching||U.isLoading,G=B(tf.sn),V=(0,r.useMemo)(()=>B(tf.CD)??[],[B]),W=B(tf.vc)??"",K=B(tf.hK),Z=B(tf.P7)??"",q=B()?.recommended_promotions?.placement_id??"",Y=(V?.length??0)>0,Q=c?.components?.[0]?.type_name?.toLocaleLowerCase()==="item or promotion carousel",X=(0,I.M)(),{asPath:J}=(0,y.rd)(),ee=v(J),et=c?.components?.[0]?.placement_id;(0,r.useEffect)(()=>{Y&&z(((e,t)=>{if(!e)return{};let{doctype:i,placement_id:n,strategy_description:a,strategy_id:r,strategy_name:o,promotions:l=[]}=e;return{guest:{eventType:"recommendations"},recommendations:{docType:i,placementId:n,strategyDescription:a,strategyId:r,strategyName:o,type:"promo"},components:[{component:t,type:"components"}],products:l.map(e=>{let{promotion_id:t}=e;return{placementType:"recommendations",tcin:t}}),offerInfo:((e,t,i)=>e.length?{offers:e.map((e,t)=>({offerId:e.promotion_id,offerPosition:String(t),offerType:"promo"})),strategyId:t,strategyName:i}:{})(l,r,o)}})(G,w))},[z,Y,G,w]);let{trackClick:ei}=(0,tu.f)(),en=(0,r.useCallback)(e=>t=>{let i=t?.currentTarget?.getAttribute("data-index"),n=((e,t)=>{let i=e?.components?.[0]??{};return{name:i?.title??i?.id,position:String(t),component:i?.title?`${i?.id} || ${i?.title}`:i?.id,componentType:i?.type_name,contentType:i?.content_type}})(c,a),r=i?(0,t_.GF)(V[Number.parseInt(i,10)]):void 0;V&&i&&r&&(z(((e,t)=>({guest:{eventType:"click"},offerInfo:{offers:[{offerId:(0,t_.GF)(t[Number.parseInt(e,10)]),offerPosition:e,offerSelected:!0,offerType:"promo"}]}}))(i,V)),(0,d.cW)({recClick:{position:+i,offerId:(0,t_.GF)(V[Number.parseInt(i,10)]),strategyId:W,strategyName:K,type:"promo"},contentClick:n}),ei.track({featureType:"RECOMMENDATION",clickType:e,prz:{strategyId:W,strategyDescription:Z,strategyName:K,placementId:q},element:{type:"OFFER",id:r}}))},[z,V,W,K,c,a,Z,ei,q]),ea=(0,n.jsx)(eY,{backgroundColor:P,backgroundImages:A,headline:Z??$??"Top promotions",textColor:j}),er=O?(0,n.jsx)(eu.o,{...u,background_color:P??_??"",headline:(()=>{if(!H)return X?Z||E||"Headline placeholder":Y?Z??$:""})(),text_color:j}):null,eo=M?Q?er:ea:null,el=M?null:Q?er:ea,es=F?null:(0,n.jsx)(em.Qb,{background_color:_,className:`l-container l-container-standard h-padding-a-x2 ${O?"h-sr-only":""}`,text_color:j,children:(0,n.jsx)(o.DZ,{className:"h-margin-b-none",level:2,size:1,style:{color:"inherit"},children:H?(0,n.jsx)("span",{children:"\xa0"}):X?Z||E||"Headline placeholder":Y?Z??$:""})}),ed=T()(10).map(e=>(0,n.jsx)(o.A7,{className:"h-margin-b-tight",iterator:e,children:(0,n.jsx)(ev,{})},e)),ec=T()(10).map(e=>0===e&&eo?(0,n.jsx)(o.A7,{className:"h-margin-b-tight",iterator:e,children:eo},"prz-placeholder-endcap"):(0,n.jsx)(o.A7,{className:"h-margin-b-tight",iterator:e,children:(0,n.jsx)(t$,{useBorder:D})},e));if(R&&!Y)return null;let ep=V?.map((e,t)=>(0,n.jsx)(p.F,{carouselData:{prz:{placementId:q,strategyId:W,strategyName:K,strategyDescription:Z},element:{id:e.promotion_id,sponsored:!1,type:"OFFER",position:t},slingshot:{componentId:w,placementId:et}},tracking:["impression"],useTrackers:m.F,children:(0,n.jsx)(em.Ay,{children:(0,n.jsx)(tC,{extensionTile:L,handleRecButtonClick:en("SHOW_ITEMS"),handleRecImageClick:en("OFFER_DETAILS"),index:t,item:e,linkTag:x,useBorder:D},e.promotion_id)})},e.promotion_id));eo&&Y&&ep.unshift(eo);let eh=M&&!!_&&!L&&!eo,eg=!M||O;if(X){let e=H?ee?ec:ed:ec;return(0,n.jsxs)("div",{"aria-label":"Carousel",className:`l-container ${S?"":"l-container-standard"}`,"data-test":tb,role:"region",children:[es,(0,n.jsxs)(em.wq,{backgroundColor:_,className:`${b?`h-margin-b-${tA(b)}`:""}`,"data-test":"filmstrip-deals-carousel",extraPadding:eh,children:[el,(0,n.jsx)(o.FN,{buttonBehavior:M?"alwaysAppear":"tabAppear",className:"h-padding-t-tight",itemGap:M?"16px":"8px",shouldScrollEnd:!0,children:Y?ep.map((e,t,i)=>(0,n.jsx)(o.A7,{className:`${0===t&&(eh||eg)?"h-padding-l-tight":""} ${t===i.length-1?"h-padding-r-tight":""} h-margin-b-tight`,iterator:t,children:e},`promotions-carousel-${t}`)):e}),(0,n.jsx)(tN,{global_link:f})]})]})}return(0,n.jsx)(ej._,{controlled:!0,noAnimation:H||Y,open:H||Y,variant:"bare",children:(0,n.jsxs)("div",{"aria-label":"Carousel",className:`l-container ${S?"":"l-container-standard"}`,"data-test":tb,role:"region",children:[es,(0,n.jsxs)(em.wq,{backgroundColor:_,className:`${b?`h-margin-b-${tA(b)}`:""}`,"data-test":"filmstrip-deals-carousel",extraPadding:eh,children:[el,(0,n.jsx)(o.FN,{buttonBehavior:M?"alwaysAppear":"tabAppear",className:"h-padding-t-tight",itemGap:M?"16px":"8px",shouldScrollEnd:!0,children:Y?ep.map((e,t,i)=>(0,n.jsx)(o.A7,{className:`${0===t&&(eh||eg)?"h-padding-l-tight":""} ${t===i.length-1?"h-padding-r-tight":""} h-margin-b-tight`,iterator:t,children:e},`promotions-carousel-${t}`)):ed}),(0,n.jsx)(tN,{global_link:f})]})]})})};tO.displayName="PromotionsCarousel";let tD=e=>{let{content:t,options:i,metadata:r,order:o,componentId:l}=e,s=(0,a.d)(t?.container?.keyValuePairs?.context),d={...t,brand_ids:s?.brandId,category_id:s?.categoryId,fulfillment_types:s?.fulfillmentId,offer_id:s?.promoId,placement_id:s?.placementId,slingshot_component_id:l,facet_ids:s?.facetId,marketing_group_ids:s?.marketingGroup};return t?.container?.type==="personalizedProducts"?(0,n.jsx)(eO,{content:d,metadata:r,options:i,order:o}):t?.container?.type==="personalizedPromotions"?(0,n.jsx)(tO,{content:d,metadata:r,options:i,order:o}):t?.container?.type==="personalizedOffers"?(0,n.jsx)(tg,{content:d,metadata:r,options:i,order:o}):null};tD.displayName="PersonalizationCarousel"},41447:(e,t,i)=>{i.d(t,{d:()=>r});var n=i(40123),a=i.n(n);let r=e=>{if(!a()(e)&&e)return Object.fromEntries(e.split(";").map(e=>{let[t,...i]=e.split(",")??[];return[t,i?.join(",")]}))}},49677:(e,t,i)=>{i.d(t,{H:()=>o});var n=i(81506),a=i(67930),r=i(61752);function o(e,t){let i,o,u=()=>(0,a.w)(t?.in,NaN),x=t?.additionalDigits??2,f=function(e){let t,i={},n=e.split(l.dateTimeDelimiter);if(n.length>2)return i;if(/:/.test(n[0])?t=n[0]:(i.date=n[0],t=n[1],l.timeZoneDelimiter.test(i.date)&&(i.date=e.split(l.timeZoneDelimiter)[0],t=e.substr(i.date.length,e.length))),t){let e=l.timezone.exec(t);e?(i.time=t.replace(e[1],""),i.timezone=e[1]):i.time=t}return i}(e);if(f.date){let e=function(e,t){let i=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(i);if(!n)return{year:NaN,restDateString:""};let a=n[1]?parseInt(n[1]):null,r=n[2]?parseInt(n[2]):null;return{year:null===r?a:100*r,restDateString:e.slice((n[1]||n[2]).length)}}(f.date,x);i=function(e,t){var i,n,a,r,o,l,d;if(null===t)return new Date(NaN);let c=e.match(s);if(!c)return new Date(NaN);let m=!!c[4],u=p(c[1]),x=p(c[2])-1,f=p(c[3]),_=p(c[4]),b=p(c[5])-1;if(m){return(i=_,n=b,i>=1&&i<=53&&n>=0&&n<=6)?function(e,t,i){let n=new Date(0);n.setUTCFullYear(e,0,4);let a=n.getUTCDay()||7;return n.setUTCDate(n.getUTCDate()+((t-1)*7+i+1-a)),n}(t,_,b):new Date(NaN)}{let e=new Date(0);return(a=t,r=x,o=f,r>=0&&r<=11&&o>=1&&o<=(h[r]||(g(a)?29:28))&&(l=t,(d=u)>=1&&d<=(g(l)?366:365)))?(e.setUTCFullYear(t,x,Math.max(u,f)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!i||isNaN(+i))return u();let _=+i,b=0;if(f.time&&isNaN(b=function(e){var t,i,a;let r=e.match(d);if(!r)return NaN;let o=m(r[1]),l=m(r[2]),s=m(r[3]);return(t=o,i=l,a=s,24===t?0===i&&0===a:a>=0&&a<60&&i>=0&&i<60&&t>=0&&t<25)?o*n.s0+l*n.Cg+1e3*s:NaN}(f.time)))return u();if(f.timezone){if(isNaN(o=function(e){var t;if("Z"===e)return 0;let i=e.match(c);if(!i)return 0;let a="+"===i[1]?-1:1,r=parseInt(i[2]),o=i[3]&&parseInt(i[3])||0;return(t=o)>=0&&t<=59?a*(r*n.s0+o*n.Cg):NaN}(f.timezone)))return u()}else{let e=new Date(_+b),i=(0,r.a)(0,t?.in);return i.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),i.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),i}return(0,r.a)(_+b+o,t?.in)}let l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,d=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function p(e){return e?parseInt(e):1}function m(e){return e&&parseFloat(e.replace(",","."))||0}let h=[31,null,31,30,31,30,31,31,30,31,30,31];function g(e){return e%400==0||e%4==0&&e%100!=0}},63972:(e,t,i)=>{i.d(t,{rj:()=>m});var n=i(75186),a=i(90733),r=i(32612),o=i(86139),l=i(79673),s=i(7263);let d="@web/domain-promotions/get-recommended-circle-offers-v1",c=["page","placement_id","visitor_id"],{useQuery:p}=(0,a.T)({name:d,keyFn:e=>(c.forEach(t=>{if(!e[t])throw Error(`Required \`${t}\` was missing from query: \`${d}\``)}),[d,e]),queryFn:async(e,t)=>{let{apiKey:i,apis:{promotions:a},baseUrl:l}=(0,n.config)().services.redskyAggregations,{category_id:s,channel:d="WEB",fulfillment_types:c,member_id:p,offer_id:m,page:h,placement_id:g,purchasable_store_ids:u,slingshot_component_id:x,tcins:f,visitor_id:_}=e??{},b=o.o.buildURLWithParams(new URL(a.endpointPaths.getRecommendedCircleOffersV1,l),{category_id:s,channel:d,fulfillment_types:c,member_id:p,offer_id:m,page:h,placement_id:g,purchasable_store_ids:u,slingshot_component_id:x,tcins:f,visitor_id:_,key:i}),{data:y,ok:k,statusText:C}=await (0,r.n)(b,{partialErrorTag:"get_recommended_circle_offers_error_partial",...t});if(k)return y?.data??null;throw Error(`${C}`)},defaultOptions:{staleTime:s.Ls}}),m=(0,l.K)(p)},72576:(e,t,i)=>{i.d(t,{H:()=>d});var n=i(37876),a=i(15039),r=i.n(a),o=i(86939),l=i(20623),s=i.n(l);let d=e=>{let{className:t,size:i="md",...a}=e;return(0,n.jsx)(o.S,{className:r()(s().ndsButtonTertiary,t,s()[i]),...a})};d.displayName="ButtonTertiary"},76062:(e,t,i)=>{i.d(t,{V:()=>o});var n=i(32612),a=i(86139),r=i(75186);let o=e=>{let{fetchOptions:t,requestParams:i}=e??{},{channel:o,placement_id:l,page:s,visitor_id:d,pricing_store_id:c,member_id:p,category_id:m,tcins:h,purchasable_store_ids:g,exclusions:u,offer_id:x,keyword:f,include_sponsored_recommendations:_,effective_date:b,fulfillment_types:y,brand_ids:k,resolve_to_first_variation_child:C,slingshot_component_id:j,platform:T,facet_ids:I,exclude_category_ids:v,include_dmc_dmr:N,marketing_group_ids:w}=i??{},{apiKey:E,baseUrl:S,apis:{product:L}}=(0,r.config)().services.redskyAggregations;if(!o||!l||!s||!d)throw Error("Required parameters not defined for general recommendations placement query");let F=a.o.buildURLWithParams(new URL(L.endpointPaths.generalRecommendationsPlacementV1,S),{category_id:m,channel:o,effective_date:b,include_sponsored_recommendations:_,key:E,keyword:f,member_id:p,offer_id:x,page:s,placement_id:l,pricing_store_id:c,purchasable_store_ids:g,exclusions:u,tcins:h,visitor_id:d,fulfillment_types:y,brand_ids:k,resolve_to_first_variation_child:C,slingshot_component_id:j,platform:T,facet_ids:I,exclude_category_ids:v,include_dmc_dmr:N,marketing_group_ids:w});return(0,n.n)(F,{partialErrorTag:"get_general_recommendations_placement_partial_api_error",...t})}},76956:(e,t,i)=>{i.d(t,{Ri:()=>c,Rt:()=>d});var n=i(90733),a=i(90746),r=i(79673),o=i(76062);let l="@web/domain-product/get-guest-specific-recommendations-placement",{useQuery:s}=(0,n.T)({name:l,keyFn:e=>(void 0!==e.channel||void 0!==e.placement_id||void 0!==e.page||void 0!==e.visitor_id||void 0!==e.member_id)&&[l,e],queryFn:async e=>{let t=await (0,a.E)(),{data:i,ok:n,statusText:r}=await (0,o.V)({requestParams:{effective_date:t,...e}});if(n)return i?.data??null;throw Error(`${r}`)}}),d=s,c=(0,r.K)(s)},80150:(e,t,i)=>{i.d(t,{o:()=>y});var n=i(37876),a=i(15039),r=i.n(a),o=i(25279),l=i(30100),s=i.n(l),d=i(29016);let c=e=>{let{$fontSize:t="medium",$isHighlight:i,$isGrayDark:a,$ellipseLine:o,className:l,...d}=e;return(0,n.jsx)("p",{className:r()(s().singleLineP,s()[`${t}Font`],i&&s().highlight,a&&s().grayDark,o&&s().ellipseLine,l),...d})};c.displayName="SingleLineP";let p=e=>{let{ellipseLine:t,headingComponent:i,headingText:a}=e;return(0,n.jsx)(c,{$ellipseLine:t,children:i??a})};p.displayName="Md";let m=e=>{let{ellipseLine:t,headingComponent:i,headingText:a}=e;return(0,n.jsx)(c,{$ellipseLine:t,$fontSize:"base",children:i??a})};m.displayName="Base";let h=e=>{let{headingComponent:t,headingLevel:i,headingText:a}=e;return(0,n.jsx)(d.D,{level:i,size:3,stackSpacing:"0",children:t??a})};h.displayName="lg";let g=e=>{let{headingComponent:t,headingLevel:i,headingText:a}=e;return(0,n.jsx)(d.D,{level:i,size:2,stackSpacing:"0",children:t??a})};g.displayName="Xlg";let u=e=>{let{ellipseLine:t,headingComponent:i,headingText:a,subheadingText:r,subheadingComponent:o}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.D,{level:5,stackSpacing:"0",children:i??a}),o??(0,n.jsx)(c,{$ellipseLine:t,$fontSize:"small",children:r})]})};u.displayName="SmSm";let x=e=>{let{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r,subheadingText:o,subheadingComponent:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.D,{level:a,size:4,stackSpacing:"0",children:i??r}),l??(0,n.jsx)(c,{$ellipseLine:t,children:o})]})};x.displayName="BaseMd";let f=e=>{let{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r,subheadingText:o,subheadingComponent:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.D,{level:a,size:3,stackSpacing:"0",children:i??r}),l??(0,n.jsx)(c,{$ellipseLine:t,children:o})]})};f.displayName="LgMd";let _=e=>{let{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r,subheadingText:o,subheadingComponent:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.D,{level:a,size:3,stackSpacing:"0",children:i??r}),l??(0,n.jsx)(c,{$ellipseLine:t,$isHighlight:!0,children:o})]})};_.displayName="LgMdPostive";let b=e=>{let{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r,subheadingText:o,subheadingComponent:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.D,{level:a,size:3,stackSpacing:"0",children:i??r}),l??(0,n.jsx)(c,{$ellipseLine:t,$isGrayDark:!0,children:o})]})};b.displayName="LgMdGrayDark";let y=e=>{let{className:t,"data-test":i,divider:a,ellipseLine:l,headingComponent:d,headingLevel:c,headingText:y,noPaddingLeft:k,noPaddingRight:C,renderLeading:j,renderTrailing:T,subheadingComponent:I,subheadingText:v,textComponentName:N}=e,w=((e,t,i,a,r,o,l)=>{switch(e){case"Md":return(0,n.jsx)(p,{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r});case"Base":return(0,n.jsx)(m,{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r});case"Xlg":return(0,n.jsx)(g,{headingComponent:i,headingLevel:a,headingText:r});case"SmSm":return(0,n.jsx)(u,{ellipseLine:t,headingComponent:i,headingText:r,subheadingComponent:o,subheadingText:l});case"BaseMd":return(0,n.jsx)(x,{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r,subheadingComponent:o,subheadingText:l});case"LgMd":return(0,n.jsx)(f,{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r,subheadingComponent:o,subheadingText:l});case"LgMdPositive":return(0,n.jsx)(_,{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r,subheadingComponent:o,subheadingText:l});case"LgMdGrayDark":return(0,n.jsx)(b,{ellipseLine:t,headingComponent:i,headingLevel:a,headingText:r,subheadingComponent:o,subheadingText:l});default:return(0,n.jsx)(h,{headingComponent:i,headingLevel:a,headingText:r})}})(N,l,d,c,y,I,v),E=["SmSm","BaseMd","LgMd","LgMdPositive","LgMdGrayDark"].includes(N??"");return(0,n.jsxs)(o.g,{className:r()(s().ndsCellStandard,E&&s().isTwoLines,k&&s().noPaddingLeft,C&&s().noPaddingRight,t),"data-test":i,divider:a,children:[j&&(0,n.jsx)("span",{className:r()(s().leadingSpan),children:j}),(0,n.jsx)("span",{className:r()(s().textSpan,l&&s().ellipseLineSpan),children:w}),T&&(0,n.jsx)("span",{className:r()(s().trailingSpan,E&&s().twoLinesSpan),children:T})]})};y.displayName="CellStandard"}}]);