PageSourceSearch

https://www.burgerking.co.uk/static/js/73.3792eaf9.chunk.js

js burgerking.co.uk collected 2026-10-01 11:40:32 UTC 7,874 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[73],{2107:function(e,t,n){"use strict";n.r(t);var i=n(0),a=n.n(i),o=n(302),d=n(2),s=d.d.button.withConfig({displayName:"switchstyled__StyledSwitchButton",componentId:"sc-vlgfuz-0"})(["cursor:pointer;border:none;border-radius:50px;width:50px;height:24px;position:relative;background:",";vertical-align:middle;"," &:hover,&:focus{outline:none;box-shadow:",";}::after{content:'';position:absolute;border-radius:50%;background:",";height:18px;width:18px;top:3px;left:3px;transition:0.2s ease-out transform;}&[aria-checked='true']{background:",";::after{transform:translateX(25px);}}"],(function(e){return e.theme.token("background-switch-track")}),(function(e){return e.disabled&&{background:e.theme.token("background-switch-track-disabled")}}),(function(e){return e.disabled?"none":e.theme.token("box-shadow-pattern")}),(function(e){return e.theme.token("background-switch-thumb")}),(function(e){return e.disabled?e.theme.token("background-switch-track-disabled"):e.theme.token("background-active")})),c=d.d.div.withConfig({displayName:"switchstyled__StyledButtonAndLabelWrapper",componentId:"sc-vlgfuz-1"})(["display:grid;grid-auto-flow:column;","{justify-self:end;}"],s),l=i.forwardRef((function(e,t){var n=e.disabled,a=void 0!==n&&n,o=e.checked,d=void 0!==o&&o,c=e.onClick,l=e.id,r=e["data-testid"],u=i.useCallback((function(e){c(e)}),[c]);return i.createElement(s,{ref:t,"data-testid":r,type:"button",role:"switch","aria-checked":d,disabled:a,id:l,onClick:u})})),r=d.d.label.withConfig({displayName:"switch-label__SwitchLabel",componentId:"sc-orbobj-0"})(["align-items:center;display:flex;justify-content:space-between;font:",";color:",";&:hover,&:focus{","{box-shadow:",";}}&:hover{cursor:pointer;}&[disabled]{cursor:not-allowed;}"],(function(e){return e.theme.token("text-style-list-item")}),(function(e){return e.theme.token("text-default")}),s,(function(e){return e.disabled?"none":e.theme.token("box-shadow-pattern")})),u=function(e){var t=e.checked,n=void 0!==t&&t,a=e.disabled,d=void 0!==a&&a,s=e.id,u=e.label,m=e.onClick,b=e["data-testid"],f=Object(o.a)("switch"),g=null!==s&&void 0!==s?s:f;return i.createElement(c,null,i.createElement(r,{disabled:d,htmlFor:g},u),i.createElement(l,{"data-testid":b,checked:n,disabled:d,id:g,onClick:m}))},m=n(262),b=n(92),f=n(219),g=n(276),p=n(2464),h=n(18),w=n(2562),E=Object(h.o)(),y=function(e){var t=e.isOpen,n=e.dismissModal,a=Object(b.a)().formatMessage;return i.createElement(w.a,{flowTestId:"granted",isOpen:t,dismissModal:n,modalBodyText:a({id:"disableBrowserLocationSettings"},{brand:E}),modalHeadingText:a({id:"disableLocationServices"}),openSettingsButtonText:a({id:"browserSettings"})})},v=function(e){var t=e.isOpen,n=e.dismissModal;return Object(g.b)().isPermissionDenied?i.createElement(p.a,{isOpen:t,dismissModal:n}):i.createElement(y,{isOpen:t,dismissModal:n})},k=n(779),C=n(979),x=n(570),O=n(1102),_=n(4),S=n(24),I=n(52),j=n(581),N=n(12),T=d.d.div.withConfig({displayName:"styled__ListContainer",componentId:"sc-1wxviwd-0"})(["label{font-size:inherit;}"]),L=d.d.div.withConfig({displayName:"styled__SubListGeo",componentId:"sc-1wxviwd-1"})(["a{border-bottom:none;padding:0 0;}"]),M=d.d.div.withConfig({displayName:"styled__LinkContainer",componentId:"sc-1wxviwd-2"})(["display:flex;justify-content:space-between;width:100%;padding-right:",";align-items:center;color:",";"],N.b.$spacing1,(function(e){return e.theme.token("text-default")})),B=d.d.div.withConfig({displayName:"styled__LocationContainer",componentId:"sc-1wxviwd-3"})(["align-items:center;color:",";display:flex;margin:0 "," 0 0;"],(function(e){return e.theme.token("text-default")}),N.b.$spacing2);t.default=function(){var e=Object(S.e)(),t=e.logRBIEvent,n=e.logNavigationClick,o=Object(j.b)(),d=o.restaurantGroup,s=o.resetRestaurantGroup,c=Object(b.a)().formatMessage,l=Object(i.useState)(!1),r=l[0],p=l[1],w=Object(i.useState)(S.a.PAGE_VIEW),E=w[0],y=w[1],N=Object(_.c)(_.b.ENABLE_SETTINGS_GEOLOCATION),G=Object(g.b)(),P=G.isPermissionGranted,A=G.isPermissionPrompt,q=G.isPermissionDenied,z=G.setPermissionChecking,D=G.loadCurrentPosition,F=Object(i.useCallback)((function(e,n,i){t({name:i,type:S.b.Navigation,attributes:{component:e,text:""+n}})}),[t]),H=Object(i.useCallback)((function(){if(y(S.a.CLICK_EVENT),P)return p(!0),void s();q?p(!0):A&&(z(),D())}),[q,P,A,D,s,z]),W=Object(i.useCallback)((function(){p(!1),h.E&&z()}),[z]),R=Object(i.useCallback)((function(){n(S.a.CLICK_EVENT)}),[n]);return Object(i.useEffect)((function(){P&&s(),F(I.a.ACCOUNT_SETTINGS_GEOLOCATION,P,E)}),[P]),Object(i.useEffect)((function(){r&&p(!1)}),[q]),a.a.createElement(a.a.Fragment,null,a.a.createElement(m.a,{title:c({id:"accountSettings"})}),a.a.createElement(O.a,null,a.a.createElement(x.a,null),a.a.createElement(k.a,{header:c({id:"accountSettings"}),"data-testid":"account-settings-account-layout"},a.a.createElement(T,null,a.a.createElement(C.f,null,N&&a.a.createElement(a.a.Fragment,null,a.a.createElement(C.b,null,a.a.createElement(C.c,null,a.a.createElement(u,{id:"geolocation",label:c({id:"geolocationLabelSwitch"}),onClick:H,checked:P,"data-testid":"account-settings-switch-geolocation"}))),!P&&a.a.createElement(C.b,null,a.a.createElement(C.c,null,a.a.createElement(L,null,a.a.createElement(f.a,{"data-testid":"account-settings-option-geolocation",to:c({id:"routes.settingsLocation"}),onClick:R},a.a.createElement(M,null,c({id:"offerAccountSettings"}),a.a.createElement(B,null,d?d.name:c({id:"selectLabel"}))))))))))),a.a.createElement(v,{isOpen:r,dismissModal:W})))}},2464:function(e,t,n){"use strict";var i=n(0),a=n(92),o=n(18),d=n(2562),s=Object(o.o)();t.a=function(e){var t=e.isOpen,n=e.dismissModal,o=Object(a.a)().formatMessage;return i.createElement(d.a,{flowTestId:"denied",isOpen:t,dismissModal:n,modalBodyText:o({id:"updateBrowserLocationSettings"},{brand:s}),modalHeadingText:o({id:"enableLocationServices"}),openSettingsButtonText:o({id:"browserSettings"})})}},2562:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(0),a=n(159),o=n(169),d=n(41),s=n(2644),c=function(e){var t=e.isOpen,n=e.dismissModal,c=e.openSettings,l=e.modalBodyText,r=e.modalHeadingText,u=e.openSettingsButtonText,m=e.flowTestId;return t?i.createElement(s.d,{"data-testid":"geolocation-"+m+"-modal",heading:i.createElement(s.c,{"data-testid":"geolocation-"+m+"-heading"},r),bodyComponent:i.createElement(s.a,{"data-testid":"geolocation-"+m+"-body"},i.createElement(s.e,null,i.createElement(a.a,{icon:"settings",color:"icon-default",width:"24px","aria-hidden":!0})),i.createElement(s.b,null,l)),actions:c&&i.createElement(o.a,{margin:"1rem",minWidth:"auto",width:"100%"},i.createElement(d.d,{fullWidth:!0,onlyIcon:!0,"data-testid":"geolocation-"+m+"-open-settings",onClick:c},u)),modalAppearanceEventMessage:"Previously "+m+" Location Services Modal",showCloseButton:!0,onDismiss:n}):null}},2644:function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return o}
1)),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var i=n(2),a=n(277),o=Object(i.d)(a.b).withConfig({displayName:"styles__StyledDialog",componentId:"sc-9fqvml-0"})(["h2{padding:0 1rem;}"]),d=i.d.div.withConfig({displayName:"styles__StyledGearIcon",componentId:"sc-9fqvml-1"})(["margin:0.625rem auto;display:inline-block;"]),s=i.d.div.withConfig({displayName:"styles__ContentContainer",componentId:"sc-9fqvml-2"})(["padding:0 1rem;text-align:center;"]),c=i.d.span.withConfig({displayName:"styles__ModalHeading",componentId:"sc-9fqvml-3"})(["max-width:10rem;text-align:center;"]),l=i.d.p.withConfig({displayName:"styles__ModalBody",componentId:"sc-9fqvml-4"})(["font-family:",";font-size:1rem;text-align:center;max-width:20rem;margin:auto;"],e.fontFamily.body)}).call(this,n(37).default)}}]);
2//# sourceMappingURL=73.3792eaf9.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.