1/*! For license information please see 699.chunk.adef30f136ebbeeed508.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunknitro5_app=globalThis.webpackChunknitro5_app||[]).push([[699],{699:(e,t,o)=>{o.d(t,{default:()=>B});var n=o(6166),a=o(3696),i=o(4929),l=o(9803),r=o(62),s=o(774),c=o(4753),d=o(3071),m=o(9540),u=o(4519),p=o(7458),g=o(667),f=o(9824);var b=o(7921),h=o(4072),v=o(8937),k=o(9412),x=o(3460);const y=e=>{const t=(0,r.c)(55),o=(0,b.R)(),n=(0,b.A)().priceTag.Component,{title:i,description:c,price:f,priceType:h,priceTypeX:k,priceTypeY:y,priceTypePercent:P,saveBold:A,saveRegular:O,saveRegularSecond:_,image:R,imageAltText:B,memberDeal:S,hidePriceComponent:z}=e,j=(0,m.tO)(),Y=function(){var e;const[t,o]=(0,a.useState)(0),[n,i]=(0,a.useState)(null===(e=window.visualViewport)||void 0===e?void 0:e.height);return(0,a.useLayoutEffect)(()=>{var e;const t=()=>{var e;const t=null===(e=window.visualViewport)||void 0===e?void 0:e.height;o(t<n?n-t:0),i(t)};return window.visualViewport&&(null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",t)),()=>{var e;null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",t)}},[n]),t}();let H;t[0]!==j||t[1]!==Y?(H=Y>0&&j&&(0,g.un6)()&&{paddingBottom:Y+d.utm},t[0]=j,t[1]=Y,t[2]=H):H=t[2];const X=H,V=G;let W,U,F,N,M,$,q,Q,Z,J,K,ee,te,oe,ne,ae;return t[3]!==e?(W=()=>e.closeLightbox(),t[3]=e,t[4]=W):W=t[4],t[5]!==S?(U=!!S&&a.createElement(D,null),t[5]=S,t[6]=U):U=t[6],t[7]!==R||t[8]!==B?(F=!!R&&a.createElement(s.I4.Div,null,a.createElement(E,{src:R,ratio:u.w.OneToOne,alt:null!=B?B:""})),t[7]=R,t[8]=B,t[9]=F):F=t[9],t[10]!==i?(N=a.createElement(T,null,i),t[10]=i,t[11]=N):N=t[11],t[12]!==c?(M=a.createElement(C,null,c),t[12]=c,t[13]=M):M=t[13],t[14]!==N||t[15]!==M?($=a.createElement("div",null,N,M),t[14]=N,t[15]=M,t[16]=$):$=t[16],t[17]!==j||t[18]!==o||t[19]!==A?(q=!!o&&!!A&&a.createElement(v.A,{amount:A,size:j?"reduced":"standard",border:!0}),t[17]=j,t[18]=o,t[19]=A,t[20]=q):q=t[20],t[21]!==n||t[22]!==z||t[23]!==f||t[24]!==h||t[25]!==P||t[26]!==k||t[27]!==y?(Q=!z&&a.createElement(n,{amount:f,priceType:h,priceTypeX:k,priceTypeY:y,priceTypePercent:P}),t[21]=n,t[22]=z,t[23]=f,t[24]=h,t[25]=P,t[26]=k,t[27]=y,t[28]=Q):Q=t[28],t[29]!==O?(Z=!!O&&a.createElement(C,null,O),t[29]=O,t[30]=Z):Z=t[30],t[31]!==j||t[32]!==o||t[33]!==A?(J=!o&&!!A&&a.createElement(v.A,{amount:A,size:j?"reduced":"standard"}),t[31]=j,t[32]=o,t[33]=A,t[34]=J):J=t[34],t[35]!==_?(K=!!_&&a.createElement(C,null,_),t[35]=_,t[36]=K):K=t[36],t[37]!==J||t[38]!==K||t[39]!==q||t[40]!==Q||t[41]!==Z?(ee=a.createElement(L,null,q,Q,Z,J,K),t[37]=J,t[38]=K,t[39]=q,t[40]=Q,t[41]=Z,t[42]=ee):ee=t[42],t[43]===Symbol.for("react.memo_cache_sentinel")?(te=a.createElement(x.A,{type:"info",heading:(0,g.TlY)("/Campaign/CustomOfferLightbox/ProductInfoHeading")},(0,g.TlY)("/Campaign/CustomOfferLightbox/ProductInfoText")),t[43]=te):te=t[43],t[44]===Symbol.for("react.memo_cache_sentinel")?(oe=a.createElement(p._s,{onClick:V,gtmButtonData:{buttonText:(0,g.TlY)("/Campaign/CustomOfferLightbox/FindStoreButton"),context:"View all stores",eventType:l.LU.Navigation,eventGroup:l._B.Modal}},(0,g.TlY)("/Campaign/CustomOfferLightbox/FindStoreButton")),t[44]=oe):oe=t[44],t[45]!==ee||t[46]!==U||t[47]!==F||t[48]!==$?(ne=a.createElement(w,null,U,F,$,ee,te,oe),t[45]=ee,t[46]=U,t[47]=F,t[48]=$,t[49]=ne):ne=t[49],t[50]!==X||t[51]!==e.showLightbox||t[52]!==W||t[53]!==ne?(ae=a.createElement(I,{isOpen:e.showLightbox,onClose:W,css:X,"data-test-id":"custom-offer-lightbox"},ne),t[50]=X,t[51]=e.showLightbox,t[52]=W,t[53]=ne,t[54]=ae):ae=t[54],ae},I=(0,s.I4)(c.A,{maxWidth:({isCompact:e})=>e?360:470}),w=s.I4.div({position:"relative",display:"flex",flexDirection:"column",gap:({isCompact:e,tokens:t})=>e?t.spacing.dimension5.small:t.spacing.dimension5.medium}),E=(0,s.I4)(i.A,{objectFit:"cover"}),T=s.I4.div((0,h.L)("headingSection",{mobile:"small",desktop:"medium"}),(0,d.GGP)(2),{color:e=>e.tokens.color.dominant.text.default}),C=s.I4.div((0,h.L)("description",{mobile:"small",desktop:"small"}),(0,d.GGP)(2),{color:e=>e.tokens.color.neutral.text.subtle}),L=s.I4.div({display:"flex",flexDirection:"column",gap:e=>e.tokens.spacing.dimension2.medium}),D=(0,s.I4)(k.i,{position:"absolute",top:0,left:0,width:"100%",maxWidth:({isCompact:e})=>e?91:120});function G(e){(0,g.c88)((0,f.ul)().url),e.stopPropagation()}var P=o(121),A=o(8858);function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},O.apply(null,arguments)}const _="--custom-offer-card-scale",R=(0,s.I4)((0,s.yd)(e=>{var{component:t,className:o,size:i="default"}=e,r=(0,n.__rest)(e,["component","className","size"]);const{title:s,description:c,price:d,priceType:u,priceTypeX:p,priceTypeY:g,priceTypePercent:f,saveBold:h,saveRegular:k,saveRegularSecond:x,image:I,link:w,testId:E,backgroundImage:T,imageAltText:C,theme:L,memberDeal:D,hidePriceComponent:G}=r,P=(0,b.R)(),A=(0,m.tO)(),_="compact"===i,R=(0,b.A)().priceTag.Component,[B,J]=(0,a.useState)(!1),K=(0,a.useCallback)(e=>{null==e||e.stopPropagation(),J(!1)},[]);return a.createElement(t,{className:o,"data-test-id":E},a.createElement(S,O({},w?{to:w,gtmButtonData:{linkText:s,linkPath:null==w?void 0:w.url,context:"Custom offer card link",eventType:l.LU.Redirect,eventGroup:l._B.General}}:{onClick:()=>J(!0),gtmButtonData:{buttonText:s,context:"Custom offer card button",eventType:l.LU.Open,eventGroup:l._B.Modal}},{css:["brand"===L&&z,_&&j]}),!!T&&a.createElement(q,null,a.createElement(Q,{src:T,alt:""})),a.createElement(Y,null,a.createElement(X,null,!!D&&a.createElement(Z,null),!!P&&!!h&&a.createElement(v.A,{amount:h,size:_||A?"reduced":"standard",border:"default"===L}),!G&&a.createElement(R,{amount:d,priceType:u,priceTypeX:p,priceTypeY:g,priceTypePercent:f,border:"brand"===L,size:_?"small":"responsive"}),!!k&&a.createElement(V,null,k),!P&&!!h&&a.createElement(v.A,{amount:h,size:_||A?"reduced":"standard"}),!!x&&a.createElement(V,null,x)),!!I&&a.createElement(W,null,a.createElement("div",null,a.createElement(U,{src:I,alt:C||""})))),!(!s&&!c)&&a.createElement(H,null,!!s&&a.createElement(F,{css:["brand"===L&&N,_&&M]},s),!!c&&a.createElement($,null,c)),!w&&a.createElement(y,O({},r,{showLightbox:B,closeLightbox:K,memberDeal:D,hidePriceComponent:G}))))}),{width:"100%",height:"100%"}),B=(0,P.pG)(R),S=(0,s.I4)(p.pH,(0,A.Gh)({color:e=>e.tokens.color.neutral.text.subtle}),{position:"relative",display:"flex",flexDirection:"column",gap:e=>e.tokens.spacing.dimension2.medium,padding:{xy:({isCompact:e,tokens:t})=>
2e?t.spacing.dimension5.small:t.spacing.dimension6.medium},backgroundColor:e=>e.tokens.color.dominant.surface.default,color:e=>e.tokens.color.neutral.text.subtle,borderRadius:e=>e.tokens.borderRadius.md,width:"100%",height:"100%",overflow:"hidden",[_]:1},(0,d.TUX)({":hover":{[_]:d.$YH}})),z=(0,s.I4)((0,A.Gh)({color:e=>e.tokens.color.dominant.base.contrast.default}),{backgroundColor:e=>e.tokens.color.dominant.base.default,color:e=>e.tokens.color.dominant.base.contrast.default,":hover":{color:e=>e.tokens.color.dominant.base.contrast.default}}),j=(0,s.I4)({padding:{xy:e=>e.tokens.spacing.dimension5.small}}),Y=s.I4.div({position:"relative",display:"flex",flexGrow:1,gap:e=>e.tokens.spacing.dimension4.medium}),H=s.I4.div({position:"relative"}),X=s.I4.div({display:"flex",flexDirection:"column",justifyContent:"flex-end",gap:e=>e.tokens.spacing.dimension2.medium,flex:{grow:1,shrink:0,basis:"30%"}}),V=s.I4.div((0,h.L)("description",{mobile:"small",desktop:"small"})),W=s.I4.div({display:"flex",alignItems:"center",justifyContent:"center",flex:{grow:1,shrink:1,basis:"70%"},minWidth:0}),U=(0,s.I4)(i.A,(0,d.X6j)({property:"transform"}),(0,d.TUX)({transform:`scale(var(${_}))`})),F=s.I4.div((0,h.L)("headingTitle",{mobile:"small",desktop:"medium"}),(0,d.GGP)(2),{color:e=>e.tokens.color.dominant.text.default}),N=(0,s.I4)({color:e=>e.tokens.color.dominant.base.contrast.default}),M=(0,h.L)("headingTitle",{mobile:"small",desktop:"small"}),$=s.I4.div((0,h.L)("description",{mobile:"small",desktop:"small"}),(0,d.GGP)(2)),q=s.I4.div({position:"absolute",top:0,left:0,right:0,bottom:0}),Q=(0,s.I4)(i.A,{width:"100%",height:"100%",objectFit:"cover"}),Z=(0,s.I4)(k.i,{width:"100%",maxWidth:({isCompact:e})=>e?91:120,marginBottom:"auto"})},3460:(e,t,o)=>{o.d(t,{A:()=>g});var n=o(6166),a=o(3696),i=o(774),l=o(6215),r=o(3071),s=o(4702),c=o(4072);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},d.apply(null,arguments)}const m=e=>(0,i.I4)({backgroundColor:t=>t.tokens.color[e].surface.tinted,border:{xy:{color:t=>t.tokens.color[e].border.default}},color:t=>t.tokens.color[e].text.default}),u=e=>(0,i.I4)({color:t=>t.tokens.color[e].text.subtle}),p={danger:{Icon:l.Gq,iconDecorator:u("danger"),decorator:m("danger")},warning:{Icon:l.HZ,iconDecorator:u("warning"),decorator:m("warning")},success:{Icon:l.Qb,iconDecorator:u("success"),decorator:m("success")},info:{Icon:l.wl,iconDecorator:u("info"),decorator:m("info")}},g=(0,i.I4)(e=>{var{type:t,heading:o,children:l}=e,r=(0,n.__rest)(e,["type","heading","children"]);const{Icon:s,iconDecorator:c,decorator:m}=p[t];return a.createElement(i.I4.Div,d({},r,{css:m}),a.createElement(s,{"aria-hidden":"true",focusable:"false",css:(0,i.I4)(h,c)}),a.createElement(f,null,!!o&&a.createElement(b,null,o),l))},Object.assign({display:"flex",flexWrap:"nowrap",gap:e=>e.tokens.spacing.dimension4.small,padding:{xy:e=>e.tokens.spacing.dimension5.small},border:{xy:{width:r.yLY,style:"solid"}},borderRadius:e=>e.tokens.borderRadius.md},(0,s.$_)(r._fM,{gap:e=>e.tokens.spacing.dimension4.medium,padding:{xy:e=>e.tokens.spacing.dimension5.medium}}))),f=i.I4.div((0,c.L)("bodyDefaultReduced",{desktop:"small"}),{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center",alignItems:"flex-start",gap:e=>e.tokens.spacing.dimension1.small}),b=i.I4.div((0,c.L)("headingCaptionBold",{desktop:"small"})),h=(0,i.I4)({flexShrink:0,width:21,height:21})},8937:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(62),a=o(3696),i=o(774),l=o(4072);const r=(0,i.I4)(e=>{const t=(0,n.c)(10),{amount:o,size:i,border:l}=e,r=void 0===i?"standard":i,p=void 0!==l&&l;let g;t[0]!==r?(g=()=>{switch(r){case"reduced":return d;case"standard":return m;case"emphasized":return u;default:return}},t[0]=r,t[1]=g):g=t[1];const f=g;let b;t[2]!==f?(b=f(),t[2]=f,t[3]=b):b=t[3];const h=p&&c;let v,k;return t[4]!==b||t[5]!==h?(v=[b,h],t[4]=b,t[5]=h,t[6]=v):v=t[6],t[7]!==o||t[8]!==v?(k=a.createElement(s,{css:v,"data-test-id":"saved-amount"},o),t[7]=o,t[8]=v,t[9]=k):k=t[9],k}),s=i.I4.div({width:"fit-content",padding:{xy:e=>e.tokens.spacing.dimension2.small},backgroundColor:e=>e.savedAmount.backgroundColor,color:e=>e.savedAmount.color,borderRadius:e=>e.tokens.borderRadius.default,whiteSpace:"nowrap",textTransform:"uppercase"}),c=(0,i.I4)({border:{xy:{width:e=>e.tokens.borderWidth.focus,style:"solid",color:e=>e.tokens.color.dominant.border.strong}}}),d=(0,i.I4)((0,l.L)("campaignReduced",{mobile:"small",desktop:"small"}),{lineHeight:"11px"}),m=(0,i.I4)((0,l.L)("campaignStandard",{mobile:"small",desktop:"small"}),{lineHeight:"17px"}),u=(0,i.I4)((0,l.L)("campaignEmphasized",{mobile:"small",desktop:"small"}),{lineHeight:"24px"})}}]); 3//# sourceMappingURL=699.chunk.adef30f136ebbeeed508.js.map
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.