PageSourceSearch

https://www.burgerking.co.za/static/js/68.a755f7b5.chunk.js

js burgerking.co.za collected 2026-09-24 21:54:43 UTC 12,653 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{2115:function(e,t,n){"use strict";n.r(t);var r=n(31),o=n.n(r),a=n(14),i=n.n(a),c=n(0),l=n.n(c),u=n(3602),s=n(92),d=n(35),f=n(2),p=n(779),b=n(205),y=n(570),m=n(67),g=n(699);var v=n(1102),h=n(274),C=n(24),w=n(18),O=n(15),x=n(157),j=n(3230),E=Object(v.b)((function(){var e,t,n,r,a=Object(s.a)().formatMessage,v=Object(h.a)().loyaltyUser,E=Object(f.f)(),I={canShare:navigator.canShare,shareData:function(){var e=o()(i.a.mark((function e(t){var n,r,o;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.text,r=t.title,o=t.url,e.prev=1,e.next=4,navigator.share({title:r,text:n,url:o});case 4:e.next=9;break;case 6:throw e.prev=6,e.t0=e.catch(1),new Error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}()},k=I.canShare,_=I.shareData,D=Object(d.p)(),T=Object(C.e)(),N=Object(g.a)(),P=N.featureInvitationCode,S=N.featureInvitationCodeLoading,R=Object(c.useMemo)((function(){var e,t,n=null==v||null==(e=v.secondaryIdentifiers)?void 0:e.find((function(e){return(null==e?void 0:e.identifierType)===m.v.INVITATIONCODE}));if(n)return null==n||null==(t=n.identifier)?void 0:t.toUpperCase();x.a.error(a({id:"shareInvitationCodeGeneralError"}))}),[v,a]),$=Object(c.useCallback)((function(){x.a.dark(a({id:"invitationCodeCopiedText"})),T.logNavigationClick(C.a.INVITATION_CODE_COPIED)}),[a]),A=Object(c.useCallback)(o()(i.a.mark((function e(){var t,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=""+window.location.origin+O.k.signUp,n={text:a({id:"shareInvitationCodeMessage"},{invitationCode:R,brand:Object(w.o)()}),title:Object(w.o)(),url:t},e.prev=2,e.next=5,_(n);case 5:T.logNavigationClick(C.a.INVITATION_CODE_SHARED),e.next=14;break;case 8:if(e.prev=8,e.t0=e.catch(2),!e.t0.toString().includes("AbortError")){e.next=13;break}return e.abrupt("return");case 13:x.a.error(a({id:"shareInvitationCodeGeneralError"}));case 14:case"end":return e.stop()}}),e,null,[[2,8]])}))),[a,_,R]);return Object(c.useEffect)((function(){R||D(O.k.base)}),[R,D]),S?l.a.createElement(b.a,{fillColor:E.token("icon-default")}):l.a.createElement(p.a,{header:null==P||null==(e=P.invitationCodeTitle)?void 0:e.locale},l.a.createElement(y.a,null),l.a.createElement(j.g,null,l.a.createElement(j.i,null,R),l.a.createElement(u.CopyToClipboard,{text:R,onCopy:$},l.a.createElement(j.h,null))),null==P||null==(t=P.invitationCodeInformationCards)?void 0:t.map((function(e,t){var n,r,o,a;return l.a.createElement(j.b,{key:null==e||null==(n=e.cardTitle)?void 0:n.locale,"data-testid":"information-card-"+t},l.a.createElement(j.d,{$bgColor:null==e||null==(r=e.cardImageBackgroundColor)?void 0:r.hex},l.a.createElement(j.c,{image:null==e?void 0:e.cardImage,alt:""})),l.a.createElement(j.e,null,l.a.createElement(j.f,null,null==e||null==(o=e.cardTitle)?void 0:o.locale),l.a.createElement(j.a,{content:null==e||null==(a=e.cardDescription)?void 0:a.locale})))})),k&&l.a.createElement(j.j,{onClick:A},null==P||null==(n=P.shareMyCodeButtonText)?void 0:n.locale),l.a.createElement(j.k,{content:null==P||null==(r=P.termsAndConditions)?void 0:r.locale}))}));n.d(t,"default",(function(){return E}))},3230:function(e,t,n){"use strict";(function(e){n.d(t,"g",(function(){return u})),n.d(t,"i",(function(){return s})),n.d(t,"h",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"j",(function(){return v})),n.d(t,"k",(function(){return h}));var r=n(2),o=n(41),a=n(3606),i=n(156),c=n(259),l=n(12),u=r.d.div.withConfig({displayName:"styledbase__InvitationCodeNumberContainer",componentId:"sc-1vwhrcl-0"})(["background-color:#fffbf4;border-radius:8px;display:flex;justify-content:center;align-items:center;padding:",";"],l.b.$spacing4),s=r.d.p.withConfig({displayName:"styledbase__InvitationCodeNumberText",componentId:"sc-1vwhrcl-1"})(["color:",";font-size:1.375rem;font-weight:bold;margin:0;text-align:center;flex:1;"],l.b.bk.$bbqBrown),d=Object(r.d)(a.a).withConfig({displayName:"styledbase__InvitationCodeNumberCopyIcon",componentId:"sc-1v
1whrcl-2"})(["width:1.5rem;height:1.5rem;cursor:pointer;"]),f=r.d.div.withConfig({displayName:"styledbase__InformationCard",componentId:"sc-1vwhrcl-3"})(["background-color:",";padding:",";border-radius:8px;display:flex;justify-content:space-between;align-items:center;margin-top:",";"],l.b.$whiteOpacity30,l.b.$spacing4,l.b.$spacing7),p=r.d.div.withConfig({displayName:"styledbase__InformationCardImageWrapper",componentId:"sc-1vwhrcl-4"})(["background-color:",";padding:",";min-width:4rem;height:4rem;border-radius:8px;"],(function(e){return e.$bgColor?e.$bgColor:"transparent"}),l.b.$spacing2),b=Object(r.d)(i.a).withConfig({displayName:"styledbase__InformationCardImage",componentId:"sc-1vwhrcl-5"})([""]),y=r.d.div.withConfig({displayName:"styledbase__InformationCardTextsContainer",componentId:"sc-1vwhrcl-6"})(["display:flex;flex-direction:column;margin-left:",";"],l.b.$spacing4),m=r.d.h2.withConfig({displayName:"styledbase__InformationCardTitle",componentId:"sc-1vwhrcl-7"})(["color:",";font-size:var(--font-copyTwo);margin:0;margin-bottom:",";font-weight:700;"],l.b.bk.$bbqBrown,l.b.$spacing1),g=Object(r.d)(c.b).withConfig({displayName:"styledbase__CardDescription",componentId:"sc-1vwhrcl-8"})(["color:",";font-size:0.75rem;"],l.b.bk.$bbqBrown),v=Object(r.d)(o.d).withConfig({displayName:"styledbase__ShareMyCodeButton",componentId:"sc-1vwhrcl-9"})(["background-color:",";font-size:var(--font-copyTwo);padding-left:1.5rem;padding-right:1.5rem;margin-top:",";&:hover{background-color:",";}width:100%;"],e.color.primary,l.b.$spacing4,e.color.primaryHover),h=Object(r.d)(c.b).withConfig({displayName:"styledbase__TermsAndConditions",componentId:"sc-1vwhrcl-10"})(["color:",";font-size:0.75rem;text-align:center;margin-top:",";"],l.b.bk.$bbqBrown,l.b.$spacing4)}).call(this,n(37).default)},3602:function(e,t,n){"use strict";var r=n(3603).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},3603:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=c(n(0)),a=c(n(3604)),i=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(l,e);var t,n,r,c=b(l);function l(){var e;d(this,l);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(m(e=c.call.apply(c,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,i=n.onCopy,c=n.children,l=n.options,u=o.default.Children.only(c),s=(0,a.default)(r,l);i&&i(r,s),u&&u.props&&"function"===typeof u.props.onClick&&u.props.onClick(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=s(e,i),r=o.default.Children.only(t);return o.default.cloneElement(r,u(u({},n),{},{onClick:this.onClick}))}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.default.PureComponent);t.CopyToClipboard=h,v(h,"defaultProps",{onCopy:void 0,options:void 0})},3604:function(e,t,n){"use strict";var r=n(3605),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,c,l,u,s=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),c=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),l.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(c):l.removeAllRanges()),u&&document.body.removeChild(u),i()}return s}},3605:function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEac
1h((function(t){e.addRange(t)})),t&&t.focus()}}},3606:function(e,t,n){"use strict";var r=n(6),o=n.n(r),a=n(0),i=n.n(a);t.a=function(e){return i.a.createElement("svg",o()({width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i.a.createElement("path",{d:"M14.5 0H2.5C1.4 0 0.5 0.9 0.5 2V16H2.5V2H14.5V0ZM17.5 4H6.5C5.4 4 4.5 4.9 4.5 6V20C4.5 21.1 5.4 22 6.5 22H17.5C18.6 22 19.5 21.1 19.5 20V6C19.5 4.9 18.6 4 17.5 4ZM17.5 20H6.5V6H17.5V20Z",fill:"#D93D00"}))}}}]);
2//# sourceMappingURL=68.a755f7b5.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.