"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4399],{21590:(e,t,a)=>{a.d(t,{c:()=>o});var i=a(14232),n=a(15184);let l="SHOULD_OPEN_CONTENT_DRAWER_FROM_STORAGE",o=()=>{let[e,t]=(0,i.useState)(!1),a=(0,i.useCallback)(()=>{n.sZ.remove(l),t(!1)},[]),o=(0,i.useCallback)(async()=>!!await n.sZ.get(l),[]),s=(0,i.useCallback)(e=>(a(),n.sZ.set(l,e??!0)),[a]);return(0,i.useEffect)(()=>{(async()=>{e||t(await o())})()},[o,t,e]),(0,i.useMemo)(()=>[e,{clearShouldOpenFromStorage:a,setShouldOpenFromStorage:s}],[a,e,s])}},26747:(e,t,a)=>{a.d(t,{P:()=>v});var i=a(37876),n=a(14232),l=a(75684),o=a(29993),s=a(91597),r=a(46826),d=a(81414),c=a(50561),m=a(56900),p=a(5614),h=a(53514),g=a(10038),u=a(33205),x=a(16546),b=a(75186),k=a(35333),f=a(5523),_=a(69267),y=a(77232),C=a(91466);let j=(0,y.I4)(C.k).withConfig({componentId:"sc-c7d96ee5-0"})(["z-index:5;"]);var w=a(21590);let v=e=>{let{blockIndex:t=0,children:a,circle360:y,className:C,componentId:v,linkType:N,metadata:I,order:S,shoppableDrawerData:$}=e,T=(0,d.z1)(),E=(0,l.X)({key:"managedContentFlyoutShoppabledrawer"}),{isBot:B}=(0,n.useContext)(s.B.Context),[z,{clearShouldOpenFromStorage:R,setShouldOpenFromStorage:D}]=(0,w.c)(),L=(0,p.V)(),F=(0,h.qf)(),[O,{open:H}]=(0,c.l)(),[P,{open:U}]=(0,m.o)(),[V,W]=(0,n.useState)(!1),{asPath:A}=(0,k.rd)(),M=(0,b.flags)("GUEST_LOGIN_CHECKER_ENABLED"),G=document?.referrer?.toLowerCase().indexOf("target.com/login")>0,Z=(0,n.useCallback)(()=>{(0,u.WG)(x.RJ)},[]),[J,{open:K,close:q}]=(0,o.e)({type:"drawer",shouldStack:!0,ModalProps:{onCloseClick:()=>{q()}}}),Q=(0,n.useCallback)(e=>{e.stopPropagation();let a=I?.components?.[0],i={component:a?.title?`${a?.id} || ${a?.title}`:a?.id,componentType:a?.type_name,contentType:a?.content_type,name:a?.title??a?.id,position:S?.toString()};"shoppable_drawer"===N&&(T.trackEvent({guest:{eventType:"customInteraction"},customInteraction:{type:"click",value:`${v}_ShoppableDrawerOpen_${t+1}`}}),K()),y?.sub_options==="buy-membership"&&((0,d.cW)({contentClick:i}),U()),y?.sub_options==="manage-preferred-shoppers"&&(L&&F?((0,d.cW)({contentClick:i}),H()):(D(!0),(0,g.Jv)()))},[I?.components,S,N,y?.sub_options,T,v,t,K,U,L,F,H,D]);(0,n.useEffect)(()=>{y?.sub_options==="manage-preferred-shoppers"&&G&&M&&!A.includes("code=")&&W(!0)},[A,y,M,G]);let X=(0,n.useCallback)(()=>{L&&(F?G&&M?V&&(H(),R()):(H(),R()):(0,g.Jv)())},[R,V,L,F,M,G,H]);if((0,n.useEffect)(()=>{y?.sub_options==="manage-preferred-shoppers"&&z&&G&&X()},[X,y,G,z]),!a)return null;if("shoppable_drawer"!==N&&"circle360"!==N||!(0,n.isValidElement)(a))return(0,i.jsx)(i.Fragment,{children:a});let Y=(0,n.cloneElement)(a,{storycardChildren:(0,i.jsx)(j,{onClick:Q}),onStoryblockImageContainerButtonClick:Q});return y?.sub_options==="buy-membership"?(0,i.jsxs)("div",{className:C,children:[Y,(0,i.jsx)(P,{onAfterCloseSuccessfulLogin:U,onClose:Z,onSuccessfulLogin:U})]}):y?.sub_options==="manage-preferred-shoppers"?(0,i.jsxs)("div",{className:C,children:[Y,(0,i.jsx)(O,{})]}):(0,i.jsxs)("div",{children:[Y,B?(0,i.jsx)(_.E,{shoppableDrawerData:$}):(0,i.jsx)(J,{headingText:$?.headline??"Explore items",pageIdKey:E,children:(0,i.jsx)(f.p,{addToCartTrackingPlacementType:r.my.StoryblockShoppableDrawer,componentId:v,shoppableDrawerData:$??{}})})]})};v.displayName="StoryblockShoppableDrawerWrapper"},54848:(e,t,a)=>{a.d(t,{Z:()=>O});var i=a(37876),n=a(14232),l=a(59605),o=a(50743),s=a(15039),r=a.n(s),d=a(90858),c=a(68958),m=a(77232),p=a(5677),h=a(80608),g=a(65651),u=a(82018);let x=e=>{let t,{className:a,buttonColor:n,buttonUrl:l,buttonText:o,buttonTag:s,dataIndex:r,onClick:d,textAlignment:c="left"}=e,m={};switch(n){case"default":case"white":default:t=p.nR;break;case"primary":t=p.$$;break;case"darkRed":m.variant="red",t=h.F;break;case"darkGray":m.variant="dark",t=h.F}return(0,i.jsx)(p.fv,{className:`${a} mediaBlock--button h-text-${c}`,xs:!0,children:(0,i.jsx)(t,{"data-index":r,"data-lnk":s,href:l,onClick:d,role:l?"link":"button",...m,children:(0,g.V)(o,"span")})})};x.displayName="StoryblockButton";let b=(0,m.I4)(x).withConfig({componentId:"sc-d3d40051-0"})(["",";margin:0 "," ",";flex-grow:0;flex-basis:auto;@media (min-width:","){margin-bottom:0;}"],e=>e.hasShoppableDrawer?`padding-top: ${u.xe.generic.x3}`:`padding-top: ${u.xe.generic.x4};`,u.xe.generic.x4,u.xe.generic.x4,u.fi.md);var k=a(99537),f=a(60474),_=a(13511),y=a(70065),C=a(33980);let j=m.I4.div.withConfig({componentId:"sc-1570c078-0"})(["--filmstrip-item-spacing:0;--filmstrip-button-dodge:0;--filmstrip-button-width:32px;"]),w=m.I4.div.withConfig({componentId:"sc-1570c078-1"})(["position:relative;width:100%;padding:",";a{display:block;color:",";}"],u.xe.generic.x1,u.Tj.palette.gray.darkest),v=m.I4.div.withConfig({componentId:"sc-1570c078-2"})(["position:absolute;bottom:20px;text-align:center;width:100%;line-height:1.1;@media (min-width:0){.headline{font-size:",";}.subhead{font-size:",";}}@media (min-width:","){.headline{font-size:",";}.subhead{font-size:",";}}@media (min-width:","){.headline{font-size:",";}.subhead{font-size:",";}}@media (min-width:","){.headline{font-size:","px;}.subhead{font-size:","px;}}"],(0,C.Bi)(u.fi.sm,C.$3.md),(0,C.Bi)(u.fi.sm,C.$3.sm),u.fi.md,(0,C.Bi)(u.fi.md,C.$3.sm),(0,C.Bi)(u.fi.md,C.$3.xs),u.fi.lg,(0,C.Bi)(u.fi.lg,C.$3.sm),(0,C.Bi)(u.fi.lg,C.$3.xs),u.fi.xl,C.$3.lg,C.$3.sm),N=m.I4.div.withConfig({componentId:"sc-1570c078-3"})(["margin:0 ",";flex-grow:1;color:",";a{text-decoration:underline;&:focus{text-decoration:none;outline:1px dashed ",";}}"],u.xe.generic.x4,u.Tj.palette.gray.darkest,u.Tj.palette.gray.darkest),I=m.I4.button.withConfig({componentId:"sc-1570c078-4"})(["",";margin-bottom:auto;width:100%;&:hover,&:focus{text-decoration:underline;}"],e=>e.hasBody&&`padding-bottom: ${u.xe.generic.x4};`),S=(0,m.I4)(y.N).withConfig({componentId:"sc-1570c078-5"})(["flex-grow:1;display:block;"]);function $(e){let{aspectRatio:t,image:a}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.V,{alt:a.image?.alt,aspectRatio:t,src:a.image?.url}),(0,i.jsxs)(v,{children:[a.head&&(0,g.V)(a.head,"span","h-text-bold headline"),a.subhead&&(0,g.V)(a.subhead,"p","subhead")]})]})}function T(e){let{aspectRatio:t,image:a}=e;return(0,i.jsx)(w,{children:a.link_url?(0,i.jsx)(_.N,{"data-lnk":a.link_tag,href:a.link_url,children:(0,i.jsx)($,{aspectRatio:t,image:a})}):(0,i.jsx)($,{aspectRatio:t,image:a})})}$.displayName="FilmstripItemContent",T.displayName="FilmstripItem";let E=e=>{let{children:t,className:a}=e;return(0,i.jsx)("div",{className:a,children:t})};E.displayName="StoryblockImageContainer";let B=(0,m.I4)(E).withConfig({componentId:"sc-422a9f7e-0"})(["width:100%;display:block;height:auto;padding-top:",";",";",";"],u.xe.generic.x4,e=>"shoppable_drawer"===e.buttonType&&"flex-grow: 1;",e=>e.hasHorizontalSpacing?` padding-left: ${u.xe.generic.x4}; padding-right: ${u.xe.generic.x4}; @media (min-width: ${u.fi.md}) { padding: ${u.xe.generic.x4} ${u.xe.generic.x4} 0; }`:null);B.displayName="StyledStoryblockImageContainer";let z=e=>{let{className:t,aspectRatio:a,images:n}=e;return(0,f.p)()?(0,i.jsx)(j,{children:(0,i.jsx)(k.H,{alignItems:"carousel",className:t,hasNativeScrolling:!1,hasPaginationDots:!0,children:n?.map((e,t)=>(0,i.jsx)(T,{aspectRatio:a,image:e},t))})}):(0,i.jsx)(B,{className:"h-padding-h-tight h-margin-b-tight",children:(0,i.jsx)(k.V,{alt:n?.[0]?.image?.alt,aspectRatio:a,src:n?.[0]?.image?.url})})};z.displayName="StoryblockCarousel";var R=a(40123),D=a.n(R);let L=e=>D()(e)?[]:[e.image_path_xl&&{media:u.fi.xl,imageUrl:e.image_path_xl},e.image_path_lg&&{media:u.fi.lg,imageUrl:e.image_path_lg},e.image_path_md&&{media:u.fi.md,imageUrl:e.image_path_md},e.image_path&&{media:"0px",imageUrl:e.image_path}].filter(Boolean);var F=a(55662);let O=e=>{let t,{button_color:a,hasHorizontalSpacing:s,image_aspect_ratio:m,image_aspect_ratio_md:p,index:h,item:g,storycardChildren:u,text_alignment:x,onClick:k,onStoryblockButtonClick:f,onStoryblockImageContainerButtonClick:_,image_corners_rounded:y}=e,{trackClick:C}=(0,d.f)(),j=(0,c._)(),w=j.components[0]?.componentId,v="video"===g.link_type?g.video?.source?.[0]?.path:g.link_url,$=j.components[0]?.placementId,T=g.link_type,E=g.image&&Object.keys(g.image).some(e=>e.includes("image_path")),R=!!("url"===g.link_type&&g.link_url),{screenMd:D}=(0,o.e)(),O=e=>{C.track({clickType:"CONTENT",...v?{element:{id:v,type:"LINK"}}:void 0,featureType:"CONTENT_TILE",slingshot:{componentId:w??"",placementId:$}}),k?.(e)},H=e=>(0,i.jsx)("div",{className:"h-margin-b-tight",children:(0,i.jsx)(F.Q,{altText:g?.image?.image_alt_text,cardSizes:{base:m,mediumUp:p},dataLnk:g.link_tag,headline:g?.image?.image_headline,image_corners_rounded:y,images:L(g.image),index:h,link_type:g.link_type,onClick:O,secondary_image:D?L(g.secondary_image):void 0,subhead:g?.image?.image_subhead,tagName:e?"div":null,textPosition:g?.image?.image_text_alignment,textPositionMd:g?.image?.image_text_alignment_md,url:g.link_url,video:g.video,children:u})}),P=()=>(0,i.jsxs)(N,{className:r()("mediaBlock mediaBlock-story",{[`h-text-${x}`]:x,[`mediaBlock-${x}`]:x,[`mediaBlock-${m}`]:m,[`mediaBlock-${p}-md`]:p}),children:[g.headline&&(0,i.jsx)(l.D,{className:"h-margin-b-none",dangerouslySetInnerHTML:{__html:g.headline},level:3,size:2}),g.details&&(0,i.jsx)("div",{className:"h-text-hd4",dangerouslySetInnerHTML:{__html:g.details}})]}),U=()=>(0,i.jsxs)(i.Fragment,{children:[E&&(0,i.jsx)(B,{hasHorizontalSpacing:s,children:H(R)}),P()]}),V=(0,n.useRef)(null);return t="carousel"===g.type?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(B,{hasHorizontalSpacing:!0,children:(0,i.jsx)(z,{aspectRatio:m,images:g.images})}),P()]}):R?(0,i.jsx)(S,{className:"h-display-flex h-flex-direction-col","data-lnk":g.link_tag??`${w}-${h+1}`,"data-test":"storyblock-storyblockLinkWrapper",href:g.link_url,underline:"invert",children:U()}):"shoppable_drawer"===g.link_type||"circle360"===g.link_type?(0,i.jsxs)(I,{"data-index":h,"data-test":"storyblock-storyblockLinkWrapper",hasBody:!!g.headline||!!g.details,onClick:function(e){_(e,V)},ref:V,type:"button",children:[U(),(0,i.jsx)("span",{className:"h-sr-only",children:" - shows more content"})]}):(0,i.jsxs)(i.Fragment,{children:[E&&(0,i.jsx)(B,{buttonType:T,hasHorizontalSpacing:s,onClick:_,children:H(!1)}),P()]}),(0,i.jsxs)("div",{"data-test":"@web/SlingshotComponents/common/Storyblock",children:[t,g.button_text&&(0,i.jsx)(b,{...e,buttonColor:a,buttonTag:g.button_tag,buttonText:g.button_text,buttonUrl:g.button_url,className:"",hasShoppableDrawer:"shoppable_drawer"===T,onClick:f,textAlignment:x})]})};O.displayName="Storyblock"},60474:(e,t,a)=>{a.d(t,{p:()=>n});var i=a(14232);function n(){let e=(0,i.useRef)(!1),t=(0,i.useCallback)(()=>e.current,[]);return(0,i.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t}},65654:(e,t,a)=>{a.d(t,{F:()=>o});var i=a(82018),n=a(77232);let l={light:i.Tj.palette.white,dark:i.Tj.palette.gray.darkest},o=(0,n.AH)(["",";"],e=>{let{$focusColor:t}=e;return t?` *:focus { outline-color: ${l[t]??l.dark} !important; } `:""})}}]);