1(()=>{"use strict";var e=function(){$("#takeawayClosedModal").hide()};$(document).ready(function(){$(document).on("click","#takeawayClosedModal .base-modal-header__button-wrapper",e),$(document).on("click","#takeawayClosedModal .base-modal-footer .button-tertiary",function(e){history.back()}),$(document).on("click","#takeawayClosedModal .base-modal-footer .button-primary",e)});const n={show:function(){$("#takeawayClosedModal").show()},hide:e},t=function(e){var n=e.id,t=e.name,o=e.isoDate,a=e.isSelected,i=void 0!==a&&a,r=i?"option-selected":"clickable-option",d=i?"radio-icon-selected":"radio-icon",c=t;return void 0===c&&(c=new Date(o).toLocaleTimeString("en-GB",{timeZone:"Europe/London",hour:"2-digit",minute:"2-digit",hour12:!1})),'\n <div class="modal-options__option-wrapper '.concat(r,'" data-id="').concat(n,'" data-type="option">\n <div class="modal-options__option option-selected">\n <div class="modal-options__option-inner">\n <div class="').concat(d,'"></div>\n <h3 class="modal-options__option-title">').concat(c,"</h3>\n </div>\n </div>\n </div>\n ")};function o(e){return o="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},o(e)}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function i(e,n,t){return(n=function(e){var n=function(e){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=o(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var r=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach(function(n){i(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},{times:null,value:"",orderType:"c",onContinue:function(e){return""},availableNow:!0});function d(e,n){return JSON.stringify(e)===JSON.stringify(n)}function c(e){var n,o=JSON.parse(JSON.stringify(r)),a=!d((r=Object.assign(r,e)).times,o.times),i=!d(r.value,o.value);(a||i)&&$("#preOrderTimesModal .times-container").html('\n <div class="input-header input-header--modal">\n <div class="input-header__inner input-header__inner--stacked">\n <div class="input-header__title-wrapper input-header__title-wrapper--small">\n <h3 class="input-header__header-title input-header__header-title--small ">\n Choose Your Slot\n </h3>\n </div>\n </div>\n <span class="input-header__header-description ">\n When would you like '.concat("c"===r.orderType?"to collect":"it delivered","?\n </span>\n </div>\n ").concat(r.availableNow?t({id:"",name:"As soon as possible",isSelected:""===r.value}):"","\n ").concat((null!==(n=r.times)&&void 0!==n?n:[]).map(function(e){return t({id:e,isoDate:e,isSelected:e===r.value})}).join(""),"\n "))}var s=function(){$("#preOrderTimesModal").hide(),c({times:null})};$(document).ready(function(){$(document).on("click","#preOrderTimesModal .base-modal-header__button-wrapper",s),$(document).on("click","#preOrderTimesModal .base-modal-footer .button-tertiary",function(){history.back()}),$(document).on("click","#preOrderTimesModal .clickable-option",function(){var e=$
1(this).closest(".modal-options__option-wrapper");c({value:"".concat(e.data("id"))})}),$(document).on("click","#preOrderTimesModal .base-modal-footer .button-success",function(){r.onContinue(r.value),s()})});const l={show:function(e){var n,t,o=e.value,a=void 0===o?"":o,i=e.orderType,r=void 0===i?"c":i,d=e.onContinue,s=void 0===d?function(e){return""}:d,l=e.availableNow,u=void 0===l||l;$.ajax({url:"checkout/selection_times?ts="+(new Date).getTime(),beforeSend:function(){c({isFetching:!0})},success:function(e){var n=e.error,t=e.data;void 0===n?c({times:void 0===t?[]:t,value:a,orderType:r,onContinue:s,availableNow:u}):alert("Unable to load selection times: ".concat(n))},complete:function(){c({isFetching:!1})}}),$("#preOrderTimesModal").html('\n <div class="base-modal_overlay">\n <div class="base-modal_content-container">\n <div class="base-modal-header">\n <div class="base-modal-header__inner">\n <div class="base-modal-header__title-wrapper">\n <span class="base-modal-header__title">\n '.concat("c"===r?"Collection":"Delivery",' Time\n </span>\n <div class="base-modal-header__sub-title-container">\n <div class="base-modal-header__sub-title">Today</div>\n <div class="text-separator"></div> \n <div class="base-modal-header__sub-title-light">\n ').concat((n=new Date,t={mm:"".concat(n.getMonth()+1).padStart(2,"0"),dd:"".concat(n.getDate()).padStart(2,"0"),yy:n.getFullYear().toString().slice(-2),yyyy:n.getFullYear()},"dd/mm/yy".replace(/mm|dd|yy|yyyy/gi,function(e){return t[e]})),'\n </div>\n </div>\n </div>\n </div>\n <div class="base-modal-header__button-wrapper">\n <img src="/images/modal/icons/close.svg" alt="close icon" class="base-modal-header__close-button">\n </div>\n </div>\n <div class="base-modal__content base-modal-scrollbar">\n <div class="times-container">\n <div class="loader-container">\n <img src="/img/ajax-loader.gif" width="25" height="25" />\n </div>\n </div>\n </div>\n\n <div class="base-modal-footer">\n <div class="base-modal-footer-container">\n <div class="button-success">Continue</div>\n </div>\n </div>\n </div>\n </div>\n ')).fadeIn("fast"),$("#preOrderTimesModal .base-modal__content").scrollTop(0)},hide:s};window.modals={TakeawayClosed:n,PreOrderTimesModal:l}})();
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.