1"use strict";(self.webpackChunkgoodnessme_app=self.webpackChunkgoodnessme_app||[]).push([[547],{95303:function(e,n,t){t.d(n,{y:function(){return S}});var i=t(67294),l=t(74780),o=t(56348),r=t(34999),s=t(31312),c=t(85893),a=function(e){var n=e.title,t=(0,s.dF)().logoutCustomer;return(0,c.jsxs)(l.Ug,{justifyContent:"space-between",spacing:6,children:[(0,c.jsx)(l.X6,{as:"h2",size:"h4",children:n}),(0,c.jsx)(o.c,{below:"sm",children:(0,c.jsx)(r.zx,{py:"8px",px:"46px",variant:"outline",mt:4,onClick:t,children:"Sign Out"})}),(0,c.jsx)(o.di,{below:"sm",children:(0,c.jsx)(r.zx,{py:"8px",px:"46px",m:0,variant:"link",onClick:t,border:"none",color:"brand.avocado",children:"Sign Out"})})]})},d=(0,i.memo)(a),u=t(23343),x=t(99028),p=function(e){var n=e.location,l=(0,u.l)().helpers.ErrorBoundary,o=(0,x.G)().isBase,r=(0,i.lazy)((function(){return t.e(4262).then(t.bind(t,44262))})),s=(0,i.lazy)((function(){return t.e(6589).then(t.bind(t,46589))}));return(0,c.jsx)(l,{children:(0,c.jsx)(i.Suspense,{fallback:null,children:o?(0,c.jsx)(s,{location:n}):(0,c.jsx)(r,{})})})},h=(0,i.memo)(p),m=t(12963),f=t(57660),j=t(67473),v=t(62893),b=t(61933),g=function(){var e=(0,v.jt)().customer,n=(0,u.l)().helpers.capitalise,t=(0,b.t)(),i=t.loyaltyTierName,o=t.customerPoints,r=null!=e&&e.firstName?", "+n(null==e?void 0:e.firstName):"";return(0,c.jsxs)(l.Ug,{mt:[6,8],bg:"brand.lavender",justifyContent:"space-between",maxH:[28,44],overflow:"hidden",children:[(0,c.jsxs)(l.gC,{py:[4.5,4.5,9],pl:[5,5,12],alignItems:"flex-start",spacing:1,children:[(0,c.jsxs)(l.xv,{fontWeight:[400,700],fontSize:["md","xl"],children:["Welcome",r]}),(0,c.jsxs)(l.xv,{fontSize:["md","xl"],fontWeight:[700,400],children:["Youâre a GoodnessMe ",i,"!"]}),(0,c.jsxs)(l.xv,{fontSize:["md","xl"],display:["none","none","block"],children:["You have ",o," points"]})]}),(0,c.jsx)(l.xu,{children:(0,c.jsx)(f.Ee,{src:j.Z,w:[34,60],mr:[1,1,12]})})]})},w=(0,i.memo)(g),y=function(e){var n=e.content,t=e.subtitle,i=e.location,r=e.title,s=e.children,a=e.showRewardsBanner,u=void 0!==a&&a,x=(0,(0,m.r0)().getContent)({content:n});return(0,c.jsx)(l.W2,{pt:[16,16,27],pb:22,children:(0,c.jsxs)(l.kC,{flexDirection:["column","row"],gap:0,children:[(0,c.jsxs)(l.xu,{w:["100%",66],pr:[0,8],children:[(0,c.jsx)(o.c,{below:"sm",children:(0,c.jsx)(l.X6,{as:"h1",size:"h4",mb:9,children:r})}),(0,c.jsx)(o.di,{below:"sm",children:(0,c.jsx)(l.xu,{pb:6,children:(0,c.jsx)(d,{title:t})})}),(0,c.jsx)(h,{location:i})]}),(0,c.jsxs)(l.xu,{w:["100%","70%"],pl:[0,8],children:[(0,c.jsx)(o.c,{below:"sm",children:(0,c.jsx)(d,{title:t})}),u&&(0,c.jsx)(w,{}),(0,c.jsx)(l.xu,{my:6,sx:{p:{fontSize:"sm",lineHeight:"21px"}},children:x}),s]})]})})},S=(0,i.memo)(y)},57823:function(e,n,t){t.r(n),t.d(n,{Head:function(){return w.F},default:function(){return S}});var i=t(63366),l=t(95303),o=t(67294),r=t(11084),s=t(23343),c=t(61933),a=t(85893),d=function(e){var n=e.points,t=(0,o.useState)(!1),i=t[0],l=t[1],d=(0,o.useState)(!1),u=d[0],x=d[1],p=(0,r.UA)().loyaltyLionGlobalReady,h=(0,c.t)().refreshRewardsUI,m=(0,s.l)().helpers.isBrowser,f=(0,o.useCallback)((function(e){var t=null==e?void 0:e.querySelector(".lion-reward-item__cost .value"),i=t?Number(null==t?void 0:t.innerText):0,l=n/i*100,o=document.createElement("div");o.id="custom-loyaltylion-progressbar-container";var r=document.createElement("div");r.id="custom-loyaltylion-progressbar",r.style.width=l+"%",t&&(null==e||e.prepend(o),null==e||e.prepend(r))}),[n]);return(0,o.useEffect)((function(){u&&!i&&n&&setTimeout((function(){var e,n=null===(e=document)||void 0===e?void 0:e.querySelectorAll(".lion-reward-item__content");null!=n&&n.length&&(null==n||n.forEach(f),l(!0))}),1500)}),[u,i,n,f]),(0,o.useEffect)((function(){var e,t;!i&&n&&m&&(e=document.querySelector("[data-lion-rewards-list]"),t=new MutationObserver((function(e){e.find((function(e){"childList"===(null==e?void 0:e.type)&&x(!0)}))})),e&&t.observe(e,{subtree:!0,childList:!0}))}),[n,i,p,m]),(0,o.useEffect)((function(){h()}),[h]),(0,a.jsx)("div",{"data-lion-rewards-list":!0})},u=(0,o.memo)(d),x=t(74780),p=t(57660),h=t(51763),m=t(15697),f=function(e){var n=e.icon,t=e.title,i=e.text;return(0,a.jsxs)(x.Ug,{bg:"brand.lightSand",w:["full","full","half"],py:7,pr:16,pl:7,spacing:7,children:[(0,a.jsx)(x.xu,{children:n}),(0,a.jsxs)(x.gC,{alignItems:"flex-start",w:"full",spacing:2,children:[(0,a.jsx)(x.xv,{fontSize:["sm","md"],borderBottom:"1px",w:"full",pb:2,children:t}),(0,a.jsx)(x.X6,{as:"p",fontSize:"xl",children:i||"-"})]})]})},j=function(e){var n=e.points,t=e.tier,i=e.tierTitle,l=e.pointsTitle;return(0,a.jsxs)(x.Kq,{direction:["column","column","row"],spacing:4,mb:16,alignItems:"stretch",children:[(0,a.jsx)(f,{icon:(0,a.jsx)(p.Ee,{src:h.Z,w:14}),title:i,text:"GoodnessMe "+t}),(0,a.jsx)(f,{icon:(0,a.jsx)(m.d,{name:"account-points",width:56,height:56}),title:l,text:n})]})},v=(0,o.memo)(j),b=function(e){var n=e.children;return(0,a.jsx)(x.X6,{as:"p",fontSize:["32px","30px"],mb:10,children:n})},g=function(e){var n=e.location,t=e.page,i=(0,c.t)(),o=i.loyaltyTierName,r=i.customerPoints;return(0,a.jsxs)(l.y,{title:"My Account",subtitle:null==t?void 0:t.t
1itle,location:n,children:[(0,a.jsx)(v,{points:r,tier:o,tierTitle:null==t?void 0:t.additionalCustomersCurrentTier,pointsTitle:null==t?void 0:t.additionalCustomersAvailablePoints}),(0,a.jsx)(b,{children:null==t?void 0:t.additionalRedeemVouchers}),(0,a.jsx)(u,{points:r})]})},w=t(66027),y=["data"],S=function(e){var n=e.data,t=(0,i.Z)(e,y);return(0,a.jsx)(g,Object.assign({},t,n))}},51763:function(e,n,t){n.Z=t.p+"static/avocado-866b6d3d1b39e69727d6f915005adf03.png"},67473:function(e,n,t){n.Z=t.p+"static/food-box-c670a261cf63ec729303d8165da75c36.png"}}]); 2//# sourceMappingURL=component---src-pages-account-rewards-tsx-1ec1f921ffbd7252dcb2.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.