1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3da9da9b-79c2-4a2d-9d38-1f21e00abd93",e._sentryDebugIdIdentifier="sentry-dbid-3da9da9b-79c2-4a2d-9d38-1f21e00abd93")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"2b92991d99f92e33e079a8241d5dc3965c249983"},(self.webpackChunkkudos_portal=self.webpackChunkkudos_portal||[]).push([[6590],{28769:(e,t,r)=>{r.d(t,{A:()=>n});const n=r(69584).o},52520:(e,t,r)=>{r.d(t,{f:()=>D,A:()=>P});var n=r(85608),a=r(95372),l=r(64836),o=r(64384),i=r(26105),d=r(47950),s=r(50228),c=r(12243),p=r(41845),h=r(48774),m=r(40242),u=r(86133),g=r(28109),x=r(79390),f=r(14041),v=r(76990),w=r(5902),b=r(22030),y=r(95442);const E=v.Ay.div` 2 position: relative; 3 display: flex; 4 align-items: center; 5 gap: 3px; 6 height: 20px; 7 padding: 0 8px 0 6px; 8 border-radius: 1000px 0 0 1000px; 9 border: 2px solid ${({theme:e})=>e.colors.bg.primary}; 10 background-color: ${({theme:e})=>e.colors.border.accent.yellow}; 11 flex-shrink: 0; 12 margin-right: -2px; 13 z-index: 1; 14`,A=v.Ay.div` 15 position: relative; 16 display: flex; 17 align-items: center; 18 gap: 3px; 19 height: 20px; 20 padding: 0 8px 0 6px; 21 border-radius: 0 1000px 1000px 0; 22 border: 2px solid ${({theme:e})=>e.colors.bg.primary}; 23 background-color: ${({theme:e})=>e.colors.bg.accent.purpleTertiary}; 24 flex-shrink: 0; 25`;var k=r(69223),$=r(43143),S=r(70018),B=r(86406),O=r(58380),C=r(89687);const _=v.Ay.a` 26 display: flex; 27 flex-direction: row; 28 text-decoration: none; 29 color: initial; 30 gap: 16px; 31 align-items: center; 32 padding: 12px 16px; 33 border: 1px solid ${({theme:e})=>e.colors.border.primary}; 34 border-radius: 8px; 35 background: ${({theme:e})=>e.colors.bg.primary}; 36 cursor: pointer; 37 transition: box-shadow 0.1s ease-in-out; 38 39 &:hover&:not(:has(button:hover)) { 40 border: 1px solid ${({theme:e})=>e.colors.border.secondary}; 41 box-shadow: ${({theme:e})=>e.shadows.elevation.z1}; 42 transition: box-shadow 0.1s ease-in-out; 43 } 44 45 @media ${m.z4.maxTablet} { 46 padding: 12px; 47 gap: 12px; 48 } 49`,z=v.Ay.div` 50 flex-shrink: 0; 51 width: 60px; 52 height: 60px; 53 background: ${({theme:e})=>e.colors.bg.primary}; 54 border: 1px solid ${({theme:e})=>e.colors.border.primary}; 55 border-radius: 100px; 56 overflow: hidden; 57 display: flex; 58 justify-content: center; 59 align-items: center; 60 61 @media ${m.z4.maxTablet} { 62 width: 54px; 63 height: 54px; 64 } 65 66 img { 67 width: 100%; 68 height: 100%; 69 } 70 71 svg { 72 width: 36px; 73 height: 36px; 74 } 75`,M=(0,v.Ay)(d.Ye)` 76 align-items: center; 77 gap: 3px; 78 height: 20px; 79 padding: 0 8px; 80 border-radius: 1000px; 81 background-color: ${({theme:e})=>e.colors.bg.accent.purpleTertiary}; 82 flex-shrink: 0; 83 white-space: nowrap; 84`,T=(0,v.Ay)(d.Ye)` 85 align-items: center; 86 gap: 3px; 87 height: 20px; 88 padding: 0 8px 0 6px; 89 border-radius: 1000px; 90 background-color: ${({theme:e})=>e.colors.border.accent.yellow}; 91 flex-shrink: 0; 92 white-space: nowrap; 93`,F=v.Ay.img` 94 width: 18px; 95 height: 11px; 96 border-radius: 2px; 97 object-fit: cover; 98 flex-shrink: 0; 99`,I=(0,v.Ay)(s.A)` 100 padding-left: 16px; 101 padding-right: 16px; 102 white-space: nowrap; 103 @media ${m.z4.maxTablet} { 104 display: none; 105 } 106`,L=(0,v.Ay)(s.A)` 107 padding-left: 16px; 108 padding-right: 16px; 109 110 @media ${m.z4.maxTablet} { 111 height: 32px; 112 width: 32px; 113 padding: 0; 114 display: flex; 115 justify-content: center; 116 align-items: center; 117 border-radius: 100px; 118 ${c.a6} { 119 display: none; 120 } 121 } 122 ${({$active:e,theme:t})=>e&&v.AH` 123 border: 1.5px solid ${t.colors.border.accent.purpleSecondary}; 124 background: ${t.colors.button.secondaryPressed}; 125 color: ${t.colors.text.linkPressed}; 126 svg { 127 path { 128 stroke: ${t.colors.text.linkPressed}; 129 fill: ${t.colors.text.linkPressed}; 130 } 131 } 132 `}; 133`,D=()=>f.createElement(_,{as:"div"},f.createElement(z,null,f.createElement(p.A,{width:"100%",height:"100%",circle:!0})),f.createElement(d.I1,{gap:"2px",flexGrow:1},f.createElement(p.A,{width:"100%",height:"20px"}),f.createElement(p.A,{width:"100%",height:"20px"})),f.createElement(d.Ye,{gap:"12px",alignItems:"center"},f.createElement(p.A,{width:"40px",height:"40px"}),f.createElement(p.A,{width:"100px",height:"40px"}))),P=({merchant:e,onClick:t,withFavoriteButton:r=!0,detailsButtonVariant:s="primary",className:p})=>{var m,D,P,j,H,U;const Y=(0,a.m)(),V=(0,v.DP)(),[Z,N]=(0,f.useState)(e.isFavorite),R=null!==(D=null===(m=e.activeCLOs)||void 0===m?void 0:m.find(e=>e.isCurrentlyEligible))&&void 0!==D?D:null,J=R?(0,u.ro)(R.rewardType,null!==(P=R.amount)&&void 0!==P?P:null):null;(0,f.useEffect)(()=>{N(e.isFavorite)},[e.isFavorite]);const[K]=(0,l.n)(i.dIE),W=r=>{r&&(r.preventDefault(),r.stopPropagation()),w.KudosAnalytics.send("event",{type:o.sV.MERCHANTS_SEE_DETAILS_CLICKED,mixpanelData:{merchantId:e.id}}),t()},G=(0,g.u8)(null==e?void 0:e.boostMultiplierV3,{showBoostLabel:!1,showUpTo:null===(j=null==e?void 0:e.boostMultiplierV3)||void 0===j?void 0:j.showUpTo});return f.createElement(_,{key:e.id,href:`/${b.om.SHOP}/${e.slug}`,onClick:W,className:p},f.createElement(z,null,null!==e.logoThumbnailUri?f.createElement("img",{src:e.logoThumbnailUri,alt:e.name}):f.createElement(y.A,null)),f.createElement(d.I1,{gap:"2px",flexGrow:1},f.createElement(c._Q,null,e.name),Boolean(G)?f.createElement(d.Ye,{gap:"4px",alignItems:"center",style:{flexWrap:"nowrap",overflow:"hidden"}},f.createElement(h.A,{icon:$.A,size:18}),f.createElement(c.a6,{secondary:!0,style:{whiteSpace:"nowrap"}},"Boost ",G," Back"),J&&f.createElement(f.Fragment,null,f.createElement(c.a6,{secondary:!0,style:{whiteSpace:"nowrap"}},"&"),f.createElement(h.A,{icon:S.A,size:18}),f.createElement(c.a6,{style:{color:V.colors.text.link,whiteSpace:"nowrap"}},"Offer"===J?"Linked Offer":`Offer ${J}`))):null),e.isFlashBoost&&R?f.createElement(d.Ye,{alignItems:"center"},f.createElement(E,null,f.createElement(h.A,{icon:B.A,size:14,color:V.colors.text.
133warning}),f.createElement(c.OJ,{style:{color:V.colors.text.warning}},"Flash Boost")),f.createElement(A,null,(null===(H=R.card)||void 0===H?void 0:H.thumbnailUri)?f.createElement(F,{src:R.card.thumbnailUri,alt:""}):f.createElement(h.A,{icon:O.A,size:12,color:V.colors.text.link}),f.createElement(c.OJ,{style:{color:V.colors.text.link}},"Linked Offer"))):e.isFlashBoost&&!R?f.createElement(T,null,f.createElement(h.A,{icon:B.A,size:14,color:V.colors.text.warning}),f.createElement(c.OJ,{style:{color:V.colors.text.warning}},"Flash Boost")):!e.isFlashBoost&&R?f.createElement(M,null,(null===(U=R.card)||void 0===U?void 0:U.thumbnailUri)?f.createElement(F,{src:R.card.thumbnailUri,alt:""}):f.createElement(h.A,{icon:O.A,size:12,color:V.colors.text.link}),f.createElement(c.OJ,{style:{color:V.colors.text.link}},"Linked Offer")):null,f.createElement(d.Ye,{gap:"12px",alignItems:"center"},r&&f.createElement(L,{variant:"secondary",size:"40px",$active:Z,onClick:t=>(0,n.sH)(void 0,void 0,void 0,function*(){t.preventDefault(),t.stopPropagation();const r=!Z;K({variables:{input:{merchantId:e.id,updateType:Z?x.Urf.Delete:x.Urf.Add}}}),N(!Z),w.KudosAnalytics.send("event",{type:o.sV.MERCHANTS_SAVE_MERCHANT,mixpanelData:{merchantId:e.id}}),(0,k._)(Y,e,r)})},f.createElement(d.Ye,{gap:"8px",alignItems:"center"},f.createElement(h.A,{icon:C.A,size:16}),f.createElement(c.a6,{secondary:!0},"Save"))),f.createElement(I,{variant:s,size:"40px",onClick:W},"See details")))}},69584:(e,t,r)=>{r.d(t,{o:()=>s});var n=r(14041),a=r(76990),l=r(55586),o=r(7639),i=r(94398);const d=(0,a.Ay)(o.A)` 134 &:hover { 135 filter: none; 136 } 137 ${l.yD} 138 ${({withBorder:e})=>!e&&a.AH` 139 border: none; 140 `}; 141`,s=({onClick:e,withBorder:t=!0,iconSize:r=28})=>n.createElement(d,{withBorder:t,variant:"plain",icon:i.A,iconSize:r,onClick:e})},70018:(e,t,r)=>{r.d(t,{A:()=>d});var n,a,l,o=r(14041);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(null,arguments)}const d=function(e){return o.createElement("svg",i({width:"1em",height:"1em",viewBox:"1 1 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=o.createElement("g",{clipPath:"url(#CloCoin_icon_svg__a)"},o.createElement("path",{fill:"#867CFF",d:"M-4.027 10.653 11.046-4.42l5.582 5.583L1.556 16.236z"}),o.createElement("path",{fill:"#6055F6",d:"M1.555 16.238 16.628 1.165l5.861 5.862L7.416 22.099z"}))),a||(a=o.createElement("path",{stroke:"#fff",strokeWidth:.9,strokeLinecap:"round",strokeLinejoin:"round",d:"M5.332 6.923h7.419v2.061H5.332zM5.95 8.984h6.183v3.71H5.95zM9.041 7.335v5.358M8.554 5.786l.487 1.137H7.805a.815.815 0 1 1 .75-1.137ZM9.53 5.786l-.488 1.137h1.237a.815.815 0 1 0-.75-1.137Z"})),l||(l=o.createElement("defs",null,o.createElement("clipPath",{id:"CloCoin_icon_svg__a"},o.createElement("rect",{x:1.5,y:1.5,width:15,height:15,rx:7.5,fill:"#fff"})))))}},74277:(e,t,r)=>{r.d(t,{A:()=>o});var n,a=r(14041);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(null,arguments)}const o=function(e){return a.createElement("svg",l({width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{d:"M6 3.556V6l1.833 1.833M11.5 6a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})))}},79170:(e,t,r)=>{r.r(t),r.d(t,{default:()=>C});var n=r(30571),a=r(51965),l=r(26105),o=r(91698),i=r(28769),d=r(47950),s=r(12243),c=r(40242),p=r(79390),h=r(14041),m=r(18690),u=r(76990),g=r(74103),x=r(22030),f=r(97998),v=r(52520),w=r(44727),b=r(89346);const y=u.Ay.div` 142 padding: 0 32px; 143 max-width: 100%; 144 max-width: 1216px; 145 146 @media ${c.z4.maxMobileLarge} { 147 padding: 16px; 148 } 149`,E=u.Ay.div` 150 max-width: 1216px; 151 margin: 0 auto; 152 gap: 16px; 153 display: flex; 154 flex-direction: column; 155 padding: 32px 0; 156 157 @media ${c.z4.maxMobileLarge} { 158 padding: 16px 0; 159 } 160`,A=(0,u.Ay)(d.Ye)` 161 flex-wrap: wrap; 162 gap: 16px; 163 width: 100%; 164 justify-content: flex-start; 165`,k=u.Ay.div` 166 width: 292px; 167 flex: 0 0 292px; 168`,$={sort:{order:p.UAZ.Asc,sort:p.kPx.FeaturedSortOrder},pagination:{offset:0,limit:40}},S=(0,u.Ay)(d.I1)` 169 min-height: 100vh; 170`,B=u.Ay.div` 171 flex: 1 0 auto; 172 display: flex; 173 flex-direction: column; 174`,O=(0,u.Ay)(v.A)` 175 width: 100%; 176`,C=()=>{var e,t,r;(0,g.A)(a.Bi.FLASH_BOOST_STORES);
176const p=(0,m.Zp)(),{data:u,loading:C}=(0,n.IT)(l.ZDx,{variables:{searchMerchantArgs:Object.assign({filters:{isFlashBoost:!0,isBoostEligible:!0}},$)}}),{width:_}=(0,o.A)(),z=_<=c.D9.mobileLarge,M=(null===(e=null==u?void 0:u.Merchants_searchMerchantsV3)||void 0===e?void 0:e.merchants)||[];return h.createElement(S,{style:{flex:1}},h.createElement(B,null,h.createElement(y,null,h.createElement(E,null,h.createElement(d.I1,{gap:"8px"},h.createElement(d.Ye,{gap:"8px"},h.createElement(i.A,{onClick:()=>{p(`/${x.om.SHOP}`)},withBorder:!1}),h.createElement(s.hJ,null,"Flash Boost Stores"),h.createElement(d.Ye,{marginLeft:"auto"},h.createElement(w.SF,{endDate:null===(r=null===(t=M.find(e=>{var t;return null===(t=e.flashBoostSaleMetadata)||void 0===t?void 0:t.endDate}))||void 0===t?void 0:t.flashBoostSaleMetadata)||void 0===r?void 0:r.endDate}))),h.createElement(s.Us,{secondary:!0},"A Flash Boost sale is a limited-time promotion where we hand-pick select stores to offer you extra rewards")),h.createElement(A,null,C?Array.from({length:4}).map((e,t)=>z?h.createElement("div",{key:t,style:{width:"100%",boxSizing:"border-box"}},h.createElement(v.f,null)):h.createElement(k,{key:t},h.createElement(f.nt,null))):M.map(e=>z?h.createElement(O,{key:e.id+Math.random(),merchant:e,onClick:()=>p(`/${x.om.SHOP}/${e.slug}`),withFavoriteButton:!1}):h.createElement(k,{key:e.id},h.createElement(f.i3,{merchant:e,onClick:()=>p(`/${x.om.SHOP}/${e.slug}`),withFavoriteButton:!1}))))))),h.createElement(b.default,{withDownloadMobile:!1}))}},89687:(e,t,r)=>{r.d(t,{A:()=>o});var n,a=r(14041);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(null,arguments)}const o=function(e){return a.createElement("svg",l({width:"1em",height:"1em",viewBox:"0 0 19 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{d:"M9.5 15s-7.875-4.386-7.875-9.65C1.625.089 7.75-.35 9.5 3.768c1.75-4.118 7.875-3.68 7.875 1.584C17.375 10.614 9.5 15 9.5 15Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}}}]); 177//# sourceMappingURL=6590.54eeefac320fad5bcab3.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.