1(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{2065:function(e,c,t){"use strict";t.r(c);var n=t(0),a=t.n(n),r=t(92),l=t(35),i=t(3131),o=t(33),d=t(379),s=t(4),u=t(274),f=t(378),p=t(24),m=t(62),h=t(157),y=t(2828),b=t(41),E=t(2348),g=t(3054),v=function(e){var c=e.onRefresh,t=Object(r.a)().formatMessage;return a.a.createElement(g.c,{"data-testid":"loaylty-in-restaurant-redemption-refresh-code"},a.a.createElement(g.a,null,a.a.createElement(g.d,null,t({id:"refreshCodeTitleExpired"})),a.a.createElement(g.b,{startIcon:a.a.createElement(E.a,{width:"16px"}),variant:b.b.OUTLINE,onClick:c,"data-testid":"loaylty-in-restaurant-redemption-refresh-code-btn"},t({id:"refresh"}))))},C=function(e){try{var c=new URL(e).pathname.split("/qr-snap/")[1];return Boolean(c)&&2===c.split("/").length}catch(t){return m.b.error("Invalid URL "+e),!1}};c.default=function(e){var c=e.className,t=Object(d.a)().location,b=Object(l.p)(),E=Object(u.a)().loyaltyUser,g=Object(r.a)().formatMessage,w=Object(p.e)(),x=Object(f.f)(),S=x.shortCode,_=x.shortCodeState,I=x.generateShortCode,N=x.scanSucceeded,O=x.setScanSuccess,z=Object(s.c)(s.b.ENABLE_MY_CODE_NEW_UI),j=Object(o.Vb)({onCompleted:function(e){e.sendQrSnapToDeepflame?O(!0):(m.b.error("QR SNAP - Deepflame returned sendQrSnapToDeepflame: false"),h.a.default(g({id:"qrSnap.scanError"})),M())},onError:function(e){m.b.error(e),h.a.default(g({id:"qrSnap.scanError"})),M()}}),R=j[0],k=j[1].loading,M=Object(n.useCallback)((function(){b(g({id:"routes.redemptionInRestaurant"}))}),[g,b]);Object(n.useEffect)((function(){var e=setTimeout((function(){N&&(O(!1),M())}),3e3);return function(){clearTimeout(e)}}),[z,M,N,O]);var q=Object(n.useCallback)((function(e){var c,t,n,a,r,l=function(e){if(!e)return null;var c=null==e?void 0:e.split("/qr-snap/"),t=c[0],n=c[1];if(!t||!n)return null;var a=n?n.split("/"):[],r=a[0],l=a[1];return r&&l?{storeNumber:r,laneNumber:l}:null}(e),i=null!=(c=null==l?void 0:l.storeNumber)?c:"",o=null!=(t=null==l?void 0:l.laneNumber)?t:"",d=null!=(n=null==E?void 0:E.id)?n:"",s=S&&_===f.e.Pending?S:"";return w.logEvent(p.a.SNAP_QR_CODE,p.b.Other,{storeId:i,laneId:o,loyaltyId:d}),R({variables:{laneId:o,storeId:i,balances:[{amount:null!=(a=null==E?void 0:E.points)?a:0,currency:"POINTS"}],name:null!=(r=null==E?void 0:E.name)?r:"",shortCode:s}})}),[E,w,R,S,_]),F=g({id:"routes.redemptionInRestaurant"});return z&&t.pathname===""+F+g({id:"routes.qrSnap"})?(b(F),null):k?a.a.createElement(y.b,null):[f.e.Expired,f.e.RequestError].includes(_)&&z?a.a.createElement(v,{onRefresh:I}):N&&!z?a.a.createElement("div",{className:c},a.a.createElement(y.c,{"data-testid":"scan-successful"},a.a.createElement(y.a,null),a.a.createElement(y.d,null,g({id:"qrSnap.thanks"})))):a.a.createElement(i.a,{className:c,title:g({id:"qrSnap.title"}),body:g({id:"qrSnap.body"}),successCallback:q,onDismiss:M,codeContentValidator:C})}},2348:function(e,c,t){"use strict";var n=t(6),a=t.n(n),r=t(0),l=t.n(r);c.a=function(e){return l.a.createElement("svg",a()({viewBox:"0 0 22 24",width:"22"},e),l.a.createElement("title",null,"Refresh"),l.a.createElement("path",{d:"M19.8,6.6c-0.5-0.7-1.5-0.8-2.2-0.3c-0.7,0.5-0.8,1.5-0.3,2.2c1.1,1.4,1.6,3.1,1.6,4.9 c-0.1,3.9-3.2,7.2-7.1,7.5c-4.8,0.4-8.8-3.4-8.6-8.1c0.1-3.2,2.3-5.9,5.2-7V7c0,0.4,0.4,0.6,0.7,0.4l5.8-3.3c0.3-0.2,0.3-0.6,0-0.8 L9.1,0.1C8.7-0.1,8.4,0.1,8.4,0.5v2.1C3.6,3.8,0,8.1,0,13.2C0.1,19.4,5.3,24.4,11.6,24C17.5,23.7,22,18.8,22,13 C22,10.7,21.2,8.5,19.8,6.6z",fillRule:"evenodd"}))}},2828:function(e,c,t){"use strict";(function(e){t.d(c,"a",(function(){return l})),t.d(c,"c",(function(){return i})),t.d(c,"d",(function(){return o})),t.d(c,"b",(function(){return d}));var n=t(2),a=t(3053),r=t(2196),l=Object(n.d)(a.a).withConfig({displayName:"qr-snapstyled__StyledIconFlame",componentId:"sc-1uh9cgy-0"})(["vertical-align:middle;rect{height:15rem;}"]),i=n.d.div.withConfig({displayName:"qr-snapstyled__SuccessScan",componentId:"sc-1uh9cgy-1"})(["display:flex;flex-flow:column wrap;align-items:center;width:100%;height:100%;margin-top:10vh;"]),o=n.d.h2.withConfig({displayName:"qr-snapstyled__SuccessText",componentId:"sc-1uh9cgy-2"})(["font-family:",";"],e.fontFamily.brand),d=Object(n.d)(r.a).withConfig({displayName:"qr-snapstyled__StyledLoyaltyLoader",componentId:"sc-1uh9cgy-3"})(["margin-top:25vh;"])}).call(this,t(37).default)},3053:function(e,c,t){"use strict";var n=t(6),a=t.n(n),r=t(0),l=t.n(r);c.a=function(e){return l.a.createElement("svg",a()({version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1920 1080",xmlSpace:"preserve"},e),l.a.createElement("g",null,l.a.createElement("g",null,l.a.createElement("path",{style:{fill:"#FFAA00"}
1,d:"M955.88,870.68c-38.75-0.21-78.31-3.39-115.09-16.48c-21.61-9.5-40.81-23.66-62.11-33.82 c-11.99-7.02-23.46-14.86-35.1-22.42c-7.23-4.57-14.4-9.25-20.26-15.55c-26.05-28.72-33-70.06-30.46-107.67 c0.58-20.61,8.1-40.06,14.66-59.36c9.92-27.7,27.53-51.99,47.79-73.07c8.3-9.61,18.83-16.97,27.13-26.54 c15.42-16.92,23.15-38.99,29.74-60.53c10.25-37.25,14.26-76.09,27-112.68c8.89-28.69,25.05-54.43,45.14-76.57 c3.35-2.82,2.37,7.81,2.9,9.02c0.31,4.01,1.1,7.92,2.37,11.72c9.03,26.82-5.69,52.85-14.39,77.65 c-2.19,6.32-4.65,12.59-6.26,19.09c-2.99,12.47-2.72,25.42-2.52,38.16c0.57,11.07,1,22.41,5.63,32.68 c3.78,8.43,7.85,17.38,14.65,23.74c-0.05-24.4,6.88-48.11,16.52-70.34c3.31-8.78,8.89-16.45,12.17-25.22 c2.14-5.57,3.95-11.25,5.86-16.9c2.7-8.16,5.27-16.44,6.06-25.03c1.05-8.31-0.52-16.72,1.26-25c2.41-18.41,7.21-36.42,12.16-54.29 c2.13-8.97,6.46-17.11,10.19-25.47c2.17-4.98,4.83-9.68,7.94-14.13c8.94-12.83,21.08-22.86,33.34-32.37 c6.9-6.1,14.29-11.69,20.69-18.33c5.57-4.97,9.96-12.01,16.66-15.37c-1.65,22.68-2.2,36.29,7.71,57.53 c16.47,36.97,26.35,48.55,26.77,91.45c2.17,29.78-11.25,57.35-17,86c-8.21,29.9-12.43,62.54-1.29,92.26 c4.91,12.33,10.1,24.56,15.91,36.5c2.55,5.03,4.63,10.4,8.37,14.7c0.18,0.22,0.39,0.5,0.84,0.19c-1.58-9.41-0.52-18.98-1.23-28.44 c-1.83-11.42-3.55-23.1-2.02-34.65c1.08-11.03,4.25-21.54,6.96-32.21c2.39-8.25,3.54-17.18,7.13-24.94 c8.24,10.33,16.1,20.99,25.3,30.57c12.42,13.14,27.81,23.18,38.8,37.73c11.23,11.91,19.35,26.34,28.06,40.1 c17.18,31.09,13.51,67.9,14.47,102.16c2.02,20,7.63,39.35,14.32,58.23c3.53,11.77,9.74,22.59,11.68,34.88 c2.71,13.2,2.32,27.13,0.01,40.37c-1.63,9.08-3.2,18.19-7.08,26.64c-12.08,27.88-38.67,47.18-66.76,56.96 c-10.12,4.51-21.32,5.17-32.08,7.25c-9.91,1.41-19.73,3.4-29.68,4.52c-6.07,0.45-11.68,3.29-17.61,4.56 c-12.82,3.71-25.9,6.34-39.09,8.29C1000.19,870.19,977.84,868.99,955.88,870.68z"}),l.a.createElement("path",{style:{fill:"#FFAA00"},d:"M777.76,339.79c-0.19,8.21-1.63,14.17-1.91,21.9c-0.39,21.19,4.32,42.24,2.62,63.48 c-1.43,35.57-6.18,53.39-37.72,73.24c-8.34,5.91-13.34,2.75-19.09-4.52c-9.24-10.59-11.98-25.34-9.8-38.97 c1.69-15.69,12.81-27.35,21.26-39.84c4.52-7.11,8.72-14.41,13.03-21.65c2.68-4.5,5.01-9.16,6.91-14.05 c4.03-10.37,9.35-20.19,13.44-30.55C769.2,343.07,777.22,319.84,777.76,339.79z"}),l.a.createElement("path",{style:{fill:"#FFAA00"},d:"M942.5,165.78c-7.45,19.85-14.31,39.87-22.21,59.55c-3.67,8.4-5.49,17.75-10.4,25.53 c-6.3,5.23-7.25-25.4-7.66-28.97c0.24-4.33-0.46-8.81,0.67-13.03c2.37-7.98,6.58-15.7,12.24-21.83 C923.44,179.04,931.41,169.8,942.5,165.78z"})),l.a.createElement("path",{style:{fill:"#D72300"},d:"M916.96,575.03c-5.24-30.15,1.89-60.5,11.06-89.16c7.02-24.45,15.87-48.35,25.93-71.71 c7.09-15.81,15.45-31.02,22.51-46.84c3.05-10.16,6.77-20.5,6.61-31.24c-1.72-18.9-6.58-38.01-2.71-56.99 c2.06-11.27,6.36-22.15,11.39-32.38c0.89-0.91,2.07-0.07,2.3,1c1.31,3.91,3.23,7.56,4.93,11.31c4.62,10.7,7.98,21.94,11.09,33.15 c2.56,11.97,3.56,24.21,4.28,36.4c3.41,25.42-0.8,51.14-9.3,75.18c-11.82,34.73-29.45,97.35-16.82,132 c2.07,6.2,5.03,12.01,8.39,17.6c7.95,14.45,17.1,28.37,27.88,40.88c9.28,10.48,19.78,20,32.01,26.93 c6.23,3.96,12.92,7.14,20.01,9.24c0.52,0.15,1.05,0.39,1.71,0c-0.09-11.35,1.24-22.63,4.24-33.6c4.01-13.92,10.04-27.2,14.96-40.81 c2.12-4.22,2.91-8.84,4.19-13.33c3.27-4.16,4.41,8.53,5.47,10.09c1.11,4.23,2.6,8.31,4.18,12.38 c8.24,22.15,22.46,41.28,33.33,62.11c22.73,42.12,31.32,94.14,15.14,139.97c-6.36,16.24-13.72,32.77-26.13,45.33 c-22.66,22.89-55.72,29.42-85.07,39.82c-43.74,14.84-91.44,14.43-136.74,8.06c-17.33-2.69-35.02-3.86-51.84-9.09 c-16.06-3.79-30.57-13.07-41.52-25.32c-6.84-6.99-13.56-14.47-17.56-23.49c-6.41-13.32-10.52-27.61-12.1-42.31 c-2.76-17.34-2.6-34.96,0.17-52.28c3.91-21.7,13.84-41.48,24.71-60.42c8.53-15.44,14.8-32,20.46-48.66 c8.03-20.55,5.33-43.08,3.64-64.52c-0.58-5.09,0.93-44.88,6.93-40.07c4.84,8.37,8.8,17.35,14.59,25.15 c6.75,9.66,15.51,17.58,23.59,26.09C893.34,556.32,904.27,566.79,916.96,575.03z"}),l.a.createElement("path",{style:{fill:"#D72300"},d:"M642.07,653.42c-0.25-18.61,9.23-36.54,21.09-50.52c3.3-5.36,3.66-12.17,7.99-17.06 c4.21-5.22,11.64-12.48,18.75-8.82c1.91,1.03,2.69,3.08,2.07,5.22c-3.23,10.75-8.97,20.45-14.24,30.28 c-6.6,11.75-11.58,24.57-13.53,37.95c-1.75,12.08-2.79,24.8-7.66,36.05c-4.77,4.79-8.82-7.85-10.62-10.89 C642.64,668.65,642.15,661.36,642.07,653.42z"}),l.a.createElement("path",{style:{fill:"#D72300"},d:"M1100.73,281.9c11.46,16.87-2.9,70.93-20.23,80.93c-2.99,1.21-2.33-2.25-1.53-3.92 c2.15-5.32,2.97-11.01,4.25-16.57c5.73-27.22-10.44-26.14,11.46-52.31c1.62-2,3.18-4.06,4.23-6.45 C1099.24,282.81,1099.62,281.99,1100.73,281.9z"}),l.a.createElement("path",{style:{fill:"#D72300"},d:"M693.69,537.21c0.12-8.11,4.93-15.59,11.03-20.63c9.2-8.86,18.36-0.53,19.03,10.15 c1.35,9.77-5.1,21.45-15.39,22.9C700.44,551.22,692.93,545.56,693.69,537.21z"}),l.a.createElement("path",{style:{fill:"#502314"},d:"M1055.7,754.41c14.37-18.4,22.63-40.37,31.91-61.47c3.04-2.88,4.27,5.46,5.54,7.11 c4.28,9.86,7.71,20.01,10.67,30.34c3.13,12.12,6.88,24.44,5.87,37.1c-3.02,27.87-26.33,47.9-47.63,63.51 c-5.69,3.87-11.58,7.48-17.65,10.68c-3.02,2.17-6.21,4.05-9.76,5.24c-8.56,2.88-17.42,4.84-26.1,7.35 c-4.36,0.88-8.87,0.65-13.19,1.86c-11.29,2.16-22.45,5.88-34.09,5.32c-13.91-0.68-28.13-0.96-41.21-6.23 c-14.75-4.51-22.7-18.26-25.61-32.64c-3.45-11.4-7.65-22.57-10.65-34.11c-6.53-23.91-7.7-49.19-4.71-73.75 c2.94-23.08,9.94-45.43,12.59-68.55c0.69-6.85,1.33-13.78,1.01-20.66c-0.01-4.42-1.65-8.75-1.43-13.14 c1.65-3.48,3.79,1.84,5.03,3.13c10.92,14.06,25.12,25.29,38.74,36.62c17.28,14.61,35.2,28.46,54.79,39.86 c6.77,4.3,29.2,18.47,18.33-0.73c-6.52-9.69-15.52-17.52-22.36-27c-8.88-12.01-14.74-25.94-18.66-40.29 c-5.56-18.46-3.47-38.5,2.46-56.6c1.97-4.98,13.93,18.79,15.55,20.57c9.66,16.11,21.94,30.33,32.87,45.53 c13.95,19.68,26.83,40.32,36.25,62.58c7.22,18.66,5.09,39.09,1.27,58.28C1055.57,754.36,1055.63,754.39,1055.7,754.41z"}),l.a.createElement("g",null,l.a.createElement("path",{style:{fill:"#FF8732"},d:"M1022.12,847.31c-23.63-1.39-38.48-22.73-57.24-34.37c-12.05-7.06-25.18-13.01-35.38-22.76 c-14.55-16.32-11.02-44.47-3.86-63.45c2.79-4.57,5.17,4.77,7.39,6.04c3.81,3.79,7.22,8.14,11.39,11.53 c15.55,11.94,35.55,16.73,49.79,30.53c12.1,11.99,20.82,26.7,31.13,40.13c3.92,6.17,16.67,19.21,11.13,26.31 C1033.07,845.37,1027.31,847.42,1022.12,847.31z"}),l.a.createElement("path",{style:{fill:"#FF8732"},d:"M1158.23,422.48c1.26,6.69-11.56-0.07-14.2-1.18c-6.03-2.9-11.15-7.48-15.93-12.09 c-4.23-4.82-7.07-10.63-10.32-16.11c-5.97-11.52-5.2-25.23-2.59-37.57c1.99-9.17,2.73-18.92,6.95-27.41 c0.78-1.49,1.99-1.66,3.29-0.54c3.09,2.87,2.22,7.53,2.94,11.31c1.03,7.94,1.46,15.95,2.56,23.89 c1.12,10.38,6.59,18.87,13.12,26.69C1151.23,399.16,1157.7,410.11,1158.23,422.48z"}))))}},3054:function(e,c,t){"use strict";(function(e){t.d(c,"c",(function(){return i})),t.d(c,"a",(function(){return o}
1)),t.d(c,"d",(function(){return d})),t.d(c,"b",(function(){return s}));var n=t(2),a=t(41),r=t(79),l=t(12),i=n.d.div.withConfig({displayName:"refresh-codestyled__RefreshCodeContainer",componentId:"sc-tr0zhs-0"})(["position:relative;height:40vh;width:100%;background:",";"],l.b.$blackOpacity10),o=n.d.div.withConfig({displayName:"refresh-codestyled__RefreshCodeBox",componentId:"sc-tr0zhs-1"})(["position:absolute;width:80%;top:32%;left:10%;display:flex;flex-direction:column;align-items:center;padding:16px;background:",";border-radius:8px;color:",";box-shadow:",";"],l.b.$white,e.color.black,e.boxShadow),d=n.d.h2.withConfig({displayName:"refresh-codestyled__RefreshCodeTitle",componentId:"sc-tr0zhs-2"})(["margin:8px 0;font:",";"],r.a.headerThree),s=Object(n.d)(a.d).withConfig({displayName:"refresh-codestyled__RefreshCodeButton",componentId:"sc-tr0zhs-3"})(["margin-top:12px;font-size:16px;fill:",";background:",";"],e.color.primary,l.b.$white)}).call(this,t(37).default)}}]); 2//# sourceMappingURL=71.c4bea1ce.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.