1/*! For license information please see MobileHeader.js.LICENSE.txt */ 2(self.webpackChunkmnsn=self.webpackChunkmnsn||[]).push([[6862],{53303:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var diff_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(92485),squirrelly__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(95153),squirrelly__WEBPACK_IMPORTED_MODULE_1___namespace_object={};function htmlStringToElement(t){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}function getTemplate(t){return document.querySelector("script#".concat(t,'[type="text/x-squirrelly-template"]'))}function update(t,e){if("string"==typeof e&&(e=htmlStringToElement(e)),t instanceof HTMLElement&&e instanceof HTMLElement){var n=new diff_dom__WEBPACK_IMPORTED_MODULE_0__.ad({maxChildCount:!1}),r=n.diff(t,e);r&&r.length&&n.apply(t,r)}}function empty(t){if(t instanceof HTMLElement)for(;t.firstChild;)t.removeChild(t.firstChild)}function append(t,e){"string"==typeof e?t.insertAdjacentHTML("beforeEnd",e):t.append(e)}function prepend(t,e){"string"==typeof e?t.insertAdjacentHTML("afterbegin",e):t.prepend(e)}function escapeQuotes(){return String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/"/g,""")}function msgfHelper(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.replace(/((?:[^{}]|(?:\{\{)|(?:\}\}))+)|(?:\{([0-9]+)\})/g,function(t,e,r){return e?e.replace(/(?:{{)|(?:}})/g,function(t){return t[0]}):r<n.length?n[r]:""})}function msgfSafeHelper(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return escapeQuotes(msgfHelper.apply(void 0,[t].concat(n)))}function render(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof HTMLElement&&e){var r=getTemplate(e);r&&(squirrelly__WEBPACK_IMPORTED_MODULE_1__.K3(!1),squirrelly__WEBPACK_IMPORTED_MODULE_1__.A8("msgf",msgfHelper),squirrelly__WEBPACK_IMPORTED_MODULE_1__.A8("msgfSafe",msgfSafeHelper),squirrelly__WEBPACK_IMPORTED_MODULE_1__.YZ("escapeQuotes",escapeQuotes),update(t,squirrelly__WEBPACK_IMPORTED_MODULE_1__.Wx(r.innerHTML)(n,squirrelly__WEBPACK_IMPORTED_MODULE_1___namespace_object)))}}function renderElement(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("div");return render(n,t,e),n}function processScripts(element){for(var scripts=element.getElementsByTagName("script"),i=0,max=scripts.length;i<max;i++)eval(scripts[i].text)}__webpack_require__.r(squirrelly__WEBPACK_IMPORTED_MODULE_1___namespace_object),__webpack_require__.d(squirrelly__WEBPACK_IMPORTED_MODULE_1___namespace_object,{Compile:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.Wx},F:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.F},H:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.H},P:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.P},Render:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.dw},__express:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.H5},autoEscaping:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.K3},defaultTags:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.nK},defineFilter:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.YZ},defineHelper:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.A8},defineNativeHelper:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.Jc},definePartial:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.xl},load:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.Hh},renderFile:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.VB},setDefaultFilters:function(){return squirrelly__WEBPACK_IMPORTED_MODULE_1__.Jx}}),__webpack_exports__.A={append:append,prepend:prepend,render:render,renderElement:renderElement,update:update,empty:empty,processScripts:processScripts}},39114:function(t,e,n){"use strict";n.d(e,{u:function(){return o}});var r="h-loading",o={start:function(t,e){t instanceof HTMLElement&&t.classList.add(e||r)},stop:function(t,e){t instanceof HTMLElement&&(e&&t.classList.contains(e)?t.classList.remove(e):t.classList.contains(r)&&t.classList.remove(r))}}},77187:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return M}});var r=n(91076),o=n(53303),i=n(8207),u=n(3273),a=n(39114),s=n(43047);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){var t=E(),e=t.m(l),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function r(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===n||"GeneratorFunction"===(e.displayName||e.name))}var o={throw:1,return:2,break:3,continue:3};function i(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,o[t],e)},delegateYield:function(t,o,i){return e.resultName=o,n(r.d,f(t),i)},finish:function(t){return n(r.f,t)}},n=function(t,n,o){r.p=e.prev,r.n=e.next;try{return t(n,o)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(l=function(){return{wrap:function(e,n,r,o){return t.w(i(e),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:t.m,awrap:function(t,e){return new d(t,e)},AsyncIterator:h,async:function(t,e,n,o,u){return(r(e)?p:y)(i(t),e,n,o,u)},keys:_,values:f}})()}function f(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(c(t)+" is not iterable")}function _(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}}function y(t,e,n,r,o){var i=p(t,e,n,r,o);return i.next().then(function(t){return t.done?t.value:i.next()})}function p(t,e,n,r,o){return new h(E().w(t,e,n,r),o||Promise)}function h(t,e){function n(r,o,i,u){try{var a=t[r](o),s=a.value;return s instanceof d?e.resolve(s.v).then(function(t){n("next",t,i,u)},function(t){n("throw",t,i,u)}):e.resolve(s).then(function(t){a.value=t,i(a)},function(t){return n("throw",t,i,u)})}catch(t){u(t)}}var r;this.next||(m(h.prototype),m(h.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),m(this,"_invoke",function(t,o,i){function u(){return new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(u,u):u()},!0)}function E(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof a?r:a,c=Object.create(s.prototype);return m(c,"_invoke",function(n,r,o){var i,a,s,c=0,l=o||[],f=!1,_={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return i=e,a=0,s=t,_.
2n=n,u}};function y(n,r){for(a=n,s=r,e=0;!f&&c&&!o&&e<l.length;e++){var o,i=l[e],y=_.p,p=i[2];n>3?(o=p===r)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=n<2&&y<i[1])?(a=0,_.v=r,_.n=i[1]):y<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,_.n=p,a=0))}if(o||n>1)return u;throw f=!0,r}return function(o,l,p){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,p),a=l,s=p;(e=a<2?t:s)||!f;){i||(a?a<3?(a>1&&(_.n=-1),y(a,s)):_.n=s:_.v=s);try{if(c=2,i){if(a||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,a<2&&(a=0)}else 1===a&&(e=i.return)&&e.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((e=(f=_.n<0)?s:n.call(r,_))!==u)break}catch(e){i=t,a=1,s=e}finally{c=1}}return{value:e,done:f}}}(n,o,i),!0),c}var u={};function a(){}function s(){}function c(){}e=Object.getPrototypeOf;var l=[][r]?e(e([][r]())):(m(e={},r,function(){return this}),e),f=c.prototype=a.prototype=Object.create(l);function _(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,m(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=c,m(f,"constructor",c),m(c,"constructor",s),s.displayName="GeneratorFunction",m(c,o,"GeneratorFunction"),m(f),m(f,o,"Generator"),m(f,r,function(){return this}),m(f,"toString",function(){return"[object Generator]"}),(E=function(){return{w:i,m:_}})()}function m(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}m=function(t,e,n,r){function i(e,n){m(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},m(t,e,n,r)}function d(t,e){this.v=t,this.k=e}function v(t,e,n,r,o,i,u){try{var a=t[i](u),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(r,o)}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function b(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(T=function(){return!!t})()}function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}var M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(y,t);var e,n,r,f,_=function(t){var e=T();return function(){var n,r=D(t);if(e){var o=D(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}(y);function y(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),_.apply(this,arguments)}return e=y,n=[{key:"initState",value:function(){this.state.isGuest=!0,this.state.isLoyaltyEnabled=!1,this.state.loyaltyPoints=0,this.state.customerName=null,this.performRequestAndUpdate()}},{key:"initCache",value:function(){this.selectors.greeting=this.element.querySelector(s.HEADER_ACCOUNT_GREETING_SELECTOR),this.selectors.loyalty=this.element.querySelector(s.HEADER_ACCOUNT_LOYALTY_SELECTOR),this.selectors.contentCustomer=this.element.querySelectorAll(s.HEADER_CONTENT_CUSTOMER_SELECTOR),this.selectors.contentGuest=this.element.querySelectorAll(s.HEADER_CONTENT_GUEST_SELECTOR)}},{key:"loadData",value:(r=l().mark(function t(){return l().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a.u.start(this.element),t.next=3,this.loadCustomerData();case 3:return t.next=5,this.loadLoyaltyData();case 5:a.u.stop(this.element);case 6:case"end":return t.stop()}},t,this)}),f=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function u(t){v(i,n,o,u,a,"next",t)}function a(t){v(i,n,o,u,a,"throw",t)}u(void 0)})},function(){return f.apply(this,arguments)})},{key:"loadCustomerData",value:function(){var t=this;return new Promise(function(e){(0,u.R)(t.options.url).then(function(e){t.cacheCustomerData(e)}).finally(function(){e()})})}},{key:"loadLoyaltyData",value:function(){var t=this;return new Promise(function(e){if(t.state.isGuest||!t.state.isLoyaltyEnabled)return e(!1);(0,u.R)(t.options.loyaltyUrl).then(function(e){e.error&&(e.loyaltyPoints=0),t.cac
2heLoyaltyData(e)}).finally(function(){e(!0)})})}},{key:"cacheCustomerData",value:function(t){this.state.isGuest=!t.customerName,this.state.isLoyaltyEnabled=t.loyaltyEnabled,this.state.customerName=t.customerName}},{key:"cacheLoyaltyData",value:function(t){this.state.loyaltyPoints=t.loyaltyPoints||0}},{key:"updateHeaderMenu",value:function(){this.selectors.contentCustomer.forEach(this.showElementCustomer.bind(this)),this.selectors.contentGuest.forEach(this.showElementGuest.bind(this)),this.updateLoyaltyItem(),this.updateGreetingItem()}},{key:"updateLoyaltyItem",value:function(){var t=this.state.isLoyaltyEnabled;this.setElementShow(this.selectors.loyalty,t),this.state.isLoyaltyEnabled&&this.options.loyaltyTemplate&&o.A.render(this.selectors.loyalty,this.options.loyaltyTemplate,{isGuest:this.state.isGuest,loyaltyPoints:this.state.loyaltyPoints})}},{key:"updateGreetingItem",value:function(){this.showElementCustomer(this.selectors.greeting),!this.state.isGuest&&this.options.greetingTemplate&&o.A.render(this.selectors.greeting,this.options.greetingTemplate,{name:this.state.customerName})}},{key:"showElementGuest",value:function(t){return this.setElementShow(t,this.state.isGuest)}},{key:"showElementCustomer",value:function(t){return this.setElementShow(t,!this.state.isGuest)}},{key:"setElementShow",value:function(t,e){return e?this.showElement(t):this.hideElement()}},{key:"performRequestAndUpdate",value:function(){var t=this;this.loadData().then(function(){t.updateHeaderMenu()})}},{key:"onLoyaltyUpdate",value:function(){var t=this;a.u.start(this.element),this.loadLoyaltyData().then(function(){t.updateHeaderMenu()}).finally(function(){a.u.stop(t.element)})}},{key:"bindEvents",value:function(){i.J.on("loyalty:update",this.onLoyaltyUpdate,this)}},{key:"destroy",value:function(){i.J.on("loyalty:update",this.onLoyaltyUpdate,this)}}],n&&O(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(r.A)},85504:function(){}}]);
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.