PageSourceSearch

https://www.burgerking.co.za/static/js/5696.99ca67bb.chunk.js

js burgerking.co.za collected 2026-09-24 21:56:04 UTC 14,932 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[5696],{83706:(e,r,t)=>{t.d(r,{z:()=>I});var i=t(59284),o=t(96290),n=t(27934),a=t(40937),d=t(40598);var l=t(20147);const s=(0,t(41230).gZ)((async()=>({default:(await t.e(5711).then(t.bind(t,45711))).CartLoading})));var c=t(60712),u=t(68605).P;const f=l.Ay.div.withConfig({componentId:"sc-120hegx-0"})(["height:13.75rem;margin:1.875rem;","{margin:3.125rem;}"],u.desktop),m=()=>(0,c.jsx)(f,{"data-testid":"cart-loading-graphic",children:(0,c.jsx)(i.Suspense,{fallback:null,children:(0,c.jsx)(s,{"data-testid":"cart-loading-loading-animation-Animation"})})});var g=t(68605).P;const v={backgroundColor:g.color.white,textColor:g.color.black,titleColor:g.color.black};var p=t(68605).P;const h=l.Ay.div.withConfig({componentId:"sc-1bnrw8h-0"})(["background-color:",";width:100vw;height:80vh;display:flex;flex-flow:column;align-items:center;justify-content:center;"],(e=>e.theme.primaryBackground)),b=l.Ay.h2.withConfig({componentId:"sc-1bnrw8h-1"})(["min-height:8rem;text-align:center;font-family:",";color:",";font-weight:bold;font-size:1.625rem;letter-spacing:-0.7px;margin:0 auto;padding:0 2.5rem;"],p.fontFamily.base,v.titleColor),k=l.Ay.p.withConfig({componentId:"sc-1bnrw8h-2"})(["text-align:center;font-size:0.9375rem;line-height:1.33;color:",";font-family:",";padding:0 3.5rem;"],v.textColor,p.fontFamily.body),I=e=>{let r=e.children;const t=(0,o.A)().formatMessage,i=(()=>{var e,r,t,i;const o=(0,a.U)("mobile"),l=(0,d.fz)().buildImageUrl,s=(0,n.C)().featureLayout,c=null==s||null==(e=s.loadingGraphics)?void 0:e.cartInitialLoader,u=o?null==c?void 0:c.mobileGraphic:null==c?void 0:c.desktopGraphic,f=null==u||null==(r=u.asset)?void 0:r._id;return{src:f?l(f):"",alt:(null==c||null==(t=c.title)?void 0:t.locale)||void 0,text:null==c||null==(i=c.text)?void 0:i.locale}})(),l=i.alt,s=i.text;return(0,c.jsxs)(h,{"data-testid":"cart-loading","aria-label":t({id:"checkForPricing"}),children:[(0,c.jsx)(m,{"data-testid":"cart-loading-index-LoadingAnimation"}),r,!r&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(b,{"data-testid":"cart-loading-title",children:l}),(0,c.jsx)(k,{"data-testid":"cart-loading-text",children:s})]})]})}},43733:(e,r,t)=>{t.d(r,{y:()=>h});var i=t(58168),o=(t(59284),t(94390)),n=t(90182),a=t(20147),d=t(6186),l=t(40937),s=t(44928);const c=!0;var u=t(27464),f=t(60712),m=t(68605).P;const g=a.I4.div.withConfig({componentId:"sc-1flga55-0"})(["position:absolute;inset-inline-start:calc(1.25rem + env(safe-area-inset-left));display:flex;align-items:center;justify-content:center;"]),v=e=>{let r=e.heading,t=e.closeHref,i=e.onClose,a=e.disableClose,l=e.skipGoBackOnClose,s=void 0!==l&&l,v=e.useBackButton,p=void 0!==v&&v,h=e.hideHeader,b=void 0!==h&&h;const k=(0,n.Zp)(),I=e=>{i?i(e):t?k(t):s||window.history.back()};return b?null:(0,f.jsxs)(u.Y9,{"data-testid":"full-page-screen-header-Header",children:[!a&&(p?(0,f.jsx)(g,{"data-testid":"full-page-screen-header-ButtonWrapper",children:(0,f.jsx)(u.OV,{"data-testid":"full-page-screen-header-StyledButton",onClick:I,inverted:c,children:(0,f.jsx)(o.I,{"data-testid":"full-page-screen-header-Icon",icon:"back",color:m.color.white,width:"1.5rem","aria-hidden":!0})})}):(0,f.jsx)(g,{"data-testid":"full-page-screen-header-ButtonWrapper-1",children:(0,f.jsx)(d.J,{"data-testid":"full-page-screen-header-CloseButton",onClick:I,inverted:c})})),(0,f.jsx)(u.DZ,{"data-testid":"full-page-screen-header-Heading",children:r})]})},p=(0,s.RX)(v),h=e=>(0,l.U)("mobile")?(0,f.jsx)(p,(0,i.A)({"data-testid":"full-page-screen-header-PortaledFullPageScreenHeader"},e)):(0,f.jsx)(v,(0,i.A)({"data-testid":"full-page-screen-header-FullPageScreenHeader"},e))},50399:(e,r,t)=>{t.d(r,{J:()=>m});var i=t(59284),o=t(20147),n=t(65035),a=t(88821),d=t(43733),l=t(60712),s=t(68605).P;const c=o.Ay.div.withConfig({componentId:"sc-69ap94-0"})(["position:fixed;display:grid;z-index:",";inset-block-start:0;inset-inline-end:0;inset-block-end:0;inset-inline-start:0;-webkit-overflow-scrolling:touch;overflow:hidden;","{overflow-y:auto;}"],s.zIndex.overlay+100,s.desktop),u=o.Ay.div.withConfig({componentId:"sc-69ap94-1"})(["position:relative;height:100%;min-height:100%;"]),f=o.Ay.section.withConfig({componentId:"sc-69ap94-2"})(["position:fixed;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inset-inline-start:0;background-color:",";display:flex;flex:1;"," ","{inset-block-start:",";}"],(e=>
1e.theme.primaryBackground),(e=>e.$shouldRemoveOverflow?(0,o.AH)(["overflow-y:hidden;"]):(0,o.AH)(["overflow:scroll;overflow-y:auto;overflow-x:visible;"])),s.desktop,s.layout.checkoutHeaderHeight),m=e=>{let r=e.className,t=e.children,o=e.heading,m=e.closeHref,g=e.onClose,v=e.disableClose,p=e.removeOverflow,h=e.skipGoBackOnClose,b=void 0!==h&&h,k=e.useBackButton,I=void 0!==k&&k,w=e.hideHeader,y=void 0!==w&&w,x=e.adjustToVisualViewport,C=void 0!==x&&x;const E=(0,a.Ws)().setFullPageModalActive,A=(0,i.useRef)(null);return(0,n.x)({containerRef:A,verticalOffset:Number.parseInt(s.layout.checkoutHeaderHeight,10),adjustToVisualViewport:C}),(0,i.useEffect)((()=>(E(!0),()=>E(!1))),[E]),(0,l.jsxs)(c,{"data-testid":"full-page-screen-index-FullPageContainer",className:r,children:[(0,l.jsx)(d.y,{"data-testid":"full-page-screen-index-PortalHeader",closeHref:m,heading:o,onClose:g,disableClose:v,skipGoBackOnClose:b,useBackButton:I,hideHeader:y}),(0,l.jsx)(u,{"data-testid":"full-page-screen-index-ContainerWrapper",children:(0,l.jsx)(f,{"data-testid":"full-page-screen-index-Container",ref:A,$shouldRemoveOverflow:p,children:t})})]})}},27464:(e,r,t)=>{t.d(r,{DZ:()=>d,OV:()=>l,Y9:()=>a,bF:()=>n});var i=t(20147),o=t(68605).P;const n="calc("+o.layout.checkoutHeaderHeight+" + env(safe-area-inset-top))",a=i.Ay.div.withConfig({componentId:"sc-15rql6a-0"})(["display:flex;align-items:center;background:",";width:100%;z-index:",";height:",";"," ","{position:absolute;}"],o.color.black,o.zIndex.overlay+150,n,o.native((0,i.AH)(["padding-block-start:env(safe-area-inset-top);"])),o.desktop),d=i.Ay.h1.withConfig({componentId:"sc-15rql6a-1"})(["font-size:1.25rem;color:",";font-family:",";margin:0.75rem auto;text-transform:capitalize;"],o.color.white,o.fontFamily.base),l=i.Ay.button.withConfig({componentId:"sc-15rql6a-2"})(["align-items:center;appearance:none;border:0;background:",";"," border-radius:50%;color:",";cursor:pointer;display:flex;font-size:1.375rem;justify-content:center;padding:0;"],(e=>e.inverted?o.color.black:e.theme.primaryBackground),(e=>e.noBackground&&"background: transparent;"),(e=>e.inverted?o.color.white:o.color.black))},27934:(e,r,t)=>{t.d(r,{C:()=>n});var i=t(77119),o=t(38285);const n=()=>{var e;const r=(0,o._F)(),t=r.featureLayoutId,n=void 0===t?"":t,a=r.featureIdsLoading,d=(0,i.quP)({variables:{featureLayoutId:n},skip:!n}),l=d.data,s=d.loading;return{featureLayout:null!=(e=null==l?void 0:l.FeatureLayout)?e:null,featureLayoutLoading:a||s}}},5750:(e,r,t)=>{t.d(r,{z:()=>u});var i=t(59284);let o=null;const n=function(e,r){var t;void 0===r&&(r="location=no,toolbar=no");const i=null==(t=window.cordova)?void 0:t.InAppBrowser;if(!i)throw new Error('"window.cordova.InAppBrowser" is not defined');const n=i.open(e,"_blank",r);return n.__listeners={},o=n,n},a=(e,r)=>{if(!o)throw new Error("InAppBrowser is not open");o.addEventListener(e,r),o.__listeners[e]=r},d=()=>{o&&(o.close(),o=null)},l=()=>{o&&o.show()},s=()=>
1{if(o){const e=o.__listeners||{};Object.entries(e).forEach((e=>{var r;let t=e[0],i=e[1];null==(r=o)||null==r.removeEventListener||r.removeEventListener(t,i)})),o.__listeners={},d()}},c=()=>!!o,u=()=>({open:(0,i.useCallback)(n,[]),close:(0,i.useCallback)(d,[]),show:(0,i.useCallback)(l,[]),isOpen:(0,i.useCallback)(c,[]),addListener:(0,i.useCallback)(a,[]),closeAndCleanListeners:(0,i.useCallback)(s,[])})},95696:(e,r,t)=>{t.r(r),t.d(r,{OrderTrackingIframePage:()=>O});var i=t(59284),o=t(16170),n=t(41657),a=t(96290),d=t(90182),l=t(20147),s=t(83706),c=t(50399),u=t(81358),f=t(5750),m=t(40937),g=t(63563),v=t(77696),p=t(3015),h=t(5996),b=t(39089),k=t(91387),I=t(21605),w=t(92725),y=t(60712);const x=l.I4.iframe.withConfig({componentId:"sc-5jmu2r-0"})(["width:100%;height:100%;border:none;margin:0;padding:0;display:block;"]),C=l.I4.div.withConfig({componentId:"sc-5jmu2r-1"})(["position:absolute;inset-block-start:0;inset-inline-start:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:",";"],(e=>e.theme.primaryBackground)),E=l.I4.div.withConfig({componentId:"sc-5jmu2r-2"})(["width:100%;height:100%;position:relative;"]),A=e=>{let r=e.isDesktop;const t=(0,a.A)().formatMessage,i=t({id:"processingOrder"}),o=t({id:"processingOrderAlmostDone"});return(0,y.jsxs)(s.z,{"data-testid":"order-confirmation-order-tracking-iframe-CartLoading",children:[(0,y.jsx)(I.RL,{"data-testid":"order-confirmation-order-tracking-iframe-IframeLoadingTitle",children:i}),(0,y.jsx)(I.u8,{"data-testid":"order-confirmation-order-tracking-iframe-IframeLoadingText",$isDesktop:r,children:o})]})},O=()=>{var e,r;const t=(0,i.useState)(!1),l=t[0],s=t[1],I=(0,i.useState)(!1),O=I[0],j=I[1],L=(0,i.useState)(!1),_=L[0],R=L[1],F=(0,i.useState)(!1),S=F[0],M=F[1],T=(0,i.useRef)(null),B=(0,i.useState)(!1),D=B[0],H=B[1],z=(0,i.useRef)(null),U=(0,i.useRef)(null),P=(0,i.useRef)(!1),G=(0,a.A)().formatMessage,Z=(0,d.Zp)(),J=(0,d.zy)(),V=(0,d.g)().rbiOrderId,Y=(0,m.U)("desktop"),X=(0,g.q)().trackEvent,q=(0,u.Y)({failureStatuses:p.k.failures,rbiOrderId:V,successStatuses:p.k.success,skip:_}),N=q.serverOrder,W=q.loading,$=null==N||null==(e=N.delivery)?void 0:e.deliveryStatusUrl,K=(0,k.uL)($),Q=null==(r=J.state)?void 0:r.fromDetailsModal;(0,i.useEffect)((()=>{!$||K||O||(h.vF.error({message:"[Order tracking iframe] Delivery iframe URL failed upfront validation",orderId:null==N?void 0:N.rbiOrderId,deliveryUrl:(0,k.jg)($),bypassSampling:!0}),j(!0))}),[$,K,O,null==N?void 0:N.rbiOrderId]),(0,i.useEffect)((()=>{if(N&&!$&&!D&&!O){H(!0);const e=setTimeout((()=>{h.vF.error({message:"[Order tracking iframe] Delivery iframe URL not available for order tracking",orderId:null==N?void 0:N.rbiOrderId,bypassSampling:!0}),j(!0)}),k.pq);T.current=e}}),[N,$,D,O]),(0,i.useEffect)((()=>{$&&T.current&&(clearTimeout(T.current),T.current=null,H(!1))}),[$]),(0,i.useEffect)((()=>()=>{T.current&&clearTimeout(T.current)}),[]),(0,i.useEffect)((()=>{W||N||Z(b.JZ.base,{replace:!0})}),[W,N,Z]),(0,i.useEffect)((()=>{$&&l&&R(!0)}),[$,l]);const ee=$&&K&&!l&&!O||!$&&!O;(0,i.useEffect)((()=>{$&&!z.current&&(z.current=performance.now())}),[$]),(0,i.useEffect)((()=>{if($&&z.current&&!l){const e=setTimeout((()=>{if(!l&&z.current){const e=(0,w.vw)(z.current),r=e.loadTime,t=e.loadTimeMs,i=e.loadTimeInSeconds;r>2e3&&h.vF.error({message:"[Order tracking iframe] Iframe load timeout",loadTime:i,loadTimeMs:t,orderId:V||(null==N?void 0:N.rbiOrderId),deliveryUrl:(0,k.jg)($),bypassSampling:!0})}}),2e3);return()=>clearTimeout(e)}}),[$,l,V,null==N?void 0:N.rbiOrderId]);const re=(0,i.useCallback)((()=>{if(s(!0),z.current){const e=(0,w.vw)(z.current),r=e.loadTimeMs,t=e.loadTimeInSeconds;h.vF.info((0,k.zv)(v.rX.IFRAME_LOADED_SUCCESSFULLY_MESSAGE,V||(null==N?void 0:N.rbiOrderId),{loadTime:t,loadTimeMs:r,deliveryUrl:(0,k.jg)($)})),X((0,k.Fb)(v.og.DELIVERY_IFRAME_LOAD,V||(null==N?void 0:N.rbiOrderId),{vendor:"uber",result:"success",load_time_ms:r,source:"iframe-onload"}))}}),[V,null==N?void 0:N.rbiOrderId,$,X]),te=(0,i.useCallback)((()=>{if(z.current){const e=(0,w.vw)(z.current),r=e.loadTimeMs,t=e.loadTimeInSeconds;h.vF.error((0,k.zv)(v.rX.IFRAME_LOAD_ERROR_MESSAGE,V||(null==N?void 0:N.rbiOrderId),{loadTime:t,loadTimeMs:r,deliveryUrl:(0,k.jg)($)})),X((0,k.Fb)(v.og.DELIVERY_IFRAME_LOAD,V||(null==N?void 0:N.rbiOrderId),{vendor:"uber",result:"error",message:v.rX.IFRAME_LOAD_ERROR_MESSAGE,load_time_ms:r,iframe_src:(0,k.jg)($),source:"iframe-onerror"})),j(!0)}}),[V,null==N?void 0:N.rbiOrderId,$,X]),ie=(0,i.useCallback)((()=>{const e=V||(null==N?void 0:N.rbiOrderId);e?Z(b.JZ.orderConfirmation+"/"+e,{state:{uberIframeUrlNotFound:!0},replace:!0}):Z(b.JZ.base,{replace:!0})}),[Z,V,null==N?void 0:N.rbiOrderId]),oe=(0,i.useCallback)((()=>{Z(Q?b.JZ.orders:b.JZ.base,{replace:!0})}),[Z,Q]),ne="ios"===o.Ii.getPlatform(),ae=(0,f.z)(),de=ae.open,le=ae.addListener,se=ae.closeAndCleanListeners,ce=ae.show,ue=(0,i.useCallback)((()=>
1{if($&&K&&ne)try{de($,k.Kp),le("loadstart",(()=>{U.current||(U.current=performance.now()),h.vF.info((0,k.zv)(v.rX.IFRAME_LOADED_SUCCESSFULLY_MESSAGE,V||(null==N?void 0:N.rbiOrderId),{deliveryUrl:(0,k.jg)($),inAppBrowser:!0}))})),le("loadstop",(()=>{if(s(!0),ce(),U.current){const e=(0,w.vw)(U.current).loadTimeMs;X((0,k.Fb)(v.og.DELIVERY_IFRAME_LOAD,V||(null==N?void 0:N.rbiOrderId),{vendor:"uber",result:"success",load_time_ms:e,source:"ios-loadstop"}))}})),le("loaderror",(()=>{const e=(U.current?(0,w.vw)(U.current):{loadTimeMs:0}).loadTimeMs;h.vF.error((0,k.zv)(v.rX.IFRAME_LOAD_ERROR_MESSAGE,V||(null==N?void 0:N.rbiOrderId),{deliveryUrl:(0,k.jg)($),inAppBrowser:!0,loadTimeMs:e})),X((0,k.Fb)(v.og.DELIVERY_IFRAME_LOAD,V||(null==N?void 0:N.rbiOrderId),{vendor:"uber",result:"error",message:v.rX.IFRAME_LOAD_ERROR_MESSAGE,load_time_ms:e,iframe_src:(0,k.jg)($),source:"ios-loaderror"})),j(!0)})),le("exit",(()=>{M(!0),Z(Q?b.JZ.orders:b.JZ.base,{replace:!0})}))}catch(e){h.vF.error((0,k.zv)(v.rX.IFRAME_LOAD_ERROR_MESSAGE,V||(null==N?void 0:N.rbiOrderId),{deliveryUrl:(0,k.jg)($),error:e instanceof Error?e.message:String(e),inAppBrowser:!0})),j(!0)}}),[$,K,ne,de,le,ce,V,null==N?void 0:N.rbiOrderId,Z,Q,X]);return(0,i.useEffect)((()=>{ne&&K&&$&&!O&&!l&&!P.current&&(P.current=!0,ue())}),[ne,K,$,O,l,ue]),(0,i.useEffect)((()=>()=>{se()}),[se]),(0,i.useEffect)((()=>{O&&ie()}),[O,ie]),!N&&W?(0,y.jsx)(C,{"data-testid":"order-confirmation-order-tracking-iframe-LoadingContainer",children:(0,y.jsx)(A,{"data-testid":"order-confirmation-order-tracking-iframe-LoadingBlock",isDesktop:Y})}):N||W?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(n.mg,{"data-testid":"order-confirmation-order-tracking-iframe-Helmet",title:G({id:"orderTrackingIframe"})}),ne&&ee&&(0,y.jsx)(C,{"data-testid":"order-confirmation-order-tracking-iframe-LoadingContainer-1",children:(0,y.jsx)(A,{"data-testid":"order-confirmation-order-tracking-iframe-LoadingBlock-1",isDesktop:Y})}),!S&&!ne&&(0,y.jsx)(c.J,{"data-testid":"order-confirmation-order-tracking-iframe-FullPageScreen",heading:G({id:"deliveryOrder"}),onClose:oe,disableClose:!1,removeOverflow:!0,skipGoBackOnClose:!0,children:(0,y.jsxs)(E,{"data-testid":"order-confirmation-order-tracking-iframe-IframeContainer",children:[ee&&(0,y.jsx)(C,{"data-testid":"order-confirmation-order-tracking-iframe-LoadingContainer-2",children:(0,y.jsx)(A,{"data-testid":"order-confirmation-order-tracking-iframe-LoadingBlock-2",isDesktop:Y})}),$&&K&&!ne&&(0,y.jsx)(x,{title:"Order Tracking Iframe","data-testid":"order-tracking-iframe",id:"order-tracking-iframe",src:$,onLoad:re,onError:te,referrerPolicy:"strict-origin-when-cross-origin"})]})})]}):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.