PageSourceSearch

https://www.burgerking.co.uk/static/js/4364.e9f45e9f.chunk.js

js burgerking.co.uk collected 2026-09-24 09:29:33 UTC 28,986 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4364],{43230:(t,e,i)=>{i.d(e,{p:()=>v});i(59284);var o=i(26977),n=i(20147),a=i(53683),r=i(95105),s=i(22638),l=i(64799),d=i(68605).P;const c=n.Ay.div.withConfig({componentId:"sc-1bustsq-0"})(["margin:0 auto;display:flex;flex-direction:column;text-align:center;align-items:center;width:100%;"]),y=n.Ay.h1.withConfig({componentId:"sc-1bustsq-1"})(["text-transform:",";font-family:",";font-size:3.25rem;text-align:center;color:",";margin:0;","{font-size:1.75rem;}"],d.textTransform.headlines,d.fontFamily.base,d.color.secondary,d.mobileTiny),m=(0,n.Ay)(r.V).withConfig({componentId:"sc-1bustsq-2"})(["max-height:28vh;&&{margin-block-start:1rem;margin-block-end:0;margin-inline:0;}","{margin-block-start:1rem;margin-block-end:0;margin-inline:0;max-height:20vh;}"],d.mobileTiny),h=n.Ay.h2.withConfig({componentId:"sc-1bustsq-3"})(["font-family:",";text-transform:",";margin:0;","{font-size:1rem;}"],d.fontFamily.base,d.textTransform.headlines,d.mobileTiny),p=n.Ay.h4.withConfig({componentId:"sc-1bustsq-4"})(["width:95%;font-family:",";margin-block-start:0;margin-block-end:2rem;margin-inline:0;font-size:1rem;","{font-size:1rem;}"],d.fontFamily.body,d.mobileTiny),u=(0,n.Ay)(s.j).withConfig({componentId:"sc-1bustsq-5"})(["font-size:1rem;font-family:",";max-width:95%;margin-block-start:0;margin-block-end:1rem;margin-inline:auto;","{font-size:0.95rem;}"],d.fontFamily.body,d.mobileTiny),f=(0,n.Ay)(a.rA).withConfig({componentId:"sc-1bustsq-6"})(["padding:0.75rem 2rem;","{padding:0.75rem 1rem;}"],d.mobileTiny),g=n.Ay.div.withConfig({componentId:"sc-1bustsq-7"})(["margin-block-start:1.15rem;margin-block-end:0;margin-inline:auto;width:100%;"]),b=(d.color.white,(0,n.Ay)(l.e).withConfig({componentId:"sc-1bustsq-10"})(["height:3.5rem;margin-block-end:0.5rem;","{margin-block-start:1rem;}"],d.desktop)),x=(0,n.Ay)(s.j).withConfig({componentId:"sc-1bustsq-11"})(["width:90%;font-size:0.75rem;margin:1rem auto;"]);var w=i(60712);const v=t=>{var e,i,n;let a=t.content;const r=a.image,s=a.headerText,l=a.title,d=a.subtitle,v=a.description,A=a.buttonAction,I=a.marketingTileList,T=a.terms,j=null==r||null==(e=r.locale)?void 0:e.app,C=null==s?void 0:s.locale,k=null==l?void 0:l.locale,R=null==d?void 0:d.locale,P=null==T?void 0:T.locale,S=null==v?void 0:v.locale,E=(null==I?void 0:I.tiles)||[];return(0,w.jsxs)(c,{"data-testid":"empty-state-empty-state-Container",children:[(0,w.jsx)(b,{"data-testid":"empty-state-empty-state-StyledLoyaltyLogo"}),C&&(0,w.jsx)(y,{"data-testid":"empty-state-empty-state-HeadingText",children:C}),j&&(0,w.jsx)(m,{"data-testid":"empty-state-empty-state-ImageContainer",image:j,alt:(null==r||null==(i=r.locale)?void 0:i.imageDescription)||"Empty Image",objectFitContain:!0}),k&&(0,w.jsx)(h,{"data-testid":"empty-state-empty-state-TitleText",children:k}),R&&(0,w.jsx)(p,{"data-testid":"empty-state-empty-state-SubtitleText",children:R}),S&&(0,w.jsx)(u,{"data-testid":"empty-state-empty-state-DescriptionTextBlock",content:S}),(0,w.jsx)(o.h,{"data-testid":"empty-state-empty-state-MarketingTileList",tiles:E}),(null==A?void 0:A.actionText)&&(0,w.jsx)(g,{"data-testid":"empty-state-empty-state-ButtonWrapper",children:(0,w.jsx)(f,{"data-testid":"loyalty-empty-state-cta-button",fullWidth:!0,to:(null==(n=A.actionUrl)?void 0:n.locale)||"",children:A.actionText.locale})}),P&&(0,w.jsx)(x,{"data-testid":"empty-state-empty-state-Terms",content:P})]})}},31542:(t,e,i)=>{i.d(e,{a1:()=>m,dz:()=>R,mm:()=>P});var o=i(58168),n=i(98587),a=i(94454),r=i.n(a),s=i(59284),l=i(56148),d=i(40937),c=i(60712);const y=["children","onRefresh","minimumRefreshTime","enabled","triggerHeight"],m=t=>{let e=t.children,i=t.onRefresh,a=t.minimumRefreshTime,s=t.enabled,m=void 0===s||s,h=t.triggerHeight,p=(0,n.A)(t,y);return(0,d.U)(d.z.HeaderMobile)?(0,c.jsx)(l.ke,(0,o.A)({"data-testid":"pull-to-reload-pull-to-reload-PullToRefresh"},p,{triggerHeight:m?h:0,onRefresh:async()=>{const t=new Promise((t=>setTimeout(t,a||1200)));return Promise.all([i(),t].map((t=>t.catch(r()))))},children:e})):(0,c.jsx)(c.Fragment,{children:e})};var h=i(96290),p=i(90447),u=i(75485);var f=i(20147),g=i(86410),b=i(68605).P;const x=(0,f.i7)(["0%{transform:scale(1);}50%{transform:scale(1.05);}100%{transform:scale(1);}"]),w=f.Ay.div.withConfig({componentId:"sc-vq86vk-0"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;height:100px;div[aria-label='animation']{height:100%;}p{margin-block-end:0.25rem;}",""],(t=>t.isRefreshing&&(0,f.AH)(["div[aria-label='animation']{opacity:0;animation:"," 0.25s forwards;}"],g.qG))),v=f.Ay.p.withConfig({componentId:"sc-vq86vk-1"})(["animation:"," 0.25s forwards;font-weight:",";"],x,b.fontWeight.heavy),A=f.Ay.p.withConfig({componentId:"sc-vq86vk-2"})(["font-weight:",";"],b.fontWeight.heavy),I="pullingDown",T="refreshing",j="releasing",C=t=>({releasing:"70px",pullingDown:"70px",refreshing:"70px"}[t]),k=t=>({releasing:"100%",pullingDown:"100%",refreshing:"100%"}[t]),R=t=>{let e=t.animationData,i=t.action,o=t.className;const n=i===I,a=i===T,r=i===j,l=(0,h.A)().formatMessage,d={animationData:e,autoplay:!0,loop:!0};return(0,s.useEffect)((()=>{r&&(0,u.hU)({type:u.Id.SUCCESS})}),[r]),(0,c.jsxs)(w,{"data-testid":"pull-to-reload-content-pull-to-reload-content-PullToRefreshContainer",isRefreshing:a,className:o,children:[n&&(0,c.jsx)(A,{"data-testid":"pull-to-reload-content-pull-to-reload-content-PullDownMessage",children:l({
1id:"pullToRefresh"})}),r&&(0,c.jsx)(v,{"data-testid":"pull-to-reload-content-pull-to-reload-content-ReleaseMessage",children:l({id:"releaseToRefresh"})}),(0,c.jsx)(p.a,{"data-testid":"pull-to-reload-content-pull-to-reload-content-LottieAnimation",ariaRole:"presentation",options:d,height:C(i),width:k(i)})]})},P=()=>{const t=(0,s.useState)(!0),e=t[0],i=t[1],o=(0,s.useRef)(null);return{setScrollRef:t=>{o.current=t},pullToReloadEnabled:e,getScrollPositionForReload:()=>{var t;const n=null==o||null==(t=o.current)?void 0:t.scrollTop;n&&e?i(!1):n||e||i(!0)}}}},4364:(t,e,i)=>{i.r(e),i.d(e,{History:()=>ae});var o=i(59284),n=i(41657),a=i(96290),r=i(84159),s=i(20147),l=i(24013),d=i(60712);const c=(0,s.Ay)(l.S).withConfig({componentId:"sc-1qahpr9-0"})(["flex:1;"]),y=t=>{let e=t.children;return(0,d.jsx)(c,{"data-testid":"page-wrapper-page-wrapper-Wrapper",children:e})};var m=i(56770),h=i(31542),p=i(3499),u=i(40937),f=i(52560),g=i(1073),b=i(63732),x=i(54952),w=i(78350),v=(i(10364),i(43230));const A=s.Ay.div.withConfig({componentId:"sc-69m4fk-0"})(["margin-block-start:1rem;"]),I=s.Ay.div.withConfig({componentId:"sc-69m4fk-1"})(["height:100%;margin:auto;"]),T=s.Ay.div.withConfig({componentId:"sc-69m4fk-2"})(["min-height:1rem;width:1px;"]);var j=i(7414);const C=t=>{let e=t.className;const i=(0,j.v)(),o=i.data;return i.loading?(0,d.jsx)(I,{"data-testid":"loyalty-no-reward-points-loyalty-no-reward-points-LoadingContainer",children:(0,d.jsx)(g.i,{"data-testid":"loyalty-no-reward-points-loyalty-no-reward-points-LoyaltyLoader"})}):o&&null!=o&&o.noRewardPoints?(0,d.jsxs)(A,{"data-testid":"loyalty-no-reward-points-loyalty-no-reward-points-Container",className:e,children:[(0,d.jsx)(v.p,{"data-testid":"loyalty-no-reward-points-loyalty-no-reward-points-EmptyState",content:o.noRewardPoints,showCTA:!1}),(0,d.jsx)(T,{"data-testid":"loyalty-no-reward-points-loyalty-no-reward-points-Padding"})]}):null};var k=i(27543),R=i(68605).P;const P=(0,s.i7)(["from{transform:",";opacity:0;}to{transform:",";opacity:1;}"],(0,w.gM)(0,"-12px"),(0,w.gM)(0)),S=s.Ay.div.withConfig({componentId:"sc-5x19v0-0"})(["text-align:end;font-weight:",";"],R.fontWeight.heavy),E=s.Ay.div.withConfig({componentId:"sc-5x19v0-1"})(["text-align:start;font-weight:",";"],R.fontWeight.heavy),L=s.Ay.div.withConfig({componentId:"sc-5x19v0-2"})(["text-align:center;font-weight:",";"],R.fontWeight.heavy),H=s.Ay.div.withConfig({componentId:"sc-5x19v0-3"})(["position:relative;background-color:",";opacity:0;animation:"," 0.45s ","s forwards;border-radius:",";border:1px solid ",";&:not(:first-of-type){margin-block-start:1rem;}tr{margin:0 1rem;& td,&:last-of-type td::after{border-block-end:none;}","{th:first-child,td:first-child{width:auto;}}}td,th{font-size:0.875rem;padding:1rem;","{padding:1rem 0.25rem;}","{font-size:1rem;padding:1rem;}}td{position:relative;&:first-child{padding-inline-start:1.25rem;}&:last-child{padding-inline-end:1.25rem;}}td::after{content:'';position:absolute;inset-block-end:0;height:1px;width:100%;border-block-end:1px solid ",";}td:first-child::after,td:last-child::after{width:calc(100% - 1.25rem);}td:not(:first-child)::after{inset-inline-start:0;}td:first-child::after{inset-inline-end:0;}"],(t=>t.bgColor||R.color.white),P,(t=>{let e=t.idx;return.1*(void 0===e?0:e)}),R.borderRadius,R.color.grey.four,R.mobile,R.mobileTiny,R.desktop,R.color.grey.four),D=s.Ay.div.withConfig({componentId:"sc-5x19v0-5"})(["display:flex;flex-direction:column;align-self:center;max-width:660px;padding-block-start:0;padding-block-end:2.5rem;padding-inline:1.25rem;margin:auto;margin-block-start:1rem;height:100%;background-color:",";"],(t=>t.theme.primaryBackground)),O=s.Ay.div.withConfig({componentId:"sc-5x19v0-6"})(["& > div:first-child{min-height:100vh;}"]),z=s.Ay.div.withConfig({componentId:"sc-5x19v0-7"})(["font-family:",";display:flex;flex-direction:column;align-items:flex-start;line-height:1.25rem;"],R.fontFamily.body),W=s.Ay.span.withConfig({componentId:"sc-5x19v0-8"})(["font-style:normal;font-weight:",";font-size:1rem;"],R.fontWeight.normal),M=s.Ay.span.withConfig({componentId:"sc-5x19v0-9"})(["font-style:",";font-size:0.875rem;"],R.fontWeight.normal),q=(0,s.Ay)(x.P).withConfig({componentId:"sc-5x19v0-10"})(["width:1.5rem;vertical-align:bottom;"]),B=(0,s.Ay)(C).withConfig({componentId:"sc-5x19v0-11"})([""]),U=(0,s.Ay)(k.z).withConfig({componentId:"sc-5x19v0-12"})(["margin-block-end:1rem;"]);var N=i(68605).P;const _=(0,s.Ay)(H).withConfig({componentId:"sc-180jmg5-0"})(["th{font-family:",";}td{vertical-align:top;}"],N.fontFamily.brand);var F=i(68605).P;const Y=s.Ay.div.withConfig({componentId:"sc-1iuj3dl-0"})(["display:flex;justify-content:flex-end;font-weight:",";"],F.fontWeight.normal),G=s.Ay.div.withConfig({componentId:"sc-1iuj3dl-1"})(["display:flex;flex-direction:column;font-weight:",";"],F.fontWeight.heavy),K=(F.fontFamily.brand,F.color.black,s.Ay.div.withConfig({componentId:"sc-1iuj3dl-4"})(["font-size:1rem;margin-inline-start:0.35rem;color:"," !important;font-weight:",";",""],F.color.rewardRedeemText,F.fontWeight.heavy,(t=>t.$pointsEarned&&(0,s.AH)(["color:"," !important;"],F.color.rewardEarnText)))),V=s.Ay.div.withConfig({componentId:"sc-1iuj3dl-5"})(["display:flex;align-items:center;"]),$=s.Ay.div.withConfig({componentId:"sc-1iuj3dl-6"})(["&:not(:last-child){margin-block-end:0.625rem;}"]),Q=s.Ay.div.withConfig({componentId:"sc-1iuj3dl-7"})(["font-family:",";font-size:0.8125rem;font-weight:",";"],F.fontFamily.body,F.fontWeight.normal);var Z=i(68605).P;const J=(0,s.Ay)(G).withConfig({componentId:"sc-312pee-0"})(["padding-inline-start:2.5rem;","{padding-inline-start:0.5rem;}"],Z.mobile);var X=i(48658),tt=i.n(X),et=i(78018),it=i.n(et),ot=i(35710),nt=i(56096);const at={year:"2-digit",month:"numeric",day:"numeric",calendar:"gregory"},rt=()=>{const t=(0,a.A)(),e=t.formatDate,i=t.formatDateToParts,n=t.formatTime;return{getMonth:(0,o.useCallback)((t=>{const e=i(t.timeStamp,{month:"long"}).find((t=>"month"===t.type));return e&&e.value}),[i]),formatTransactionDate:(0,o.useCallback)((t=>({date:e(t,at),time:n(t)})),[e,n])}},st=t=>{const e=t.pointsEarned,i=t.pointsUsed,o=t.pointsDeducted,n=t.bonusPointsEarned;return e>0||i>0||n>0||!!o&&o>0},lt=t=>{let e=t.timeStamp;const i=(0,rt().formatTransactionDate)(e),o=i.date,n=i.time;return(0,d.jsxs)(z,{"data-testid":"transactions-datetime-cell-TransactionDateAndTime",children:[(0,d.jsx)(W,{"data-testid":"transactions-datetime-cell-TransactionDate",children:o}),(0,d.jsx)(M,{"data-testid":"transactions-datetime-cell-TransactionTime",children:n})]})};let dt=function(t){return t.RBIOrderId="RBIOrderId",t}({});const ct=t=>{let e=t.points,i=t.description;const o=e>0;return(0,d.jsxs)($,{"data-testid":"transactions-points-line-PointsLineWrapper",children:[(0,d.jsx)(V,{"data-testid":"transactions-points-line-IconWrapper",$pointsEarned:o,children:(0,d.jsx)(K,{"data-testid":"transactions-points-line-PointsText",$pointsEarned:o,children:(o?"+":"")+e})}),(0,d.jsx)(Q,{"data-testid":"transactions-points-line-PointsDescription",children:i})]})},yt=()=>{const t=(0,a.A)().formatMessage;return(0,o.useCallback)((e=>{const i=(t=>{var e;
1let i=t.transactionDetails,o=t.createdAt,n=t.channel,a=t.bonusPointsEarned,r=t.pointsUsed,s=t.pointsEarned,l=t.pointsDeducted,d=t.additionalReferenceIds,c=t.hasRewards;const y=null==d?void 0:d.find((t=>t.type===dt.RBIOrderId)),m=null!=(e=null==i?void 0:i.payments.reduce(((t,e)=>t+e.amount),0))?e:0;return{hasRewards:c,channel:n.toUpperCase(),bonusPointsEarned:a,pointsEarned:s,pointsUsed:r,pointsDeducted:l,totalPayment:m,timeStamp:o,rbiOrderId:null==y?void 0:y.id}})(e),o=i.totalPayment,n=i.channel,a=i.pointsEarned,r=i.pointsUsed,s=i.pointsDeducted,l=i.bonusPointsEarned,c=i.timeStamp,y=i.rbiOrderId,m=i.hasRewards,h=(0,d.jsx)(Y,{"data-testid":"transactions-use-localized-transaction-transformer-PurchaseAmount",children:(0,d.jsx)(b.S,{"data-testid":"transactions-use-localized-transaction-transformer-Currency",amount:o})}),p=Boolean(l||a||r||s||m),u=(t=>{switch(t){case nt.G.Support:return"serviceVisit";case nt.G.PointsExpiration:return"pointsExpired";default:return"pointsEarnedLabel"}})(n),f=n===nt.G.PointsExpiration?t({id:"pointsExpired"},{points:0}):t({id:"pointsEarnedLabel"},{points:0}),g=(0,d.jsxs)(J,{"data-testid":"transactions-use-localized-transaction-transformer-Rewards",children:[p&&(0,d.jsxs)(d.Fragment,{children:[!!a&&(0,d.jsx)(ct,{"data-testid":"transactions-use-localized-transaction-transformer-PointsLine",points:a,description:t({id:u},{points:a})}),!!s&&(0,d.jsx)(ct,{"data-testid":"transactions-use-localized-transaction-transformer-PointsLine-1",points:-s,description:t({id:u},{points:s})}),!!l&&(0,d.jsx)(ct,{"data-testid":"transactions-use-localized-transaction-transformer-PointsLine-2",points:l,description:t({id:"bonusPointsLabel"},{points:l})}),m&&(0,d.jsx)(ct,{"data-testid":"transactions-use-localized-transaction-transformer-PointsLine-3",points:-r,description:t({id:"pointsUsed"},{points:r})})]}),!p&&(0,d.jsx)(ct,{"data-testid":"transactions-use-localized-transaction-transformer-PointsLine-4",points:0,description:f})]});return{timeStamp:c,dateTime:(0,d.jsx)(lt,{"data-testid":"transactions-use-localized-transaction-transformer-DateAndTimeCell",timeStamp:c}),rewards:g,purchaseAmount:h,rbiOrderId:y}}),[t])};var mt=i(90536),ht=i(47232),pt=i(48405),ut=i(10681),ft=i(69722),gt=i(94230),bt=i(37737),xt=i.n(bt);const wt=(t,e)=>(0,o.useMemo)(t,(t=>{const e=(0,o.useRef)(t);return t.every(((t,i)=>xt()(e.current[i],t)))||(e.current=t),e.current})(e));var vt=i(68605).P;const At=s.Ay.table.withConfig({componentId:"sc-r7yc4r-0"})(["width:100%;table-layout:fixed;margin:0;border-spacing:0;border-collapse:collapse;td,th{white-space:nowrap;padding-inline-start:1rem;padding-inline-end:1rem;}"]),It=s.Ay.thead.withConfig({componentId:"sc-r7yc4r-1"})(["th{font-weight:",";padding-block-start:1rem;padding-block-end:1rem;","{&:first-child{width:100px;text-align:start;}}}tr:last-of-type th{border-block-end:1px solid ",";}"],vt.fontWeight.heavy,vt.mobile,vt.color.grey.four),Tt=s.Ay.tbody.withConfig({componentId:"sc-r7yc4r-2"})(["td{padding-block-start:1rem;padding-block-end:1rem;border-block-end:1px solid ",";","{&:first-child{white-space:normal;width:100px;}}}tr:last-of-type td{border-block-end:none;}",""],vt.color.grey.four,vt.mobile,(t=>t.$clickOnRow&&(0,s.AH)(["tr{cursor:pointer;}"]))),jt=t=>{const e=wt((()=>{const e=t.columnOrder||[],i=t.table.head[0]||t.table.body[0]||{};
1return Object.keys(i).forEach((t=>{e.includes(t)||e.push(t)})),e}),[t.columnOrder,t.table.head[0],t.table.body[0]]),i=t.onClickRow,n=o.useCallback((t=>i?()=>i(t):void 0),[i]);return(0,d.jsxs)(At,{"data-testid":"table-table-TableTag",children:[(0,d.jsx)(It,{"data-testid":"table-table-HeadRowGroup",children:t.table.head.map(((t,i)=>(0,d.jsx)("tr",{"data-testid":"table-table-tr",children:e.map(((e,i)=>(0,d.jsx)("th",{"data-testid":"table-table-th",children:t[e]},String(e)+"."+i)))},"row."+i)))}),(0,d.jsx)(Tt,{"data-testid":"table-table-BodyRowGroup",$clickOnRow:!!i,children:t.table.body.map(((t,i)=>(0,d.jsx)("tr",{"data-testid":"table-table-tr-1",onClick:n(t),children:e.map(((e,i)=>(0,d.jsx)("td",{"data-testid":"table-table-td",children:t[e]},String(e)+"."+i)))},"row."+i)))})]})};var Ct=i(67571),kt=i(24057);const Rt="yourCrownOrders",Pt="viewPurchasesAndOffers";var St=i(86410),Et=i(68605).P;const Lt=s.Ay.div.withConfig({componentId:"sc-btf72p-0"})(["display:flex;flex-direction:column;align-items:center;animation:"," 0.45s forwards;margin-block-start:1rem;"],St.qG),Ht=s.Ay.h3.withConfig({componentId:"sc-btf72p-1"})(["font-family:",";margin:0;","{font-size:2rem;}"],Et.fontFamily.brand,Et.mobileTiny),Dt=s.Ay.p.withConfig({componentId:"sc-btf72p-2"})(["font-weight:normal;text-align:center;"]),Ot=()=>{const t=(0,a.A)().formatMessage;return(0,d.jsxs)(Lt,{"data-testid":"history-header-history-header-HeaderContainer",children:[(0,d.jsx)(Ht,{"data-testid":"history-header-history-header-Header",children:t({id:Rt})}),(0,d.jsx)(Dt,{"data-testid":"history-header-history-header-SubText",children:t({id:Pt})})]})},zt="perks",Wt="purchaseAmount";var Mt=i(68605).P;const qt=t=>{let e=t.tableData;const i=(0,a.A)().formatMessage,n=(0,o.useState)(),r=n[0],s=n[1],l=rt().getMonth,c=(0,o.useState)(kt.l.SHOW_DETAILS),y=c[0],m=c[1],h=(0,o.useMemo)((()=>{const t=(t=>{const e=Object.entries(it()(t,(t=>{let e=t.timeStamp;return(0,ot.A)(new Date(e),"yyyy-MM")})));return tt()(e,0,"desc")})(e);return t.map((t=>{let e=t[1];return((t,e,i)=>({head:[{dateTime:(0,d.jsx)(E,{"data-testid":"transaction-table-structure-table-history-constructor-LeftHeader",children:i}),rewards:(0,d.jsxs)(L,{"data-testid":"transaction-table-structure-table-history-constructor-CenterHeader",children:[(0,d.jsx)(q,{"data-testid":"transaction-table-structure-table-history-constructor-StyledPointsIcon"}),t({id:zt})]}),purchaseAmount:(0,d.jsx)(S,{"data-testid":"transaction-table-structure-table-history-constructor-RightHeader",children:t({id:Wt})})}],body:e}))(i,e,l(e[0]))}))}),[i,l,e]),p=(0,o.useCallback)((t=>s(null==t?void 0:t.rbiOrderId)),[]),u=(0,o.useCallback)((()=>{s(""),m(kt.l.SHOW_DETAILS)}),[]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ot,{"data-testid":"loyalty-history-loyalty-history-HistoryHeader"}),h.map(((t,e)=>(0,d.jsx)(_,{"data-testid":"loyalty-history-loyalty-history-TableWrap",idx:e,bgColor:Mt.color.cardBackground,children:(0,d.jsx)(jt,{"data-testid":"loyalty-history-loyalty-history-Table",table:t,onClickRow:p})},"historyTable."+e))),r&&(0,d.jsx)(Ct.e,{"data-testid":"loyalty-history-loyalty-history-DetailsModal",rbiOrderId:r,onModalDismiss:u,setModalType:m,type:y})]})};var Bt=i(53683),Ut=i(74286),Nt=i(39089),_t=i(64799),Ft=i(69015),Yt=i(68605).P;const Gt=s.Ay.div.withConfig({componentId:"sc-fog4qy-0"})(["border-radius:",";background-color:",";font-size:1rem;color:",";margin-block-end:0.5rem;"],Yt.borderRadius,Yt.color.cardBackground,Yt.color.black),Kt=s.Ay.div.withConfig({componentId:"sc-fog4qy-1"})(["display:flex;flex-direction:column;align-items:center;padding:1rem;"]),Vt=s.Ay.div.withConfig({componentId:"sc-fog4qy-2"})(["display:flex;flex-direction:column;align-items:center;padding:1rem;font-size:0.875rem;text-align:center;"]),$t=s.Ay.div.withConfig({componentId:"sc-fog4qy-3"})(["border-block-start:1px solid ",";"],Yt.color.grey.five),Qt=(0,s.Ay)(Ft.KS).withConfig({componentId:"sc-fog4qy-4"})(["margin-block-start:0.5rem;"]),Zt=(Yt.fontFamily.brand,s.Ay.div.withConfig({componentId:"sc-fog4qy-6"})([""])),Jt=s.Ay.span.withConfig({componentId:"sc-fog4qy-7"})(["font-family:",";"],Yt.fontFamily.brand),Xt=s.Ay.div.withConfig({componentId:"sc-fog4qy-8"})(["margin-block-end:1rem;"]),te=(0,s.Ay)(_t.e).withConfig({componentId:"sc-fog4qy-9"})(["width:100%;height:1.8rem;margin-block-start:0.5rem;"]);var ee=i(68605).P;const ie=(0,s.Ay)(Gt).withConfig({componentId:"sc-1cxk035-0"})(["border-radius:0.625rem;border:1px solid ",";"],ee.color.grey.five),oe=t=>{let e=t.availablePoints,i=t.expirationPoints,o=t.expirationDate;const n=(0,a.A)(),r=n.formatDate,s=n.formatTime,l=n.formatMessage,c=(0,Ut.CR)().location,y=r(o,{year:"numeric",month:"2-digit",day:"2-digit",calendar:"gregory"})+" - "+s(o);return(0,d.jsxs)(ie,{"data-testid":"points-expiration-card",children:[(0,d.jsxs)(Kt,{"data-testid":"points-expiration-index-PointsExpirationHeader",children:[(0,d.jsx)(te,{"data-testid":"points-expiration-index-StyledRewardsLogo"}),(0,d.jsx)(Qt,{"data-testid":"points-expiration-index-StyledPointsDisplay",value:e,prefix:l({id:"rutrYouHave"}),suffix:l({id:"available"}).toLocaleLowerCase()})]}),(0,d.jsx)($t,{"data-testid":"points-expiration-index-Divider"}),(0,d.jsxs)(Vt,{"data-testid":"points-expiration-index-PointsExpirationContent",children:[(0,d.jsxs)(Zt,{"data-testid":"points-expiration-index-ExpirationMessage",children:[i?l({id:"yourPointsWillExpireWithAmount"},{amount:i}):l({id:"yourPointsWillExpire"})," ",(0,d.jsx)(Jt,{"data-testid":"expiration-datetime",children:y})]}),(0,d.jsx)(Xt,{"data-testid":"points-expiration-index-PurchaseMessage",children:l({
1id:"maintainYourPoints"})}),(0,d.jsx)(Bt.rA,{"data-testid":"points-expiration-index-ActionButton",to:Nt.JZ.menu,eventAttributes:{Name:"Redeem Now",Path:c.pathname},children:l({id:"orderNow"})})]})]})},ne=()=>{var t,e,i,n;const a=(0,o.useState)([]),r=a[0],s=a[1],l=(0,o.useState)(null),c=l[0],y=l[1],m=yt(),b=(0,pt.P)(),x=b.loyaltyUser,w=b.loading,v=(0,ht.G)(x).enableLoyaltyTiers,A=(0,mt._P)(mt.N$.ENABLE_LOYALTY_TIERS),I=v&&A,T=(0,h.mm)(),j=T.getScrollPositionForReload,C=T.pullToReloadEnabled,R=T.setScrollRef,P=(0,u.U)(u.z.Mobile),S=null!=(t=null==x?void 0:x.pointsExpiryDateKey)?t:void 0,E=null!=(e=null==x?void 0:x.expirationBuckets)?e:void 0,L=S&&E?null==(i=E.find((t=>t.expirationDate===S)))?void 0:i.pointsToExpire:void 0,H=(0,p.eqf)({skip:!(null!=x&&x.id),variables:{loyaltyId:(null==x?void 0:x.id)||""}}),z=H.data,W=H.loading,M=H.refetch,q=null==z||null==(n=z.loyaltyUser)?void 0:n.transactions,N=w||W,_=Number(null==x?void 0:x.points)>0&&(null==x?void 0:x.pointsExpiryDateKey);return(0,o.useLayoutEffect)((()=>{const t=document.querySelector(ft.Sk),e=document.querySelector(ft.ez),i=()=>{const i=((null==t?void 0:t.offsetHeight)||0)+((null==e?void 0:e.offsetHeight)||0);y(window.innerHeight-i)};i(),window.addEventListener("resize",i);const o=new ResizeObserver(i);t&&o.observe(t),e&&o.observe(e);const n=document.querySelector(ft.Vd);return n&&(n.style.overflow="hidden"),()=>{window.removeEventListener("resize",i),o.disconnect(),n&&n.style.removeProperty("overflow")}}),[]),(0,o.useEffect)((()=>{null!=q&&q.length&&s(q.filter(st).map(m))}),[m,q]),null!=z&&z.loyaltyUser||!N?(0,d.jsxs)(ut.t,{"data-testid":"loyalty-history-loyalty-history-LoyaltyBackground",fullHeight:!c,fixedHeight:c||void 0,scroll:!0,onScroll:j,ref:R,constrainToViewHeight:P,children:[v?(0,d.jsx)(f.v,{"data-testid":"loyalty-history-loyalty-history-LoyaltyBanner"}):null,(0,d.jsx)(O,{"data-testid":"loyalty-history-loyalty-history-RefreshContainer",children:(0,d.jsx)(gt.U,{"data-testid":"loyalty-history-loyalty-history-LoyaltyPullToReload",onRefresh:M,enabled:C,children:(0,d.jsxs)(D,{"data-testid":"loyalty-history-loyalty-history-HistoryContainer",children:[I?(0,d.jsx)(U,{"data-testid":"loyalty-history-loyalty-history-StyledLoyaltyTabSelectorWidget",activeTab:k.d.LOYALTY_HISTORY}):null,_&&(0,d.jsx)(oe,{"data-testid":"loyalty-history-loyalty-history-PointsExpirationCard",availablePoints:(null==x?void 0:x.points)||0,expirationPoints:L,expirationDate:(null==x?void 0:x.pointsExpiryDateKey)||""}),r.length?(0,d.jsx)(qt,{"data-testid":"loyalty-history-loyalty-history-LoyaltyHistoryView",tableData:r}):(0,d.jsx)(B,{"data-testid":"loyalty-history-loyalty-history-StyledLoyaltyNoRewardPoints"})]})})})]}):(0,d.jsx)(g.i,{"data-testid":"loyalty-history-loyalty-history-LoyaltyLoader"})},ae=()=>{const t=(0,a.A)().formatMessage;return(0,d.jsxs)("div",{"data-testid":"account-history-div",children:[(0,d.jsx)(n.mg,{"data-testid":"account-history-Helmet",title:t({id:"history"})}),(0,d.jsx)(y,{"data-testid":"account-history-PageWrapper",children:(0,d.jsxs)(m.k,{"data-testid":"account-history-AuthRequired",children:[(0,d.jsx)(r.l,{"data-testid":"account-history-BackArrowHistory"}),(0,d.jsx)(ne,{"data-testid":"account-history-LoyaltyHistory"})]})})]})}},56770:(t,e,i)=>{i.d(e,{k:()=>l,o:()=>d});var o=i(58168),n=(i(59284),i(59279)),a=i(12577),r=i(99533),s=i(60712);const l=t=>{let e=t.children;const i=(0,n.A)(),o=i.isAuthenticated,s=i.refreshCurrentUser,l=o();return(0,a.d)(),(0,r.S)((()=>{l&&s()})),l&&e},d=t=>e=>(0,s.jsx)(l,{"data-testid":"auth-required-index-AuthRequired",children:(0,s.jsx)(t,(0,o.A)({"data-testid":"auth-required-index-Component"},e))})},7414:(t,e,i)=>{i.d(e,{v:()=>a});var o=i(77119),n=i(38285);const a=()=>{var t,e;const i=(0,n._F)(),a=i.featureLoyaltyUIId,r=void 0===a?"":a,s=i.featureIdsLoading,l=(0,o._xz)({variables:{featureLoyaltyUIId:r},skip:!r}),d=l.data,c=l.loading;return{data:{noRewardPoints:null==d||null==(t=d.LoyaltyUI)?void 0:t.noRewardPoints,noRewardsAvailable:null==d||null==(e=d.LoyaltyUI)?void 0:e.noRewardsAvailable},loading:s||c}}},94230:(t,e,i)=>{i.d(e,{U:()=>r});i(59284);var o=i(31542),n=i(8609),a=i(60712);const r=t=>{let e=t.onRefresh,i=t.children,r=t.enabled,s=t.refreshContent;return(0,a.jsx)(o.a1,{"data-testid":"loyalty-pull-to-reload-loyalty-pull-to-reload-PullToReload",pullDownThreshold:200,triggerHeight:500,startInvisible:!0,enabled:r,onRefresh:e,pullDownContent:(0,a.jsx)(o.dz,{"data-testid":"loyalty-pull-to-reload-loyalty-pull-to-reload-PullToReloadContent",action:"pullingDown",animationData:n.v}),releaseContent:(0,a.jsx)(o.dz,{"data-testid":"loyalty-pull-to-reload-loyalty-pull-to-reload-PullToReloadContent-1",action:"releasing",animationData:n.v}),refreshContent:null!=s?s:(0,a.jsx)(o.dz,{"data-testid":"loyalty-pull-to-reload-loyalty-pull-to-reload-PullToReloadContent-2",action:"refreshing",animationData:n.T}),children:i})}},56096:(t,e,i)=>{i.d(e,{G:()=>o});let o=function(t){return t.App="APP",t.Campaign="CAMPAIGN",t.InitialPointBalance="INITIAL_POINT_BALANCE",t.Mobile="MOBILE",t.Orderless="ORDERLESS",t.PointsExpiration="POINTS_EXPIRATION",t.Prepaid="PREPAID",t.Quest="QUEST",t.Receipt="RECEIPT",t.Remediation="REMEDIATION",t.Restaurant="RESTAURANT",t.Support="SUPPORT",t.ThirdParty="THIRD-PARTY",t.Unsubscription="UNSUBSCRIPTION",t.Web="WEB",t}({})},27543:(t,e,i)=>{i.d(e,{d:()=>b,z:()=>x});
1var o=i(58168),n=i(98587),a=i(59284),r=i(14778),s=i(96290),l=i(90182),d=i(20147),c=i(63563),y=i(77696),m=i(74286),h=i(48405),p=i(60712),u=i(68605).P;const f=["activeTab"],g=d.Ay.div.withConfig({componentId:"sc-tp2c17-0"})(["display:block;width:90%;max-width:88rem;overflow:hidden;margin:0 auto;button{font-size:1rem;}button[aria-selected='true']{color:",";font-weight:bold;}","{margin-block-start:0;margin-block-end:1.5rem;margin-inline:auto;}"],(t=>(0,t.theme.token)("background-button-primary-default")),u.desktop);let b=function(t){return t[t.HOW_IT_WORKS=0]="HOW_IT_WORKS",t[t.LOYALTY_HISTORY=1]="LOYALTY_HISTORY",t}({});const x=t=>{let e=t.activeTab,i=void 0===e?b.HOW_IT_WORKS:e,d=(0,n.A)(t,f);const u=(0,s.A)().formatMessage,x=(0,l.Zp)(),w=(0,m.CR)().setEventPageName,v=(0,h.P)().loyaltyUser,A=(0,l.zy)(),I=(0,c.q)(),T=(0,a.useMemo)((()=>[{link:u({id:"loyaltyTiersHowItWorksButtonRoute",defaultMessage:"/rewards"}),title:u({id:"loyaltyTiersHowItWorksButtonLabel",defaultMessage:"How it works"})},{link:u({id:"loyaltyTiersRewardsHistoryButtonRoute",defaultMessage:"/rewards/history"}),title:u({id:"loyaltyTiersRewardsHistoryButtonLabel",defaultMessage:"View Rewards History"})}]),[u]),j=(0,a.useCallback)(((t,e)=>{var i;t.preventDefault();const o=(null==T||null==(i=T[e])?void 0:i.link)||"";null!=o&&o.startsWith("/")&&(u({id:"loyaltyTiersRewardsHistoryButtonRoute",defaultMessage:"/rewards/history"})===o&&(I.trackEvent({name:y.og.TAB,type:y.wf.Other,attributes:{Name:"Crowns History",Path:A.pathname}}),w(y.A3.Rewards)),u({id:"loyaltyTiersHowItWorksButtonRoute",defaultMessage:"/rewards"})===o&&(I.trackEvent({name:y.og.TAB,type:y.wf.Other,attributes:{Name:"How it Works",Path:A.pathname}}),w(y.A3.MyBurgerKingLoyaltyTiers)),x(o))}),[T,I,A.pathname,w,x,u]);return v?(0,p.jsx)(g,(0,o.A)({"data-testid":"static-loyaltyTabSelectorWidget-Container"},d,{children:(0,p.jsx)(r.wb,{"data-testid":"static-loyaltyTabSelectorWidget-TabList",selectedIndex:i,onChange:j,children:T.map(((t,e)=>(0,p.jsx)(r.oz,{"data-testid":"static-loyaltyTabSelectorWidget-Tab","aria-controls":"loyalty-tab-selector",id:"loyalty-tab-selector-all",label:t.title,selected:e===i},e)))})})):null}}}]);

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.