1"use strict";(self.webpackChunkfrontend_v3=self.webpackChunkfrontend_v3||[]).push([[2522],{99227:function(e,t,n){var i=n(1413),r=n(45987),o=n(28381),a=n(6431),s=n(57145),l=n(29445),c=n(9044),u=n(50221),d=n(841),f=n(92766),h=n(29343),p=["label","to","forceTo"];t.Z=function(e){var t=(0,a.$)().t,n=e.label,g=e.to,m=e.forceTo,v=(0,r.Z)(e,p),x=d.Z.useContextDataAttrs(),w=(0,l.v9)((function(e){return e.activePath})),Z=(0,s.k6)(),j=(0,o.useCallback)((function(){var e=Z.location.state;m?Z.push(m):null!==e&&void 0!==e&&e.from?Z.push(e.from):"PUSH"===Z.action?Z.goBack():w?Z.push(w):Z.push(g)}),[w,Z,g,m]);return(0,h.jsx)(u.Z,(0,i.Z)((0,i.Z)((0,i.Z)({},x),{},{"data-alooma-element":f.D8.LINK_GO_BACK},v),{},{onClick:j,Icon:c.pfV,iconPosition:"left",type:"text",children:"string"===typeof n&&n.startsWith("app:")?t(n):n}))}},41144:function(e,t,n){n.d(t,{Z:function(){return f}});var i=n(1413),r=n(45987),o=n(45052),a=n(90818),s=a.ZP.svg.withConfig({displayName:"Svg"})([""]),l=a.ZP.rect.withConfig({displayName:"Rect"})([""]),c=n(29343),u=["color","width","height"],d=function(e){var t=e.color,n=e.width,o=e.height,a=(0,r.Z)(e,u);return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(s,{xmlns:"http://www.w3.org/2000/svg",width:n,height:o,children:(0,c.jsx)(l,(0,i.Z)((0,i.Z)({},a),{},{width:n,height:o,fill:t}))})})};d.defaultProps={attrs:{},color:o.Cj,width:"100%",height:"100%"};var f=d},8690:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(90818).ZP.div.withConfig({displayName:"StyledHeightController"})(["margin-top:","%;width:100%;"],(function(e){return e.$itemRelativeHeight})),r=n(29343),o=function(e){var t=e.itemRelativeHeight,n=void 0===t?100:t;return(0,r.jsx)(i,{$itemRelativeHeight:n})}},23467:function(e,t,n){n.d(t,{Z:function(){return I}});var i=n(1413),r=n(28381),o=n(29445),a=n(1845),s=n(6431),l=n(2538),c=n(86794),u=n(90818),d=n(40101),f=n(841),h=n(92766),p=n(16705),g=n(8355),m=n(79583),v=n(41144),x=n(69299),w=n(8690),Z={lightConfig:{description:"primary1",title:"neutral2"},darkConfig:{description:"neutral6",title:"neutral6"}},j=n(56261),P=n(6317),C=n(16727),y=u.ZP.a.withConfig({displayName:"CardContainer"})(["display:flex;justify-content:flex-start;align-items:flex-start;flex-direction:column;margin:0;gap:8px;"]),b=u.ZP.div.withConfig({displayName:"ImageContainer"})(["display:flex;width:100%;overflow:hidden;border-radius:10px;position:relative;& > .lazy-load-image-loaded{overflow:hidden;position:absolute;border-radius:10px;width:100%;height:100%;z-index:5;}"]),_=(0,u.ZP)(P.Z).withConfig({displayName:"StyledStoreLogo"})(["position:absolute;bottom:16px;left:16px;z-index:6;"]),k=(0,u.ZP)(j.LazyLoadImage).withConfig({displayName:"BrandImage"})(["overflow:hidden;object-fit:cover;object-position:center;border-radius:10px;width:100%;height:100%;z-index:5;"]),S=(0,u.ZP)(C.Z).withConfig({displayName:"MakerContainer"})(["position:absolute;left:0;top:20px;z-index:6;"]),N=(0,u.ZP)(l.ZT).withConfig({displayName:"StyledTypography"})(["overflow-wrap:anywhere;"]),V=n(29343),I=function(e){var t=e.newSale,n=t.ad_package_id,j=t.retailer_name,P=t.stake,C=t.preview_image_uri,I=t.logo_image_uri,L=t.dashboard_image_h2_text,E=t.media_type,M=(0,s.$)().t,T=f.Z.useContextDataAttrs(),F=(0,r.useContext)(u.Ni).color,z=(0,o.v9)(x.n5),A=(0,a.I5)({packageId:n,userId:z,ruleName:j,source:d.$.dashboard,cashback:!(!z||!P)});return(0,V.jsxs)(y,(0,i.Z)((0,i.Z)({target:"_blank",rel:"nofollow",href:A},T),{},{"data-alooma-element":h.D8.REDIRECT_LINK_TO_PACKAGE,children:[(0,V.jsxs)(b,{direction:"column",alignItems:"flex-start",justifyContent:"flex-start",children:[(0,V.jsx)(k,{onError:p.Z,alt:j,src:null!==C?C:g.PW,"data-error-src":g.PW,placeholder:(0,V.jsx)(v.Z,{}),effect:m.h,threshold:m.C}),(0,V.jsx)(w.Z,{itemRelativeHeight:85}),(0,V.jsxs)(S,{direction:"column",spacing:8,alignItems:"flex-start",children:[!!E&&(0,V.jsx)(c.Z,{rounding:"right",children:M("app:".concat(E))}),!!P&&(0,V.jsx)(c.Z,{rounding:"right",children:M("app:earnKarmaCashShort",{percent:P})})]}),(0,V.jsx)(_,{src:I,alt:j})]}),(0,V.jsxs)(l.Kq,{direction:"column",alignItems:"flex-start",justifyContent:"flex-start",spacing:8,fullWidth:!0,children:[(0,V.jsx)(l.ZT,{variant:"labelMedium",noWrap:!0,color:Z[F].title,children:j}),!!L&&(0,V.jsx)(N,{variant:"h6",color:Z[F].description,children:L})]})]}))}},21914:function(e,t,n){var i=n(28381),r=n(6431),o=n(82734),a=n(9044),s=n(2538),l=n(75509),c=n(63449),u=n(29343);t.Z=function(e){var t=e.title,n=e.withExploreButton,d=e.resetState,f=(0,r.$)().t,h=(0,i.useCallback)((function(){return d&&d()}),[d]);return(0,u.jsxs)(c.W,{children:[(0,u.jsx)(a.oig,{width:108,height:108}),(0,u.jsx)(s.ZT,{variant:"h3",tMargin:25,bMargin:8,children:f(t)}),n?(0,u.jsx)(s.zx,{as:o.rU,to:l.yy.RETAILERS,size:"medium",onClick:h,children:f("app:exploreStores")}):null]})}},63449:function(e,t,n){n.d(t,{W:function(){return i}});var i=n(90818).ZP.section.withConfig({displayName:"Container"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;min-height:315px;padding-bottom:80px;margin-bottom:80px;width:100%;"])},4287:function(e,t,n){var i=n(1413),r=n(70885),o=n(45987),a=n(28381),s=n(2538),l=n(71046),c=n.n(l),u=n(54447),d=n(29343),f=["children","fetchMore","isFetching","left"];
1t.Z=function(e){var t=e.children,n=e.fetchMore,l=e.isFetching,h=e.left,p=(0,o.Z)(e,f),g=(0,a.useState)(),m=(0,r.Z)(g,2),v=m[0],x=m[1],w=(0,u.Z)().clientHeight,Z=(0,a.useCallback)((function(){!l&&h&&n()}),[n,l,h]);return(0,a.useEffect)((function(){var e=c()((function(){v&&(v.getBoundingClientRect().bottom<w&&Z())}),100);return window.addEventListener("scroll",e,{passive:!1}),function(){window.removeEventListener("scroll",e,{passive:!1})}}),[w,Z,v]),(0,d.jsx)(s.Kq,(0,i.Z)((0,i.Z)({ref:x},p),{},{children:t}))}},70558:function(e,t,n){var i=n(1413),r=n(45987),o=n(2538),a=n(29343),s=["children","columnGap","columns","rowGap"];t.Z=function(e){var t=e.children,n=e.columnGap,l=void 0===n?30:n,c=e.columns,u=void 0===c?3:c,d=e.rowGap,f=void 0===d?30:d,h=(0,r.Z)(e,s);return(0,a.jsx)(o.rj,(0,i.Z)((0,i.Z)({columnGap:l,rowGap:f,columns:u,fullWidth:!0},h),{},{children:t}))}},8186:function(e,t,n){n.r(t),n.d(t,{default:function(){return V}});var i=n(28381),r=n(29445),o=n(2538),a=n(99227),s=n(75509),l=n(36334),c=n(65239),u=n(31018),d=n(841),f=n(21914),h=n(49897),p=n(44300),g=n(26285),m=n(4287),v=n(7855),x=n(48253),w=n(29343),Z=function(e){var t=e.children,n=(0,g.Z)(h.U),i=(0,r.v9)(p.s$),o=i.isFetching,a=i.page,s=i.newSalesLeft,l=(0,x.Ph)(v.T.biscotti);return(0,w.jsx)(m.Z,{fetchMore:function(){return n({page:a+1,biscotti:l})},isFetching:o,left:s,spacing:38,direction:"column",children:t})},j=n(24907),P=n(67569),C=n(23467),y=n(70558),b=function(){var e=(0,r.v9)(p.qw),t=(0,r.v9)(p.Vz),n=(0,P.b)(),i=(0,j.Z)(e,n,t),o=i.items,a=i.slidesPerView;return o.length?(0,w.jsx)(Z,{children:(0,w.jsx)(y.Z,{columns:a,rowGap:40,children:e.map((function(e){return(0,w.jsx)("div",{children:(0,w.jsx)(d.Z.PackageIdContext.Provider,{value:e.ad_package_id,children:(0,w.jsx)(C.Z,{newSale:e})})},e.ad_package_id)}))})}):(0,w.jsx)(f.Z,{title:"app:couldNotFindStores"})},_=n(77713),k=n(90818),S=k.ZP.div.withConfig({displayName:"Content"})(["width:100%;height:100%;"]),N=k.ZP.div.withConfig({displayName:"BackButtonContainer"})(["margin-bottom:48px;"]),V=function(){var e=(0,r.v9)(p.FQ),t=(0,r.v9)(_.A_),n=(0,x.Ph)(v.T.biscotti),d=(0,g.Z)(h.U);return(0,i.useEffect)((function(){e||d({page:1,biscotti:n})}),[]),(0,w.jsx)(u.$p.Provider,{value:"SALES_page",children:(0,w.jsx)(c.Z,{title:"app:headerSales",showFooter:!1,children:(0,w.jsxs)(S,{children:[(0,w.jsx)(N,{children:(0,w.jsx)(a.Z,{label:t||l.dW,to:s.yy.HOME})}),e?(0,w.jsx)(b,{}):(0,w.jsx)(o.aN,{absolute:!0})]})})})}},36334:function(e,t,n){n.d(t,{Q7:function(){return r},dJ:function(){return o},dW:function(){return i}});var i="app:tooHotToMiss",r="app:popular",o="app:couponsAndDeals"},16705:function(e,t,n){var i=n(87589);t.Z=function(e){var t="".concat(i.L4,"/images/dashboard/placement_image.png");e.target.onerror=null,e.target.src=e.target.dataset.errorSrc||t,e.target.classList.add("--error"),e.target.style.margin=e.target.dataset.errorMargin}},67569:function(e,t,n){n.d(t,{_:function(){return l},b:function(){return c}});var i=n(4942),r=n(1413),o=n(28381),a=n(25052),s={1920:{itemsPerView:5},1440:{itemsPerView:4},1200:{itemsPerView:3},1025:{itemsPerView:3},768:{itemsPerView:2},500:{itemsPerView:1}},l=function(){var e=(0,a.Z)(s);return(0,o.useMemo)((function(){return s[e]}),[e])},c=function(){return(0,o.useMemo)((function(){return Object.keys(s).reduce((function(e,t){return(0,r.Z)((0,r.Z)({},e),{},(0,i.Z)({},t,{slidesPerView:s[t].itemsPerView}))}),{})}),[])}},24907:function(e,t,n){var i=n(28381),r=n(25052),o=4;t.Z=function(e,t,n){var a=(0,r.Z)(t);return(0,i.useMemo)((function(){if(!a)return{items:e,slidesPerView:o};var i=(t[a]||{slidesPerView:o}).slidesPerView;if(!n)return{items:e,slidesPerView:i};var r=e.length%i;return{items:e.slice(0,e.length-r),slidesPerView:i}}),[a,e,t,n])}},44300:function(e,t,n){n.d(t,{FQ:function(){return o},Vz:function(){return s},qw:function(){return a},s$:function(){return l}});var i=n(47416),r=function(e){return e.newSales},o=(0,i.P1)([r],(function(e){return e.loaded})),a=(0,i.P1)([r],(function(e){return e.newSales})),s=(0,i.P1)([r],(function(e){return e.newSalesLeft})),l=(0,i.P1)([r],(function(e){return{isFetching:e.isFetching,page:e.page,newSalesLeft:e.newSalesLeft}}))},77713:function(e,t,n){n.d(t,{A_:function(){return s},FQ:function(){return a},pO:function(){return o}});var i=n(47416),r=function(e){return e.retailersGroupsTitles},o=(0,i.P1)(r,(function(e){return e.titles})),a=(0,i.P1)(r,(function(e){return e.loaded})),s=(0,i.P1)(r,(function(e){return e.marketingCopy}))},50221:function(e,t,n){n.d(t,{Z:function(){return i.Z}});var i=n(99632)},6317:function(e,t,n){n.d(t,{Z:function(){return i.Z}});var i=n(57)}}]); 2//# sourceMappingURL=NewSalesPage.0c6cf840.chunk.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.