PageSourceSearch

https://www.burgerking.co.uk/static/js/6461.b831d5eb.chunk.js

js burgerking.co.uk collected 2026-10-01 11:43:52 UTC 8,541 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[6461],{6461:(t,a,e)=>{e.r(a),e.d(a,{LoyaltyCtaBar:()=>st});e(59284);var n=e(96290),i=e(90182),o=e(53922),r=e(30279),l=e(90536),d=e(99160),s=e(48405),c=e(58168),y=e(98587),g=e(6128),m=e.n(g),b=e(53683),h=e(69015),p=(e(80410),e(94390)),f=e(20147),w=e(68605).P;const x=f.Ay.h1.withConfig({componentId:"sc-xiebxp-0"})(["font-size:1.5rem;font-family:",";font-weight:bold;margin-block-start:0;margin-block-end:0.875rem;margin-inline:0;text-align:start;span{display:block;}","{font-size:3.125rem;text-align:center;span{display:unset;}}div{display:none;}"],w.fontFamily.brand,w.desktop),u=f.Ay.div.withConfig({componentId:"sc-xiebxp-1"})(["color:",";span{font-family:",";}div{margin-inline-start:0.625rem;}"],w.color.white,w.fontFamily.brand);var v=e(60712);const A=()=>{const t=(new Date).getHours();return t<12?"greetingMorning":t<17?"greetingAfternoon":"greetingEvening"};let C=function(t){return t[t.TEXT=0]="TEXT",t[t.HEADING=1]="HEADING",t}({});const k=t=>{var a;let e=t.className,i=t.dayPeriodEnabled,o=void 0===i||i,r=t.variant,l=void 0===r?C.HEADING:r;const d=(0,n.A)().formatMessage,c=(0,s.P)().loyaltyUser,y=((null==c||null==(a=c.name)?void 0:a.split(" "))||[])[0],g=o?d({id:A()},{name:(0,v.jsx)("span",{"data-testid":"loyalty-greeting-widget-loyalty-greeting-widget-span",children:y})}):d({id:"hiX"},{name:(0,v.jsx)("span",{"data-testid":"loyalty-greeting-widget-loyalty-greeting-widget-span-1",children:y})}),m=l===C.HEADING?x:u;return(0,v.jsxs)(m,{className:e,"data-private":!0,"data-dd-privacy":"mask","data-testid":"greeting-widget",children:[g,(0,v.jsx)(p.I,{"data-testid":"loyalty-greeting-widget-loyalty-greeting-widget-Icon",icon:"next",color:"white",width:"16px","aria-hidden":!0})]})};b.Vs.OUTLINE;e(95105);e(72279),e(63554);var j=e(22638),I=e(40767),z=e(84662),L=e(68605).P;z.M.$white,L.borderRadius,L.boxShadow,I.Z.headerTwo,I.Z.copyOne,I.Z.copyOne;var P=e(54952),T=e(10364),N=e(64799),E=e(86410),H=e(68605).P;const M=(0,f.AH)(["display:flex;align-items:center;"]),B=f.Ay.div.withConfig({componentId:"sc-8ei8zh-0"})([""," cursor:pointer;min-height:2.5rem;overflow:hidden;justify-content:space-between;background-color:",";animation:"," 0.4s forwards;font-weight:",";
1"],M,H.color.contrastBackground,E.qG,H.fontWeight.heavy),R=f.Ay.div.withConfig({componentId:"sc-8ei8zh-1"})([""," padding:0 0.75rem;color:",";gap:0.25em;font-family:",";","{padding-block-start:0.5rem;padding-block-end:0.625rem;padding-inline:0.5rem;}"],M,H.color.white,H.fontFamily.brand,H.mobileTiny),S=f.Ay.div.withConfig({componentId:"sc-8ei8zh-2"})([""," margin:0;max-height:5.875rem;justify-content:space-between;padding:0 0.75rem;width:100%;"],M),D=(0,f.AH)(["margin:0;color:",";"],H.color.white),F=f.Ay.p.withConfig({componentId:"sc-8ei8zh-3"})([""," font-size:0.875rem;",";"],D,(t=>t.bold&&"font-weight: bold")),G=f.Ay.div.withConfig({componentId:"sc-8ei8zh-4"})(["",";align-items:baseline;flex-direction:row;"],M),W=(H.mobileTiny,(0,f.Ay)(P.P).withConfig({componentId:"sc-8ei8zh-6"})(["margin:0 0.25rem;path{fill:",";}&&{height:1.1rem;width:1.1rem;}"],H.color.success)),X=(0,f.AH)(["color:",";font-family:",";font-size:1rem;text-transform:none;"],H.color.white,H.fontFamily.brand),O=(0,f.Ay)(b.rA).withConfig({componentId:"sc-8ei8zh-7"})([""," margin-block:0;margin-inline-start:0.25rem;margin-inline-end:0;"],X),q=(0,f.Ay)(k).withConfig({componentId:"sc-8ei8zh-8"})([""," display:flex;align-items:baseline;justify-content:flex-end;white-space:nowrap;width:58%;font-size:0.875rem;padding:0 0.75rem;overflow:hidden;animation:"," 0.25s forwards;span{"," line-height:1.4rem;margin-block:0;margin-inline-start:0.25rem;margin-inline-end:0;text-overflow:ellipsis;overflow:hidden;}","{padding-block-start:0;padding-block-end:0.125rem;padding-inline:0.5rem;font-size:0.8rem;span{font-size:0.95rem;}}"],D,E.qG,X,H.mobileTiny),U=(0,f.Ay)(T.b).withConfig({componentId:"sc-8ei8zh-9"})(["margin-inline-end:0.5rem;margin-inline-start:1rem;"]),V=f.Ay.div.withConfig({componentId:"sc-8ei8zh-10"})(["",""],M),Z=(0,f.Ay)(N.e).withConfig({componentId:"sc-8ei8zh-11"})(["min-width:6.25rem;margin-block-start:0.5rem;"]),_=t=>{let a=t.points,e=t.loading,n=t.hideLoyaltyLogo;return(0,v.jsxs)(R,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-PointsWrapper",children:[!n&&(0,v.jsx)(Z,{"data-testid":"loyalty-rewards-logo",inverted:!0}),!e&&(0,v.jsx)(h.KS,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-PointsDisplay",value:a})]})},Y=t=>{let a=t.formatMessage,e=t.handleClick;return(0,v.jsxs)(V,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-JoinNowContainer",children:[(0,v.jsx)(W,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-PointBalancePointsIcon"}),(0,v.jsxs)(G,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-TextContainer",children:[(0,v.jsxs)(F,{"data-testid":"earn-points",children:[a({id:"earnPoints"})," -"]}),(0,v.jsx)(O,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-JoinNowCTA",size:b.LS.SMALL,variant:b.Vs.TEXT_ONLY,onClick:e,children:a({id:"joinNow"})})]})]})},J=t=>{let a=t.handleClick,e=t.points,i=t.loading,o=void 0===i||i,r=t.hideLoyaltyLogo,l=void 0!==r&&r;const d=(0,n.A)().formatMessage,s=o||!m()(e);return(0,v.jsx)(B,{onClick:a,"data-testid":"loyalty-cta-bar",children:s?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(_,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-PointsContent",points:e,loading:o,hideLoyaltyLogo:l}),o?(0,v.jsx)(U,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-StyledLoadingAnimation"}):(0,v.jsx)(q,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-GreetingWrapper",variant:C.TEXT,dayPeriodEnabled:!1})]}):(0,v.jsxs)(S,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-CTAWrapper",children:[!l&&(0,v.jsx)(Z,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-LoyaltyRewardsLogo",inverted:!0}),(0,v.jsx)(Y,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-CtaContent",formatMessage:d,handleClick:a})]})})},K=["loading"],$=t=>{let a=t.loading,e=void 0===a||a,n=(0,y.A)(t,K);return(0,v.jsx)(J,(0,c.A)({"data-testid":"loyalty-cta-bar-loyalty-cta-bar-LoyaltyCtaBarViewBase"},n,{loading:e}))};var Q=e(77119),tt=e(78350),at=e(68605).P;const et="#ff8732",nt=(0,f.i7)(["from{transform:",";}to{opacity:1;transform:",";}"],(0,tt.gM)("-15px"),(0,tt.gM)(0)),it=f.Ay.div.withConfig({componentId:"sc-inqxdh-0"})(["position:absolute;inset-inline-start:0;inset-block-start:calc(100% - 8px);z-index:",";"],at.zIndex.max),ot=f.Ay.div.withConfig({componentId:"sc-inqxdh-1"})(["position:relative;opacity:0;animation:"," 0.4s 0.15s forwards;z-index:",";"],nt,at.zIndex.normal),rt=f.Ay.div.withConfig({componentId:"sc-inqxdh-2"})(["background-color:",";font-family:",";font-size:0.75rem;height:1.5rem;position:relative;color:#ffffff;text-align:start;padding-block:0.375rem;padding-inline-start:0.75rem;padding-inline-end:0.2rem;line-height:1;z-index:",";font-weight:",";&::before,&::after{content:'';position:absolute;inset-block-start:0;inset-inline-end:-4px;height:1.5rem;width:1rem;background-color:",";z-index:-1;}&::before{transform:rotate(-0deg) skewX(-35deg);border-start-end-radius:20%;}&::after{transform:rotate(180deg) skewX(35deg);border-start-start-radius:20%;}"],et,at.fontFamily.brand,at.zIndex.top,at.fontWeight.normal,et),lt=t=>{let a=t.text;return(0,v.jsx)(ot,{"data-testid":"loyalty-ribbon-ribbon-RibbonContent",children:(0,v.jsx)(it,{"data-testid":"loyalty-ribbon-ribbon-RibbonWrapper",children:(0,v.jsx)(rt,{"data-testid":"loyalty-ribbon-ribbon-StyledRibbon",children:a})})})},dt=t=>{var a;let e=t.promoId;const n=(0,Q.AKH)({variables:{id:e},skip:!e}).data,i=null==n||null==(a=n.SystemwidePromotion)||null==(a=a.promoMessage)?void 0:a.locale;return i?(0,v.jsx)(lt,{"data-testid":"loyalty-ribbon-ribbon-promo-message-Ribbon",text:i}):null},st=()=>{var t;const a=(0,d.L)(),e=(0,s.P)(),c=e.loyaltyUser,y=e.loading,g=(0,l._P)(l.N$.SHOW_LOYALTY_BANNER_V1),m=(0,o.k)().featureLoyaltyUi,b=(0,i.Zp)(),h=(0,r.Z2)().loading,p=(0,n.A)().formatMessage;if(!a||!g)return null;const f=y||h,w=null==c||null==(t=c.bestPromotion)?void 0:t.sanityId;return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)($,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-LoyaltyCtaBarView",loading:f,handleClick:()=>{var t;const a=null==c?p({id:"routes.signUp"}):(null==m||null==(t=m.loyaltyCTAButtons)||null==(t=t.loyaltyBannerHomepageAuthenticatedButton)||null==(t=t.loyaltyBannerHomepageAuthenticatedLink)?void 0:t.locale)||p({id:"routes.loyaltyDashboard"});b(a)},points:null==c?void 0:c.points}),w&&(0,v.jsx)(dt,{"data-testid":"loyalty-cta-bar-loyalty-cta-bar-RibbonPromoMessage",promoId:w})]})}}}]);

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.